/* Вид «Облачко» — сайт «Малыша».
   Цвета и шкала взяты из приложения (webapp/src/styles/tokens.css), чтобы сайт
   и приложение читались как одно дело. Ничего стеклянного: белые пластины ловят
   свет верхней кромкой и лежат на голубоватой тени. За всем — фотография
   детской комнаты под светлой пеленой. Шрифт один — Manrope, лежит рядом. */

@font-face{font-family:Manrope;font-style:normal;font-weight:400;font-display:swap;
  src:url(/lp/fonts/manrope-400-cyrillic.woff2) format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;font-style:normal;font-weight:400;font-display:swap;
  src:url(/lp/fonts/manrope-400-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD}
@font-face{font-family:Manrope;font-style:normal;font-weight:500;font-display:swap;
  src:url(/lp/fonts/manrope-500-cyrillic.woff2) format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;font-style:normal;font-weight:500;font-display:swap;
  src:url(/lp/fonts/manrope-500-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD}
@font-face{font-family:Manrope;font-style:normal;font-weight:700;font-display:swap;
  src:url(/lp/fonts/manrope-700-cyrillic.woff2) format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;font-style:normal;font-weight:700;font-display:swap;
  src:url(/lp/fonts/manrope-700-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD}
@font-face{font-family:Manrope;font-style:normal;font-weight:800;font-display:swap;
  src:url(/lp/fonts/manrope-800-cyrillic.woff2) format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;font-style:normal;font-weight:800;font-display:swap;
  src:url(/lp/fonts/manrope-800-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD}

:root {
  color-scheme: light;

  --bg: #eaf4ff;
  --text: #2f4a68;
  --text-dim: #4c6a8d;
  --text-faint: #527092;

  /* Цвета событий — те же, что в приложении: «чернильные», читаются как текст. */
  --feeding: #cf8523;
  --pumping: #cc5a86;
  --sleep: #5a68d1;
  --walk: #2a9366;
  --diaper: #1587ae;
  --state: #5a68d1;

  --surface: #fff;
  --surface-2: #f4f9ff;
  --line: rgb(47 74 104 / 0.12);
  --hair: rgb(47 74 104 / 0.07);

  --edge: inset 0 2px 0 rgb(255 255 255 / 0.9);
  --drop:
    0 2px 4px rgb(76 124 176 / 0.1),
    0 14px 24px -10px rgb(76 124 176 / 0.3),
    0 30px 46px -28px rgb(76 124 176 / 0.34);
  --lift:
    0 3px 6px rgb(76 124 176 / 0.1),
    0 22px 36px -14px rgb(76 124 176 / 0.34),
    0 48px 64px -36px rgb(76 124 176 / 0.4);

  /* Пелена поверх фотографии комнаты — иначе текст не прочитать.
     На сайте фотография занимает весь экран, а не маленький экран телефона,
     поэтому пелена здесь гораздо плотнее, чем в приложении. */
  --veil: linear-gradient(180deg,
    rgb(255 255 255 / 0.88) 0%,
    rgb(255 255 255 / 0.93) 42%,
    rgb(255 250 244 / 0.96) 100%);

  --r-sm: 14px;
  --r: 18px;
  --r-lg: 23px;
  --r-plate: 28px;
  --r-full: 999px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --pad: clamp(20px, 3vw, 30px);

  /* Те же цвета событий, но под коротким именем: внутри телефона их подменяет
     ночная тема, а на сайте они остаются светлыми. */
  --e-feed: #cf8523;
  --e-pump: #cc5a86;
  --e-sleep: #5a68d1;
  --e-walk: #2a9366;
  --e-diaper: #1587ae;
}

/* --- основа --- */
*, *::before, *::after { box-sizing: border-box; }

/* scroll-padding — чтобы шапка не накрывала заголовок раздела при переходе по ссылке */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: rgb(90 104 209 / 0.18); }

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

.skip {
  position: fixed;
  top: 8px;
  left: 50%;
  translate: -50% -200%;
  z-index: 99;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: var(--lift);
  font-weight: 700;
}
.skip:focus { translate: -50% 0; }

/* --- комната за всем экраном ---
   Фотография прибита к окну и не ездит при прокрутке, поверх — пелена.
   Внизу пелена уходит в цвет фона, чтобы стык не был виден. */
.room {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.room img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.15) brightness(1.04);
  scale: 1.08;
}
.room .veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
}
/* Два мягких цветных пятна: дают глубину, чтобы фон не был плоским молоком. */
.room::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 30% at 78% 8%, rgb(207 133 35 / 0.14), transparent 70%),
    radial-gradient(46% 34% at 12% 34%, rgb(90 104 209 / 0.13), transparent 72%),
    radial-gradient(50% 32% at 88% 74%, rgb(21 135 174 / 0.12), transparent 72%);
}

/* --- общая сетка --- */
.wrap {
  width: min(1180px, 100% - 36px);
  margin-inline: auto;
}

section {
  position: relative;
  padding-block: clamp(50px, 6.4vw, 94px);
}

/* --- проявление при прокрутке --- */
.reveal {
  opacity: 0;
  translate: 0 26px;
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease), filter 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.seen { opacity: 1; translate: 0 0; filter: none; }

/* --- слова ---
   Жирнее 800 не ставим: этого начертания нет, браузер начнёт «подделывать» жир.
   Выделение в заголовках — не курсив, а цвет: курсив в Manrope поддельный. */
