/* ==========================================================================
   co4me.ru — общий стиль всех лендингов школы.
   Концепция «Точка согласия»: аудитория — медиаторы, коучи, психологи.
   Спокойствие и доверие (глубокий сине-зелёный, шалфей, тёплый песок),
   тёплый коралл — только для действий. Мягкие формы, мотив двух
   пересекающихся кругов (диалог → согласие), живое «сияние» на фоне.
   ========================================================================== */
:root {
  --ink: #0f2426;          /* текст */
  --ink-2: #3c5254;
  --muted: #6d7f80;
  --deep: #0e3a3c;         /* глубокий сине-зелёный — доверие */
  --deep-2: #0a2b2d;
  --teal: #1f7a74;
  --sage: #9cc5b4;         /* шалфей — спокойствие */
  --mint: #d9efe6;
  --sand: #f6f0e7;         /* тёплый песок — человечность */
  --sand-2: #efe5d6;
  --paper: #fbf9f5;
  --line: rgba(15, 36, 38, .1);
  --coral: #ef6a4c;        /* действие */
  --amber: #f2a541;
  --lav: #b9b4e8;          /* лавандовый отблеск в сиянии */
  --grad: linear-gradient(110deg, var(--coral), var(--amber));
  --grad-cool: linear-gradient(120deg, var(--teal), #5aa9a0 50%, var(--lav));
  --r: 22px;
  --r-lg: 32px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(15,36,38,.04), 0 12px 40px -12px rgba(15,36,38,.16);
  --shadow-lg: 0 30px 80px -20px rgba(14,58,60,.35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.8vw, 52px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--sage); color: var(--deep-2); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; isolation: isolate; }
.section--sand { background: var(--sand); }
.section--deep { background: var(--deep); color: #eaf3f0; overflow: hidden; }
.section--deep h2, .section--deep h3 { color: #fff; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.muted-light { color: #a9c4bf; }
.small { font-size: 14px; }
.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hp { position: absolute !important; left: -9999px; }
.grad {
  font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.eyebrow--light { color: var(--sage); }
.devbar { position: relative; z-index: 60; background: var(--amber); color: var(--ink); font-size: 12px; text-align: center; padding: 3px; }

/* ---------- Кнопки ---------- */
.btn {
  --bg: transparent; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent; background: var(--bg);
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn--lg { padding: 18px 30px; font-size: 17px; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -8px rgba(239,106,76,.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(239,106,76,.75); }
.btn--primary::after { /* блик */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%) -200% 0 / 250% 100% no-repeat;
  animation: shine 5s var(--ease) infinite;
}
@keyframes shine { 0%, 70% { background-position: 200% 0; } 100% { background-position: -100% 0; } }
.btn--soft { color: var(--deep); background: rgba(255,255,255,.7); border-color: var(--line); backdrop-filter: blur(10px); }
.btn--soft:hover { background: #fff; transform: translateY(-2px); }
.btn--outline { color: var(--deep); border-color: rgba(14,58,60,.25); }
.btn--outline:hover { border-color: var(--deep); background: var(--deep); color: #fff; }
.btn--ghost { color: #cfe3de; border-color: rgba(255,255,255,.2); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn__arrow { transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Прогресс чтения + шапка ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,245,.72); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.top.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(15,36,38,.3); }
.top__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.top__logo img { width: 196px; }
.top__nav { display: flex; gap: 4px; margin: 0 auto; }
.top__nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.top__nav a:hover { background: var(--mint); color: var(--deep); }
.top__right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.top__nav + .top__right { margin-left: 0; }
.top__phone { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Сияние (aurora) ---------- */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -14vw; background: radial-gradient(circle, var(--sage), transparent 65%); }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: -8vw; top: 4vw; background: radial-gradient(circle, var(--lav), transparent 65%); animation-duration: 28s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 30vw; bottom: -14vw; background: radial-gradient(circle, rgba(242,165,65,.55), transparent 65%); animation-duration: 25s; animation-delay: -12s; }
.aurora--dark i { opacity: .35; }
.aurora--dark i:nth-child(1) { background: radial-gradient(circle, #2c8f86, transparent 65%); }
.aurora--dark i:nth-child(2) { background: radial-gradient(circle, #6f69b8, transparent 65%); }
.aurora--dark i:nth-child(3) { background: radial-gradient(circle, rgba(239,106,76,.6), transparent 65%); }
@keyframes drift { to { transform: translate3d(6vw, 4vw, 0) scale(1.15); } }

/* ---------- Первый экран ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); background: linear-gradient(180deg, var(--paper), var(--sand)); }
.hero::after { /* мелкий шум — «дорогая» фактура */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin-bottom: 22px;
  border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--line); backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.pill__dot { width: 9px; height: 9px; border-radius: 50%; background: #2fb37a; box-shadow: 0 0 0 0 rgba(47,179,122,.6); animation: pulse 2s infinite; }
.pill__dot--off { background: var(--muted); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47,179,122,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,122,0); } }
.hero h1 { margin-bottom: 22px; }
.hero__sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 600px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.trust img { height: 40px; width: auto; mix-blend-mode: multiply; }

/* Фото слева от текста: люди на снимках смотрят вправо — взгляд ведёт к заголовку, а не за край экрана */
.hero__visual { position: relative; aspect-ratio: 4 / 4.6; max-width: 520px; justify-self: start; width: 100%; order: -1; }
.arch { position: absolute; inset: 6% 6% 0 10%; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 30% top; /* спикер целиком, взгляд — внутрь группы */ transform: scale(1.08); transition: transform 1.6s var(--ease); }
.is-in .arch img, .arch:hover img { transform: scale(1); }
.venn { position: absolute; inset: 0 0 10% 0; pointer-events: none; }
.venn span { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(31,122,116,.35); animation: breathe 9s ease-in-out infinite; }
.venn span:first-child { left: -6%; top: 2%; }
.venn span:last-child { right: -8%; top: 14%; border-color: rgba(239,106,76,.35); animation-delay: -4.5s; }
@keyframes breathe { 50% { transform: translate(4%, 3%) scale(1.04); } }
.glass {
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 50px -18px rgba(15,36,38,.35);
}
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; animation: bob 7s ease-in-out infinite; }
.float .ico { width: 34px; height: 34px; padding: 7px; border-radius: 12px; background: var(--mint); color: var(--deep); }
.float small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.float b { font-size: 16px; white-space: nowrap; }
.float--a { left: -4%; top: 14%; }
.float--b { right: -2%; top: 66%; animation-delay: -2.3s; }
.float--c { left: 4%; bottom: 6%; animation-delay: -4.6s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Бегущая строка ---------- */
.marquee { overflow: hidden; background: var(--deep); color: #d5ebe4; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(156,197,180,.35); font-weight: 600; white-space: nowrap; }
.marquee span:nth-child(3n) { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--amber); border-color: rgba(242,165,65,.4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Боль ---------- */
.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0 48px; }
.pain { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.pain p { position: relative; margin: 0; font-weight: 600; font-size: 17px; line-height: 1.45; }
.bridge { max-width: 760px; margin: 0 auto -24px; text-align: center; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; color: var(--ink-2); }
.bridge b { color: var(--deep); background: linear-gradient(transparent 62%, rgba(156,197,180,.55) 62%); }

/* ---------- Решение / было-стало ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.lead-text { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: #fff; }
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14px; font-weight: 600; }
.chips--ink li { background: #fff; border-color: var(--line); color: var(--deep); }
.ba { padding: 10px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.ba__switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: rgba(0,0,0,.25); margin-bottom: 10px; }
.ba__switch button { position: relative; z-index: 1; border: 0; background: none; color: #a9c4bf; font: inherit; font-weight: 700; padding: 12px; cursor: pointer; transition: color .3s; }
.ba__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: rgba(255,255,255,.12); transition: transform .5s var(--ease), background .5s; }
.ba[data-state="after"] .ba__thumb { transform: translateX(100%); background: var(--grad); }
.ba[data-state="before"] [data-ba="before"], .ba[data-state="after"] [data-ba="after"] { color: #fff; }
.ba__list { list-style: none; margin: 0; padding: 0; }
.ba__list li { position: relative; display: grid; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.08); min-height: 70px; align-items: center; }
.ba__list li:first-child { border-top: 0; }
.ba__before, .ba__after { grid-area: 1 / 1; transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s; }
.ba__before { color: #8fa9a4; text-decoration: line-through; text-decoration-color: rgba(239,106,76,.6); }
.ba__after { display: flex; gap: 12px; align-items: center; color: #fff; font-weight: 700; font-size: 18px; }
.ba__after .ico { color: var(--amber); }
.ba[data-state="after"] .ba__before, .ba[data-state="before"] .ba__after { opacity: 0; transform: translateY(8px); filter: blur(4px); }
.ba__list li:nth-child(2) span { transition-delay: .06s; } .ba__list li:nth-child(3) span { transition-delay: .12s; } .ba__list li:nth-child(4) span { transition-delay: .18s; }

/* ---------- Бенто ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 48px; }
.tile { position: relative; border-radius: var(--r); padding: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.tile--outcome { grid-column: span 2; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; }
.tile--outcome p { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; }
.tile__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.tile--outcome h3 { font-size: 24px; margin-bottom: 8px; }
.tile--outcome p { font-weight: 500 !important; color: var(--ink-2); }
.tile__n { font-family: var(--serif); font-size: 40px; line-height: 1; font-style: italic; color: var(--sage); }
.tile--stat { grid-column: span 2; background: var(--mint); border-color: transparent; }
.tile--stat b { display: block; font-size: clamp(48px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; color: var(--deep); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.tile--stat span { color: var(--ink-2); font-weight: 600; }
.tile--stat:nth-of-type(5) { background: var(--sand-2); }
.tile--cert { grid-column: span 6; display: flex; align-items: center; gap: 22px; background: var(--deep); color: #fff; border: 0; }
.tile--cert .ico { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--grad); color: #fff; }
.tile--cert p { margin: 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; }
/* иконка в мягком круге — единый стиль для всех карточек */
.badge-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mint); color: var(--deep); }
.badge-ico .ico { width: 26px; height: 26px; }
.badge-ico--lg { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, var(--mint), #fff); box-shadow: inset 0 0 0 1px rgba(31,122,116,.12); }
.badge-ico--lg .ico { width: 30px; height: 30px; color: var(--teal); }
.pain .badge-ico { background: #fdf0eb; color: var(--coral); }
/* подсветка за курсором */
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(156,197,180,.28), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.tile, .pain, .tl-day, .mini { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.tile:hover, .pain:hover, .mini:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -24px rgba(15,36,38,.35); }

/* ---------- Для кого ---------- */
.fit { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fit li { position: relative; overflow: hidden; display: flex; align-items: center !important; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--r); background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); font-weight: 600; line-height: 1.45; }

/* ---------- Программа: таймлайн ---------- */
.timeline { position: relative; display: grid; gap: 40px; margin: 40px 0; padding-left: 44px; }
.timeline__line { position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline__fill { display: block; width: 100%; height: 100%; background: linear-gradient(var(--teal), var(--coral)); transform-origin: 50% 0; transform: scaleY(var(--tl, 0)); }
.tl-module__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.tl-module__head h3 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--mint); color: var(--deep); font-size: 13px; font-weight: 700; }
.tl-day { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; padding: 22px 26px; margin-bottom: 12px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.tl-day:hover { transform: translateX(6px); }
.tl-day__dot { position: absolute; left: -38px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--paper); border: 3px solid var(--teal); }
.tl-day { overflow: visible; }
.tl-day__date b { display: block; font-size: 19px; }
.tl-day__date small { color: var(--muted); font-weight: 600; }
.tl-day p { margin: 0; font-weight: 600; font-size: 17px; }

/* ---------- Ведущий ---------- */
.trainer { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.trainer__photo { position: relative; }
.trainer__photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 999px 999px var(--r-lg) var(--r-lg); box-shadow: var(--shadow-lg); }
.venn--sm { inset: -8% -10% 20% -10%; }
.trainer__role { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--teal); margin-top: -6px; }
.trainer__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.mini { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); color: var(--ink); text-decoration: none; overflow: hidden; }
.mini img { width: 54px; border-radius: 8px; flex: none; }
.mini small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-bottom: 4px; }
.mini b { font-size: 15px; line-height: 1.35; display: block; }
.play { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 0 0 8px rgba(239,106,76,.15); }

/* ---------- Галерея (горизонтальная лента) ---------- */
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 24px 8px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; height: clamp(220px, 28vw, 340px); width: auto; border-radius: var(--r); scroll-snap-align: center; object-fit: cover; }
.section--sand + .gallery { background: var(--sand); padding-bottom: 72px; }

/* ---------- Научная основа ---------- */
.science { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.science__head { position: sticky; top: 110px; }
.callout { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--coral); box-shadow: var(--shadow); }
.callout b { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 6px; }
.callout p { margin: 0; font-weight: 600; line-height: 1.5; }
.callout .badge-ico { background: #fdf0eb; color: var(--coral); }
.science__text p { position: relative; margin: 0; padding: 22px 0 22px 64px; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.science__text p:first-child { border-top: 0; padding-top: 0; }
.science__text p:first-child .science__n { top: 0; }
.science__n { position: absolute; left: 0; top: 22px; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--sage); }

/* ---------- Квалификация ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.benefit { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.benefit p { margin: 20px 0 0; color: #dcebe7; line-height: 1.55; }
.badge-ico--dark { background: rgba(242,165,65,.14); color: var(--amber); }
.section--deep .spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(156,197,180,.14), transparent 45%); }
.areas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.areas > span { font-weight: 700; color: var(--sage); }
.areas .chips { margin: 0; }
.honest { margin: 36px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; color: var(--deep); }

/* ---------- Видео ---------- */
.video { position: relative; display: block; width: 100%; max-width: 960px; margin: 36px auto 16px; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--deep); cursor: pointer; box-shadow: var(--shadow-lg); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform 1s var(--ease), opacity .4s; }
.video:hover img { transform: scale(1.04); opacity: 1; }
.video__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 0 0 14px rgba(255,255,255,.18); transition: transform .4s var(--ease); }
.video__play .ico { width: 34px; height: 34px; margin-left: 4px; fill: currentColor; }
.video:hover .video__play { transform: scale(1.08); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Цены ---------- */
.early-note { margin: 18px auto 0; color: var(--ink-2); font-weight: 600; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0 20px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.price--hot {
  color: #eaf3f0; transform: scale(1.03); box-shadow: var(--shadow-lg);
  border: 2px solid transparent;  /* живая градиентная рамка */
  background: linear-gradient(var(--deep), var(--deep)) padding-box,
              conic-gradient(from var(--a, 0deg), var(--coral), var(--amber), var(--sage), var(--lav), var(--coral)) border-box;
  animation: spin 6s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.price--hot h3 { color: #fff; }
.price__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 20px -6px rgba(239,106,76,.6); }
.price__lead { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.price--hot .price__lead { color: var(--sage); }
.price h3 { font-size: 26px; margin-bottom: 4px; }
.price__dates { color: var(--muted); margin-bottom: 18px; }
.price--hot .price__dates { color: #a9c4bf; }
.price__sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price__sum s { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price--hot .price__sum s { color: #7f9d98; }
.price__save { display: inline-block; align-self: flex-start; margin: 8px 0 0; padding: 4px 10px; border-radius: 8px; background: rgba(47,179,122,.14); color: #1d8a5b; font-size: 14px; font-weight: 700; }
.price--hot .price__save { background: rgba(242,165,65,.18); color: var(--amber); }
.price__list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.price__list li { display: flex; gap: 10px; font-weight: 500; }
.price__list .ico { color: var(--teal); margin-top: 3px; }
.price--hot .price__list .ico { color: var(--amber); }
.price .btn--outline { margin-top: auto; }
.notes { max-width: 760px; margin: 12px auto 0; text-align: center; color: var(--muted); font-size: 14px; }
.notes p { margin: 4px 0; }

/* ---------- Лид-магнит ---------- */
.leadbox { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: var(--r-lg); background: var(--deep); color: #d5ebe4; }
.leadbox h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); }
.leadbox p { margin: 0; }
.leadbox__form { display: flex; flex-wrap: wrap; gap: 10px; }
.leadbox__form input[type=email] { flex: 1 1 220px; min-width: 0; padding: 16px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.leadbox__form input::placeholder { color: #9fbab5; }
.leadbox__msg { flex-basis: 100%; min-height: 1.4em; font-weight: 600; color: var(--amber); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-wrap > div:first-child { position: sticky; top: 110px; }
.faq__contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq__pm { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--mint); transition: background .3s, transform .4s var(--ease); }
.faq__pm::before, .faq__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--deep); border-radius: 2px; transition: transform .4s var(--ease); }
.faq__pm::after { transform: rotate(90deg); }
.faq details[open] .faq__pm { background: var(--deep); transform: rotate(180deg); }
.faq details[open] .faq__pm::before, .faq details[open] .faq__pm::after { background: #fff; }
.faq details[open] .faq__pm::after { transform: rotate(0); }
.faq__a { padding: 0 56px 24px 0; color: var(--ink-2); }
.faq__a p { margin: 0; }
details[open] .faq__a { animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Регистрация ---------- */
.reg { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.reg__intro { position: sticky; top: 110px; }
.reg__perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.reg__perks li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: #d5ebe4; }
.reg__perks .ico { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--amber); }
.regform { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(20px); box-shadow: 0 40px 100px -40px rgba(0,0,0,.6); }
.regform__progress { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; font-size: 13px; font-weight: 700; color: #7f9d98; }
.regform__progress span { padding-top: 10px; border-top: 3px solid rgba(255,255,255,.12); transition: color .3s, border-color .3s; }
.regform__progress .is-on { color: #fff; border-color: var(--amber); }
.step { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.step legend { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; padding: 0; }
.js .step[data-step="2"] { display: none; }
.js .regform.is-step2 .step[data-step="1"] { display: none; }
.js .regform.is-step2 .step[data-step="2"] { display: grid; animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(20px); } }
.opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; cursor: pointer; background: rgba(255,255,255,.04); border: 1.5px solid rgba(255,255,255,.12); transition: border-color .25s, background .25s, transform .25s; }
.opt:hover { border-color: rgba(255,255,255,.3); }
.opt:has(input:checked) { border-color: var(--amber); background: rgba(242,165,65,.1); }
.opt input { position: absolute; opacity: 0; }
.opt__radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); transition: border .2s, box-shadow .2s; }
.opt input:checked + .opt__radio { border: 7px solid var(--amber); }
.opt input:focus-visible + .opt__radio { box-shadow: 0 0 0 4px rgba(242,165,65,.35); }
.opt__body { flex: 1; display: grid; }
.opt__body b { color: #fff; }
.opt__body small { color: #9fbab5; font-size: 13px; }
.opt__price { font-weight: 800; color: #fff; white-space: nowrap; }
.fld { position: relative; display: block; }
.fld input, .fld textarea { width: 100%; padding: 26px 18px 10px; border-radius: 16px; border: 1.5px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; font: inherit; resize: vertical; transition: border-color .2s, background .2s; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--amber); background: rgba(255,255,255,.08); }
.fld span { position: absolute; left: 19px; top: 18px; color: #9fbab5; pointer-events: none; transition: transform .2s var(--ease), font-size .2s, top .2s; }
.fld input:focus + span, .fld input:not(:placeholder-shown) + span,
.fld textarea:focus + span, .fld textarea:not(:placeholder-shown) + span { top: 8px; font-size: 12px; font-weight: 600; }
.fld--err input { border-color: var(--coral); }
.err { display: block; color: #ff9b84; font-style: normal; font-size: 14px; margin: 6px 0 0; }
.err--top { padding: 12px 16px; border-radius: 12px; background: rgba(239,106,76,.15); margin-bottom: 14px; }
.regform__total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 4px; border-top: 1px dashed rgba(255,255,255,.15); margin-top: 6px; }
.regform__total b { font-size: 28px; color: #fff; }
.regform__actions { display: flex; gap: 10px; }
.no-js .js-next, .no-js .js-back { display: none; }

/* ---------- Липкая панель и кнопка мессенджеров ---------- */
.stickybar {
  position: fixed; left: 50%; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 20px;
  padding: 10px 10px 10px 22px; border-radius: 999px; background: rgba(14,58,60,.88); color: #fff;
  backdrop-filter: blur(16px); box-shadow: 0 20px 50px -15px rgba(0,0,0,.5);
  transform: translate(-50%, 150%); transition: transform .5s var(--ease);
}
.stickybar.is-on { transform: translate(-50%, 0); }
@media (min-width: 901px) { .stickybar { display: none; } }
.stickybar small { display: block; font-size: 12px; color: #a9c4bf; }
.stickybar b { font-size: 17px; }
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 41; }
.fab__btn { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--deep); cursor: pointer; box-shadow: 0 14px 34px -10px rgba(0,0,0,.45); transition: transform .3s var(--ease); }
.fab__btn .ico { width: 26px; height: 26px; }
.fab__btn:hover { transform: scale(1.07); }
.fab__menu { position: absolute; right: 0; bottom: 70px; display: grid; gap: 6px; min-width: 170px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: .3s var(--ease); }
.fab { transition: opacity .3s, transform .3s var(--ease); }
.fab.is-hidden { opacity: 0; transform: scale(.8); pointer-events: none; }
.fab.is-open .fab__menu { opacity: 1; transform: none; pointer-events: auto; }
.fab__menu a { padding: 10px 14px; border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.fab__menu a:hover { background: var(--mint); }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .price--hot.reveal.is-in { transform: scale(1.03); }

/* ---------- Подвал ---------- */
.foot { position: relative; background: var(--deep-2); color: #a9c4bf; padding: 72px 0 28px; font-size: 15px; }
.foot h3 { color: #fff; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--amber); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 40px; }
.foot__logo { width: 220px; background: #fff; padding: 10px 12px; border-radius: 14px; margin-bottom: 16px; }
.foot__req { line-height: 1.75; }
.foot__copy { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #6f8c88; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* ---------- Главная ---------- */
.evs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 32px; }
.ev { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.ev:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ev__img { aspect-ratio: 4 / 3; background: var(--sand) center 5% / cover; /* портрет помещается целиком, лица не режутся */ transition: transform 1s var(--ease); }
.ev:hover .ev__img { transform: scale(1.05); }
.ev__body { position: relative; display: grid; gap: 6px; padding: 22px 24px 26px; background: #fff; }
.ev__date { font-size: 14px; font-weight: 700; color: var(--teal); }
.ev__title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ev__more { margin-top: 8px; font-weight: 700; color: var(--coral); }
.ev--past { opacity: .65; filter: saturate(.6); }
.prose { max-width: 820px; }
.prose p { font-size: 19px; color: var(--ink-2); }
.hero--home .hero__grid { grid-template-columns: .9fr 1.1fr; }
.next-card { position: relative; padding: 28px; border-radius: var(--r-lg); }
.next-card small { display: block; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--teal); }
.next-card b { display: block; font-size: 28px; letter-spacing: -.02em; margin: 6px 0; }

/* ---------- Оплата ---------- */
.pay { padding-top: 56px; }
.ok { position: relative; overflow: hidden; display: flex; gap: 20px; align-items: center; padding: 28px 32px; border-radius: var(--r-lg); background: var(--mint); margin-bottom: 36px; }
.ok__icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--deep); color: #fff; animation: pop .7s var(--ease); }
.ok__icon .ico { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.ok h1 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 6px; }
.ok p { margin: 0; }
.pay__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pay__sum, .pay__box { padding: 32px; border-radius: var(--r-lg); }
.pay__sum { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pay__sum .price__sum { margin: 16px 0; }
.pay__box { background: var(--deep); color: #d5ebe4; }
.pay__box h3 { color: #fff; }
.pay__methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.pay__methods li { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 700; }
.pay__sum h2 { font-size: clamp(24px, 2.4vw, 30px); }
/* tinkoff_v2.js подключает свои стили к кнопкам формы — перебиваем */
.pay__box form .pay__btn { background: var(--grad) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 18px 30px !important; font: 700 17px/1.2 Manrope, system-ui, sans-serif !important; width: 100% !important; height: auto !important; margin: 0 !important; }
.pay__alt { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .top__nav { display: none; }
  .top__nav + .top__right { margin-left: auto; }
  .pains { grid-template-columns: repeat(2, 1fr); }
  .fit { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero__grid, .hero--home .hero__grid, .split, .trainer, .reg, .faq-wrap, .science, .leadbox, .pay__grid, .foot__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 440px; order: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--outcome, .tile--stat { grid-column: span 2; min-height: 0; }
  .tile--stat { grid-column: span 1; }
  .tile--cert { grid-column: span 2; }
  .prices { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .price--hot, .js .price--hot.reveal.is-in { transform: none; order: -1; }
  .reg__intro, .faq-wrap > div:first-child, .science__head { position: static; }
  .benefits { grid-template-columns: 1fr; }
  .trainer__photo { max-width: 360px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top__in { height: 62px; gap: 12px; }
  .top__logo img { width: 150px; }
  .top__phone { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .float { padding: 10px 12px; }
  .float b { font-size: 14px; }
  .float--a { left: -2%; } .float--b { right: -2%; }
  .pains, .fit, .trainer__cards { grid-template-columns: 1fr; }
  .science__text p { padding-left: 48px; font-size: 16px; }
  .video__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 22px; }
  .tile--stat b { font-size: 40px; }
  .tl-day { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .timeline { padding-left: 30px; }
  .timeline__line { left: 6px; }
  .tl-day__dot { left: -30px; }
  .faq summary { font-size: 17px; }
  .faq__a { padding-right: 0; }
  .stickybar { left: 12px; right: 82px; padding: 8px 8px 8px 18px; gap: 10px; transform: translateY(150%); justify-content: space-between; }
  .stickybar small { display: none; }
  .stickybar b { white-space: nowrap; font-size: 16px; }
  .stickybar .btn { padding: 12px 18px; }
  .stickybar.is-on { transform: none; }
  .fab { right: 12px; bottom: 16px; }
  .ok { flex-direction: column; align-items: flex-start; padding: 24px; }
  .pay__sum, .pay__box { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- Документы (оферта) ---------- */
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; }
.doc p, .doc li { font-size: 17px; color: var(--ink-2); }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.prices:has(> .price:only-child) { grid-template-columns: minmax(0, 440px); justify-content: center; }
