/* Лендинг «Крохи». Мир тот же, что в приложении: пастель, Nunito, свои иллюстрации.
   Цвет живёт полосами на всю ширину: каждое дело малыша — своё поле. */

@font-face {
  font-family: 'Nunito'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url('/fonts/nunito-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url('/fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FBF6F1;
  --surface: #FFFFFF;
  --ink: #45384A;
  --ink-soft: #6E6072;
  --line: #EFE4DD;
  --rose: #A34F64;
  --rose-ink: #FFFFFF;
  --blush: #F8E1E4;
  --peach: #FCE7DB;   --peach-ink: #A65638;
  --lav: #ECE7FA;     --lav-ink: #5F4DAE;
  --vanilla: #FBF0D3; --vanilla-ink: #8A6514;
  --sage: #E3F0E3;    --sage-ink: #44745A;
  --sky: #DFEEF8;     --sky-ink: #346D97;
  --night: #241C2A;   --night-2: #2F2536;   --night-ink: #F3E3D6;   --night-soft: #C8B3A6;   --amber: #E6A766;
  --frame: #2F2632;
  --ph-bg: #FBF6F1; --ph-card: #FFFFFF; --ph-ink: #45384A; --ph-soft: #6E6072; --ph-line: #F2E9E3; --ph-dash: #E7DCD5; --ph-toast: #45384A; --ph-toast-ink: #FFFFFF;
  --field-line: #9C8E9F;
  --shadow: 0 2px 6px rgba(110, 70, 80, .06), 0 28px 56px -24px rgba(110, 70, 80, .35);
  --font: 'Nunito', ui-rounded, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --measure: 62ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B171E; --surface: #241F27; --ink: #F2E9EE; --ink-soft: #C2B5C4; --line: #352D37;
    --rose: #E59AAB; --rose-ink: #2A1A20; --blush: #3A2830;
    --peach: #3A2821; --peach-ink: #F2B497; --lav: #2C2640; --lav-ink: #BDB0F2;
    --vanilla: #352D18; --vanilla-ink: #E8C873; --sage: #22302A; --sage-ink: #A3D0AE; --sky: #1F2D3A; --sky-ink: #9CCBEC;
    --night: #261A15; --night-2: #2F211B; --frame: #0D0A0F;
    --ph-bg: #1E1922; --ph-card: #29222D; --ph-ink: #EDE3E8; --ph-soft: #B9AABB; --ph-line: #352D37; --ph-dash: #43394A; --ph-toast: #F2E9EE; --ph-toast-ink: #241F27;
    --field-line: #7D6F80;
    --shadow: 0 2px 6px rgba(0,0,0,.3), 0 28px 56px -24px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B171E; --surface: #241F27; --ink: #F2E9EE; --ink-soft: #C2B5C4; --line: #352D37;
  --rose: #E59AAB; --rose-ink: #2A1A20; --blush: #3A2830;
  --peach: #3A2821; --peach-ink: #F2B497; --lav: #2C2640; --lav-ink: #BDB0F2;
  --vanilla: #352D18; --vanilla-ink: #E8C873; --sage: #22302A; --sage-ink: #A3D0AE; --sky: #1F2D3A; --sky-ink: #9CCBEC;
  --night: #261A15; --night-2: #2F211B; --frame: #0D0A0F;
  --ph-bg: #1E1922; --ph-card: #29222D; --ph-ink: #EDE3E8; --ph-soft: #B9AABB; --ph-line: #352D37; --ph-dash: #43394A; --ph-toast: #F2E9EE; --ph-toast-ink: #241F27;
  --field-line: #7D6F80;
  --shadow: 0 2px 6px rgba(0,0,0,.3), 0 28px 56px -24px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: color-mix(in srgb, var(--rose) 45%, transparent) transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 520; overflow-x: hidden; }
::selection { background: color-mix(in srgb, var(--rose) 28%, transparent); color: var(--ink); }
input, button { font: inherit; color: inherit; }
input { caret-color: var(--rose); }
a { color: var(--rose); text-underline-offset: .2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 10px; }
h1, h2 { font-weight: 900; letter-spacing: -.03em; line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
p { margin: 0; text-wrap: pretty; }
.tnum { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 12px; z-index: 50; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1180px; margin: 0 auto; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px;
  border-radius: 20px; background: var(--rose); color: var(--rose-ink); font-weight: 850; font-size: 1.05rem;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--rose) 80%, transparent);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -14px color-mix(in srgb, var(--rose) 85%, transparent); }