h1 {
  font-weight: 800;
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
h2 {
  font-weight: 800;
  font-size: clamp(27px, 4.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.036em;
  text-wrap: balance;
}
h3 {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.018em;
}
h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(96deg, #5a68d1, #1587ae 58%, #2a9366);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--walk);
  box-shadow: 0 0 0 4px rgb(42 147 102 / 0.16);
}

.lead {
  max-width: 30em;
  margin-top: 20px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.5;
  color: var(--text-dim);
}

/* --- пластина: белая, пухлая, без рамки --- */
.plate {
  position: relative;
  border-radius: var(--r-plate);
  background: var(--surface);
  box-shadow: var(--edge), var(--drop);
}

/* --- кнопки --- */
.btn {
  --btn-bg: linear-gradient(180deg, #6f7ee4, #4b59c8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.34),
    0 2px 4px rgb(50 62 150 / 0.24),
    0 12px 22px -8px rgb(50 62 150 / 0.44);
  transition: translate 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn:hover {
  translate: 0 -2px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    0 3px 6px rgb(50 62 150 / 0.26),
    0 20px 32px -10px rgb(50 62 150 / 0.5);
}
.btn:active { translate: 0 0; }

.btn-l { padding: 17px 30px; font-size: 16.5px; }
.btn-s { padding: 10px 17px; font-size: 14px; }
.btn-w { width: 100%; }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--edge), 0 2px 4px rgb(76 124 176 / 0.12), 0 12px 22px -10px rgb(76 124 176 / 0.34);
}
.btn-ghost:hover {
  box-shadow: var(--edge), 0 3px 6px rgb(76 124 176 / 0.14), 0 20px 32px -12px rgb(76 124 176 / 0.4);
}

/* --- переключатель на два-три положения --- */
.seg {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: var(--r-full);
  background: rgb(255 255 255 / 0.7);
  box-shadow: var(--edge), 0 1px 3px rgb(76 124 176 / 0.14), 0 10px 20px -12px rgb(76 124 176 / 0.3);
}
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 17px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.seg button i {
  font-style: normal;
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: var(--r-full);
  background: rgb(42 147 102 / 0.14);
  color: var(--walk);
}
.seg button.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(76 124 176 / 0.2), 0 6px 12px -6px rgb(76 124 176 / 0.36);
}
.seg button.on i { background: var(--walk); color: #fff; }

/* --- шапка ---
   Пока страница наверху — шапка прозрачная, тень появляется при прокрутке. */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-block: 12px;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.top.lift {
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--hair), 0 10px 26px -18px rgb(76 124 176 / 0.5);
}
.top-in {
  width: min(1180px, 100% - 36px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.brand img { width: 32px; height: 32px; }

.nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.nav a {
  padding: 9px 13px;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover { background: rgb(255 255 255 / 0.8); color: var(--text); }

/* --- герой --- */
.hero { padding-top: clamp(26px, 4vw, 54px); }
.hero-in {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-faint);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.trust li::before {
  content: '';
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.5), transparent) no-repeat,
    var(--walk);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3);
  /* галочка внутри кружка */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.4l2 2L9 4' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 15px 15px;
  background-color: var(--walk);
}

/* --- телефон и облачные игрушки вокруг --- */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.float {
  position: absolute;
  z-index: 2;
  width: 78px;
  filter: drop-shadow(0 16px 22px rgb(76 124 176 / 0.34));
  animation: swim 7s ease-in-out infinite;
  pointer-events: none;
}
.f1 { top: 2%; left: 2%; width: 86px; animation-delay: -0.6s; }
.f2 { top: 40%; right: -1%; width: 66px; animation-delay: -2.4s; }
.f3 { bottom: 6%; left: -2%; width: 74px; animation-delay: -4.1s; }
@keyframes swim {
  0%, 100% { translate: 0 0; rotate: -3deg; }
  50% { translate: 0 -16px; rotate: 4deg; }
}

.phone {
  position: relative;
  width: 318px;
  max-width: 100%;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(165deg, #f4f9ff, #cddcef 40%, #8ba6c4);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.9),
    inset 0 -1px 2px rgb(76 124 176 / 0.4),
    0 4px 8px rgb(56 96 145 / 0.16),
    0 28px 44px -14px rgb(56 96 145 / 0.42),
    0 60px 80px -40px rgb(56 96 145 / 0.5);
}
/* цветное свечение под телефоном — чтобы он не выглядел наклейкой */
.phone::before {
  content: '';
  position: absolute;
  inset: 12% 6% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(90 104 209 / 0.4), transparent 72%);
  filter: blur(30px);
}

/* --- экран внутри телефона ---
   Здесь заново заданы цвета приложения, чтобы ночная тема переключалась
   на месте, не задевая сайт. Фон экрана — та же фотография комнаты. */
.phone-scr {
  --sbg: #eaf4ff;
  --stx: #2f4a68;
  --sdim: #4c6a8d;
  --sfaint: #527092;
  --splate: #fff;
  --sline: rgb(47 74 104 / 0.1);
  --shair: rgb(47 74 104 / 0.06);
  --sedge: inset 0 1.5px 0 rgb(255 255 255 / 0.9);
  --sdrop: 0 1px 3px rgb(76 124 176 / 0.12), 0 8px 16px -8px rgb(76 124 176 / 0.34);
  --sveil: linear-gradient(180deg, rgb(255 255 255 / 0.74), rgb(255 255 255 / 0.86) 46%, rgb(255 250 244 / 0.92));
  --sroom: blur(1.2px) saturate(1.05);
  --e-feed: #cf8523;
  --e-pump: #cc5a86;
  --e-sleep: #5a68d1;
  --e-walk: #2a9366;
  --e-diaper: #1587ae;
  --tint: 26%;

  position: relative;
  overflow: hidden;
  border-radius: 38px;
  background: var(--sbg);
  color: var(--stx);
  isolation: isolate;
}
.phone-scr::before {
  content: '';
  position: absolute;
  inset: -10px;
  z-index: 0;
  background: url(/lp/art/bg-room.webp) center / cover no-repeat;
  filter: var(--sroom);
}
.phone-scr::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--sveil);
}
.phone-scr[data-scr-theme='night'] {
  --sbg: #101a30;
  --stx: #e9f1fb;
  --sdim: #a2b6cd;
  --sfaint: #7d90a8;
  --splate: #1d2942;
  --sline: rgb(255 255 255 / 0.12);
  --shair: rgb(255 255 255 / 0.07);
  --sedge: inset 0 1.5px 0 rgb(255 255 255 / 0.08);
  --sdrop: 0 10px 20px -8px rgb(3 7 18 / 0.7);
  --sveil: linear-gradient(180deg, rgb(16 26 48 / 0.8), rgb(14 22 42 / 0.88) 46%, rgb(20 22 46 / 0.92));
  --sroom: blur(1.4px) saturate(0.6) brightness(0.5);
  --e-feed: #f7c76e;
  --e-pump: #ff9ec4;
  --e-sleep: #b5bef7;
  --e-walk: #90d9b0;
  --e-diaper: #7fd2ea;
  --tint: 20%;
}

