@charset "UTF-8";
/* ============================================================
   Златка / aizlatka.com — основной стиль
   Порядок: переменные → шрифты → reset → типографика →
            компоненты → секции → утилиты → media
   Методология БЭМ. !important запрещён, кроме prefers-reduced-motion.
   ============================================================ */

/* ─── 1. Переменные (ТЗ п.10.2, 10.3) ──────────────────────── */
:root {
  /* Фиолетовая гамма — основная. Бирюза вторым акцентом: связь с морем */
  --c-violet: #6C4CE0;
  --c-violet-2: #9B86F0;
  --c-violet-3: #C9BCF8;
  --c-violet-hover: #5B3ECC;
  --c-navy: #211A4D;
  --c-teal: #2FB6C9;
  --c-teal-soft: #E3F6F8;
  --c-lav: #EFEAFF;
  --c-sky-soft: #FAF8FF;
  --c-cream: #F7F4EE;
  --c-white: #FFFFFF;
  --c-green: #3BAE7E;
  --c-green-soft: #E3F5EE;
  --c-green-dark: #1D6B4F;
  --c-gold: #F2C56B;
  --c-rose: #F0D9E6;
  --c-red: #D62612;
  --c-amber: #F2C56B;
  --c-text: #231F45;
  --c-text-muted: #6E6A8F;
  --c-border: #E8E2FB;

  /* Совместимость со старыми именами: чтобы правки не пришлось искать по всему файлу */
  --c-blue: var(--c-violet);
  --c-blue-hover: var(--c-violet-hover);
  --c-cyan: var(--c-teal);
  --c-sky: var(--c-lav);
  --c-navy-deep: #17123A;

  --shadow-sm: 0 4px 10px rgba(33, 26, 77, .05);
  --shadow-md: 0 8px 24px rgba(33, 26, 77, .09);
  --shadow-lg: 0 16px 44px rgba(33, 26, 77, .13);
  --glow-blue: 0 0 40px rgba(47, 182, 201, .22);

  --grad-hero: linear-gradient(180deg, #FBF9FF 0%, #F5F1FF 100%);
  --grad-cta: linear-gradient(135deg, #3A2A85 0%, #6C4CE0 100%);
  --grad-ai: linear-gradient(135deg, #6C4CE0 0%, #9B86F0 100%);

  --r-sm: 14px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-6: 24px; --s-8: 32px;  --s-10: 40px; --s-14: 56px;
  --s-18: 72px; --s-24: 96px; --s-30: 120px;

  --container: 1200px;
  --gutter: 16px;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  --header-h: 60px;

  --font-display: 'Onest', 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --t-fast: 150ms ease;
  --t-base: 200ms ease;
  --t-slow: 400ms cubic-bezier(.2, .7, .3, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 76px; }
}

/* ─── 2. Шрифты (self-hosted, ТЗ п.10.3) ───────────────────── */
@font-face {
  font-family: 'Onest';
  src: url('/assets/fonts/onest-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0400-045F, U+2010-2027, U+20AC;
}
@font-face {
  font-family: 'Onest';
  src: url('/assets/fonts/onest-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0400-045F, U+2010-2027, U+20AC;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0400-045F, U+2010-2027, U+20AC;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0400-045F, U+2010-2027, U+20AC;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0400-045F, U+2010-2027, U+20AC;
}

/* ─── 3. Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--s-4); }
h1, h2, h3, h4 { margin: 0 0 var(--s-4); font-family: var(--font-display); }

a { color: var(--c-blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-blue-hover); }

:focus-visible {
  outline: 3px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Тач-цели не меньше 44×44 (ТЗ п.12.4, 15.3) */
a[href], button, summary { min-height: 44px; }
.site-nav a, .site-footer__list a, .lang-switch__item { min-height: 44px; display: inline-flex; align-items: center; }

/* ─── 4. Типографика ───────────────────────────────────────── */
.caption {
  font-size: 12px; font-weight: 500; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-text-muted); margin: 0 0 var(--s-3);
}
.lead { font-size: 17px; line-height: 1.55; color: var(--c-text-muted); }

.section__title {
  font-size: clamp(1.6875rem, 1.2rem + 2.1vw, 2.5rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.01em;
  color: var(--c-navy);
}

/* ─── 5. Раскладка ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 800px; }

.section { padding-block: var(--section-y); }
.section--white { background: var(--c-white); }
.section--sky { background: var(--c-sky-soft); }

.section__head { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
.section__lead { margin-bottom: 0; }
.section__foot { margin-top: var(--s-10); text-align: center; }
.section__note { margin-top: var(--s-6); text-align: center; font-size: 14px; color: var(--c-text-muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: var(--s-3) var(--s-4); background: var(--c-navy); color: #fff;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ─── 6. Кнопки ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-6);
  border: 2px solid transparent; border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  line-height: 1; text-align: center; cursor: pointer;
  transition: background-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.btn--primary { background: var(--c-blue); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--c-blue-hover); color: #fff; }
.btn--secondary { border-color: var(--c-blue); color: var(--c-blue); background: transparent; }
.btn--secondary:hover { background: rgba(24, 119, 242, .06); color: var(--c-blue-hover); }
.btn--invert { background: #fff; color: var(--c-blue); box-shadow: var(--shadow-lg); }
.btn--invert:hover { background: #fff; color: var(--c-blue-hover); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 44px; padding: 0 var(--s-4); font-size: 15px; }

@media (hover: hover) {
  .btn--primary:hover, .btn--invert:hover { transform: translateY(-2px); }
}
.btn:active { transform: none; }

.link-secondary { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ─── 7. Карточки, иконки, списки ──────────────────────────── */
.cards { display: grid; gap: var(--s-4); }
.cards--3, .cards--5 { grid-template-columns: 1fr; }

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.card__title { font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--c-navy); margin-bottom: var(--s-2); }
.card__title--sm { font-size: 18px; }
.card__text { margin: 0; color: var(--c-text-muted); }
.card__text--sm { font-size: 15px; }

@media (hover: hover) {
  .card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
}

.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  margin-bottom: var(--s-4);
  color: var(--c-blue);
}
.icon-circle--sm { width: 44px; height: 44px; }
.icon-circle--blue { background: rgba(24, 119, 242, .10); color: var(--c-blue); }
.icon-circle--cyan { background: rgba(53, 200, 224, .16); color: #1796AC; }
.icon-circle--green { background: rgba(34, 164, 93, .10); color: var(--c-green); }
.icon-circle--violet { background: rgba(123, 92, 240, .10); color: var(--c-violet); }
.icon-circle--orange { background: rgba(245, 130, 31, .12); color: #C4640C; }
.icon-circle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.checklist { display: grid; gap: var(--s-3); margin: 0 0 var(--s-8); }
.checklist--tight { gap: var(--s-3); margin-bottom: var(--s-6); }
.checklist__item { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; }
.checklist__icon { flex: none; margin-top: 2px; }
.checklist__icon--sm { width: 20px; height: 20px; }

.crosslist { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.crosslist__item { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; color: var(--c-text-muted); }

.feature-list { display: grid; gap: var(--s-6); margin-bottom: var(--s-6); }
.feature-list__item { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; }
.feature-list__title { font-size: 18px; font-weight: 700; color: var(--c-navy); margin-bottom: var(--s-1); }
.feature-list__text { margin: 0; font-size: 15px; color: var(--c-text-muted); }

.badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-6) 0; }
.badge {
  display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s-3);
  background: var(--c-sky); border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--c-navy);
}

.note-panel {
  background: var(--c-sky); border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-6); margin: 0;
  font-weight: 600; color: var(--c-navy);
}
.bridge { font-size: 18px; font-weight: 600; color: var(--c-navy); margin-bottom: var(--s-4); }
.trust-line { font-size: 14px; color: var(--c-text-muted); margin: 0; }

.guarantee-chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 40px; padding: var(--s-2) var(--s-4); margin: 0 0 var(--s-3);
  background: var(--c-green-soft); border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; color: #17703F;
}
.guarantee-chip svg { flex: none; }

