/* RTST stub site — base + layout (mobile-first). Theme tokens live in config.css */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg) url("../img/bg-pattern.webp") repeat center top / 1200px auto;
  overflow-x: hidden;
  overflow-x: clip;
}
body.noscroll { overflow: hidden; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-link); }
a:hover { color: var(--c-link-hover); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--c-link); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.kw { color: var(--c-link); }

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-surface); border-bottom: 1px solid var(--c-line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(30, 27, 46, 0.08); }
.site-header__inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 28px; width: auto; }
.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--c-line-2); border-radius: 12px; background: var(--c-surface); color: var(--c-text); cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--c-text); text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: var(--c-accent); }
.site-nav a[aria-current="page"] { color: var(--c-accent); }

@media (max-width: 767.98px) {
  .burger { display: flex; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; width: 100%; gap: 0;
    border-top: 1px solid var(--c-line); padding-top: 4px;
  }
  .site-nav.open a { min-height: 44px; display: flex; align-items: center; }
  .site-header { max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
}

/* ================= BUTTONS ================= */
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px;
  border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; text-align: center;
  transition: background-color .2s ease, color .2s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-accent); color: #fff; font-weight: 800; }
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; }
.btn--light { background: var(--c-accent-2); color: var(--c-text); font-weight: 800; }
.btn--light:hover { background: #F57AA3; color: var(--c-text); }
.btn--wide { padding: 0 36px; }

/* ================= HOME ================= */
.gallery { padding-top: 32px; }
.slider {
  position: relative; width: 100%; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--c-slider-bg); box-shadow: 0 10px 30px rgba(30, 27, 46, 0.10);
}
.slider__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.slider__slide.is-active { opacity: 1; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--c-text); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.slider__btn svg { width: 20px; height: 20px; }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider__title, .slider__count {
  position: absolute; bottom: 12px; z-index: 2; border-radius: 999px; padding: 4px 12px; font-size: 13px; line-height: 1.6;
}
.slider__title { left: 12px; background: rgba(255, 255, 255, 0.94); color: var(--c-text); font-weight: 800; }
.slider__count { right: 12px; background: var(--c-text); color: #fff; font-weight: 700; }

.hero { padding-top: 40px; padding-bottom: 24px; text-align: center; }
.hero__owner { margin: 0 0 16px; font-size: 13px; color: var(--c-muted-2); }
.hero__title { margin: 0 auto; max-width: 820px; font-size: clamp(32px, 5vw, 56px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.hero__lead { margin: 16px auto 0; max-width: 640px; font-size: clamp(16px, 2vw, 20px); color: var(--c-muted); }
.hero .btn-row { margin-top: 28px; }

.notice { padding-top: 16px; }
.notice__box { background: var(--c-surface); border-radius: 16px; padding: 20px 24px; font-size: 14px; color: var(--c-muted); }
.notice__title { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--c-text); }
.notice__box p { margin: 0; }

.info { padding-top: 64px; }
.info__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.info-card { border: 1px solid var(--c-line); background: var(--c-surface); border-radius: 20px; padding: 28px; }
.info-card__title { margin: 0 0 16px; font-size: 24px; line-height: 1.3; font-weight: 800; }
.info-card ol, .info-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--c-muted); }
.info-card b { color: var(--c-text); }
.info__cta { margin-top: 32px; text-align: center; }

.section-title { margin: 0 0 28px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; font-weight: 800; text-align: center; }
.create { padding-top: 72px; }
.create__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.create-card { border: 1px solid var(--c-line); background: var(--c-surface); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.create-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.create-card__title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; }
.create-card p { margin: 0; color: var(--c-muted); flex: 1; }
.create-card__more { font-weight: 700; text-decoration: none; }

.about { padding-top: 72px; }
.about__row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.about__text { flex: 1 1 420px; min-width: 0; }
.eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-teal); }
.about__title { margin: 0 0 16px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; font-weight: 800; }
.about__text > p { margin: 0 0 20px; color: var(--c-muted); }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--c-teal); }
.about__img { flex: 1 1 420px; min-width: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }

.final { padding-top: 72px; padding-bottom: 80px; }
.final__box { background: var(--c-text); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px) 24px; text-align: center; }
.final__title { margin: 0 0 24px; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.2; font-weight: 800; }

/* ================= INNER PAGES ================= */
.page { padding-top: 48px; padding-bottom: 72px; }
.page-title { margin: 0 0 28px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--c-text); }
.page-title--tight { margin-bottom: 12px; }
.page-title--legal { margin-bottom: 8px; }
.page-lead { margin: 0 0 32px; max-width: 760px; color: var(--c-muted); }

/* white "sheet" pages: FAQ, Terms, Privacy */
.sheet {
  width: calc(100% - 32px); max-width: 860px; margin: 32px auto 56px; padding: 40px clamp(20px, 4vw, 48px) 48px;
  background: var(--c-surface); border-radius: 24px;
}
.sheet--wide { max-width: 1160px; }