.btn:active { transform: scale(.98); }
.btn-small { gap: 0; min-height: 44px; padding: 0 18px; font-size: .95rem; border-radius: 14px; white-space: nowrap; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-quiet:hover { box-shadow: inset 0 0 0 2px var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn[disabled] { opacity: .55; cursor: progress; }
.link { font-weight: 800; }

/* шапка */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 1.1rem; letter-spacing: -.01em; }
.brand-mark { border-radius: 11px; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 750; font-size: .95rem; }
.top-nav a:hover { color: var(--ink); }

/* ===== первый экран ===== */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(48px, 7vw, 96px); position: relative; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.hero h1 { font-size: clamp(3.1rem, 9.2vw, 6rem); letter-spacing: -.04em; max-width: 11ch; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 38ch; margin-top: 22px; color: var(--ink); font-weight: 560; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.hero-note { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; max-width: 46ch; }

.duo { margin: 0; position: relative; }
.duo { display: flex; flex-direction: column; }
.duo-phones::before {
  content: ''; position: absolute; inset: 8% 0 6% 0; border-radius: 48px; background: var(--blush); z-index: -1;
}
.duo-phones { display: flex; justify-content: center; gap: clamp(14px, 4vw, 44px); padding: 28px 8px 8px; position: relative; }
.phone-slot { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.phone-cap { font-weight: 800; color: var(--ink-soft); font-size: .95rem; margin: 0; }
.duo-cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.phone-slot:nth-child(2) { margin-top: 36px; }

.phone {
  --p-scale: 1;
  width: 252px; height: 520px; border-radius: 42px; border: 10px solid var(--frame); background: var(--ph-bg); color: var(--ph-ink);
  box-shadow: var(--shadow); overflow: hidden; position: relative; font-size: 13px; line-height: 1.35; display: flex; flex-direction: column;
}
.p-status { display: flex; justify-content: center; padding: 8px 0 2px; font-weight: 800; font-size: 11px; }
.p-top { padding: 6px 14px 8px; display: flex; flex-direction: column; }
.p-top b { font-size: 14px; font-weight: 900; }
.p-top span { font-size: 11px; color: var(--ph-soft); }
.p-hero { margin: 4px 10px 8px; border-radius: 22px; padding: 12px 14px; background: var(--peach); display: flex; flex-direction: column; gap: 2px; transition: background .4s; }
.p-hero.is-sleep { background: var(--lav); }
.p-k { font-size: 11px; font-weight: 850; color: var(--peach-ink); }
.p-hero.is-sleep .p-k { color: var(--lav-ink); }
.p-big { font-size: 21px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.p-sub { font-size: 11px; color: var(--ph-soft); }
.p-list { margin: 0 10px; padding: 0; list-style: none; background: var(--ph-card); border-radius: 18px; overflow: hidden; flex: 1; }
.p-row { display: flex; gap: 9px; align-items: center; padding: 9px 11px; border-bottom: 1.5px solid var(--ph-line); }
.p-row:last-child { border-bottom: 0; }
.p-ico { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.p-ico svg { width: 16px; height: 16px; }
.p-ico.feed { background: var(--peach); color: var(--peach-ink); } .p-ico.sleep { background: var(--lav); color: var(--lav-ink); }
.p-ico.diaper { background: var(--vanilla); color: var(--vanilla-ink); }
.p-txt { flex: 1; min-width: 0; }
.p-txt b { display: block; font-weight: 850; font-size: 12.5px; }
.p-txt span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; color: var(--ph-soft); overflow: hidden; }
.p-time { font-size: 11px; color: var(--ph-soft); align-self: flex-start; padding-top: 1px; font-weight: 750; font-variant-numeric: tabular-nums; }
.p-row.is-new { animation: arrive .7s cubic-bezier(.16, 1, .3, 1); }
@keyframes arrive { from { background: color-mix(in srgb, var(--vanilla) 80%, transparent); transform: translateY(-6px); opacity: .2; } to { background: transparent; transform: none; opacity: 1; } }
.p-toast {
  position: absolute; left: 10px; right: 10px; top: 34px; z-index: 3; background: var(--ph-toast); color: var(--ph-toast-ink); border-radius: 16px; padding: 9px 12px;
  font-size: 11.5px; font-weight: 750; box-shadow: 0 12px 24px -10px rgba(40, 20, 30, .5);
  opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .4s cubic-bezier(.16, 1, .3, 1); pointer-events: none;
}
.p-toast.show { opacity: 1; transform: none; }
.p-tabs { display: flex; justify-content: space-around; align-items: center; margin: 8px 10px 10px; height: 44px; border-radius: 16px; background: var(--ph-card); box-shadow: 0 6px 16px -10px rgba(110, 70, 80, .4); }
.p-tabs i { width: 18px; height: 3px; border-radius: 3px; background: var(--ph-dash); }
.p-tabs .p-plus { width: 30px; height: 30px; border-radius: 11px; background: var(--rose); }

.courier {
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 14px; background: var(--rose); color: var(--rose-ink);
  display: grid; place-items: center; box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--rose) 80%, transparent);
  opacity: 0; pointer-events: none; z-index: 5;
}
.courier svg { width: 20px; height: 20px; }

.try { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; text-align: center; }
.try-label { font-weight: 800; color: var(--ink-soft); }
.try-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); cursor: pointer; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--surface); color: var(--ink);
  font-weight: 800; box-shadow: 0 6px 16px -10px rgba(110, 70, 80, .45); transition: transform .15s, background .2s;
}
.chip:hover { transform: translateY(-1px); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--lav); color: var(--lav-ink); border-color: color-mix(in srgb, var(--lav-ink) 45%, transparent); }