/* ─── 8. Шапка ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  transition: transform var(--t-base);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.site-header__side { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.site-header__cta { display: none; }

.logo { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-navy); }
.logo:hover { color: var(--c-navy); }
.logo__text { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.logo--light { color: #fff; }
.logo--light .logo__text { color: #fff; }

.site-nav { display: none; gap: var(--s-6); }
.site-nav a { color: var(--c-text); font-size: 15px; }
.site-nav a:hover { color: var(--c-blue); }

.lang-switch { display: inline-flex; align-items: center; gap: var(--s-1); }
.lang-switch__item {
  padding: 0 var(--s-2); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--c-text-muted);
}
.lang-switch__item.is-active { background: var(--c-sky); color: var(--c-navy); }
.site-footer .lang-switch__item { color: rgba(255, 255, 255, .7); }
.site-footer .lang-switch__item.is-active { background: rgba(255, 255, 255, .14); color: #fff; }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--c-navy); border-radius: 2px; transition: transform var(--t-base), opacity var(--t-base); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 39;
  padding: var(--s-8) var(--gutter);
  background: var(--c-white);
  display: flex; flex-direction: column; gap: var(--s-8);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__nav { display: grid; gap: var(--s-2); }
.mobile-menu__nav a { font-size: 20px; font-weight: 600; color: var(--c-navy); padding-block: var(--s-2); }

/* ─── 9. Первый экран ──────────────────────────────────────── */
.hero { background: var(--grad-hero); padding-block: var(--s-14) var(--section-y); overflow: hidden; }
.hero__inner { display: grid; gap: var(--s-10); }
.hero__title {
  font-size: clamp(2.125rem, 1.35rem + 3.4vw, 3.5rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -.02em;
  text-transform: uppercase; margin-bottom: var(--s-6);
}
.hero__title-1, .hero__title-2 { display: block; }
.hero__title-1 { color: var(--c-navy); }
.hero__title-2 { color: var(--c-blue); }
.hero__lead { max-width: 480px; margin-bottom: var(--s-8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-3); }
.hero__note { font-size: 13px; color: var(--c-text-muted); margin-bottom: var(--s-4); }
.hero__media { position: relative; }
.hero__glow {
  position: absolute; inset: 10% -10% 10% 0;
  background: radial-gradient(circle at 60% 45%, rgba(53, 200, 224, .22), transparent 62%);
  filter: blur(28px); pointer-events: none;
}
.hero__media img { position: relative; margin-inline: auto; border-radius: var(--r-lg); }

/* ─── 10. Шаги ─────────────────────────────────────────────── */
.steps { display: grid; gap: var(--s-8); counter-reset: step; }
.steps__item { position: relative; }
.steps__num {
  display: block; font-family: var(--font-display);
  font-size: 40px; font-weight: 800; line-height: 1;
  color: var(--c-cyan); margin-bottom: var(--s-3);
}
.steps__title { font-size: 21px; font-weight: 700; color: var(--c-navy); margin-bottom: var(--s-2); }
.steps__text { margin: 0; color: var(--c-text-muted); }

/* ─── 11. Демо-переписка (CSS, не картинка) ────────────────── */
.demo { display: grid; gap: var(--s-10); margin-top: var(--s-18); align-items: center; }
.demo__title { font-size: 24px; font-weight: 700; color: var(--c-navy); }
.demo__caption { font-size: 14px; color: var(--c-text-muted); margin: 0; }

.phone {
  position: relative; width: 100%; max-width: 300px; margin-inline: auto;
  background: var(--c-navy-deep); border-radius: 36px; padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone__notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 20px; background: var(--c-navy-deep); border-radius: var(--r-pill); z-index: 2;
}
.phone__screen {
  background: var(--c-sky-soft); border-radius: 28px;
  padding: var(--s-10) var(--s-3) var(--s-4);
  min-height: 420px;
}
.chat { display: grid; gap: var(--s-3); }
.chat__msg { max-width: 92%; font-size: 14px; line-height: 1.5; }
.chat__msg p { margin: 0 0 var(--s-2); }
.chat__msg p:last-child { margin-bottom: 0; }

.chat__msg--user {
  justify-self: end; background: var(--c-sky);
  border-radius: 16px 16px 4px 16px; padding: var(--s-3);
  color: var(--c-navy);
}
.chat__voice { display: inline-flex; color: var(--c-blue); margin-bottom: var(--s-1); }
.chat__voice svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.chat__meta { display: block; font-size: 11px; color: var(--c-text-muted); margin-top: var(--s-1); }

.chat__msg--bot { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-2); justify-self: start; }
.chat__avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad-ai); color: #fff;
  font-size: 13px; font-weight: 700;
}
.chat__bubble {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: 16px 16px 16px 4px; padding: var(--s-3);
  box-shadow: var(--shadow-sm);
}

