/* ============================================================================
   Артём Никитин — психолог. Дизайн-система и стили лендинга.
   Принципы: спокойная природная палитра, много воздуха, мягкие
   микро-взаимодействия, доступность (WCAG 2.2 AA), mobile-first.
   Ноль зарубежных зависимостей.
   ========================================================================== */

/* ----------------------------- 1. Токены --------------------------------- */
:root {
  /* Палитра — приглушённые природные тона (доверие, спокойствие) */
  --bg:            #f8f4ed;  /* тёплый кремовый фон */
  --surface:       #ffffff;  /* карточки */
  --surface-alt:   #efe8db;  /* песочная секция */
  --surface-deep:  #1f3b38;  /* тёмная хвойно-зелёная секция */

  --ink:           #292723;  /* основной текст (тёплый почти-чёрный) */
  --ink-soft:      #585249;  /* вторичный текст */
  --ink-muted:     #6e675b;  /* подписи */
  --on-deep:       #eef3f0;  /* текст на тёмном */
  --on-deep-soft:  #b9c8c3;

  --primary:       #2e6e66;  /* хвойно-бирюзовый */
  --primary-700:   #234f4a;  /* для кнопок (контраст с белым ≈ 7:1) */
  --primary-300:   #6fa39c;
  --primary-50:    #e6efed;

  --accent:        #c2745a;  /* тёплая терракота — только акценты */
  --accent-soft:   #f0ddd4;

  --gold:          #d8a657;  /* звёзды отзывов */
  --border:        #e6ddcf;
  --border-strong: #d6cbb7;

  --ok:            #2f7d57;
  --err:           #b3402f;

  /* Типографика */
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Радиусы */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Тени (мягкие) */
  --shadow-sm: 0 1px 2px rgba(41, 39, 35, .05), 0 2px 8px rgba(41, 39, 35, .04);
  --shadow-md: 0 4px 14px rgba(41, 39, 35, .07), 0 12px 30px rgba(41, 39, 35, .06);
  --shadow-lg: 0 10px 40px rgba(31, 59, 56, .14);

  /* Сетка/ритм */
  --container: 1140px;
  --container-narrow: 760px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------- 2. Сброс ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--primary-700); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; padding: 0; }

/* ------------------------- 3. Типографика -------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { text-wrap: pretty; }
strong { font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary-700);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px;
}
.section__lead {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
}

/* --------------------------- 4. Раскладка -------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
section { padding-block: var(--section-y); }
section[id] { scroll-margin-top: 80px; } /* sticky-шапка не перекрывает якоря */
.section__head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head .eyebrow { margin-bottom: 1rem; }
.section--alt { background: var(--surface-alt); }
.section--deep { background: var(--surface-deep); color: var(--on-deep); }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .section__lead { color: var(--on-deep-soft); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* Доступность: скип-ссылка и фокус */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--primary-700); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------- 5. Кнопки ----------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 700; font-size: 1rem; line-height: 1.1;
  padding: .95rem 1.6rem; border-radius: var(--r-pill);
  min-height: 48px; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #1d423e; box-shadow: var(--shadow-md); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary-700); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary-700); }