/* ===== один день ===== */
.day { background: var(--surface); padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: var(--measure); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 76px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--line); }
.timeline li {
  --dot: var(--rose); --tint: var(--blush); --tint-ink: var(--rose);
  display: grid; grid-template-columns: 62px 32px minmax(0, 20rem) minmax(0, 1fr); gap: 0 22px; align-items: start; padding: 14px 0;
}
.timeline li::before { content: ''; grid-column: 2; grid-row: 1; justify-self: center; width: 15px; height: 15px; margin-top: 12px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 5px var(--surface); position: relative; }
.timeline time { grid-column: 1; grid-row: 1; font-weight: 900; font-size: 1.15rem; font-variant-numeric: tabular-nums; padding-top: 6px; text-align: right; }
.entry { grid-column: 3; background: var(--tint); border-radius: 18px; padding: 10px 16px; display: flex; flex-direction: column; }
.entry b { font-weight: 900; color: var(--tint-ink); }
.entry span { font-size: .95rem; }
.why { grid-column: 4; color: var(--ink-soft); padding-top: 9px; max-width: 52ch; }
.timeline .t-feed { --dot: #E39A7A; --tint: var(--peach); --tint-ink: var(--peach-ink); }
.timeline .t-sleep { --dot: #A795DC; --tint: var(--lav); --tint-ink: var(--lav-ink); }
.timeline .t-diaper { --dot: #E7BE5C; --tint: var(--vanilla); --tint-ink: var(--vanilla-ink); }
.timeline .t-solid { --dot: #86B293; --tint: var(--sage); --tint-ink: var(--sage-ink); }
.timeline .t-sky { --dot: #7FB0D6; --tint: var(--sky); --tint-ink: var(--sky-ink); }

/* ===== одежда по погоде ===== */
.weather { background: var(--sky); padding-block: clamp(64px, 9vw, 120px); }
.weather-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.weather-copy { display: grid; gap: 18px; }
.weather-copy > p { max-width: 48ch; font-size: 1.1rem; }
.dial { background: var(--surface); border-radius: 28px; padding: 22px 22px 18px; box-shadow: var(--shadow); display: grid; gap: 12px; max-width: 30rem; }
.dial-label { font-weight: 800; }
.dial-label output { display: inline-block; min-width: 3.2ch; font-weight: 900; font-size: 1.6rem; color: var(--sky-ink); font-variant-numeric: tabular-nums; margin-left: 4px; }
input[type=range] { width: 100%; accent-color: var(--sky-ink); height: 32px; }
.dial-scale { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-soft); font-weight: 700; margin-top: -6px; }
.age { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.age legend { font-weight: 800; padding: 0; margin-bottom: 6px; width: 100%; float: left; }
.age label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; min-height: 44px; }
.age input { accent-color: var(--sky-ink); width: 18px; height: 18px; }

.outfit { display: grid; gap: 14px; }
.outfit-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; letter-spacing: -.02em; }
.outfit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.outfit-list li { background: var(--surface); border-radius: 22px; padding: 12px; display: grid; justify-items: center; text-align: center; gap: 6px; }
.outfit-list li b { font-size: .95rem; line-height: 1.25; font-weight: 850; }
.outfit-list li span { font-size: .82rem; color: var(--ink-soft); }
.outfit-list .art { background: var(--bg); border-radius: 18px; padding: 8px; display: block; line-height: 0; }
.outfit-list .art svg { display: block; }
.outfit-note { color: var(--ink); max-width: 60ch; font-weight: 600; }
.outfit-warning { background: #FBE3E2; color: #8F2F35; border-radius: 18px; padding: 14px 16px; font-weight: 750; }
:root[data-theme="dark"] .outfit-warning { background: #3D2224; color: #F5B5B9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .outfit-warning { background: #3D2224; color: #F5B5B9; } }

/* ===== ночь ===== */
.night { background: var(--night); color: var(--night-ink); padding-block: clamp(64px, 9vw, 120px); }
.night-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.night-copy { display: grid; gap: 20px; }
.night-copy p { color: var(--night-soft); font-size: 1.1rem; max-width: 46ch; }
.night h2 { color: var(--amber); }
.night-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.night-points li { padding-left: 26px; position: relative; color: var(--night-ink); font-weight: 650; }
.night-points li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--amber) 55%, transparent); }
.night-phone { display: flex; justify-content: center; }
.phone-night { background: #0C090A; color: #C99B7A; border-color: #050304; box-shadow: 0 40px 80px -30px rgba(230, 167, 102, .25); }
.phone-night .p-top span, .phone-night .p-sub { color: #B08A6F; }
.p-hero-night { background: #24150F; margin-top: 10px; }
.p-hero-night .p-k { color: #C67A55; }
.phone-night .p-big { font-size: 34px; }
.p-sides { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.p-side { width: 96px; height: 96px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; background: #24150F; color: #E0A37E; }
.p-side.on { background: #C67A55; color: #140C08; }
.p-night-bar { margin: auto 14px 16px; min-height: 48px; border-radius: 16px; display: grid; place-items: center; font-weight: 900; background: #24150F; color: #E0A37E; }
.p-side small { font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }

/* ===== ещё ===== */
.more { padding-block: clamp(64px, 9vw, 120px); }
.more h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.features { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 64rem; }
.features div { display: grid; gap: 4px 32px; padding-block: 18px; border-top: 2px solid var(--line); align-items: baseline; }
.features dt { font-weight: 900; font-size: 1.2rem; display: flex; align-items: flex-start; gap: 12px; }
.features dt svg { width: 24px; height: 24px; color: var(--rose); flex: none; }
.features dt svg { position: relative; top: 4px; align-self: start; }
.features dd { margin: 0; color: var(--ink-soft); max-width: 60ch; font-size: 1.05rem; }
.honest { margin-top: clamp(32px, 5vw, 52px); padding: 16px 20px; border-radius: 18px; background: var(--sage); color: var(--ink); max-width: 64ch; font-weight: 650; }

/* ===== финал ===== */
.close { background: var(--blush); padding-block: clamp(64px, 9vw, 112px); }
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: end; }
.close-grid > div { display: grid; gap: 18px; justify-items: start; }
.close-grid > div p { font-size: 1.15rem; max-width: 40ch; }
.notify { background: var(--surface); border-radius: 28px; padding: 22px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.notify label { font-weight: 850; font-size: 1.05rem; }
.notify-row { display: flex; flex-wrap: wrap; gap: 10px; }
.notify input {
  flex: 1 1 220px; min-width: 0; min-height: 56px; border-radius: 18px; border: 2px solid var(--field-line); background: var(--bg); padding: 0 18px; outline: none; font-weight: 650;
}
.notify input::placeholder { color: color-mix(in srgb, var(--ink-soft) 85%, transparent); }
.notify input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 30%, transparent); }
.notify input[aria-invalid="true"] { border-color: #BE4249; }
.notify-msg { min-height: 1.5em; font-weight: 750; }
.notify-msg.ok { color: var(--sage-ink); }
.notify-msg.err { color: #BE4249; }
:root[data-theme="dark"] .notify-msg.err { color: #F08A8F; }
:root[data-theme="dark"] .notify input[aria-invalid="true"] { border-color: #F08A8F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notify-msg.err { color: #F08A8F; } :root:not([data-theme="light"]) .notify input[aria-invalid="true"] { border-color: #F08A8F; } }
.notify-fine { font-size: .85rem; color: var(--ink-soft); }

.foot { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink-soft); font-weight: 700; }
.foot-row a { display: inline-flex; align-items: center; min-height: 44px; }

/* ===== широкие экраны ===== */
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
}
@media (min-width: 960px) {
  .weather-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .night-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .features div { grid-template-columns: 17rem minmax(0, 1fr); }
  .close-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .top-nav { display: none; }
  .top-row .btn-small { margin-left: auto; }
}
@media (max-width: 760px) {
  .timeline::before { left: 66px; }
  .timeline li { grid-template-columns: 52px 30px minmax(0, 1fr); gap: 0 12px; }
  .timeline time { font-size: 1.02rem; }
  .why { grid-column: 3; padding-top: 8px; font-size: .95rem; }
}
@media (max-width: 560px) {
  .hero { padding-block: 20px 56px; }
  .hero h1 { font-size: clamp(2.6rem, 12.5vw, 3.4rem); }
  .lead { font-size: 1.08rem; margin-top: 16px; }
  .hero-actions { margin-top: 22px; }
  .hero-note { font-size: .92rem; }
  /* на телефоне шапочная кнопка появляется, когда главная уехала за экран */
  .top-row .btn-small { visibility: hidden; opacity: 0; transition: opacity .25s; }
  .cta-gone .top-row .btn-small { visibility: visible; opacity: 1; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 32px; height: 32px; }
  /* кнопки демо над телефонами: нажали — и сразу видно, что пришло папе */
  .try { order: -1; margin: 0 0 6px; }
  .duo-phones { gap: 10px; padding: 18px 0 8px; }
  .phone-slot { flex: 0 1 172px; }
  .phone { width: 100%; height: 372px; border-width: 6px; border-radius: 28px; font-size: 10px; }
  .phone .p-big { font-size: 16px; }
  .phone .p-top b { font-size: 11px; }
  .phone .p-txt b { font-size: 11px; }
  .phone .p-txt span, .phone .p-time, .phone .p-k, .phone .p-sub, .phone .p-top span, .phone .p-status { font-size: 10px; }
  .phone .p-time { display: none; }
  .phone .p-row { padding: 6px 7px; gap: 6px; }
  .phone .p-ico { width: 20px; height: 20px; border-radius: 7px; }
  .phone .p-ico svg { width: 12px; height: 12px; }
  .phone .p-hero { border-radius: 16px; padding: 8px 10px; }
  .phone .p-list { border-radius: 13px; }
  .phone .p-tabs { height: 32px; border-radius: 12px; }
  .phone .p-tabs .p-plus { width: 22px; height: 22px; border-radius: 8px; }
  .phone .p-toast { font-size: 10px; padding: 6px 8px; top: 26px; border-radius: 12px; }
  .phone-slot:nth-child(2) { margin-top: 24px; }
  .phone-night { width: 240px; height: 440px; font-size: 12px; }
  .phone-night .p-big { font-size: 28px; }
  .phone-night .p-top b { font-size: 13px; }
  .phone-night .p-k, .phone-night .p-sub, .phone-night .p-top span, .phone-night .p-status { font-size: 11px; }
  .duo-phones::before { inset: 10% -6px 4% -6px; border-radius: 36px; }
}
@media (max-width: 420px) {
  .btn-long { display: none; }
  .top-row { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