/* ─── 12. Галерея ──────────────────────────────────────────── */
.gallery { display: grid; gap: var(--s-6); }
.gallery__item { margin: 0; }
.gallery__btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; border-radius: var(--r-md); overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.gallery__btn img { width: 100%; height: auto; border: 1px solid var(--c-border); border-radius: var(--r-md); }
@media (hover: hover) {
  .gallery__btn:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
}
.gallery__caption { margin-top: var(--s-3); font-size: 15px; color: var(--c-text-muted); }

.lightbox {
  border: 0; padding: 0; max-width: 92vw; max-height: 92vh;
  background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(18, 41, 77, .82); }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-md); background: #fff; }
.lightbox__close {
  position: absolute; top: -44px; right: 0;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

/* ─── 13. Комьюнити и автор ────────────────────────────────── */
.community, .author { display: grid; gap: var(--s-10); align-items: center; }
.community__media img { border-radius: var(--r-xl); margin-inline: auto; }
.author__media img {
  border-radius: 50%; width: 160px; height: 160px; object-fit: cover;
  margin-inline: auto; box-shadow: var(--shadow-md);
}
.author__p { color: var(--c-text); }
.author__sign { font-style: italic; font-size: 15px; color: var(--c-text-muted); }

/* ─── 14. Цена ─────────────────────────────────────────────── */
.price { display: grid; gap: var(--s-8); justify-items: center; }
.price__card {
  width: 100%; max-width: 560px;
  background: #fff; border: 2px solid var(--c-blue); border-radius: var(--r-xl);
  padding: var(--s-8); box-shadow: var(--shadow-lg); text-align: left;
}
.price__amount { display: flex; align-items: baseline; gap: var(--s-2); margin-bottom: var(--s-1); }
.price__value { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 4.5rem); font-weight: 800; line-height: 1; color: var(--c-navy); }
.price__period { font-size: 20px; color: var(--c-text-muted); }
.price__compare { font-size: 15px; color: var(--c-text-muted); margin-bottom: 0; }
.price__divider { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-6) 0; }
.price__fine { font-size: 13px; color: var(--c-text-muted); margin: var(--s-4) 0 0; }
.price__media { max-width: 280px; }

