/* ============================================================
   СВЕТЛО — светлый сервис-лендинг (Ясно-стиль)
   ============================================================ */
:root {
  --blue: #0a84ff;
  --blue-dark: #0066cc;
  --blue-soft: #eaf3ff;
  --ink: #14161a;
  --ink-2: #3d4450;
  --muted: #6b7280;
  --line: #e7eaf0;
  --bg: #ffffff;
  --soft: #f4f7fb;
  --green: #22c55e;
  --r: 18px;
  --r-lg: 26px;
  --wrap: 1180px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {  -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(10,132,255,.18); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: 100px;
  font-weight: 700; font-size: 16px; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -8px rgba(10,132,255,.6); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(10,132,255,.7); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(0,0,0,.4); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { height: 56px; padding: 0 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn:active { transform: scale(.97); }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__wrap {
  max-width: var(--wrap); margin-inline: auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 28px;
}
.nav__logo { font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--blue); }
.nav__menu { display: flex; gap: 26px; margin-left: auto; }
.nav__menu a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav__menu a:hover { color: var(--blue); }
.nav__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer; }
.nav__burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__drawer { display: none; }

/* ─── Hero ─── */
.hero { position: relative; overflow: hidden; min-height: min(90vh, 780px); display: flex; align-items: center; background: var(--soft); padding: clamp(96px, 14vh, 140px) 0 clamp(56px, 8vh, 96px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg video { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.78) 24%, rgba(255,255,255,.38) 46%, rgba(255,255,255,.08) 64%, rgba(255,255,255,0) 78%),
    linear-gradient(180deg, rgba(255,255,255,0) 62%, rgba(244,247,251,.5) 90%, var(--soft) 100%);
}
.hero__wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px;
}
.hero__copy { max-width: 600px; }
.hero__eyebrow { color: var(--blue); font-weight: 700; font-size: 15px; letter-spacing: .01em; }
.hero__title {
  margin-top: 14px;
  font-size: clamp(34px, 4.8vw, 62px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800;
}
.hero__title .accent { color: var(--blue); }
.hero__tabs { margin-top: 28px; display: inline-flex; gap: 4px; padding: 5px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 100px; }
.tab { border: none; background: transparent; padding: 9px 20px; border-radius: 100px; font-family: var(--font); font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: .2s; }
.tab.is-active { background: var(--blue); color: #fff; }
.hero__meta { margin-top: 22px; color: var(--muted); font-size: 15.5px; }
.hero__meta b { color: var(--ink); font-weight: 700; }
.hero__cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badge { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 13.5px; font-weight: 600; color: var(--ink); box-shadow: 0 8px 24px -8px rgba(20,30,60,.28); border: 1px solid rgba(255,255,255,.6); }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.2); }

/* ─── Stats ─── */
.stats { padding: 8px 0 44px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 24px 12px; background: var(--soft); border-radius: var(--r); }
.stat b { display: block; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.stat b span { font: inherit; color: inherit; }
.stat > span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.35; }

