/* MediMoment · сайт. Светлое «дневное» состояние бренда, тёмной темы нет.
   Токены — из бренда (medimoment_landing/src/tokens.css). */
:root {
  --accent: #F5A02F;
  --accent-soft: rgba(245, 160, 47, .14);
  --water-top: #4574B8;
  --water-bottom: #20437B;
  --water-back: #7FA3D6;
  --sky-top: #F8F5F0;
  --sky-bottom: #E3E9F2;
  --ink: #2A2D31;
  --ink-muted: #5F656D;
  --ink-faint: #9A968F;
  --canvas: #F8F5F0;
  --surface: #FFFFFF;
  --line: #E6E1D9;
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --shadow: 0 18px 50px -18px rgba(32, 67, 123, .35);
  --shadow-s: 0 8px 24px -12px rgba(32, 67, 123, .3);
  --font: 'Golos Text', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(36px, 6.2vw, 66px); line-height: 1.05; max-width: 17ch; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; max-width: 22ch; margin-top: 14px; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.cap { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-muted); max-width: 46ch; margin-top: 22px; }
.lead-s { color: var(--ink-muted); max-width: 52ch; margin-top: 14px; }
.sec { padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 800px) { .sec { padding-top: 104px; padding-bottom: 104px; } }

/* ── Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  background: var(--water-top); color: #fff; text-decoration: none;
  font-weight: 500; font-size: 17px; border: 0; cursor: pointer;
  box-shadow: var(--shadow-s);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: #3d68a8; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #fff; box-shadow: 0 18px 40px -14px rgba(0,0,0,.35); }

/* ── Шапка */
.top { position: absolute; inset: 0 0 auto; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 17px; }
.brand img { border-radius: 50%; }
.nav { display: none; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.top .btn-sm { margin-left: auto; }
@media (min-width: 980px) { .nav { display: flex; } .top .btn-sm { margin-left: 0; } }

/* ── Hero: небо, солнце, вода */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  padding: 150px 0 200px;
}
.hero-s { padding: 130px 0 170px; }
.hero-in { position: relative; z-index: 2; }
.hero h1 { margin-top: 18px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.sun {
  position: absolute; z-index: 0;
  width: clamp(150px, 22vw, 260px); aspect-ratio: 1; border-radius: 50%;
  right: max(6vw, 20px); bottom: 34px;
  background: radial-gradient(circle at 40% 38%, #FFC266 0%, var(--accent) 62%);
  animation: sun-rise 2.4s var(--ease) both, sun-float 9s ease-in-out 2.4s infinite;
}
.sun::after {
  content: ''; position: absolute; inset: -40%; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,160,47,.18) 0%, rgba(245,160,47,0) 60%);
}
.sun-s { width: clamp(110px, 15vw, 180px); bottom: 150px; right: max(8vw, 20px); }
@media (max-width: 700px) { .sun-s { display: none; } .hero { padding-bottom: 170px; } .sun { width: 110px; right: 24px; } }
@keyframes sun-rise { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sun-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.waves { position: absolute; inset: auto 0 0; height: 150px; z-index: 1; pointer-events: none; }
.waves > svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.w-back { fill: var(--water-back); opacity: .55; animation: drift 26s linear infinite reverse; }
.w-front { animation: drift 18s linear infinite; bottom: -6px !important; }
.w-fore { fill: var(--canvas); animation: drift 40s linear infinite; height: 70% !important; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-faint); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ── Появление при скролле */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── «Что с тобой сейчас» */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 28px; }
.chip {
  font: 500 16px var(--font); color: var(--ink-muted);
  min-height: 48px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line);
  transition: background .25s, color .25s, box-shadow .25s, transform .2s var(--ease);
}
.chip:hover { color: var(--ink); transform: translateY(-1px); }
.chip.on { background: var(--water-top); color: #fff; box-shadow: var(--shadow-s); }
.stage { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .stage { grid-template-columns: 1.7fr 1fr; gap: 44px; } }
.stage-video { transition: opacity .35s var(--ease); }
.stage-side { transition: opacity .35s var(--ease); }
.stage-side.swap { opacity: 0; }
.st-title { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin-top: 10px; }
.st-sub { color: var(--ink-muted); margin-top: 6px; }
.st-lead { color: var(--ink-muted); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.stage-side .why-s { font-size: 17px; line-height: 1.6; }
.stage-video.swap { opacity: 0; }
.stage-more {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 18px;
  text-decoration: none; color: var(--ink-muted); font-size: 16px;
}
.stage-more svg { flex: 0 0 auto; }
.stage-more b { color: var(--water-top); font-weight: 500; }
.stage-more svg, .tarrow svg { width: 20px; height: 20px; fill: none; stroke: var(--water-top); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.stage-more:hover svg { transform: translateX(4px); }

/* ── Видео-карточки */
.vcard { margin: 0; }
.yt {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden;
  background: #dfe5ee; box-shadow: var(--shadow-s);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.yt:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.yt:hover img { transform: scale(1.03); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.35);
  transition: transform .3s var(--ease);
}
.play svg { width: 26px; height: 26px; fill: var(--water-top); margin-left: 3px; }
.yt:hover .play { transform: scale(1.08); }
.dur {
  position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.92); font-size: 13px; font-weight: 500; color: var(--ink);
}
.vcard figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.vcard figcaption b { font-weight: 500; font-size: 18px; }
.vcard figcaption span { color: var(--ink-muted); font-size: 15px; }
.vcard.big .yt { border-radius: var(--r-lg); }
.vcard.big figcaption b { font-size: 22px; }
.vcard.big .play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
/* у длинных роликов название на обложке: кнопку уводим на воду, чтобы не закрывала текст */
.vcard .play { left: 22px; top: auto; bottom: 18px; margin: 0; }
.vcard.big .play { left: 28px; bottom: 24px; margin: 0; }
@media (max-width: 600px) { .vcard .play, .vcard.big .play { width: 54px; height: 54px; left: 14px; bottom: 12px; } .vcard .play svg, .vcard.big .play svg { width: 22px; height: 22px; } }
.vcard.big .play svg { width: 32px; height: 32px; }

.grid2 { display: grid; gap: 36px 28px; margin-top: 40px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.pull-up { margin-top: -110px; position: relative; z-index: 3; padding-top: 0 !important; }

/* ── Шортсы: горизонтальная лента */
.shorts-row {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  scroll-padding-inline: max(20px, calc((100vw - 1080px) / 2));
  padding: 36px max(20px, calc((100vw - 1080px) / 2)) 20px; scrollbar-width: none;
}
.shorts-row::-webkit-scrollbar { display: none; }
.scard { margin: 0; flex: 0 0 auto; width: clamp(160px, 42vw, 210px); scroll-snap-align: start; }
.scard .yt { aspect-ratio: 9 / 16; border-radius: 20px; }
.scard .play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.scard .play svg { width: 22px; height: 22px; }
.scard figcaption { margin-top: 12px; font-size: 15px; line-height: 1.4; color: var(--ink-muted); }

/* ── Бот */
.botsec { background: linear-gradient(180deg, var(--canvas) 0%, #EEF2F8 50%, var(--canvas) 100%); }
.bot-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .bot-in { grid-template-columns: 1.1fr 1fr; gap: 72px; } }
.mini-steps { list-style: none; padding: 0; margin: 30px 0 34px; counter-reset: s; }
.mini-steps li {
  counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.mini-steps li:last-child { border-bottom: 1px solid var(--line); }
.mini-steps li::before { content: counter(s); grid-row: span 2; font-size: 26px; font-weight: 500; color: var(--water-back); line-height: 1.2; }
.mini-steps b { font-weight: 500; }
.mini-steps span { color: var(--ink-muted); font-size: 15px; }
.note { margin-top: 12px; font-size: 14px; color: var(--ink-faint); }

.chat {
  background: var(--surface); border-radius: var(--r-lg); padding: 26px 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  max-width: 440px; justify-self: center; width: 100%;
  background-image: radial-gradient(circle at 100% 0%, rgba(127,163,214,.18), transparent 50%);
}
.msg { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--water-top); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: #F1F3F7; border-bottom-left-radius: 6px; }
.msg.small { font-size: 14px; }
.msg.audio { display: flex; align-items: center; gap: 12px; width: 78%; }
.pbtn { width: 36px; height: 36px; border-radius: 50%; background: var(--water-top); display: grid; place-items: center; flex: 0 0 auto; }
.pbtn svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.bars { display: flex; align-items: center; gap: 3px; flex: 1; height: 26px; }
.bars i { flex: 1; background: var(--water-back); border-radius: 2px; height: 40%; animation: bar 1.4s ease-in-out infinite; }
.bars i:nth-child(3n) { animation-delay: .2s; } .bars i:nth-child(3n+1) { animation-delay: .45s; } .bars i:nth-child(4n) { animation-delay: .7s; }
@keyframes bar { 0%,100% { height: 30%; } 50% { height: 95%; } }
.msg .t { font-size: 13px; color: var(--ink-muted); }

/* ── Подборки строками */
.trows { margin-top: 36px; border-top: 1px solid var(--line); }
.trow {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px;
  padding: 24px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .25s, padding .3s var(--ease);
}
.trow:hover { background: rgba(255,255,255,.6); padding-left: 14px; }
.tname { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; letter-spacing: -.015em; }
.tmeta { color: var(--ink-faint); font-size: 15px; }
.tarrow svg { width: 24px; height: 24px; }
.trow:hover .tarrow svg { transform: translateX(5px); }

/* ── Шаги и «почему» */
.twocol { display: grid; gap: 56px; }
@media (min-width: 900px) { .twocol { grid-template-columns: 1fr 1fr; gap: 72px; } }
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 16px 0 16px 52px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 14px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #E9EFF7; color: var(--water-top); font-weight: 500; font-size: 15px;
}
.why { margin-top: 24px; color: var(--ink-muted); font-size: 18px; line-height: 1.7; }
.doctor { margin-top: 24px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--accent-soft); color: #7A4F1A; font-size: 15px; }

/* ── FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 19px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--water-top); border-bottom: 2px solid var(--water-top);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { padding: 0 0 22px; color: var(--ink-muted); max-width: 62ch; }

/* ── Финальный экран на воде */
.final { position: relative; margin-top: 40px; }
.final .waves { position: relative; height: 120px; }
.final .w-fore { display: none; }
.final .w-front { bottom: -1px !important; }
.final-water { position: relative; background: linear-gradient(180deg, #2F5A99 0%, #2A5290 100%); color: #fff; padding: 40px 0 150px; margin-top: -2px; overflow: hidden; }
.final-water .waves { position: absolute; height: 90px; }
.final-water .w-back, .final-water .w-front { display: none; }
.final-water .w-fore { display: block; height: 100% !important; }
.final-in h2 { color: #fff; font-size: clamp(32px, 5vw, 56px); max-width: 14ch; margin: 0 0 34px; }

/* ── Подвал (светлый) */
.foot { background: var(--canvas); color: var(--ink-muted); padding: 0 0 40px; font-size: 15px; }
.foot-in { display: grid; gap: 32px; padding-top: 48px; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot p { margin-top: 12px; max-width: 36ch; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { text-decoration: none; color: var(--ink-muted); }
.foot-links a:hover { color: var(--water-top); text-decoration: underline; }
.fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }

:focus-visible { outline: 2px solid var(--water-top); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.foot .fine { max-width: none; }

/* ── Черепаха: плывет справа налево, чуть покачиваясь */
.turtle { position: absolute; left: 0; pointer-events: none; color: var(--water-back); will-change: transform; }
.turtle svg { display: block; width: 100%; height: auto; fill: currentColor; animation: bob 5s ease-in-out infinite; }
.waves.deep { height: 210px; }
.t-hero { width: clamp(70px, 8vw, 110px); bottom: 58px; opacity: .9; animation: swim 75s linear infinite; animation-delay: -20s; }
.t-final { width: clamp(110px, 14vw, 180px); top: 52%; opacity: .55; animation: swim 60s linear infinite; animation-delay: -12s; }
@keyframes swim { from { transform: translateX(105vw); } to { transform: translateX(-220px); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(-2deg); } }

/* ── Кнопка «Шум моря» */
.sea {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 14px;
  border: 0; border-radius: 999px; cursor: pointer; font: 500 15px var(--font); color: var(--ink);
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgba(32,67,123,.45), inset 0 0 0 1px rgba(69,116,184,.15);
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.sea:hover { transform: translateY(-2px); }
@media (max-width: 700px) { .sea { padding: 0; width: 48px; min-height: 48px; justify-content: center; } .sea-t { display: none; } }
.sea[aria-pressed="true"] { background: var(--water-top); color: #fff; }
.sea-ico { display: flex; align-items: center; gap: 3px; height: 18px; }
.sea-ico i { width: 3px; height: 35%; border-radius: 2px; background: currentColor; opacity: .8; }
.sea[aria-pressed="false"] .sea-ico i { color: var(--water-top); }
.sea[aria-pressed="true"] .sea-ico i { animation: bar 1.6s ease-in-out infinite; }
.sea-ico i:nth-child(2) { animation-delay: .25s !important; } .sea-ico i:nth-child(3) { animation-delay: .5s !important; } .sea-ico i:nth-child(4) { animation-delay: .75s !important; }

/* ── Автор */
.author-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .author-in { grid-template-columns: 340px 1fr; gap: 64px; } }
.author-photo { width: 100%; height: auto; max-width: 340px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.author h2 { margin-top: 8px; }
.author-facts { list-style: none; padding: 0; margin: 26px 0 0; }
.author-facts li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); }
.author-facts li:last-child { border-bottom: 1px solid var(--line); }
.author-line { padding-top: 8px; padding-bottom: 8px; }
.author-line a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink-muted); font-size: 15px; }
.author-line img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.author-line b { font-weight: 500; color: var(--water-top); }
@media (max-width: 819px) { .author-photo { max-width: 240px; } }