.guarantee {
  display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4);
  background: var(--c-green-soft); border-radius: var(--r-lg);
  padding: var(--s-6); margin-top: var(--s-8);
}
.guarantee__icon { display: inline-flex; }
.guarantee__title { font-size: 21px; font-weight: 700; color: #17703F; margin-bottom: var(--s-2); }
.guarantee__text { margin-bottom: var(--s-2); color: #1E5C3C; }
.guarantee__fine { font-size: 13px; color: #3C6B52; margin: 0; }

.price__extra { display: grid; gap: var(--s-6); margin-top: var(--s-8); }
.price__block { background: var(--c-sky-soft); border-radius: var(--r-lg); padding: var(--s-6); }
.price__block-title { font-size: 21px; font-weight: 700; color: var(--c-navy); }
.price__case { margin-bottom: var(--s-4); }
.price__case-title { font-size: 16px; font-weight: 600; color: var(--c-navy); margin-bottom: var(--s-1); }
.price__case-text { margin: 0; font-size: 15px; color: var(--c-text-muted); }
.price__case-note { margin: 0; font-size: 13px; color: var(--c-text-muted); }

/* ─── 15. Отзывы ───────────────────────────────────────────── */
.review__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.review__avatar { border-radius: 50%; }
.review__name { margin: 0; font-weight: 600; color: var(--c-navy); }
.review__city { margin: 0; font-size: 13px; color: var(--c-text-muted); }
.review__stars { margin: 0 0 var(--s-2); color: var(--c-amber); letter-spacing: 2px; }
.review__text { margin: 0; color: var(--c-text-muted); }

/* ─── 16. FAQ ──────────────────────────────────────────────── */
.faq { max-width: 800px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; color: var(--c-navy);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__sign { position: relative; flex: none; width: 24px; height: 24px; }
.faq__sign::before, .faq__sign::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px; background: var(--c-blue); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform var(--t-base), opacity var(--t-base);
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq__a { padding: 0 0 var(--s-4); }
.faq__a p { margin: 0; color: var(--c-text-muted); }

/* ─── 17. Финальный призыв ─────────────────────────────────── */
.cta-final {
  position: relative; overflow: hidden;
  background: var(--grad-cta);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding-block: var(--section-y);
  color: #fff;
}
.cta-final__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; text-align: center; }
.cta-final__title { font-size: clamp(1.6875rem, 1.2rem + 2.1vw, 2.5rem); font-weight: 800; color: #fff; }
.cta-final__lead { font-size: 17px; color: rgba(255, 255, 255, .85); margin-bottom: var(--s-8); }
.cta-final__link { display: inline-block; margin-top: var(--s-4); color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.cta-final__link:hover { color: #fff; }
.cta-final__trust { margin: var(--s-6) 0 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.cta-final__mascot {
  position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, .18), transparent 66%);
  border-radius: 50%; pointer-events: none;
}

/* ─── 18. Футер ────────────────────────────────────────────── */
.site-footer { background: var(--c-navy-deep); color: rgba(255, 255, 255, .82); padding-block: var(--s-18) var(--s-10); }
.site-footer__grid { display: grid; gap: var(--s-8); margin-bottom: var(--s-10); }
.site-footer__about { font-size: 14px; color: rgba(255, 255, 255, .68); }
.site-footer__title { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: var(--s-3); }
.site-footer__list { display: grid; gap: var(--s-1); }
.site-footer__list a { color: rgba(255, 255, 255, .82); font-size: 15px; }
.site-footer__list a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: var(--s-6); font-size: 13px; color: rgba(255, 255, 255, .6); }
.site-footer__bottom p { margin: 0 0 var(--s-2); }
.site-footer__tm { font-size: 12px; color: rgba(255, 255, 255, .45); }

/* ─── 19. Закреплённая кнопка (mobile) ─────────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 38;
  padding: var(--s-2) var(--gutter) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 16px rgba(27, 58, 107, .08);
}
.sticky-cta[hidden] { display: none; }
/* Отступ снизу, чтобы панель не перекрывала футер (ТЗ п.12.4) */
body.has-sticky { padding-bottom: 76px; }

/* ─── 20. Служебные страницы ───────────────────────────────── */
.breadcrumbs { display: flex; gap: var(--s-2); font-size: 14px; color: var(--c-text-muted); margin-bottom: var(--s-6); }
.legal__title { font-size: clamp(1.6875rem, 1.2rem + 2.1vw, 2.5rem); font-weight: 800; color: var(--c-navy); }
.legal__body { max-width: 68ch; margin-bottom: var(--s-10); line-height: 1.7; }
.legal__body h2 { font-size: 21px; margin-top: var(--s-8); color: var(--c-navy); }
.legal__body ul { list-style: disc; padding-left: var(--s-6); margin-bottom: var(--s-4); }

.error-page__inner { text-align: center; }
.error-page__img { margin: 0 auto var(--s-8); }
.error-page__title { font-size: clamp(1.6875rem, 1.2rem + 2.1vw, 2.5rem); font-weight: 800; color: var(--c-navy); }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); margin-top: var(--s-8); }

/* ─── 21. Появление при скролле ────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity var(--t-slow), transform var(--t-slow); }
.no-js .reveal { opacity: 1; transform: none; }

/* ─── 22. Адаптив ──────────────────────────────────────────── */
@media (min-width: 600px) {
  .cards--3, .cards--5 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .price__extra { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  body { font-size: 17px; }
  .lead { font-size: 20px; }
  .caption { font-size: 13px; }

  .site-nav { display: flex; }
  .site-header__cta { display: inline-flex; }
  .burger { display: none; }
  .mobile-menu { display: none; }

  .hero__inner { grid-template-columns: 52% 1fr; align-items: center; gap: var(--s-8); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .cards--5 { grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }

  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-10); }
  /* Пунктирная линия между шагами — сигнатурный элемент, бирюзовый луч */
  .steps__item:not(:last-child)::after {
    content: ''; position: absolute; top: 20px; right: calc(var(--s-10) * -1);
    width: var(--s-10); height: 2px;
    background-image: linear-gradient(90deg, var(--c-cyan) 40%, transparent 40%);
    background-size: 10px 2px;
  }

  .demo { grid-template-columns: 1fr 340px; }
  .community, .author { grid-template-columns: 1fr 1fr; }
  .author { grid-template-columns: 38% 1fr; gap: var(--s-14); }
  /* На десктопе фото — прямоугольный кадр со скруглением, а не круг */
  .author__media img {
    border-radius: var(--r-xl); width: 100%; height: auto;
    max-width: 420px; object-fit: initial;
  }
  .price { grid-template-columns: 560px 280px; align-items: center; justify-items: start; }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: var(--s-10); }
  .sticky-cta { display: none; }
  body.has-sticky { padding-bottom: 0; }
}

@media (min-width: 1200px) {
  .card { padding: var(--s-6) var(--s-6) var(--s-8); }
}

/* Узкие экраны: iPhone SE и старые Android */
@media (max-width: 359px) {
  :root { --gutter: 12px; }
  .hero__actions .btn { width: 100%; }
  .price__card { padding: var(--s-6) var(--s-4); }
}

/* ─── 23. Движение и печать ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .sticky-cta, .cta-final, .mobile-menu { display: none; }
  body { color: #000; }
}

/* ============================================================
   24. ОФОРМЛЕНИЕ v4.0 — абстрактный фон, телефон в первом экране
   Правила ниже идут последними и переопределяют базовые стили выше.
   ============================================================ */

/* ─── Абстрактный фон страницы ─────────────────────────────── */
/* Мягкие пятна и болгарские мотивы. Все декоративные слои лежат
   в псевдоэлементах и не создают лишних узлов в разметке. */
body {
  background: var(--c-sky-soft);
  position: relative;
  overflow-x: hidden;
}
body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
}
body::before {
  width: 720px; height: 720px;
  top: -180px; right: -220px;
  background: radial-gradient(circle, rgba(201,188,248,.60), transparent 68%);
}
body::after {
  width: 620px; height: 620px;
  bottom: -160px; left: -220px;
  background: radial-gradient(circle, rgba(216,240,244,.65), transparent 68%);
}