/* ─── Sections ─── */
.section { padding: clamp(64px, 9vh, 104px) 0; }
.section--soft { background: var(--soft); }
.head { max-width: 680px; margin: 0 auto clamp(36px, 5vh, 56px); text-align: center; }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.h2 { margin-top: 12px; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.lead { margin-top: 14px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }

/* ─── How ─── */
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; transition: transform .4s var(--ease), box-shadow .4s; }
.how__card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(20,30,60,.28); }
.how__num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 20px; margin-bottom: 20px; }
.how__card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.how__card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* ─── Psychologists ─── */
.psy__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.psy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.psy-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(20,30,60,.32); }
.psy-card__ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); }
.psy-card__ph img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.psy-card:hover .psy-card__ph img { transform: scale(1.04); }
.psy-card__b { padding: 18px 20px 20px; }
.psy-card__name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.psy-card__spec { margin-top: 5px; color: var(--muted); font-size: 14.5px; min-height: 42px; }
.psy-card__foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.psy-card__exp { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.psy-card__link { color: var(--blue); font-weight: 700; font-size: 14.5px; }
.psy-card__link:hover { text-decoration: underline; }

/* ─── Help ─── */
.help__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.help__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; transition: transform .35s var(--ease), border-color .2s; }
.help__item:hover { transform: translateY(-4px); border-color: var(--blue); }
.help__ic { font-size: 30px; display: block; }
.help__item b { display: block; margin-top: 14px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.help__item p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ─── Video band (screen 2) ─── */
.band { position: relative; overflow: hidden; }
.band__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.band__tint { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,20,40,.55), rgba(6,20,40,.68)); }
.band__inner { position: relative; z-index: 2; text-align: center; padding: clamp(80px, 14vh, 150px) 24px; color: #fff; }
.band__title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.band__lead { margin: 16px auto 30px; max-width: 560px; font-size: clamp(16px, 1.7vw, 19px); color: rgba(255,255,255,.9); }

/* ─── Why ─── */
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 900px; margin-inline: auto; }
.why__item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; }
.why__ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 16px; }
.why__item b { font-size: 18px; font-weight: 700; }
.why__item p { margin-top: 5px; color: var(--muted); font-size: 15px; }

/* ─── Final CTA ─── */
.cta-wrap { padding-bottom: clamp(64px, 9vh, 104px); }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; background: linear-gradient(135deg, var(--blue) 0%, #4aa3ff 100%); border-radius: 32px; padding: clamp(32px, 4vw, 56px); color: #fff; box-shadow: 0 40px 80px -34px rgba(10,132,255,.7); }
.cta__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.cta__lead { margin-top: 14px; font-size: 17px; color: rgba(255,255,255,.92); }
.cta__msgs { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.msg { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 100px; background: rgba(255,255,255,.16); color: #fff; font-weight: 700; font-size: 15px; transition: background .2s, transform .2s; }
.msg:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }
.cta__form { background: #fff; border-radius: 22px; padding: 26px; color: var(--ink); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; font-family: var(--font); font-size: 16px; background: var(--soft); transition: border-color .2s, background .2s; }
.field input:focus { outline: none; border-color: var(--blue); background: #fff; }
.field__legal { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.field__status { margin-top: 12px; font-size: 14px; font-weight: 600; padding: 12px 14px; border-radius: 12px; }
.field__status.ok { background: #eafaf0; color: #157347; }
.field__status.err { background: #fdecec; color: #c0392b; }

/* ─── Footer ─── */
.foot { border-top: 1px solid var(--line); padding: 48px 0 34px; }
.foot__wrap { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.foot__logo { font-weight: 800; font-size: 20px; letter-spacing: .04em; color: var(--blue); }
.foot__brand p { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 320px; }
.foot__nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot__nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color .2s; }
.foot__nav a:hover { color: var(--blue); }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 13px; }

/* ─── Reveal ─── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg video, .band__video { display: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .hero { min-height: 0; padding: clamp(88px, 12vh, 120px) 0 clamp(48px, 8vh, 80px); }
  .hero__bg video { object-position: center 34%; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.44) 40%, rgba(255,255,255,.88) 76%, var(--soft) 100%);
  }
  .hero__copy { max-width: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .how__grid, .psy__grid, .help__grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__drawer { display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 20px; background: #fff; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
  .nav.is-open .nav__drawer { max-height: 340px; }
  .nav__drawer a:not(.btn) { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .nav__drawer .btn { margin-top: 12px; }
  .psy__grid, .help__grid, .why__grid { grid-template-columns: 1fr; }
  .why__grid { max-width: 480px; }
  .psy-card__spec { min-height: 0; }
}
@media (max-width: 440px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .how__grid { grid-template-columns: 1fr; }
  .hero__tabs { width: 100%; justify-content: center; }
  .btn--lg { width: 100%; }
  .hero__cta { flex-direction: column; }
}

/* iOS scroll: избегаем double-scroll / rubber-band при show/hide адресбара (стандарты р.1.5) */
body{touch-action:pan-y;overscroll-behavior-y:none;}