/* --- само приложение внутри экрана --- */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 634px;
  padding: 13px 13px 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  font-size: 13px;
}
.app::-webkit-scrollbar { display: none; }
.app[hidden] { display: none; }
.app > * { flex: none; }

.ap-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 4px 0;
}
.ap-head b {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.ap-head span {
  font-size: 11.5px;
  color: var(--sfaint);
  font-variant-numeric: tabular-nums;
}

/* --- состояние: большая пластина с картинкой и таймером --- */
.ap-state {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px 12px;
  align-items: center;
  padding: 13px 14px 12px;
  border-radius: 24px;
  background: var(--splate);
  box-shadow: var(--sedge), var(--sdrop);
}
.ap-hero { width: 78px; grid-row: span 1; }

.ap-hero { grid-column: 1; grid-row: 1; }
.ap-state-t { grid-column: 2; grid-row: 1; }
.ap-bar, .ap-barlab { grid-column: 1 / -1; }

.ap-eb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sfaint);
}
.ap-big {
  margin-top: 2px;
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--e-feed);
}
.ap-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--sdim);
}

/* точка-метка вида события */
.bul {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.bul.feed { color: var(--e-feed); }
.bul.sleep { color: var(--e-sleep); }
.bul.walk { color: var(--e-walk); }
.bul.diaper { color: var(--e-diaper); }

.ap-bar {
  height: 6px;
  border-radius: var(--r-full);
  background: color-mix(in oklab, var(--e-feed) 16%, transparent);
  overflow: hidden;
}
.ap-bar span {
  display: block;
  width: 59%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in oklab, var(--e-feed) 55%, transparent), var(--e-feed));
}

.ap-barlab {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  color: var(--sfaint);
  font-variant-numeric: tabular-nums;
}

/* --- кнопки записи: четыре большие и «Ещё» --- */
.ap-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ap-b {
  --c: var(--e-feed);
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  gap: 0 9px;
  align-items: center;
  padding: 10px 11px;
  border: 0;
  border-radius: 19px;
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.55), transparent),
    color-mix(in oklab, var(--c) var(--tint), var(--splate));
  box-shadow: var(--sedge), 0 1px 3px rgb(76 124 176 / 0.14), 0 8px 14px -8px rgb(76 124 176 / 0.4);
  transition: translate 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.ap-b:hover { translate: 0 -1px; }
.ap-b:active { translate: 0 1px; }
.ap-b img { width: 34px; height: 34px; object-fit: contain; grid-row: span 2; }
.ap-b b {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: color-mix(in oklab, var(--c) 78%, var(--stx));
}
.ap-b span {
  font-size: 10.5px;
  color: var(--sdim);
  font-variant-numeric: tabular-nums;
}
.ap-b.sleep { --c: var(--e-sleep); }
.ap-b.walk { --c: var(--e-walk); }
.ap-b.diaper { --c: var(--e-diaper); }

.ap-b.more {
  --c: var(--e-sleep);
  grid-column: 1 / -1;
  grid-template-rows: auto;
  grid-template-columns: 26px auto;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  background: color-mix(in oklab, var(--stx) 6%, var(--splate));
}
.ap-b.more img { width: 26px; grid-row: auto; }
.ap-b.more b { color: var(--sdim); font-size: 12.5px; }

/* нажали кнопку — она мигает своим цветом */
.ap-b.tap { animation: tap 0.5s var(--ease); }
@keyframes tap {
  0% { scale: 1; box-shadow: var(--sedge), 0 0 0 0 color-mix(in oklab, var(--c) 60%, transparent); }
  35% { scale: 0.97; }
  100% { scale: 1; box-shadow: var(--sedge), 0 0 0 14px transparent; }
}

/* всплывашка «Записано»: висит в рамке телефона, экран под ней прокручивается */
.ap-toast {
  position: absolute;
  left: 50%;
  bottom: 74px;
  z-index: 4;
  margin: 0;
  padding: 9px 18px;
  border-radius: var(--r-full);
  background: color-mix(in oklab, var(--e-walk) 88%, #000);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 10px 22px -8px rgb(20 60 44 / 0.6);
  opacity: 0;
  translate: -50% 10px;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease);
}
.ap-toast.show { opacity: 1; translate: -50% 0; }

/* --- подписи разделов внутри приложения --- */
.ap-sec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 4px 4px 0;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sfaint);
}
.ap-sec span { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11.5px; }

/* --- пластина внутри приложения --- */
.ap-plate {
  padding: 11px 12px;
  border-radius: 21px;
  background: var(--splate);
  box-shadow: var(--sedge), var(--sdrop);
}
.ap-ph {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 9px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: -0.01em;
}
.ap-ph span { font-weight: 500; font-size: 11px; color: var(--sfaint); }