/* Волна между секциями — силуэт побережья, очень тихо */
.section--sky { position: relative; background: transparent; }
.section--sky::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 120px;
  background:
    radial-gradient(120% 100% at 20% 100%, rgba(108,76,224,.07), transparent 60%),
    radial-gradient(120% 100% at 80% 100%, rgba(47,182,201,.09), transparent 60%);
  pointer-events: none;
}
.section--white { background: transparent; }

/* Полоса «как это работает» на кремовом — тёплая пауза среди холодного */
#how { background: linear-gradient(180deg, rgba(247,244,238,.75), rgba(247,244,238,.35)); }

/* Ромбы болгарской вышивки — разделитель секций */
.section + .section > .container::before {
  content: '';
  display: block;
  height: 14px;
  margin: 0 auto var(--s-10);
  max-width: 340px;
  background-image:
    linear-gradient(45deg, transparent 42%, rgba(47,182,201,.30) 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, rgba(47,182,201,.30) 42% 58%, transparent 58%);
  background-size: 26px 14px;
  background-repeat: repeat-x;
}

/* ─── Шапка ────────────────────────────────────────────────── */
.site-header {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.logo__text { color: var(--c-navy); }
.lang-switch__item.is-active { background: var(--c-lav); color: var(--c-violet); }

/* ─── Первый экран ─────────────────────────────────────────── */
.hero { background: var(--grad-hero); }
.hero__title { text-transform: none; letter-spacing: -.025em; }
.hero__title-1 { color: var(--c-navy); }
.hero__title-2 { color: var(--c-violet); }

.caption {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  background: var(--c-lav);
  border-radius: var(--r-pill);
  color: var(--c-violet);
  font-size: 11px;
}

.hero__glow {
  inset: 4% -8% 8% -4%;
  background:
    radial-gradient(circle at 50% 45%, rgba(155,134,240,.30), transparent 62%);
  filter: blur(30px);
}

/* Телефон: рамка на CSS, внутри настоящий скриншот */
.hero__phone { position: relative; z-index: 1; max-width: 340px; margin-inline: auto; }

.phone-frame {
  position: relative;
  padding: 13px;
  background: var(--c-navy);
  border-radius: 42px;
  box-shadow: var(--shadow-lg);
}
.phone-frame__notch {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 62px; height: 14px;
  background: var(--c-navy); border-radius: var(--r-pill); z-index: 2;
}
.phone-frame__screen {
  overflow: hidden;
  background: #fff;
  border-radius: 30px;
}
.phone-frame__shot { display: block; width: 100%; height: auto; }

.chat-head {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--s-2);
  align-items: center;
  padding: var(--s-3) var(--s-3) var(--s-2);
  background: var(--c-lav);
}
.chat-head__ava {
  grid-row: 1 / 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-ai); color: #fff;
  font-size: 13px; font-weight: 700;
}
.chat-head__name { font-size: 13px; font-weight: 600; color: var(--c-navy); line-height: 1.2; }
.chat-head__status { font-size: 10px; color: var(--c-green); line-height: 1.2; }