.btn--on-deep { background: #fff; color: var(--primary-700); }
.btn--on-deep:hover { background: #f1efe8; color: var(--primary-700); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; min-height: 54px; }
.btn--block { width: 100%; }
.btn__hint { display: block; margin-top: .75rem; font-size: .9rem; color: var(--ink-muted); }

/* --------------------------- 6. Шапка ------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary-700); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  letter-spacing: -.02em; flex: 0 0 auto;
}
.brand__name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.brand__role { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__list a { color: var(--ink-soft); font-weight: 600; font-size: .96rem; }
.nav__list a:hover { color: var(--primary-700); text-decoration: none; }
.header__cta { display: none; }
@media (min-width: 940px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; border-radius: var(--r-sm); margin-right: -8px;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); margin-inline: auto; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 68px 0 0; z-index: 99;
  background: var(--bg);
  padding: 1.5rem var(--gutter) 2.5rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-menu ul { display: flex; flex-direction: column; gap: .25rem; }
.mobile-menu a { display: block; padding: .9rem .5rem; font-size: 1.15rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { text-decoration: none; color: var(--primary-700); }
.mobile-menu .btn { margin-top: 1.5rem; }
@media (min-width: 940px) { .mobile-menu { display: none; } }

/* --------------------------- 7. Hero ------------------------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--primary-50); color: var(--primary-700);
  font-weight: 600; font-size: .9rem; padding: .45rem .95rem; border-radius: var(--r-pill); margin-bottom: 1.5rem;
}
.hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: italic; color: var(--primary-700); }
.hero__sub { font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem); color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero__trust .stat b { display: block; font-family: var(--font-head); font-size: 1.85rem; font-weight: 600; color: var(--primary-700); line-height: 1; }
.hero__trust .stat span { font-size: .9rem; color: var(--ink-soft); }

.hero__media { position: relative; }
.hero__photo {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--surface-alt);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero__media::after {
  content: ""; position: absolute; inset: auto -6% -8% -6%; height: 60%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--primary-300) 40%, transparent), transparent 70%);
  filter: blur(20px);
}
.hero__quote {
  position: absolute; left: clamp(-.5rem, 0vw, 0); bottom: 1.25rem; transform: translateX(-8%);
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: .9rem 1.1rem; max-width: 270px; font-size: .92rem; color: var(--ink-soft); line-height: 1.45;
  border: 1px solid var(--border);
}
.hero__quote b { color: var(--ink); }
@media (max-width: 560px) { .hero__quote { display: none; } }

.hero__blob { position: absolute; z-index: -2; border-radius: 50%; filter: blur(60px); opacity: .5; }
.hero__blob--1 { width: 380px; height: 380px; background: color-mix(in srgb, var(--primary-300) 55%, transparent); top: -120px; right: -80px; }
.hero__blob--2 { width: 320px; height: 320px; background: var(--accent-soft); bottom: -140px; left: -120px; }

/* --------------------------- 8. «С чем работаю» -------------------------- */
.topics { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .topics { grid-template-columns: repeat(3, 1fr); } }
.topic {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.3rem 1.4rem; display: flex; gap: .9rem; align-items: flex-start;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.topic__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; }
.topic__icon svg { width: 24px; height: 24px; }
.topic h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: .2rem; }
.topic p { font-size: .92rem; color: var(--ink-soft); }
.topics__note { margin-top: 1.75rem; color: var(--ink-soft); font-size: .98rem; }

/* --------------------------- 9. О специалисте ---------------------------- */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: .85fr 1.15fr; } }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.about__media .tag {
  position: absolute; right: -.5rem; top: 1.25rem; background: var(--surface-deep); color: #fff;
  padding: .6rem 1rem; border-radius: var(--r-pill); font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-md);
}
.about p { margin-bottom: 1.05rem; color: var(--ink-soft); }
.about p.lead-line { font-size: 1.15rem; color: var(--ink); }
.about__values { display: grid; gap: .75rem; margin-top: 1.5rem; }
.about__values li { display: flex; gap: .7rem; align-items: flex-start; }
.about__values .check { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; margin-top: 2px; }
.about__values .check svg { width: 14px; height: 14px; }
.about__values b { color: var(--ink); }

/* --------------------------- 10. Подход и методы ------------------------- */
.methods { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .methods { grid-template-columns: repeat(2, 1fr); } }
.method {
  background: var(--surface); border-radius: var(--r-lg); padding: 1.6rem 1.7rem;
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.method__num { font-family: var(--font-head); font-size: 1rem; color: var(--accent); font-weight: 600; }
.method h3 { margin: .35rem 0 .6rem; }
.method p { color: var(--ink-soft); font-size: .98rem; }
.method__give { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border-strong); font-size: .94rem; }
.method__give b { color: var(--primary-700); }