/* --- лента суток (рисует site.js) ---
   Цвета берутся из переменных: на сайте одни, внутри телефона другие. */
:root {
  --rb-grid: rgb(47 74 104 / 0.1);
  --rb-num: #527092;
  --rb-base: rgb(47 74 104 / 0.22);
  --rb-sleep: #5a68d1;
  --rb-feed: #cf8523;
  --rb-diaper: #1587ae;
  --rb-now: #2f4a68;
}
.phone-scr {
  --rb-grid: var(--shair);
  --rb-num: var(--sfaint);
  --rb-base: var(--sline);
  --rb-sleep: var(--e-sleep);
  --rb-feed: var(--e-feed);
  --rb-diaper: var(--e-diaper);
  --rb-now: var(--stx);
}
.rb-grid { stroke: var(--rb-grid); stroke-width: 1; }
.rb-num { fill: var(--rb-num); font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em; }
.rb-sleep { fill: color-mix(in oklab, var(--rb-sleep) 30%, transparent); }
.rb-sleep-top { stroke: var(--rb-sleep); stroke-width: 1.6; }
.rb-base { stroke: var(--rb-base); stroke-width: 1; }
.rb-feed { fill: var(--rb-feed); }
.rb-diaper { stroke: var(--rb-diaper); stroke-width: 2; stroke-linecap: round; }
.rb-now { stroke: var(--rb-now); stroke-width: 1; stroke-dasharray: 2 2.5; opacity: 0.7; }
.rb-now-d { fill: var(--rb-now); }

/* --- журнал записей --- */
.ap-log {
  padding: 3px 12px 5px;
  border-radius: 21px;
  background: var(--splate);
  box-shadow: var(--sedge), var(--sdrop);
}
.ap-log li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  box-shadow: inset 0 1px 0 var(--shair);
}
.ap-log li:first-child { box-shadow: none; }
.ap-log i {
  width: 34px;
  flex: none;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--sfaint);
  font-variant-numeric: tabular-nums;
}
.ap-log img { width: 22px; flex: none; }
.ap-log b { font-weight: 700; font-size: 12.5px; letter-spacing: -0.01em; }
.ap-log u {
  margin-right: auto;
  text-decoration: none;
  font-size: 11.5px;
  color: var(--sdim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}
.ap-log u:not(:empty)::before { content: '· '; }
.ap-log s {
  text-decoration: none;
  flex: none;
  font-size: 10.5px;
  color: var(--sfaint);
}
.ap-log li.fresh { animation: fresh 0.6s var(--ease); }
@keyframes fresh {
  0% { opacity: 0; translate: 0 -8px; background: color-mix(in oklab, var(--e-walk) 18%, transparent); }
  100% { opacity: 1; translate: 0 0; background: transparent; }
}

/* --- нижняя навигация: прилипает к низу экрана --- */
.ap-nav {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: auto -13px 0;
  padding: 8px 10px 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: color-mix(in oklab, var(--splate) 80%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: inset 0 1px 0 var(--shair);
}
.ap-nav span {
  display: grid;
  justify-items: center;
  gap: 2px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s var(--ease);
}
.ap-nav span:hover { opacity: 0.8; }
.ap-nav span.on { opacity: 1; }
.ap-nav img { width: 25px; }
.ap-nav i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--sdim);
}
.ap-nav span.on i { color: var(--stx); }

/* --- экран «История»: сроки, средние, день --- */
.ap-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ap-chips span {
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: color-mix(in oklab, var(--splate) 70%, transparent);
  box-shadow: var(--sedge), 0 1px 2px rgb(76 124 176 / 0.12);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sdim);
}
.ap-chips span.on {
  background: var(--e-sleep);
  color: #fff;
  box-shadow: 0 4px 10px -4px color-mix(in oklab, var(--e-sleep) 70%, transparent);
}

.ap-avg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.ap-avg div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 8px 7px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--stx) 5%, transparent);
}
.ap-avg i {
  font-style: normal;
  font-size: 9.5px;
  line-height: 1.2;
  color: var(--sfaint);
}
.ap-avg b {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ap-day {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ap-day > div { flex: 1; }
.ap-day b { display: block; font-weight: 700; font-size: 12.5px; }
.ap-day span { font-size: 11px; color: var(--sfaint); }
.ap-day i {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--stx) 6%, transparent);
  font-style: normal;
  font-weight: 700;
  color: var(--sdim);
  cursor: pointer;
}

/* --- столбики по дням (рисует site.js) ---
   На сайте крупнее и белым фоном, внутри телефона — мельче. */