.hero__proof {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: var(--s-3);
  align-items: center;
  margin: var(--s-4) 0 0;
  padding: var(--s-3) var(--s-4);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.hero__proof-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-teal-soft); color: var(--c-teal);
}
.hero__proof b { display: block; font-size: 14px; color: var(--c-navy); }
.hero__proof em { display: block; font-size: 12.5px; font-style: normal; color: var(--c-text-muted); }

/* ─── Полоса ключевых цифр ─────────────────────────────────── */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.facts__item { padding: var(--s-4) var(--s-3); text-align: center; }
.facts__item + .facts__item { border-left: 1px solid var(--c-border); }
.facts__item:nth-child(3) { border-left: 0; border-top: 1px solid var(--c-border); }
.facts__item:nth-child(4) { border-top: 1px solid var(--c-border); }
.facts__big {
  display: block;
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  color: var(--c-violet); line-height: 1.2;
}
.facts__small { display: block; font-size: 12.5px; color: var(--c-text-muted); }

/* ─── Кнопки и карточки ────────────────────────────────────── */
.btn { border-radius: var(--r-pill); }
.btn--primary { background: var(--grad-ai); }
.btn--primary:hover { background: var(--c-violet-hover); }
.btn--secondary { border-color: var(--c-border); color: var(--c-navy); background: var(--c-white); }
.btn--secondary:hover { border-color: var(--c-violet); color: var(--c-violet); background: var(--c-white); }
.btn--invert { color: var(--c-violet); }