/* FAQ */
.faq-item { border-top: 1px solid var(--c-line-2); padding: 4px 0; }
.faq-item:last-of-type { border-bottom: 1px solid var(--c-line-2); }
.faq-item summary {
  padding: 16px 0; font-weight: 800; font-size: 18px; line-height: 1.4; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-item__body { padding-bottom: 16px; color: var(--c-muted); }
.faq-item__body p { margin: 0 0 8px; }
.faq-item__body p:last-child { margin-bottom: 0; }
.faq-item__body ul, .faq-item__body ol { margin: 0 0 8px; padding-left: 20px; }
.faq-item__body ul:last-child, .faq-item__body ol:last-child { margin-bottom: 0; }
.faq-item__body b { color: var(--c-text); }
.faq-item__body b.kw { color: var(--c-link); }

/* legal text (Terms, Privacy) */
.legal { color: var(--c-muted); line-height: 1.65; }
.legal h2 { margin: 28px 0 8px; font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--c-text); }
.legal h3 { margin: 18px 0 6px; font-size: 17px; line-height: 1.35; font-weight: 800; color: var(--c-text); }
.legal p { margin: 0 0 10px; }
.legal ul, .legal ol { margin: 0 0 10px; padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal b { color: var(--c-text); }
.legal .effective { font-weight: 700; color: var(--c-text); }

/* Price */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.plan { border: 1px solid var(--c-line); background: var(--c-surface); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.plan__name { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; }
.plan__price { font-size: 28px; font-weight: 800; color: var(--c-accent); line-height: 1.2; }
.plan__price span { font-size: 15px; color: var(--c-muted); }
.plan p { margin: 0; font-size: 14px; }
.plan__note { color: var(--c-muted); }
.small-note { margin: 16px 0 0; font-size: 14px; color: var(--c-muted); }
.small-note--spaced { margin-top: 40px; }
.price-info { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px 56px; max-width: 1100px; }
.price-info h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.3; font-weight: 800; }
.price-info p { margin: 0 0 8px; color: var(--c-muted); }
.price-info p:last-child { margin-bottom: 0; }
.price-info ul { margin: 0 0 8px; padding-left: 20px; color: var(--c-muted); }

/* Contact */
.company {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 20px; padding: 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 24px;
}
.company dt { font-size: 13px; font-weight: 700; color: var(--c-muted-2); }
.company dd { margin: 0; }
.company__op { font-weight: 800; }
.contact-cols { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; color: var(--c-muted); }
.contact-cols__col { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 20px; padding: 24px; }
.card h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--c-text); }
.card p { margin: 0 0 8px; }
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { margin: 0 0 8px; padding-left: 20px; }

/* Unsubscribe */
.unsub { padding: 56px 16px 72px; }
.unsub__box {
  max-width: 480px; margin: 0 auto; background: var(--c-surface); border-radius: 24px; padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(30, 27, 46, 0.06), 0 8px 28px rgba(30, 27, 46, 0.06);
}
.unsub__title { margin: 0 0 16px; font-size: 22px; line-height: 1.3; font-weight: 800; text-align: center; }
.unsub__label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.phone-box { display: flex; height: 56px; border-radius: 14px; overflow: hidden; border: 2px solid var(--c-text); background: var(--c-surface); }
.phone-box.is-error { border-color: var(--c-error); }
.phone-box__prefix { display: flex; align-items: center; padding: 0 12px; font-weight: 800; background: var(--c-prefix-bg); border-right: 1px solid var(--c-line-2); }
.phone-box__input {
  flex: 1; min-width: 0; border: 0; padding: 0 12px; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--c-text); background: transparent; outline: none;
}
.phone-box:focus-within { box-shadow: 0 0 0 3px rgba(91, 43, 209, 0.18); }
.phone-box__input::placeholder { color: #A39FAE; }
.unsub__error { margin: 4px 0 0; min-height: 18px; font-size: 12.5px; font-weight: 600; color: var(--c-error); }
.btn-dark {
  width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--c-text); color: #fff;
  font-size: 17px; font-weight: 800; cursor: pointer; transition: background-color .2s ease;
}
.btn-dark:hover { background: #34304A; }
.unsub__form .btn-dark { margin-top: 6px; }
.btn-dark:disabled { opacity: .65; cursor: progress; }

/* modal (unsubscribe response) */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(30, 27, 46, 0.55); animation: fade-in .2s ease; }
.modal__dialog {
  position: relative; width: 100%; max-width: 420px; background: var(--c-surface); border-radius: 24px;
  padding: 28px 24px 24px; text-align: center; box-shadow: 0 20px 60px rgba(30, 27, 46, 0.25); animation: pop-in .22s ease;
}
.modal__icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.modal__icon svg { width: 28px; height: 28px; }
.modal__icon--info { background: #F1ECFC; color: var(--c-link); }
.modal__icon--success { background: var(--c-teal-soft); color: var(--c-teal); }
.modal__title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; font-weight: 800; }
.modal__text { margin: 0 0 20px; color: var(--c-muted); overflow-wrap: anywhere; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.sms { max-width: 760px; margin: 40px auto 0; }
.sms__title { margin: 0 0 6px; font-size: 22px; line-height: 1.3; font-weight: 800; text-align: center; }
.sms__lead { margin: 0 0 20px; text-align: center; color: var(--c-muted); }
.sms__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.sms__card { background: var(--c-surface); border-radius: 16px; padding: 16px 20px; }
.sms__op { font-weight: 800; }
.sms__cmd { color: var(--c-muted); }

/* ================= FOOTER ================= */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-line); }
.site-footer__top {
  max-width: var(--container); margin: 0 auto; padding: 40px 20px 28px;
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
}
.site-footer__brand { flex: 1 1 240px; display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand .site-logo img { height: 42px; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.footer-nav a { color: var(--c-text); }
.footer-nav a:hover { color: var(--c-accent); }
.footer-nav__row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer__contact { flex: 1 1 240px; font-size: 14px; color: var(--c-muted); }
.site-footer__contact h2 { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: var(--c-text); }
.site-footer__contact p { margin: 0 0 8px; }
.site-footer__contact p:last-child { margin-bottom: 0; }
.site-footer__legal { margin: 0 0 8px; font-size: 13px; }
.site-footer__copy {
  max-width: var(--container); margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid var(--c-line);
  font-size: 13px; color: var(--c-muted-2);
}

/* ================= BREAKPOINTS ================= */
@media (min-width: 768px) {
  .slider { aspect-ratio: 16 / 7; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