/* --------------------------- 11. Как проходит ---------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.5rem 1.4rem; background: color-mix(in srgb, #fff 8%, transparent); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-300); color: var(--surface-deep); font-weight: 800; font-family: var(--font-head); margin-bottom: .9rem;
}
.step h3 { font-size: 1.12rem; color: #fff; font-family: var(--font-body); font-weight: 700; margin-bottom: .35rem; }
.step p { color: var(--on-deep-soft); font-size: .92rem; }
.confidential {
  display: flex; gap: .9rem; align-items: center; margin-top: 2.25rem; padding: 1.1rem 1.3rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md);
}
.confidential svg { flex: 0 0 auto; width: 30px; height: 30px; color: var(--primary-300); }
.confidential p { color: var(--on-deep); font-size: .98rem; }

/* --------------------------- 12. Регалии --------------------------------- */
.creds__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 900px) { .creds__grid { grid-template-columns: 1.1fr .9fr; } }
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px; background: var(--border-strong); }
.timeline li { position: relative; padding-bottom: 1.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -1.75rem; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.timeline .yr { font-weight: 700; color: var(--primary-700); font-size: .9rem; }
.timeline h4 { font-family: var(--font-body); font-weight: 700; margin: .15rem 0; }
.timeline p { color: var(--ink-soft); font-size: .94rem; }

.creds__aside { display: grid; gap: 1.2rem; align-content: start; }
.cred-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.4rem; }
.cred-card h4 { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.cred-card h4 svg { width: 20px; height: 20px; color: var(--primary-700); }
.cred-card ul { display: grid; gap: .6rem; }
.cred-card li { font-size: .94rem; color: var(--ink-soft); padding-left: 1.1rem; position: relative; }
.cred-card li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cred-card .count { font-family: var(--font-head); font-size: 2rem; color: var(--primary-700); font-weight: 600; }

.diplomas { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .8rem; margin-top: 1rem; }
.diplomas a { display: block; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 3/4; }
.diplomas img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.diplomas a:hover img { transform: scale(1.04); }

/* --------------------------- 13. Отзывы ---------------------------------- */
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 360px);
  gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1.25rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.review {
  scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .9rem;
}
.review__stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.review__text { color: var(--ink); font-size: .98rem; line-height: 1.6; }
.review__text::before { content: "\201C"; font-family: var(--font-head); color: var(--primary-300); font-size: 2rem; line-height: 0; vertical-align: -.35em; margin-right: .15rem; }
.review__meta { margin-top: auto; display: flex; align-items: center; gap: .7rem; padding-top: .6rem; border-top: 1px solid var(--border); }
.review__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.review__who b { display: block; font-size: .92rem; }
.review__who span { font-size: .82rem; color: var(--ink-muted); }
.reviews__controls { display: flex; gap: .6rem; margin-top: .5rem; }
.reviews__controls button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--ink); background: var(--surface); transition: background-color .2s, color .2s; }
.reviews__controls button:hover { background: var(--primary-700); color: #fff; border-color: var(--primary-700); }
.reviews__controls svg { width: 20px; height: 20px; }

/* --------------------------- 14. Формы ----------------------------------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .94rem; }
.field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field .hint { font-size: .82rem; color: var(--ink-muted); }
.field--invalid input, .field--invalid textarea { border-color: var(--err); }
.field__error { font-size: .82rem; color: var(--err); display: none; }
.field--invalid .field__error { display: block; }

/* honeypot — скрыт от людей, ловит ботов */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.consent { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: 1.25rem; }
.consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary-700); }
.consent label { font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
.consent.field--invalid { outline: 2px solid var(--err); outline-offset: 4px; border-radius: 8px; }

.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .25rem; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { cursor: pointer; color: var(--border-strong); font-size: 1.9rem; line-height: 1; transition: color .15s; }
.rating-input label:hover, .rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--gold); }
.rating-input input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow-sm); }
.form-status { display: none; padding: 1rem 1.2rem; border-radius: var(--r-sm); margin-bottom: 1rem; font-size: .95rem; }
.form-status.is-ok { display: block; background: color-mix(in srgb, var(--ok) 12%, #fff); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, #fff); }
.form-status.is-err { display: block; background: color-mix(in srgb, var(--err) 10%, #fff); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 35%, #fff); }

/* --------------------------- 15. FAQ ------------------------------------- */
.faq { display: grid; gap: .8rem; max-width: 820px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; text-align: left; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq__q:hover { color: var(--primary-700); }
.faq__icon { flex: 0 0 auto; width: 26px; height: 26px; position: relative; transition: transform .25s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--primary-700); border-radius: 2px; }
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after { width: 2px; height: 14px; transition: transform .25s var(--ease); }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { padding: 0 1.35rem 1.25rem; color: var(--ink-soft); }
.faq__a p + p { margin-top: .7rem; }
/* details/summary */
details.faq__item > summary { list-style: none; cursor: pointer; }
details.faq__item > summary::-webkit-details-marker { display: none; }

/* --------------------------- 16. Цена ------------------------------------ */
.pricing { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.8rem 1.7rem; display: flex; flex-direction: column; }
.price-card--featured { border-color: var(--primary); box-shadow: var(--shadow-md); position: relative; }
.price-card--featured .ribbon { position: absolute; top: -12px; left: 1.7rem; background: #a85a40; color: #fff; font-size: .78rem; font-weight: 700; padding: .3rem .8rem; border-radius: var(--r-pill); } /* затемнённая терракота — контраст AA с белым текстом */
.price-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; }
.price-card .amount { font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; color: var(--primary-700); margin: .6rem 0 .2rem; }
.price-card .amount span { font-size: 1rem; color: var(--ink-muted); font-family: var(--font-body); font-weight: 500; }
.price-card .per { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.1rem; }
.price-card ul { display: grid; gap: .55rem; margin-bottom: 1.4rem; }
.price-card li { display: flex; gap: .55rem; font-size: .94rem; color: var(--ink-soft); }
.price-card li svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--primary); margin-top: 3px; }
.price-card .btn { margin-top: auto; }
.pricing__note { margin-top: 1.5rem; font-size: .9rem; color: var(--ink-muted); text-align: center; }

/* --------------------------- 17. Контакты -------------------------------- */
.contacts__grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 900px) { .contacts__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.channels { display: grid; gap: .8rem; margin-bottom: 1.5rem; }
@media (min-width: 480px) { .channels { grid-template-columns: 1fr 1fr; } }
.channel {
  display: flex; align-items: center; gap: .85rem; padding: 1rem 1.15rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.channel:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; border-color: var(--border-strong); }
.channel__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.channel__icon svg { width: 24px; height: 24px; }
.channel__icon--tg { background: #2aabee; }
.channel__icon--wa { background: #25d366; }
.channel__icon--vk { background: #0077ff; }
.channel__icon--phone { background: var(--primary-700); }
.channel__icon--mail { background: var(--accent); }
.channel b { display: block; font-size: .98rem; color: var(--ink); }
.channel span { font-size: .85rem; color: var(--ink-muted); }

.contact-info { display: grid; gap: 1rem; padding: 1.3rem 1.4rem; background: var(--surface-alt); border-radius: var(--r-md); margin-top: 1.25rem; }
.contact-info .row { display: flex; gap: .7rem; align-items: flex-start; }
.contact-info svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--primary-700); margin-top: 2px; }
.contact-info b { color: var(--ink); }
.map-embed { margin-top: 1.5rem; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/10; background: var(--surface-alt); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-link { display: inline-block; margin-top: .6rem; font-weight: 600; font-size: .92rem; }

/* --------------------------- 18. Футер ----------------------------------- */
.footer { background: var(--surface-deep); color: var(--on-deep-soft); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.footer a { color: var(--on-deep); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand .brand__name, .footer__brand .brand__role { color: #fff; }
.footer__brand p { margin-top: 1rem; max-width: 38ch; font-size: .92rem; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__links { display: grid; gap: .55rem; font-size: .94rem; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; display: grid; gap: 1rem; font-size: .82rem; line-height: 1.6; color: var(--on-deep-soft); }
.footer__legal .disclaimer { max-width: 95ch; }
.footer__requisites { font-size: .82rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; justify-content: space-between; margin-top: 1rem; }

/* --------------------------- 19. Sticky CTA (моб.) ----------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 940px) { .sticky-cta { display: none; } }

/* --------------------------- 20. Cookie banner --------------------------- */
.cookie {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 120;
  max-width: 560px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.25rem;
  display: none;
}
.cookie.is-visible { display: block; }
.cookie p { font-size: .88rem; color: var(--ink-soft); margin-bottom: .85rem; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie .btn { padding: .6rem 1.2rem; min-height: 42px; font-size: .92rem; }

/* --------------------------- 21. Анимация появления ---------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------- 22. Прочее ---------------------------------- */
.legal-page { padding-block: clamp(2.5rem, 6vw, 5rem); }
.legal-page .container { max-width: 820px; }
.legal-page h1 { margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; }
.legal-page h3 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); margin-bottom: .8rem; }
.legal-page ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: .4rem; }
.legal-page .back-link { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2rem; font-weight: 600; }
.legal-page .meta { color: var(--ink-muted); font-size: .88rem; margin-bottom: 2rem; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.legal-page th, .legal-page td { border: 1px solid var(--border); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.legal-page th { background: var(--surface-alt); }