.card { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.icon-circle--blue { background: var(--c-lav); color: var(--c-violet); }
.icon-circle--cyan { background: var(--c-teal-soft); color: #1B8A9B; }
.icon-circle--green { background: var(--c-green-soft); color: var(--c-green); }
.icon-circle--violet { background: var(--c-lav); color: #6B4BD8; }
.icon-circle--orange { background: #FCF1DC; color: #B5822A; }

.guarantee-chip { background: var(--c-green-soft); color: var(--c-green-dark); }

/* ─── Цена: тёмная карточка — единственное тёмное пятно ────── */
.price__card {
  background: var(--grad-cta);
  border: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.price__card::before,
.price__card::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .07);
}
.price__card::before { width: 200px; height: 200px; top: -60px; right: -50px; }
.price__card::after  { width: 150px; height: 150px; bottom: -70px; left: -40px; }
.price__card > * { position: relative; z-index: 1; }
.price__value { color: #fff; }
.price__period { color: rgba(255, 255, 255, .75); }
.price__compare { color: var(--c-violet-3); }
.price__divider { border-color: rgba(255, 255, 255, .18); }
.price__card .checklist__item { color: #fff; }
.price__card .checklist__icon circle { fill: rgba(255, 255, 255, .18); }
.price__card .checklist__icon path { stroke: #fff; }
.price__card .btn--primary { background: #fff; color: var(--c-violet); box-shadow: none; }
.price__card .btn--primary:hover { background: #fff; color: var(--c-violet-hover); }
.price__fine { color: rgba(255, 255, 255, .62); }

.guarantee { background: var(--c-green-soft); }
.guarantee__title { color: var(--c-green-dark); }
.guarantee__text { color: #2E6B52; }
.guarantee__fine { color: #4A7D66; }

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq__item {
  margin-bottom: var(--s-2);
  padding: 0 var(--s-6);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.faq__sign::before, .faq__sign::after { background: var(--c-violet); }

/* ─── Финальный призыв и футер ─────────────────────────────── */
.cta-final { background: var(--grad-cta); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.cta-final__lead { color: var(--c-violet-3); }
.cta-final__mascot {
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.16), transparent 66%);
}
.site-footer { background: var(--c-navy-deep); }

/* Пояснение про чат участников */
.note-access {
  margin: var(--s-3) 0 0;
  font-size: 13px;
  color: var(--c-text-muted);
}

/* ─── Адаптив нового блока ─────────────────────────────────── */
@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts__item:nth-child(3), .facts__item:nth-child(4) { border-top: 0; }
  .facts__item:nth-child(3) { border-left: 1px solid var(--c-border); }
}
@media (min-width: 900px) {
  .facts__big { font-size: 28px; }
  .hero__phone { margin-inline: 0 auto; }
}

/* ============================================================
   25. ПРАВКИ v4.1 — выравнивание автора, стеклянные иллюстрации
   ============================================================ */

/* ─── Блок «Хто за цим стоїть» ─────────────────────────────── */
/* Было: фото уезжало вверх отдельно от текста, потому что колонка
   растягивалась по высоте секции. Теперь обе колонки прижаты к верху
   и фото не может «всплыть» над заголовком. */
.author {
  align-items: start;
}
.author__media {
  position: sticky;
  top: calc(var(--header-h) + var(--s-6));
}
.author__text > :first-child { margin-top: 0; }
.author__text .section__title { margin-top: var(--s-2); }

@media (max-width: 899px) {
  /* На мобильных прилипание только мешает: фото должно спокойно
     уехать вверх при прокрутке */
  .author__media { position: static; }
}

/* ─── Иллюстрации секций ───────────────────────────────────── */
.section-art {
  margin: var(--s-14) auto var(--s-6);
  max-width: 460px;
  text-align: center;
}
.section-art--sm { max-width: 360px; margin-block: var(--s-10) var(--s-4); }
.section-art img { width: 100%; height: auto; }

/* Иллюстрация цены: рядом с тёмной карточкой, не перекрывает её */
.price__media { max-width: 320px; }

/* Аватар маскота в шапке демо-чата */
.chat-head__ava svg { display: block; }

/* ─── Шапка без переключателя языка ────────────────────────── */
/* Кнопка осталась одна, поэтому прижимаем её к правому краю
   и даём немного воздуха */
.site-header__side { gap: var(--s-3); }

@media (min-width: 900px) {
  .section-art { max-width: 520px; margin-top: var(--s-18); }
  .section-art--sm { max-width: 400px; }
}

/* ─── Таблицы в юридических документах ─────────────────────── */
/* При конвертации из Word таблицы разваливались в плоский список.
   Теперь они снова таблицы, и им нужны стили. */
.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-6) 0;
  font-size: 15px;
}
.legal__table th,
.legal__table td {
  padding: var(--s-3) var(--s-3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-border);
}
.legal__table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-violet);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom-width: 2px;
}
.legal__table--summary th[scope="row"] {
  width: 34%;
  color: var(--c-navy);
  font-weight: 600;
}
.legal__table tbody tr:last-child th,
.legal__table tbody tr:last-child td { border-bottom: 0; }

.legal__note {
  font-size: 14px;
  color: var(--c-text-muted);
  font-style: italic;
}
.legal__edition {
  padding: var(--s-3) var(--s-4);
  background: var(--c-lav);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--c-text-muted);
}
.legal__body code {
  padding: 2px 6px;
  background: var(--c-lav);
  border-radius: 5px;
  font-size: 13px;
}

/* На узких экранах таблица из четырёх колонок нечитаема:
   разворачиваем каждую строку в карточку с подписями */
@media (max-width: 719px) {
  .legal__table thead { display: none; }
  .legal__table tbody tr {
    display: block;
    margin-bottom: var(--s-4);
    padding: var(--s-4);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
  }
  .legal__table td,
  .legal__table th { display: block; border: 0; padding: var(--s-1) 0; }
  .legal__table--summary th[scope="row"] { width: auto; }
}