.bars {
  --bar-h: 62px;
  --bar-c: #5a68d1;
  --bar-lab: #4c6a8d;
  --bar-soft: rgb(90 104 209 / 0.22);
}
.bars-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 7px;
}
.bars-row + .bars-track { margin-bottom: 16px; }
.bars-lab {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--bar-lab);
}
.bars-row b {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.bars-track {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: var(--bar-h);
}
.bars-b {
  flex: 1;
  height: var(--h, 50%);
  min-height: 4px;
  border-radius: 5px 5px 3px 3px;
  background: var(--bar-soft);
  transition: height 0.5s var(--ease);
}
.bars-b.on {
  background: linear-gradient(180deg, color-mix(in oklab, var(--bar-c) 78%, #fff), var(--bar-c));
  box-shadow: 0 4px 10px -4px color-mix(in oklab, var(--bar-c) 60%, transparent);
}
.bars-track:nth-child(2) { --bar-c: #5a68d1; --bar-soft: rgb(90 104 209 / 0.2); }
.bars-track:nth-child(4) { --bar-c: #cf8523; --bar-soft: rgb(207 133 35 / 0.2); }
.bars-ax {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-faint);
}

/* столбики внутри телефона — мельче и в цветах экрана */
.bars-app {
  --bar-h: 46px;
  --bar-lab: var(--sdim);
}
.bars-app .bars-ax { color: var(--sfaint); }
.bars-app .bars-track:nth-child(2) { --bar-c: var(--e-sleep); }
.bars-app .bars-track:nth-child(4) { --bar-c: var(--e-feed); }

/* --- экран «Фото» ---
   Настоящих снимков ребёнка на сайте нет и не будет: вместо них мягкие
   заливки, как в галерее, пока фото не подгрузились. */
.ap-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ap-photos span {
  aspect-ratio: 1;
  border-radius: 15px;
  background: var(--ph, linear-gradient(140deg, #cfe3f8, #a9c6e6));
  box-shadow: var(--sedge), 0 1px 3px rgb(76 124 176 / 0.16);
}
.p1 { --ph: linear-gradient(140deg, #ffe3c2, #f6c48b); }
.p2 { --ph: linear-gradient(140deg, #d7e6ff, #a9c0ea); }
.p3 { --ph: linear-gradient(140deg, #ffd9e4, #f0a9bf); }
.p4 { --ph: linear-gradient(140deg, #d9f2e3, #a4d8ba); }
.p5 { --ph: linear-gradient(140deg, #e6dcff, #bfaeea); }
.p6 { --ph: linear-gradient(140deg, #fff0c9, #ecd28a); }

.ap-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 0;
  border-radius: 19px;
  background: color-mix(in oklab, var(--e-sleep) var(--tint), var(--splate));
  box-shadow: var(--sedge), var(--sdrop);
  font-weight: 700;
  font-size: 13px;
  color: color-mix(in oklab, var(--e-sleep) 72%, var(--stx));
  cursor: pointer;
}
.ap-add img { width: 22px; }
.ap-fine { padding: 0 6px; font-size: 10.5px; color: var(--sfaint); }

/* --- экран «Ещё»: списки, доступ, переключатели --- */
.ap-list { padding: 2px 12px; }
.ap-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  box-shadow: inset 0 1px 0 var(--shair);
}
.ap-row:first-child { box-shadow: none; }
.ap-row > div { flex: 1; min-width: 0; }
.ap-row b { font-weight: 700; font-size: 12.5px; }
.ap-row b s { text-decoration: none; font-weight: 500; color: var(--sfaint); }
.ap-row span {
  display: block;
  font-size: 10.5px;
  color: var(--sfaint);
}
.ap-row u {
  flex: none;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: color-mix(in oklab, var(--stx) 6%, transparent);
  font-size: 11px;
  font-weight: 700;
  color: var(--sdim);
  cursor: pointer;
}
.ap-kind {
  display: flex;
  align-items: center;
  gap: 9px;
}
.ap-kind img { width: 26px; flex: none; }

/* переключатель «записываем / не записываем» */
.sw {
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: var(--r-full);
  background: color-mix(in oklab, var(--stx) 14%, transparent);
  position: relative;
  transition: background 0.24s var(--ease);
}
.sw::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(20 40 70 / 0.34);
  transition: translate 0.24s var(--ease);
}
.sw.on { background: var(--e-walk); }
.sw.on::after { translate: 16px 0; }

.ap-invite {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  border-radius: var(--r-full);
  background: var(--splate);
  box-shadow: var(--sedge), var(--sdrop);
}
.ap-invite span { flex: 1; font-size: 12px; color: var(--sfaint); }
.ap-invite b {
  padding: 8px 15px;
  border-radius: var(--r-full);
  background: var(--e-sleep);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

/* --- «Знакомо?»: четыре реплики --- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.pain-c {
  padding: 22px 22px 24px;
  border-radius: var(--r-lg);
}
.pain-c::before {
  content: '“';
  display: block;
  margin-bottom: -14px;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in oklab, var(--state) 30%, transparent);
}
.pain-c blockquote {
  font-size: 15px;
  line-height: 1.42;
  color: var(--text-dim);
}
.pain-c:nth-child(2)::before { color: color-mix(in oklab, var(--feeding) 34%, transparent); }
.pain-c:nth-child(3)::before { color: color-mix(in oklab, var(--diaper) 34%, transparent); }
.pain-c:nth-child(4)::before { color: color-mix(in oklab, var(--walk) 34%, transparent); }

/* --- три шага --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
  counter-reset: none;
}
.step {
  padding: 26px var(--pad) 28px;
  overflow: hidden;
}
/* Значки у нас разной высоты (бутылочка вытянутая, дом широкий). Держим их в
   одинаковой квадратной коробке, иначе заголовки в карточках не встают в ряд. */
.step img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 14px rgb(76 124 176 / 0.26));
}
.step .num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: color-mix(in oklab, var(--state) 16%, transparent);
}
.step h3 { margin-top: 16px; }
.step p {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-dim);
}
/* тонкая линия между шагами: путь слева направо */
.steps-grid li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 46px;
  right: -16px;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--state) 40%, transparent), transparent);
}

/* --- что умеет: сетка карточек --- */
.f-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.fc {
  display: flex;
  flex-direction: column;
  padding: 22px var(--pad) 26px;
}
.fc.w2 { grid-column: span 2; }
.fc h3 { margin-top: 18px; }
.fc > p {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-dim);
}
.fc-ico {
  width: 68px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 14px rgb(76 124 176 / 0.26));
}

/* подложка под картинкой в широкой карточке */
.fc-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Одна высота на все четыре картинки — иначе заголовки карточек в строке
     стоят на разном уровне и ряд выглядит косым. */
  height: 200px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.7), transparent),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.fc-timer { align-items: flex-start; }
.fc-eb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.fc-big {
  font-weight: 800;
  font-size: 62px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--sleep);
}
.fc-cap { margin-top: 4px; font-size: 13px; color: var(--text-dim); }

/* двенадцать видов записей — сеткой значков */
.fc-kinds {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px 6px;
  padding: 18px 14px;
}
.fc-kinds span {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}
.fc-kinds img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgb(76 124 176 / 0.22));
}
.fc-kinds i {
  font-style: normal;
  font-size: 10px;
  line-height: 1.15;
  color: var(--text-faint);
}

/* лента суток на сайте */
.rib { width: 100%; }
.fc-art [data-rib] { max-width: 640px; margin-inline: auto; }
.fc-art .bars { --bar-h: 44px; width: 100%; }

/* --- экраны: слева выбор, справа большой телефон --- */
.sc-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  margin-top: 34px;
}
.sc-tabs {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sc-tabs button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: var(--r-lg);
  text-align: left;
  background: rgb(255 255 255 / 0.55);
  cursor: pointer;
  transition: background 0.24s var(--ease), box-shadow 0.24s var(--ease), translate 0.24s var(--ease);
}
.sc-tabs button:hover { background: rgb(255 255 255 / 0.85); }

