/* ============================================================
   Doctormama - Дерево развития
   Стиль: тёплая детская книжка-сказка. Округлые формы, мягкие тени.
   ============================================================ */

:root {
  /* Палитра (из персонажей и сцены) */
  --cream:       #FBF7EE;
  --cream-deep:  #F3EAD8;
  --leaf:        #7A982B;
  --leaf-deep:   #5C7520;
  --sky:         #CDE9F2;
  --sky-deep:    #8FCBE0;
  --sun:         #F5A12C;
  --sun-soft:    #FBD9A6;
  --berry:       #E98AA0;
  --friend:      #5C7BB4;
  --ink:         #36402B;
  --ink-soft:    #6B7359;

  /* Радиусы */
  --r:    20px;
  --r-lg: 32px;
  --pill: 999px;

  /* Тени (тёплые) */
  --sh-sm: 0 4px 14px rgba(94, 75, 40, .08);
  --sh:    0 10px 30px rgba(94, 75, 40, .12);
  --sh-lg: 0 20px 50px rgba(94, 75, 40, .16);

  --maxw: 1120px;
  --gap:  clamp(2.5rem, 6vw, 5rem);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.075rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: "Comfortaa", "Nunito", system-ui, sans-serif; line-height: 1.12; margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

/* Доступность фокуса */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: "Comfortaa", "Nunito", system-ui, sans-serif; font-weight: 700;
  border: none; cursor: pointer;
  border-radius: var(--pill);
  padding: .8em 1.6em;
  font-size: 1rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm  { padding: .55em 1.2em; font-size: .95rem; }
.btn--lg  { padding: .95em 2em; font-size: 1.1rem; }
.btn--sun  { background: var(--sun);  color: #fff; box-shadow: 0 8px 20px rgba(245,161,44,.35); }
.btn--sun:hover  { background: #ef9012; }
.btn--leaf { background: var(--leaf); color: #fff; box-shadow: 0 8px 20px rgba(122,152,43,.32); }
.btn--leaf:hover { background: var(--leaf-deep); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); border: 2px solid var(--cream-deep); }
.btn--ghost:hover { border-color: var(--sun-soft); }

/* ============================================================
   Шапка
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,238,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122,152,43,.12);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo__mark { display: inline-flex; }
.logo__text { font-family: "Comfortaa", "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.logo__text--light { color: #fff; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a:not(.btn) { font-weight: 700; color: var(--ink-soft); transition: color .15s;
  display: inline-flex; align-items: center; gap: .45rem; }
.nav > a:not(.btn):hover { color: var(--leaf); }
.nav__ico { display: inline-flex; flex: none; transition: transform .2s ease; }
.nav > a:hover .nav__ico { transform: translateY(-2px) rotate(-6deg); }
.nav__login { position: relative; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: clamp(1rem, 2vw, 1.4rem); padding-bottom: calc(clamp(1.6rem, 3vw, 2.4rem) + clamp(40px, 6vw, 80px));
  background: linear-gradient(180deg, var(--sky) 0%, #E4F2F0 55%, var(--cream) 100%); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(36px); opacity: .55; }
.blob--sky  { width: 320px; height: 320px; background: #fff; top: -80px; left: -60px; }
.blob--sun  { width: 260px; height: 260px; background: var(--sun-soft); bottom: 40px; right: -40px; opacity:.6; }
.blob--leaf { width: 240px; height: 240px; background: #C7DD8E; bottom: -60px; left: 30%; }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.eyebrow {
  display: inline-block; font-family: "Comfortaa", "Nunito", system-ui, sans-serif; font-weight: 700; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--leaf-deep); background: #fff; padding: .4em 1em; border-radius: var(--pill);
  box-shadow: var(--sh-sm); margin-bottom: 1.1rem;
}
.hero__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--ink); margin-bottom: .8rem; max-width: 24ch; }
.hero__lead { font-size: clamp(1rem, 1.7vw, 1.1rem); color: var(--ink-soft); max-width: 44ch; margin-bottom: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.1rem; }
.hero__actions .btn--lg { padding: .85em 1.5em; font-size: 1.02rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.hero__facts li { font-size: .95rem; color: var(--ink-soft); }
.hero__facts strong { display: block; font-family: "Comfortaa", "Nunito", system-ui, sans-serif; font-size: 1.3rem; color: var(--leaf); line-height: 1; }
.hero__scene { display: flex; justify-content: center; }
.char-scene { width: clamp(200px, 27vw, 300px); animation: floaty 6s ease-in-out infinite; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Волна - граница между секциями (цвет нижней секции) */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; pointer-events: none; }
.wave svg { width: 100%; height: clamp(40px, 6vw, 80px); display: block; }
.wave--flip svg { transform: scaleX(-1); }

/* ============================================================
   Секции - общее
   ============================================================ */
.section { padding-top: var(--gap); padding-bottom: calc(var(--gap) + clamp(40px, 6vw, 80px)); position: relative; }
.section--cream { background: var(--cream-deep); }
.section--leaf  { background: linear-gradient(180deg, var(--leaf) 0%, var(--leaf) 14%, var(--leaf-deep) 100%); color: #fff; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; text-align: center; margin-bottom: .6rem; }
.section__title--left { text-align: left; }
.section__title--light { color: #fff; }
.section__sub { text-align: center; color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 2.6rem; }
.section__sub--light { color: rgba(255,255,255,.85); margin-inline: 0; text-align: left; }

/* ---------- Для кого ---------- */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.audience__item {
  display: flex; align-items: flex-start; gap: .8rem;
  background: #fff; border-radius: var(--r); padding: 1.1rem 1.3rem;
  box-shadow: var(--sh-sm); font-weight: 600;
}
.check {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--leaf); color: #fff; display: grid; place-items: center;
  font-size: .95rem; font-weight: 700;
}

/* ---------- Эмпатия / Елена ---------- */
.empathy { background: linear-gradient(180deg, var(--cream) 0%, var(--sky) 220%); }
.empathy__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.empathy__quote {
  font-family: "Comfortaa", "Nunito", system-ui, sans-serif; font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5; color: var(--ink); margin: 1rem 0 1.2rem;
  border-left: 5px solid var(--sun); padding-left: 1.2rem;
}
.empathy__sign { font-weight: 700; color: var(--leaf-deep); }

/* ---------- Карточки (почему) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.card {
  background: #fff; border-radius: var(--r-lg); padding: 1.6rem;
  box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s;
  border-top: 5px solid var(--sun-soft);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.card__title { font-size: 1.25rem; font-weight: 700; color: var(--leaf-deep); margin-bottom: .5rem; }
.card__text { color: var(--ink-soft); }

/* ---------- Как работает ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step { background: #fff; border-radius: var(--r-lg); padding: 2rem 1.5rem 1.6rem; text-align: center; box-shadow: var(--sh-sm); position: relative; }
.step__num {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1rem;
  background: var(--sun); color: #fff; border-radius: 50%;
  font-family: "Comfortaa", "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 1.6rem;
  box-shadow: 0 8px 18px rgba(245,161,44,.35);
}
.step__title { font-size: 1.2rem; margin-bottom: .5rem; }
.step__text { color: var(--ink-soft); }
.how__cta { text-align: center; margin-top: 2.2rem; }

/* ---------- Дерево развития ---------- */
.tree-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.4rem; margin-top: 1.4rem; }
.zones__item { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.zones__item span { color: var(--sun-soft); }
.growth-tree { width: clamp(220px, 34vw, 320px); margin: 0 auto; }
.growth-tree__fruit { transform-origin: center; animation: pop .5s ease both; animation-delay: var(--d); }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* ---------- Что входит ---------- */
.daily { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.daily__item {
  display: flex; align-items: center; gap: .9rem;
  background: #fff; border-radius: var(--r); padding: 1rem 1.2rem; box-shadow: var(--sh-sm);
  font-weight: 600; position: relative;
}
.daily__icon { font-size: 1.6rem; flex: none; }
.badge { font-family: "Comfortaa", "Nunito", system-ui, sans-serif; font-size: .72rem; font-weight: 700; padding: .2em .7em; border-radius: var(--pill); }
.badge--soon { background: var(--sky-deep); color: #14424f; margin-left: auto; }

/* ---------- Внутри (экраны) ---------- */
.inside__screens { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.screen { margin: 0; text-align: center; }
.screen figcaption { margin-top: .8rem; font-weight: 700; color: var(--ink-soft); }

/* Слоты под изображения */
.photo-slot {
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #fff, #fff 12px, #f4eede 12px, #f4eede 24px);
  color: var(--ink-soft); font-weight: 700; font-family: "Comfortaa", "Nunito", system-ui, sans-serif;
  border: 2px dashed var(--sun-soft); box-shadow: var(--sh-sm);
}
.photo-slot--phone { width: 220px; height: 440px; border-radius: 30px; }
.photo-slot--round { width: clamp(180px, 26vw, 240px); aspect-ratio: 1; border-radius: 50%; margin-inline: auto; }
.photo-slot--avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto .9rem; font-size: .85rem; }

/* ---------- Результаты ---------- */
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.results__col { background: #fff; border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--sh-sm); }
.results__col--child { background: var(--sky); }
.results__head { font-size: 1.3rem; color: var(--leaf-deep); margin-bottom: 1rem; }
.results__col--child .results__head { color: #15576a; }
.results ul li { padding: .5rem 0 .5rem 1.8rem; position: relative; font-weight: 600; }
.results ul li::before { content: "🌱"; position: absolute; left: 0; }
.results__col--child ul li::before { content: "⭐️"; }

/* ---------- Отзывы ---------- */
.reviews__head { text-align: center; margin-bottom: 2.2rem; }
.reviews__stat { font-family: "Comfortaa", "Nunito", system-ui, sans-serif; font-size: 1.2rem; }
.reviews__stat strong { font-size: 2.2rem; color: var(--sun); }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.review { margin: 0; background: #fff; border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--sh-sm); }
.review__stars { color: var(--sun); letter-spacing: 2px; margin-bottom: .6rem; }
.review blockquote { margin: 0 0 1rem; font-size: 1.02rem; color: var(--ink); }
.review figcaption { font-weight: 700; color: var(--leaf-deep); }

/* ---------- Команда ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
/* Колонка: биография растягивается, поэтому ленты сертификатов у всех
   участников встают на одной высоте независимо от длины текста. */
.team__card {
  background: #fff; border-radius: var(--r-lg); padding: 1.6rem; text-align: center;
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
}
.team__name { font-size: 1.2rem; margin-bottom: .2rem; }
.team__role { color: var(--sun); font-weight: 700; font-size: .92rem; margin-bottom: .7rem; }
.team__bio { color: var(--ink-soft); font-size: .95rem; flex: 1 0 auto; }

/* ---------- Тарифы ---------- */
.pricing__toggle { display: flex; justify-content: center; gap: .4rem; background: #fff; width: max-content; margin: 0 auto 2.4rem; padding: .35rem; border-radius: var(--pill); box-shadow: var(--sh-sm); }
.pricing__toggle-btn { border: none; background: none; cursor: pointer; font-family: "Comfortaa", "Nunito", system-ui, sans-serif; font-weight: 700; padding: .55em 1.3em; border-radius: var(--pill); color: var(--ink-soft); transition: .2s; }
.pricing__toggle-btn.is-active { background: var(--leaf); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; align-items: start; }
.plan { background: #fff; border-radius: var(--r-lg); padding: 2rem 1.6rem; box-shadow: var(--sh-sm); position: relative; border: 2px solid transparent; }
.plan--popular { border-color: var(--sun); box-shadow: var(--sh); transform: scale(1.03); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--sun); color: #fff; font-family: "Comfortaa", "Nunito", system-ui, sans-serif; font-weight: 700; font-size: .8rem; padding: .35em 1.1em; border-radius: var(--pill); white-space: nowrap; }
.plan__name { font-size: 1.5rem; color: var(--leaf-deep); margin-bottom: .4rem; }
.plan__desc { color: var(--ink-soft); font-size: .92rem; min-height: 3.5em; margin-bottom: 1rem; }
.plan__price { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 1.2rem; }
.plan__amount { font-family: "Comfortaa", "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 2rem; color: var(--ink); }
.plan__period { color: var(--ink-soft); }
.plan__features { display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.plan__features li { padding-left: 1.6rem; position: relative; font-size: .95rem; }
.plan__features li::before { content: "✓"; position: absolute; left: 0; color: var(--leaf); font-weight: 700; }
.plan__btn { width: 100%; }
.pricing__note { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: 1.6rem; }

/* Три подписки строго в ряд, «Базовый» посередине (Диана 28.07).
   stretch + flex: карточки одной высоты, кнопки «Выбрать» на одной линии. */
.plans--subs { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plans--subs .plan { display: flex; flex-direction: column; }
/* align-content: start - иначе в короткой карточке пункты растягиваются по высоте */
.plans--subs .plan__features { flex: 1; align-content: start; }
.plans--subs .plan__btn { margin-top: auto; }

/* Ряды карточек выровнены между собой: описания разной длины (у «Стандарта»
   три строки, у соседей две) иначе роняют цены и списки на разную высоту.
   subgrid тянет общую сетку рядов на все три карточки. */
@supports (grid-template-rows: subgrid) {
    .plans--subs { grid-template-rows: auto auto auto 1fr auto; }
    .plans--subs .plan {
        display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0;
    }
    .plans--subs .plan__name { margin-bottom: 0; align-self: start; }
    .plans--subs .plan__desc { min-height: 0; margin-bottom: 0; align-self: start; padding: .4rem 0 1rem; }
    .plans--subs .plan__price { margin-bottom: 0; align-self: center; padding-bottom: 1.2rem; }
    .plans--subs .plan__features { margin-bottom: 1.6rem; align-content: start; }
}

/* Трипваер 990 - отдельной карточкой под подписками: предложение для тех,
   кто не готов к месячной оплате. Горизонтальная, визуально тише подписок. */
.plan--trial {
    display: grid; grid-template-columns: minmax(240px, 1fr) 1.2fr; gap: 1.4rem 2.4rem;
    align-items: center; margin-top: 1.4rem;
    background: var(--cream-deep, #F3EAD8); box-shadow: none; border: 2px dashed rgba(122, 152, 43, .35);
}
.plan--trial__label {
    display: inline-block; margin-bottom: .5rem; padding: .25em 1em; border-radius: var(--pill);
    background: #fff; color: var(--leaf-deep); font-size: .8rem; font-weight: 700;
}
.plan--trial .plan__desc { min-height: 0; }
.plan--trial .plan__btn { width: auto; min-width: 220px; }
.plan--trial__features { margin-bottom: 0; align-content: center; }

@media (max-width: 900px) {
    .plans--subs { grid-template-columns: 1fr; }
    .plan--trial { grid-template-columns: 1fr; align-items: start; }
    .plan--trial .plan__btn { width: 100%; }
}

/* ---------- Финальный CTA ---------- */
.final-cta { background: linear-gradient(180deg, var(--sun-soft) 0%, var(--sun-soft) 14%, var(--sky) 150%); text-align: center; }
.final-cta__inner { max-width: 640px; }
.final-cta__sun { width: 120px; margin: 0 auto 1.2rem; animation: floaty 5s ease-in-out infinite; }
.final-cta__title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; margin-bottom: .8rem; }
.final-cta__lead { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 1.6rem; }

/* ============================================================
   Подвал
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.site-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__brand p { font-size: .92rem; margin-top: .6rem; max-width: 34ch; }
.site-footer__col h4 { font-size: 1rem; color: #fff; margin-bottom: .9rem; }
.site-footer__col a { display: block; padding: .25rem 0; color: rgba(255,255,255,.78); transition: color .15s; }
.site-footer__col a:hover { color: var(--sun); }
.site-footer__req { font-size: .85rem; line-height: 1.7; margin-top: .6rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .82rem; }
.site-footer__meta { max-width: 60ch; opacity: .6; }

/* ============================================================
   Gate (страница входа)
   ============================================================ */
.gate-body { min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--sky) 0%, var(--cream) 100%); padding: 1.2rem; }
.gate__card { background: #fff; border-radius: var(--r-lg); padding: 2.6rem 2.2rem; box-shadow: var(--sh-lg); text-align: center; max-width: 380px; width: 100%; }
.gate__sun { display: flex; justify-content: center; margin-bottom: .8rem; animation: floaty 5s ease-in-out infinite; }
.gate__title { font-size: 1.7rem; font-weight: 700; margin-bottom: .4rem; }
.gate__hint { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.4rem; }
.gate__error { background: #fde8ec; color: #b23a52; border-radius: var(--r); padding: .7rem 1rem; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.gate__form { display: grid; gap: .8rem; }
.gate__input { font: inherit; padding: .85em 1.1em; border: 2px solid var(--cream-deep); border-radius: var(--pill); text-align: center; }
.gate__input:focus { border-color: var(--sun); }
.gate__btn { width: 100%; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 1.2rem; gap: .8rem; box-shadow: var(--sh);
    transform: translateY(-150%); transition: transform .3s ease; }
  .nav.is-open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: .6rem 0; }
  .nav-toggle { display: flex; }
  .hero__grid, .empathy__grid, .tree-section__grid, .results { grid-template-columns: 1fr; }
  .hero__scene { order: -1; }
  .empathy__photo { order: -1; }
  .plan--popular { transform: none; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .zones { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* Уважение к настройкам движения */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Круглый видеоплеер (приветствие Елены)
   ============================================================ */
.vplayer {
  position: relative;
  width: clamp(220px, 26vw, 300px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.vplayer video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--sh-lg);
  cursor: pointer;
  display: block;
}

/* Кольцо прогресса вокруг круга */
.vplayer__ring {
  position: absolute; inset: -10px;
  width: calc(100% + 20px); height: calc(100% + 20px);
  transform: rotate(-90deg);
  pointer-events: none;
}
.vplayer__ring circle { fill: none; stroke-width: 3.2; }
.vplayer__ring-track { stroke: var(--sun-soft); opacity: .5; }
.vplayer__ring-fill  { stroke: var(--leaf); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }

/* Кнопка play/pause - внизу круга, наполовину выступает за край */
.vplayer__btn {
  position: absolute; left: 50%; bottom: -10px; top: auto;
  transform: translateX(-50%);
  background: none; border: none; cursor: pointer; padding: 0;
  border-radius: 50%;
  filter: drop-shadow(0 8px 18px rgba(245,161,44,.45));
  transition: transform .18s ease, opacity .25s ease;
}
.vplayer__btn:hover { transform: translateX(-50%) scale(1.08); }
.vplayer__ico-pause { display: none; }

/* Во время воспроизведения: кнопка прячется, видна при наведении */
.vplayer.is-playing .vplayer__btn { opacity: 0; }
.vplayer.is-playing:hover .vplayer__btn { opacity: 1; }
.vplayer.is-playing .vplayer__ico-play { display: none; }
.vplayer.is-playing .vplayer__ico-pause { display: block; }

/* Кнопка звука */
.vplayer__mute {
  position: absolute; right: 6%; bottom: 6%;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--leaf); border: none; border-radius: 50%;
  cursor: pointer; box-shadow: var(--sh-sm);
  opacity: 0; transition: opacity .25s ease, transform .15s ease;
}
.vplayer__mute:hover { transform: scale(1.1); }
.vplayer.is-playing .vplayer__mute { opacity: 1; }
.vplayer__ico-volx { display: none; }
.vplayer.is-muted .vplayer__ico-vol  { display: none; }
.vplayer.is-muted .vplayer__ico-volx { display: block; }

/* Подпись под кругом */
.vplayer__hint {
  position: absolute; left: 50%; bottom: -4.4rem;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: "Comfortaa", "Nunito", system-ui, sans-serif;
  font-weight: 700; font-size: .85rem; color: var(--ink-soft);
  transition: opacity .25s ease;
}
.vplayer.is-playing .vplayer__hint { opacity: 0; }

/* ============================================================
   Контент со старого сайта: иконки зон, скриншоты, команда
   ============================================================ */

/* Иконки зон (зелёная секция) */
.zones__icon { width: 34px; height: 34px; flex: none; }

/* Скриншоты приложения */
.screen__img {
  width: 240px; height: 470px;
  object-fit: cover; object-position: top;
  border-radius: 26px;
  box-shadow: var(--sh-lg);
  border: 6px solid #fff;
  display: block;
}

/* Фото специалистов */
.team__photo {
  width: 110px; height: 110px;
  object-fit: cover; object-position: top;
  border-radius: 50%;
  margin: 0 auto .9rem;
  box-shadow: var(--sh-sm);
  border: 4px solid var(--sun-soft);
}

/* Карусель сертификатов */
.certs {
  display: flex; gap: .6rem;
  overflow-x: auto;
  padding: .8rem .2rem .4rem;
  margin-top: .8rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sun-soft) transparent;
}
.certs::-webkit-scrollbar { height: 6px; }
.certs::-webkit-scrollbar-thumb { background: var(--sun-soft); border-radius: 3px; }
.certs__item {
  flex: none; scroll-snap-align: start;
  width: 84px; height: 112px;
  border-radius: 10px; overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 2px solid var(--cream-deep);
  transition: transform .15s ease, border-color .15s ease;
  background: #fff;
}
.certs__item:hover { transform: translateY(-3px); border-color: var(--sun); }
.certs__item img { width: 100%; height: 100%; object-fit: cover; }
.certs__hint {
  font-size: .78rem; color: var(--ink-soft);
  margin: .5rem 0 0; font-weight: 600;
}

/* ============ Просмотрщик сертификатов (public/js/lightbox.js) ============ */
.lb {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: clamp(12px, 4vw, 40px);
  background: rgba(24, 28, 18, .88);
  backdrop-filter: blur(3px);
  animation: lbIn .18s ease-out;
}
.lb[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb__stage {
  margin: 0; max-width: min(1000px, 92vw); max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
}
.lb__img {
  max-width: 100%; max-height: 78vh;
  border-radius: 14px; background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .45);
  object-fit: contain;
}
.lb__cap { color: #f2efe4; font-size: .88rem; text-align: center; }
.lb__close, .lb__nav {
  border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .14);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lb__close:hover, .lb__nav:hover { background: rgba(255, 255, 255, .3); }
.lb__close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; }
.lb__nav { width: 52px; height: 52px; flex: none; }
.lb__nav[hidden] { display: none; }
.lb__counter {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: #cfd3c2; font-size: .82rem; font-variant-numeric: tabular-nums;
}
.lb__counter[hidden] { display: none; }
@media (max-width: 640px) {
  /* на телефоне листаем свайпом - боковые кнопки только мешают */
  .lb__nav { display: none; }
  .lb__img { max-height: 72vh; }
}

/* ============ Плашка согласия на cookie (152-ФЗ) ============
   Карточка снизу слева: не перекрывает контент и не ловит случайные клики,
   как полноширинная полоса. Появляется мягко, уезжает вниз. */
.ck {
  position: fixed; left: 16px; bottom: 16px; z-index: 900;
  width: min(430px, calc(100vw - 32px));
  opacity: 0; transform: translateY(18px);
  transition: opacity .3s ease, transform .3s ease;
}
.ck[hidden] { display: none; }
.ck.is-on { opacity: 1; transform: none; }
.ck__box {
  background: #fff;
  border: 1px solid var(--cream-deep, #F3EAD8);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(54, 64, 43, .16);
  padding: 18px 20px 16px;
}
.ck__title {
  margin: 0 0 6px; font-family: "Comfortaa", "Nunito", system-ui, sans-serif;
  font-size: 1.02rem; font-weight: 700; color: var(--ink, #36402B);
}
.ck__text { margin: 0 0 8px; font-size: .86rem; line-height: 1.55; color: var(--ink-soft, #5d6650); }
.ck__text a { color: var(--leaf-deep, #5C7520); }
/* «Подробнее»: юридические детали не пугают с первого взгляда, но доступны */
.ck__more { display: none; }
.ck.is-open .ck__more { display: block; }
.ck.is-open .ck__link { display: none; }
.ck__link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: .84rem; font-weight: 700;
  color: var(--leaf-deep, #5C7520); text-decoration: underline;
}
.ck__actions { display: flex; gap: .6rem; margin-top: 12px; flex-wrap: wrap; }
.ck__btn {
  flex: 1 1 auto; min-height: 42px; padding: 10px 18px;
  border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 700;
  cursor: pointer; border: 0; white-space: nowrap;
}
.ck__btn--ghost {
  background: var(--cream, #FBF7EE); color: var(--ink-soft, #5d6650);
  border: 1.5px solid var(--cream-deep, #F3EAD8);
}
.ck__btn--ghost:hover { background: var(--cream-deep, #F3EAD8); }
@media (max-width: 560px) {
  .ck { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .ck__box { padding: 15px 16px 14px; border-radius: 18px; }
  .ck__actions { flex-direction: column; }
  .ck__btn { width: 100%; }
}
/* Ссылка отзыва согласия в подвале */
.site-footer__ck {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline; opacity: .85;
}
.site-footer__ck:hover { opacity: 1; }

/* ============================================================
   FAQ на лендинге (D4). Аккордеон на нативных <details> -
   без JS, доступен с клавиатуры.
   ============================================================ */
.faq__inner { max-width: 820px; }
.faq__list { margin-top: 2rem; display: flex; flex-direction: column; gap: .8rem; }

.faq__item {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--sh-sm);
    overflow: hidden;
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.3rem;
    cursor: pointer;
    font-family: "Comfortaa", "Nunito", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.4;
    color: var(--ink);
    list-style: none;              /* убрать штатный треугольник */
    transition: color .2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--leaf-deep); }
.faq__q:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }

.faq__q-text { flex: 1 1 auto; }

.faq__ico {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--cream-deep);
    color: var(--leaf-deep);
    transition: transform .25s ease, background-color .2s;
}
.faq__item[open] .faq__ico { transform: rotate(180deg); background-color: var(--sun-soft); }

.faq__a {
    padding: 0 1.3rem 1.2rem;
    color: var(--ink-soft);
    line-height: 1.62;
}

.faq__foot {
    margin-top: 1.6rem;
    text-align: center;
    color: var(--ink-soft);
}
.faq__foot a { color: var(--leaf-deep); font-weight: 700; }

@media (max-width: 560px) {
    .faq__q { padding: .95rem 1rem; font-size: .97rem; }
    .faq__a { padding: 0 1rem 1.05rem; }
    .faq__ico { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .faq__ico { transition: none; }
}