.sc-tabs button.on {
  background: var(--surface);
  box-shadow: var(--edge), var(--drop);
  translate: 6px 0;
}
.sc-tabs button b {
  display: block;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.sc-tabs button span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-faint);
}
.sc-tabs button.on b { color: var(--state); }

.sc-theme {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.sc-theme > span {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.sc-note {
  margin-top: 14px;
  max-width: 34em;
  font-size: 13.5px;
  color: var(--text-faint);
}

.phone-big {
  width: 380px;
  padding: 10px;
  border-radius: 52px;
}
.phone-big .phone-scr { border-radius: 43px; }
.phone-big .app {
  height: 700px;
  gap: 10px;
  padding: 16px 15px 0;
  font-size: 13.5px;
}
.phone-big .ap-nav { margin-inline: -15px; }

/* --- отзывы бегущей строкой ---
   Одна лента. Внутри дорожки две одинаковые пачки отзывов подряд: сдвигаем
   дорожку на половину её ширины и начинаем заново — шва не видно, лента
   кажется бесконечной. Наведение мыши (и фокус с клавиатуры) ставит паузу.
   Плашек здесь нет намеренно: отзывы лежат прямо на фоне страницы и
   разделены волосяной линией, иначе белые карточки выглядят заплаткой. */
.revs-rows {
  margin-top: 30px;
  /* Лента уходит за края экрана, поэтому крайние отзывы растворяем. */
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.revs-row {
  overflow: hidden;
}
.revs-track {
  display: flex;
  width: max-content;
  animation: revs-run 88s linear infinite;
}
.revs-row:hover .revs-track,
.revs-row:focus-within .revs-track {
  animation-play-state: paused;
}
@keyframes revs-run {
  to { translate: -50% 0; }
}
.revs-set {
  display: flex;
}
.rev {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  width: 330px;
  padding: 4px 30px;
  box-shadow: inset 1px 0 0 var(--hair);
}
.rev blockquote {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.rev figcaption {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.rev figcaption span {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-faint);
}

@media (max-width: 620px) {
  .rev { width: 260px; padding: 4px 22px; }
  .rev blockquote { font-size: 14.5px; }
  .revs-track { animation-duration: 62s; }
}

/* --- мелочи, которые решают ---
   Пластин здесь нет: список на волосяных линиях, чтобы раздел читался как
   разговор, а не как ещё одна витрина карточек. */
.craft-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(28px, 5vw, 70px);
  margin-top: 26px;
}
.craft-list > div {
  padding: 24px 0;
  box-shadow: inset 0 1px 0 var(--line);
}
.craft-list dt {
  display: flex;
  gap: 10px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.015em;
}
.craft-list dt::before {
  content: '';
  width: 9px;
  height: 9px;
  flex: none;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--feeding);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--feeding) 18%, transparent);
}
.craft-list > div:nth-child(2) dt::before { background: var(--sleep); box-shadow: 0 0 0 4px color-mix(in oklab, var(--sleep) 18%, transparent); }
.craft-list > div:nth-child(3) dt::before { background: var(--diaper); box-shadow: 0 0 0 4px color-mix(in oklab, var(--diaper) 18%, transparent); }
.craft-list > div:nth-child(4) dt::before { background: var(--pumping); box-shadow: 0 0 0 4px color-mix(in oklab, var(--pumping) 18%, transparent); }
.craft-list > div:nth-child(5) dt::before { background: var(--walk); box-shadow: 0 0 0 4px color-mix(in oklab, var(--walk) 18%, transparent); }
.craft-list > div:nth-child(6) dt::before { background: var(--state); box-shadow: 0 0 0 4px color-mix(in oklab, var(--state) 18%, transparent); }
.craft-list dd {
  margin-top: 8px;
  padding-left: 19px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* --- манифест --- */
.mani-in {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: clamp(22px, 4vw, 50px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r-plate);
  background: var(--surface);
  box-shadow: var(--edge), var(--lift);
}
.mani-in > img {
  width: 210px;
  filter: drop-shadow(0 20px 26px rgb(76 124 176 / 0.3));
}
.mani blockquote {
  font-weight: 800;
  font-size: clamp(21px, 2.6vw, 31px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.mani-p {
  margin-top: 15px;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* --- цены --- */
.price-lead {
  max-width: 40em;
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-dim);
}
.seg-pay { margin-top: 22px; flex-wrap: wrap; }

/* один тариф: слева цена и кнопка, справа — что входит */
.price-one {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 30px 44px;
  align-items: start;
  margin-top: 28px;
  padding: 36px var(--pad) 30px;
}
.po-side { display: flex; flex-direction: column; }
.po-side .btn { margin-top: 20px; }
.price-one .pc-list {
  margin: 4px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
}
.price-one .pc-list li:has(b) { grid-column: 1 / -1; }
@media (max-width: 880px) {
  .price-one {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .po-side .btn { max-width: 360px; }
  .price-one .pc-fine { text-align: left; }
}
@media (max-width: 560px) {
  .seg-pay button { padding: 8px 12px; font-size: 13px; }
  .price-one .pc-list { grid-template-columns: minmax(0, 1fr); }
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
  align-items: start;
}
.pc {
  display: flex;
  flex-direction: column;
  padding: 26px var(--pad) 28px;
}

/* средняя карточка — та, которую хотим продать: чуть выше, цветной ободок */
.pc-hot {
  padding-top: 34px;
  box-shadow:
    var(--edge),
    0 0 0 2px color-mix(in oklab, var(--state) 55%, transparent),
    var(--lift);
}
.pc-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  translate: -50% 0;
  padding: 7px 16px;
  border-radius: var(--r-full);
  background: linear-gradient(180deg, #6f7ee4, #4b59c8);
  color: #fff;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 18px -6px rgb(50 62 150 / 0.5);
}
.pc-name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pc-cost {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.pc-cost b {
  font-weight: 800;
  font-size: clamp(40px, 4.4vw, 54px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.pc-cost span { font-size: 15px; font-weight: 500; color: var(--text-dim); }
.pc-cost s {
  order: -1;
  width: 100%;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-faint);
  position: relative;
}
.pc-cost s::after {
  content: '';
  position: absolute;
  left: -2px;
  right: calc(100% - 46px);
  top: 52%;
  height: 1.6px;
  background: var(--temperature, #cf4835);
  rotate: -7deg;
}

.pc-note {
  margin-top: 8px;
  min-height: 2.9em;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-dim);
}
.pc-list {
  margin: 18px 0 22px;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.pc-list li {
  display: flex;
  gap: 10px;
}
.pc-list li::before {
  content: '';
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.4l2 2L9 4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat,
    var(--walk);
}
.pc-list li b {
  color: var(--text);
  font-weight: 700;
}
.pc-list li:has(b)::before {
  background: none;
  width: 0;
  margin: 0;
}
.pc-list li:has(b) { margin-bottom: -2px; }
.pc-fine {
  margin-top: 12px;
  font-size: 12.5px;
  text-align: center;
  color: var(--text-faint);
}
.pc .btn { margin-top: auto; }
/* Два обещания под ценой: бесплатный старт и то, что записи остаются у
   родителей. Раньше это был мелкий серый текст — терялся, хотя доводы главные.
   Цвет плашки берётся из переменных, они заданы ниже для каждой. */
.price-vows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19em, 1fr));
  gap: 14px;
  max-width: 60em;
  margin: 24px auto 0;
}
.pv {
  margin: 0;
  padding: 15px 22px;
  border-radius: var(--r);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.96), var(--pv-tint));
  border: 1px solid var(--pv-line);
  box-shadow: var(--edge), 0 3px 10px -4px var(--pv-glow);
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}
.pv b {
  color: var(--pv-ink);
  font-weight: 800;
}
.pv-free {
  --pv-tint: rgb(242 244 255 / 0.96);
  --pv-line: rgb(90 104 209 / 0.24);
  --pv-glow: rgb(90 104 209 / 0.2);
  --pv-ink: #4655c2;
}
.pv-keep {
  --pv-tint: rgb(240 251 246 / 0.96);
  --pv-line: rgb(42 147 102 / 0.26);
  --pv-glow: rgb(42 147 102 / 0.22);
  --pv-ink: #1f7a55;
}

/* --- вопросы --- */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 30px;
  align-items: start;
}
.faq-list details {
  padding: 4px 24px;
  border-radius: var(--r-lg);
}
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '';
  width: 11px;
  height: 11px;
  flex: none;
  margin-left: auto;
  border-right: 2.2px solid var(--text-faint);
  border-bottom: 2.2px solid var(--text-faint);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 0.28s var(--ease), translate 0.28s var(--ease);
}
.faq-list details[open] summary::after { rotate: -135deg; translate: 0 2px; }
.faq-list details p {
  padding-bottom: 20px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.faq-list code {
  padding: 2px 6px;
  border-radius: 6px;
  background: color-mix(in oklab, var(--state) 12%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

/* --- последний зов --- */
.final { padding-bottom: clamp(70px, 9vw, 130px); }
.final-in {
  position: relative;
  padding: clamp(38px, 6vw, 74px) clamp(24px, 5vw, 70px);
  border-radius: var(--r-plate);
  background: var(--surface);
  box-shadow: var(--edge), var(--lift);
  text-align: center;
  overflow: hidden;
}
.final-in::before {
  content: '';
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 240px;
  background: radial-gradient(closest-side, rgb(90 104 209 / 0.16), transparent 75%);
}
.final-in > * { position: relative; }
.final-in .f4 {
  position: absolute;
  top: -18px;
  right: 4%;
  width: 96px;
  animation-delay: -1.4s;
}
.final-in h2 { max-width: 22em; margin-inline: auto; }
.final-in > p {
  max-width: 34em;
  margin: 16px auto 0;
  font-size: 16.5px;
  color: var(--text-dim);
}
.final-in .btn { margin-top: 26px; }
.final-fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-faint);
}

/* --- подвал --- */
.foot {
  padding: 34px 0 44px;
  box-shadow: inset 0 1px 0 var(--line);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
}
.foot-b p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.foot-n {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}
.foot-n a:hover { color: var(--state); }
.foot-c {
  width: 100%;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* --- узкие окна --- */
@media (max-width: 1180px) {
  .sc-wrap { grid-template-columns: 1fr; }
  .phone-big { margin-inline: auto; }
  .sc-tabs { display: grid; grid-template-columns: repeat(2, 1fr); }
  .sc-tabs button.on { translate: 0 0; }
}

@media (max-width: 1040px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { margin-top: 30px; }
  .pain-grid, .f-grid { grid-template-columns: repeat(2, 1fr); }
  /* широкие карточки встали по одной в строке — ровнять высоту картинок больше не надо */
  .fc-art { height: auto; min-height: 138px; }
  .f1 { left: 6%; }
  .f3 { left: 4%; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid li:not(:last-child)::after { display: none; }
  .step { padding-bottom: 24px; }
  .craft-list { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
    gap: 24px;
  }
  .mani-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mani-in > img { width: 150px; }
  .mani .eyebrow { justify-content: center; }
}

@media (max-width: 620px) {
  .pain-grid, .f-grid { grid-template-columns: 1fr; }
  .fc.w2 { grid-column: auto; }
  .fc-kinds { grid-template-columns: repeat(4, 1fr); }
  .eyebrow { font-size: 10px; letter-spacing: 0.12em; }
  .sc-tabs { grid-template-columns: 1fr; }
  .phone { width: min(318px, 100%); }
  .phone-big { width: min(360px, 100%); }
  .float { display: none; }
  .final-in .f4 { display: block; width: 68px; right: -6px; }
  .cta .btn { flex: 1; }
  .foot-n { margin-left: 0; }

  /* На телефоне страница получалась очень долгой — поджимаем отступы,
     а короткие карточки ставим по две в ряд. */
  section { padding-block: 28px; }
  .hero { padding-top: 22px; }
  .hero-art { margin-top: 18px; }

  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
  }
  .pain-c { padding: 15px 15px 17px; }
  .pain-c::before { font-size: 40px; margin-bottom: -11px; }
  .pain-c blockquote { font-size: 14px; }

  .steps-grid { gap: 10px; margin-top: 20px; }
  .step { padding-bottom: 16px; }

  .f-grid { gap: 12px; margin-top: 20px; }
  .fc { padding: 18px var(--pad) 20px; }
  .fc h3 { margin-top: 12px; }
  .fc-ico { width: 54px; height: 54px; }
  .fc-art { min-height: 116px; }

  .sc-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sc-tabs button { padding: 11px 13px; }
  .sc-tabs button b { font-size: 15.5px; }
  .sc-tabs button span { font-size: 12px; }
  .sc-theme { margin-top: 14px; }

  .craft-list { margin-top: 18px; }
  .craft-list > div { padding: 15px 0; }

  .faq-list { gap: 8px; }
  .faq-list summary { padding: 14px 0; }

  .price-one { padding: 30px var(--pad) 24px; margin-top: 22px; }
  .price-one .pc-list { gap: 10px; }
  .price-vows { gap: 10px; margin-top: 18px; }
  .pv { padding: 13px 16px; font-size: 14.5px; }

  /* Макеты телефона — самые высокие куски страницы. Уменьшаем целиком
     (zoom меняет и раскладку, не только вид), чтобы не ломать вёрстку внутри. */
  .hero .phone { zoom: 0.82; }
  .phone-big { zoom: 0.86; }

  /* Четыре коротких карточки — по две в ряд */
  .f-grid .fc:not(.w2) { grid-column: auto; }
  .f-grid { grid-template-columns: repeat(2, 1fr); }
  .fc.w2 { grid-column: 1 / -1; }
  .fc:not(.w2) { padding: 16px 16px 18px; }
  .fc:not(.w2) > p { font-size: 13.5px; }
  .fc:not(.w2) .fc-ico { width: 46px; height: 46px; }
  .fc:not(.w2) h3 { margin-top: 9px; font-size: 16px; }

  .step { padding-bottom: 12px; }
  .step > img { width: 54px; }
  .craft-list > div { padding: 12px 0; }
  .fc-art { zoom: 0.92; }
  .mani-in > img { width: 112px; }
  .faq-list summary { padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; filter: none; transition: none; }
  .float { animation: none; }
  /* Бегущие отзывы останавливаем: читать можно, но лента не едет. */
  .revs-track { animation: none; }
  .revs-row { overflow-x: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* --- страница «Данные и приватность» ---
   Общий сброс убрал отступы и точки у списков, поэтому обычному тексту всё
   возвращаем здесь — и только внутри .legal, чтобы не задеть остальной сайт. */
.legal {
  padding: clamp(34px, 5vw, 60px) 0 clamp(60px, 9vw, 110px);
}
.legal h1 {
  font-size: clamp(30px, 4.6vw, 48px);
}
.legal .lead {
  margin-block: 18px 34px;
  color: var(--text-dim);
}
.legal .plate {
  padding: clamp(22px, 3.4vw, 38px);
  margin-bottom: 18px;
}
.legal h2 {
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -0.028em;
  margin-bottom: 13px;
}
.legal .plate h2:not(:first-child) {
  margin-top: 28px;
}
.legal p,
.legal ul {
  max-width: 44em;
}
.legal p {
  color: var(--text-dim);
  line-height: 1.55;
}
.legal p + p {
  margin-top: 11px;
}
.legal li {
  position: relative;
  padding-left: 23px;
  color: var(--text-dim);
  line-height: 1.55;
}
.legal li + li {
  margin-top: 9px;
}
.legal li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--walk);
  opacity: 0.5;
}
.legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal .foot-c {
  margin-top: 20px;
}

