/* ---------- система (по замерам Cleo: шаг 3,4 px, начертания 300 и 450, один цвет текста) ---------- */
:root {
  --ink: #3a231e;
  --ink-2: rgba(58, 35, 30, .62);
  --ink-3: rgba(58, 35, 30, .18);
  --acc: #e98a4b;
  --paper: #f8f6f2;
  --sand: #efe9e2;
  --white: #fff;
  --font: "Onest", system-ui, sans-serif;
  --t0: 64px; --t0l: 66px;
  --t1: 44px; --t1l: 48px;
  --t2: 30px; --t2l: 34px;
  --t3: 20.4px; --t3l: 23.8px;
  --t4: 17px;   --t4l: 24px;
  --t5: 13.6px; --t5l: 17px;
  --t6: 11.9px; --t6l: 14px;
  --edge: 8px;
  --r: 40px;
  --pad: 56px;
  --ease: cubic-bezier(.75, 0, .25, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (max-width: 760px) {
  :root { --t0: 38px; --t0l: 41px; --t1: 30px; --t1l: 34px; --t2: 23px; --t2l: 27px; --t3: 18px; --t3l: 22px; --t4: 16px; --t4l: 21px; --r: 28px; --pad: 24px; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.js) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t4)/var(--t4l) var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 300; }
.display { font: 600 var(--t0)/var(--t0l) var(--font); letter-spacing: -0.025em; }
.t1 { font: 600 var(--t1)/var(--t1l) var(--font); letter-spacing: -0.015em; }
.t2 { font: 500 var(--t2)/var(--t2l) var(--font); letter-spacing: -0.01em; }
.t3 { font: 450 var(--t3)/var(--t3l) var(--font); }
.t4 { font: 400 var(--t4)/var(--t4l) var(--font); }
.t5 { font: 450 var(--t5)/var(--t5l) var(--font); }
.t6 { font: 300 var(--t6)/var(--t6l) var(--font); }
.muted { color: var(--ink-2); }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.label { display: inline-flex; align-items: center; gap: 8px; font: 450 var(--t5)/var(--t5l) var(--font); }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* кнопка-пилюля (Cleo: высота 60, стеклянная заливка, мягкая тень) */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 30px; border-radius: 30px; border: 0; background: rgba(134, 134, 134, .1); box-shadow: 0 6px 12px rgba(0, 0, 0, .1); color: inherit; font: 450 var(--t5)/1 var(--font); cursor: pointer; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .3s var(--ease), background-color .3s; }
.pill:hover { transform: translateY(-2px); background: rgba(134, 134, 134, .16); }
.pill.dark { background: var(--ink); color: var(--white); }
.pill.light { background: rgba(255, 255, 255, .16); color: var(--white); }
.pill svg { width: 16px; height: 16px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* ---------- меню ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap:16px; padding: 16px calc(var(--edge) + var(--pad) - 16px); padding-top: max(16px, env(safe-area-inset-top)); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav .logo { justify-self: start; height: 44px; padding: 0 16px; border-radius: 22px; display: inline-flex; align-items: center; font: 600 23px/1 var(--font); letter-spacing: -0.045em; }
.nav .links { display: flex; gap: 4px; height: 44px; padding: 4px; border-radius: 22px; }
.nav .links a { display: inline-flex; align-items: center; padding: 0 18px; border-radius: 18px; font: 500 var(--t5)/1 var(--font); }
.nav .links a:hover { background: rgba(134, 134, 134, .14); }
.nav .cta { justify-self: end; height: 44px; padding: 0 22px; font-weight: 500; }
.nav .logo, .nav .links, .nav .cta { background: rgba(248, 246, 242, .86); color: var(--ink); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 6px 12px rgba(0, 0, 0, .06); transition: background-color .4s, color .4s; }
.nav .links { transition: background-color .4s, color .4s, opacity .5s var(--ease), transform .5s var(--ease); }
.nav .lang { display:flex; gap:2px; align-items:center; height:34px; padding:2px; border-radius:18px; background:rgba(248,246,242,.9); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); box-shadow:0 6px 12px rgba(0,0,0,.06); }
.nav .lang button { border:0; border-radius:16px; padding:0 8px; min-width:40px; height:30px; color:var(--ink); background:transparent; font:500 12px/1 var(--font); cursor:pointer; }
.nav .actions { justify-self:end; display:flex; align-items:center; gap:8px; }
.nav .lang button[aria-pressed=true] { background:var(--ink); color:var(--white); }
/* текущий раздел: мягкая персиковая подложка переезжает под пункт меню, текст остаётся тёмным — контраст не падает */
.nav .links { position: relative; }
.nav .links a { position: relative; z-index: 1; white-space: nowrap; }
.nav .links .spy { position: absolute; z-index: 0; top: 4px; left: 0; width: var(--spw, 0px); height: 36px; border-radius: 18px; background: rgba(233, 138, 75, .2); box-shadow: inset 0 0 0 1px rgba(233, 138, 75, .22); opacity: 0; transform: translateX(var(--sx, 0px)); transition: transform .55s var(--out), width .55s var(--out), opacity .3s; pointer-events: none; }
.nav .links .spy.on { opacity: 1; }
.nav .links .spy.still { transition: none; }
@media (prefers-reduced-motion: reduce) { .nav .links .spy { transition: opacity .2s; } }

/* на телефоне и узком планшете разделы — вторая строка меню с прокруткой вбок */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; row-gap: 8px; }
  .nav .links { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; height: 40px; padding: 2px; border-radius: 20px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .nav .links::-webkit-scrollbar { display: none; }
  .nav .links a { flex: none; padding: 0 14px; border-radius: 18px; }
  .nav .links .spy { top: 2px; }
}
@media (max-width: 767px) { .nav { gap:8px; padding:max(10px,env(safe-area-inset-top)) 12px 10px; background:rgba(248,246,242,.9); -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); } .nav .links { background:rgba(239,233,226,.8); box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; } .nav .actions { gap:6px; } .nav .cta { padding:0 14px; } .nav .lang { height:50px; border-radius:25px; padding:3px; } .nav .lang button { min-width:44px; height:44px; border-radius:20px; padding:0 9px; } }
@media (min-width: 901px) and (max-width: 1100px) { .nav .links a { padding: 0 10px; } }
@media (max-width: 380px) { .nav .lang button { min-width:40px; padding:0 6px; } }

/* ---------- слова: появление через размытие (Cleo: 1,2 с, шаг 0,05 с) ---------- */
.split .w { display: inline-block; white-space: pre; }
.js .split .w { opacity: 0; filter: blur(6px); transition: opacity 1.2s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--i) * .05s + var(--d, 0s)); }
.js .split.in .w { opacity: 1; filter: blur(0); }
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--out), transform .9s var(--out); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- телефон ---------- */
.phone { --pw: 330px; --bz: calc(var(--pw) * .034); --sw: calc(var(--pw) - 2 * var(--bz)); position: relative; width: var(--pw); height: auto; border-radius: calc(var(--pw) * .165); padding: var(--bz); background: linear-gradient(145deg, #8d7d78, #2a1f1c 40%, #4a3c38 70%, #9a8a84); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 50px 90px -30px rgba(30, 15, 10, .55), 0 18px 30px -18px rgba(30, 15, 10, .5); }
.phone .scr { position: relative; height: auto; aspect-ratio: 440 / 956; border-radius: calc(var(--sw) * .135); overflow: hidden; background: radial-gradient(120% 70% at 30% 18%, #f7cfb4 0%, #f6e7dc 45%, #f8f3ee 80%); color: var(--ink); display: flex; flex-direction: column; }
.phone .island { position: absolute; top: calc(var(--bz) + var(--sw) * .026); left: 50%; width: calc(var(--sw) * .286); height: calc(var(--sw) * .084); transform: translateX(-50%); border-radius: 999px; background: #120c0b; z-index: 3; }
.phone .scr > picture { display: contents; }
.phone .scr > img, .phone .scr > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--out); }
.phone .scr > img.off, .phone .scr > picture > img.off { opacity: 0; }
.phone .bar { display: flex; justify-content: space-between; padding: 18px 30px 0; font: 500 14px/1 var(--font); }
.phone .body { flex: 1; padding: 34px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 84%; padding: 11px 14px; border-radius: 20px 20px 20px 6px; background: rgba(255, 255, 255, .78); font: 400 14.5px/1.35 var(--font); box-shadow: 0 4px 14px rgba(58, 35, 30, .06); }
.bub.me { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--ink); color: var(--white); }
.bub b { font-weight: 500; }
.phone .today { margin-top: 6px; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .78); display: grid; gap: 9px; font: 400 13px/1.2 var(--font); box-shadow: 0 4px 14px rgba(58, 35, 30, .06); }
.phone .today .h { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-2); }
.phone .today .h b { font: 500 16px/1 var(--font); color: var(--ink); }
.phone .today .meter { display: block; height: 6px; border-radius: 3px; background: rgba(58, 35, 30, .1); overflow: hidden; }
.phone .today .meter i { display: block; height: 100%; border-radius: 3px; background: var(--acc); }
.phone .today .r { display: flex; justify-content: space-between; color: var(--ink-2); }
.phone .ask { margin: auto 14px 0; height: 46px; border-radius: 23px; background: rgba(255, 255, 255, .82); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font: 400 14px/1 var(--font); color: var(--ink-2); }

/* Телефон Somly: современный корпус с тонкими ровными рамками, металлический графитово-каштановый обод,
   камера-точка. Не копия iPhone (без выреза Dynamic Island и логотипа). Ширина/высота корпуса 0,4737:
   рамка 2,6 % ширины, экран 440:956 — как у скриншотов приложения. */
.phone.device { --pw: 330px; width: var(--pw); height: auto; aspect-ratio: .4737; padding: 0; border-radius: 15.5% / 7.34%; background: linear-gradient(135deg, #7a655e 0%, #3a2a25 16%, #221714 50%, #3a2a25 84%, #6d5952 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 0 0 calc(var(--pw) * .012) rgba(0, 0, 0, .45); }
.phone.device::before, .phone.device::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #5c4a44, #2c201d); }
.phone.device::before { left: -2px; top: 20%; height: 7%; box-shadow: 0 calc(var(--pw) * .2) 0 #3a2a25; }
.phone.device::after { right: -2px; top: 27%; height: 11%; }
.phone.device .island { display: block; position: absolute; z-index: 5; top: calc(1.232% + var(--pw) * .028); left: 50%; width: 3.6%; height: auto; aspect-ratio: 1; margin: 0; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #33465a 0 20%, #0a0605 52%); }
.phone.device .scr { position: absolute; left: 2.6%; top: 1.232%; width: 94.8%; height: 97.536%; aspect-ratio: auto; border-radius: 13.6% / 6.27%; overflow: hidden; }
.apps .phone.device { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 0 0 calc(var(--pw) * .012) rgba(0, 0, 0, .45), 0 30px 50px -28px rgba(30, 15, 10, .45); }
/* в сценах с наклоном и поворотом — объёмный телефон нейтрального дизайна, не iPhone (3D-имитация iPhone запрещена Apple):
   матовый каштановый корпус, камера-точка, одна кнопка сбоку; толщина — слои корпуса в глубину (slab) */
.card .persp .phone, .turn .stagebox .phone { --th: 30px; padding: 9px; border-radius: 46px; background: #2a1915; box-shadow: none; transform-style: preserve-3d; }
.card .persp .phone .island, .turn .stagebox .phone .island { display: none; }
.card .persp .phone .scr, .turn .stagebox .phone .scr { border-radius: 38px; transform: translateZ(.5px); }
.phone .cam { position: absolute; z-index: 4; top: 20px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3b4a5c 0 22%, #0b0706 45%); transform: translateZ(1px); }
.phone .slab { position: absolute; inset: 0; border-radius: 46px; background: linear-gradient(90deg, #5a3a31, #2f1d18 18%, #24150f 50%, #2f1d18 82%, #5a3a31); transform: translateZ(calc(var(--z) * -1px)); }
.phone .slab.back { background: radial-gradient(120% 80% at 30% 20%, #4a2e26, #2a1915 60%); }
.phone .key { position: absolute; right: -2px; top: 26%; width: 3px; height: 13%; border-radius: 2px; background: #4a2e26; transform: translateZ(calc(var(--th) * -.5)) rotateY(90deg); transform-origin: 0 50%; }
/* меню как в настоящем Mini App: пять вкладок, тонкие иконки, активная — тёмная капсула */
.phone .tabs { display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 6px 20px; font: 450 10px/1 var(--font); color: var(--ink-2); }
.phone .tabs span, .apps .live-menu span { display: grid; justify-items: center; gap: 5px; }
.phone .tabs .ic, .apps .live-menu .ic { width: 40px; height: 26px; border-radius: 13px; display: grid; place-items: center; }
.phone .tabs svg, .apps .live-menu svg { width: 18px; height: 18px; }
.phone .tabs .on, .apps .live-menu .on { color: var(--ink); }
.phone .tabs .on .ic, .apps .live-menu .on .ic { background: var(--ink); color: var(--paper, #f8f6f2); }

/* ---------- 1. первый экран: небо → озеро, телефон отъезжает ---------- */
.hero { position: relative; height: 260vh; }
.hero .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .ripple { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transform: translateY(calc((1 - var(--lk, 0)) * 100%)); }
.hero .ripple.on { opacity: 1; }
.hero .sky { background-image: url(img/cover.jpg); background-image: image-set(url(img/cover.webp) type("image/webp"), url(img/cover.jpg) type("image/jpeg")); }
.hero .sky { transform: translateY(calc(var(--lk, 0) * -22vh)) scale(1.06); will-change: transform; }
.hero .lake { background-image: url(img/charvak.jpg); background-image: image-set(url(img/charvak.webp) type("image/webp"), url(img/charvak.jpg) type("image/jpeg")); transform: translateY(calc((1 - var(--lk, 0)) * 100%)); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(4% + (1 - var(--lk, 0)) * 26%)); mask-image: linear-gradient(180deg, transparent 0, #000 calc(4% + (1 - var(--lk, 0)) * 26%)); will-change: transform; }
.hero .title { position: relative; z-index: 2; text-align: center; color: var(--white); display: grid; gap: 36px; justify-items: center; opacity: calc(1 - var(--tx, 0)); filter: blur(calc(var(--tx, 0) * 8px)); transform: translateY(calc(var(--tx, 0) * -40px)); }
.hero .title::before { content: ""; position: absolute; inset: -80px -160px; z-index: -1; background: radial-gradient(closest-side, rgba(70, 35, 20, .32), rgba(70, 35, 20, 0)); }
.hero .title h1 { max-width: 16ch; text-shadow: 0 2px 24px rgba(40, 20, 10, .45); }
.hero .scroll { display: inline-flex; gap: 10px; align-items: center; font: 450 var(--t5)/1 var(--font); }
.hero .scroll svg { width: 14px; height: 14px; }
.js .hero .scroll { animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.hero .phone { position: absolute; left: 50%; top: calc(50% + 30px); z-index: 3; transform-origin: 50% 22%; transform: translate(-50%, calc(-50% + var(--py, 110vh))) scale(var(--ps, 1)); will-change: transform; }

/* ---------- 2, 5, 12. фраза по центру ---------- */
.say { padding: 168px 24px 152px; text-align: center; display: grid; justify-items: center; gap: 22px; }
.say h2 { max-width: 22ch; }
.say p { max-width: 44ch; color: var(--ink-2); }
.say .pill { margin-top: 18px; }
mark { color: transparent; background: linear-gradient(90deg, var(--acc) 0%, var(--acc) 46%, var(--ink-3) 54%, var(--ink-3) 100%); background-size: 220% 100%; background-position: calc((1 - var(--f, 0)) * 100%) 0; -webkit-background-clip: text; background-clip: text; }
.say.small { padding-block: 120px 112px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.facts span { padding: 12px 18px; border-radius: 22px; background: var(--sand); font: 450 var(--t5)/1.2 var(--font); }

/* ---------- 3, 6, 10. карточка во всю ширину (отступ 8, скругление 40, острый угол) ---------- */
.card { position: relative; margin: 0 var(--edge); height: calc(100vh - 2 * var(--edge)); min-height: 640px; max-height: 1000px; border-radius: var(--r) var(--r) var(--r) 0; overflow: hidden; isolation: isolate; color: var(--white); }
.card + .card, .card + .duo, .duo + .card { margin-top: var(--edge); }
.card .ph { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(calc(1.08 - var(--cp, 0) * .08)); }
.card .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 14, 10, .45) 0%, rgba(25, 14, 10, 0) 38%, rgba(25, 14, 10, 0) 62%, rgba(25, 14, 10, .4) 100%); }
.card.shade-left .ph::after { background: linear-gradient(90deg, rgba(25, 14, 10, .55) 0%, rgba(25, 14, 10, .15) 45%, rgba(25, 14, 10, 0) 70%); }
.card .head { position: absolute; left: var(--pad); top: max(88px, calc(var(--pad) + 36px), calc(var(--navh, 0px) + 20px)); display: grid; gap: 14px; max-width: 560px; }
.card .head p { max-width: 36ch; color: rgba(255, 255, 255, .86); }
.card .head .pill { justify-self: start; margin-top: 8px; }
.card .head > .soon, .card .head > .label { justify-self: start; }
.card .persp { position: absolute; left: 50%; bottom: -180px; perspective: 1400px; transform: translateX(-50%); }
.card .persp { bottom: calc(-180px * var(--vk, 1)); }
.card .persp .phone { transform-origin: 50% 100%; transform: rotateX(var(--rx, 38deg)) scale(calc(1.1 * var(--vk, 1))); }

/* чат в карточке «Как с другом» */
.chat { display: flex; flex-direction: column; gap: 10px; }

/* наличные: записки поверх фото */
.notes { position: absolute; right: var(--pad); bottom: var(--pad); width: min(360px, calc(100% - 2 * var(--pad))); display: grid; gap: 10px; }
.notes .bub { max-width: none; background: rgba(255, 255, 255, .88); color: var(--ink); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.notes .bub.me { justify-self: end; background: var(--ink); color: var(--white); }
.notes .rec { display: grid; gap: 4px; }
.notes .rec small { font: 450 12px/1 var(--font); color: var(--ink-2); }
.soon { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(0, 0, 0, .35); color: var(--white); font: 450 var(--t6)/1 var(--font); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.soon.ink { background: var(--sand); color: var(--ink); }

/* ---------- 4. две панели рядом ---------- */
.duo { margin: var(--edge) var(--edge) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--edge); height: calc(100vh - 2 * var(--edge)); min-height: 640px; max-height: 1000px; }
.duo > div { position: relative; border-radius: var(--r); overflow: hidden; isolation: isolate; color: var(--white); display: grid; align-content: end; padding: var(--pad); }
.duo > div:first-child { border-bottom-left-radius: 0; }
.duo > div:last-child { border-bottom-right-radius: 0; }
.duo .ph { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 30%; }
.duo .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 14, 10, 0) 55%, rgba(25, 14, 10, .55) 100%); }
.duo .grad { position: absolute; inset: 0; z-index: -2; background:linear-gradient(rgba(35,20,15,.12),rgba(35,20,15,.58)),url(img/stairs.jpg) center/cover; background-image:linear-gradient(rgba(35,20,15,.12),rgba(35,20,15,.58)),image-set(url(img/stairs.webp) type("image/webp"),url(img/stairs.jpg) type("image/jpeg")); }
.duo h3 { font: 450 var(--t2)/var(--t2l) var(--font); }
.duo .txt { display: grid; gap: 12px; max-width: 30ch; }
.duo .txt p { font: 300 var(--t3)/1.4 var(--font); color: rgba(255, 255, 255, .88); }
.phone.device.morning-phone { --pw: min(250px, 72vw, max(220px, calc((100vh - 300px) * .4737))); }
.morning-phone .lock { position: relative; height: 100%; overflow: hidden; border-radius: 0; padding: 52px 14px 14px; background: linear-gradient(160deg, #f2c8ac, #d88969 54%, #724536); color: #fff; text-align: center; }
.morning-phone .lock-time { font: 300 62px/.95 var(--font); letter-spacing: -.04em; }
.morning-phone .lock-date { margin-top: 8px; font: 450 14px/1.2 var(--font); }
.morning-phone .notifications { display: grid; gap: 8px; margin-top: 34px; text-align: left; }
.morning-phone .notice { display: grid; grid-template-columns: 34px 1fr; gap: 9px; padding: 11px; border-radius: 16px; background: rgba(255,255,255,.88); color: #3a231e; box-shadow: 0 5px 18px rgba(35,18,12,.12); opacity: 0; transform: translateY(-18px); transition: opacity .5s var(--out), transform .5s var(--out); }
.morning-phone .notice.on { opacity: 1; transform: none; }
.morning-phone .notice-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 25%; background: #e98a4b; }
.morning-phone .notice-icon::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.morning-phone .notice-copy { display: grid; gap: 4px; font: 400 11px/1.3 var(--font); }
.morning-phone .notice-copy b { font-size: 12px; font-weight: 600; }
.duo .center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 22px; padding: var(--pad); }
.duo .center:has(.morning-phone) { align-content: start; padding-top: calc(var(--pad) + 8px); }
.duo .bigbub { max-width: 400px; padding: 24px 26px; border-radius: 28px 28px 28px 8px; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font: 300 var(--t3)/1.35 var(--font); color: var(--white); box-shadow: 0 20px 40px -20px rgba(30, 15, 10, .5); }
.duo .bigbub b { font-weight: 450; }
.duo .wave { display: inline-flex; align-items: center; gap: 4px; height: 48px; padding: 0 18px; border-radius: 24px; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.duo .wave i { width: 3px; height: calc(var(--h) * 1px); border-radius: 2px; background: var(--white); }
.js .duo .wave i { animation: wv 1.6s var(--ease) infinite; animation-delay: calc(var(--n) * .08s); }
@keyframes wv { 50% { transform: scaleY(.45); } }

/* ---------- 7. телефон поворачивается из ребра в фас ---------- */
.turn { margin: var(--edge) var(--edge) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--edge); height: calc(100vh - 2 * var(--edge)); min-height: 640px; max-height: 1000px; }
.turn .stagebox { position: relative; border-radius: var(--r) var(--r) var(--r) 0; overflow: hidden; display: grid; place-items: center; perspective: 1600px; background:linear-gradient(rgba(25,14,10,.2),rgba(25,14,10,.48)),url(img/hills.jpg) center/cover; background-image:linear-gradient(rgba(25,14,10,.2),rgba(25,14,10,.48)),image-set(url(img/hills.webp) type("image/webp"),url(img/hills.jpg) type("image/jpeg")); }
.turn .stagebox .phone { transform: rotateY(var(--ry, 82deg)) rotateZ(calc(var(--ry, 82deg) * -.08)) scale(var(--vk, 1)); }
.turn .copy { display: grid; align-content: center; gap: 22px; padding: var(--pad) var(--pad) var(--pad) calc(var(--pad) + 24px); max-width: 600px; }
.turn .copy p { color: var(--ink-2); }
.turn .copy .pill { justify-self: start; }
.ops { display: grid; gap: 2px; margin-top: 6px; }
.ops .r { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 14px; border-radius: 16px; background: rgba(255, 255, 255, .72); }
.ops .r b { font: 450 14px/1.2 var(--font); }
.ops .r span { font: 450 14px/1.2 var(--font); text-align: right; white-space: nowrap; }
.ops .r small { grid-column: 1 / -1; font: 400 12px/1.2 var(--font); color: var(--ink-2); }
.ops .r.in span { color: #2f7d60; }
.ops .r.own { opacity: .62; }


/* ---------- живые демонстрации ---------- */
/* лента «Работает сам»: сырое уведомление банка → чистая карточка */
.feed-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 10px; font: 400 13px/1.2 var(--font); color: var(--ink-2); }
.feed-head b { font: 500 18px/1 var(--font); color: var(--ink); }
.feed { display: grid; gap: 8px; align-content: start; }
.fi { position: relative; overflow: hidden; border-radius: 16px; transition: height .55s var(--out), opacity .5s var(--out), transform .55s var(--out); }
.fi.enter { opacity: 0; transform: translateY(-14px); }
.fi .raw, .fi .card2 { padding: 10px 12px; border-radius: 16px; }
.fi .raw { background: #e9e4de; color: #5d504c; font: 400 11.5px/1.4 var(--font); white-space: pre-line; position: relative; }
.fi.done .raw { visibility:hidden; }
.fi .raw::after { content: ""; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(90deg, rgba(233, 138, 75, 0) 0%, rgba(233, 138, 75, .28) 50%, rgba(233, 138, 75, 0) 100%); transform: translateX(-100%); }
.fi.scan .raw::after { transition: transform .8s var(--ease); transform: translateX(100%); }
.fi .raw small { display: block; margin-bottom: 3px; font: 500 10px/1 var(--font); color: #8b7d78; }
.fi .card2 { position: absolute; inset: 0 0 auto 0; background: rgba(255, 255, 255, .9); display: grid; grid-template-columns: 10px 1fr auto; gap: 2px 10px; align-items: center; opacity: 0; transform: scale(.97); transition: opacity .45s var(--out), transform .45s var(--out); }
.fi .card2 i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; }
.fi .card2 b { font: 500 14px/1.25 var(--font); }
.fi .card2 span { font: 500 14px/1.25 var(--font); text-align: right; white-space: nowrap; }
.fi .card2 small { grid-column: 2 / -1; font: 400 12px/1.2 var(--font); color: var(--ink-2); }
.fi.done .raw { opacity: 0; transition: opacity .3s; }
.fi.done .card2 { opacity: 1; transform: none; }
.fi.inc .card2 span { color: #2f7d60; }
.fi.own .card2 { background: rgba(255, 255, 255, .62); }
.fi.own .card2 b, .fi.own .card2 span { color: var(--ink-2); }

/* сцена «Можно сегодня» */
.live { margin: var(--edge) var(--edge) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--edge); height: calc(100vh - 2 * var(--edge)); min-height: 620px; max-height: 960px; }
.live .copy { display: grid; align-content: center; gap: 22px; padding: var(--pad) var(--pad) var(--pad) calc(var(--pad) + 24px); max-width: 600px; }
.live .copy p { color: var(--ink-2); }
.live .stage2 { position: relative; border-radius: var(--r) var(--r) 0 var(--r); overflow: hidden; background:linear-gradient(rgba(25,14,10,.18),rgba(25,14,10,.42)),url(img/oqshom.jpg) center/cover; background-image:linear-gradient(rgba(25,14,10,.18),rgba(25,14,10,.42)),image-set(url(img/oqshom.webp) type("image/webp"),url(img/oqshom.jpg) type("image/jpeg")); display: grid; place-items: center; }
.today-w { width: min(440px, 82%); padding: 34px 34px 30px; border-radius: 32px; background: rgba(255, 255, 255, .86); box-shadow: 0 40px 80px -40px rgba(80, 40, 20, .45); display: grid; gap: 16px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.today-w .lbl { font: 500 15px/1 var(--font); color: var(--ink-2); }
.today-w .num { font: 400 64px/1 var(--font); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 10px; }
.today-w .num small { font: 400 20px/1 var(--font); color: var(--ink-2); letter-spacing: 0; }
.today-w .num.tick { animation: tick .5s var(--out); }
@keyframes tick { 0% { color: var(--acc); } 100% { color: var(--ink); } }
.today-w .meter { height: 10px; border-radius: 5px; background: rgba(58, 35, 30, .1); overflow: hidden; }
.today-w .meter i { display: block; height: 100%; border-radius: 5px; background: var(--acc); width: var(--used, 38%); transition: width .7s var(--out); }
.today-w .row { display: flex; justify-content: space-between; font: 400 15px/1.3 var(--font); color: var(--ink-2); }
.today-w .row b { font-weight: 500; color: var(--ink); }
.today-w .hist { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line, rgba(58, 35, 30, .12)); min-height: 74px; align-content: start; }
.today-w .hist div { display: flex; justify-content: space-between; font: 400 14px/1.3 var(--font); color: var(--ink-2); animation: rise .5s var(--out); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.toast { position: absolute; right: 28px; top: 96px; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: center; width: min(330px, calc(100% - 56px)); padding: 12px 16px; border-radius: 20px; background: rgba(255, 255, 255, .94); box-shadow: 0 24px 50px -24px rgba(80, 40, 20, .5); opacity: 0; transform: translateY(-16px) scale(.98); transition: opacity .45s var(--out), transform .45s var(--out); }
.toast.on { opacity: 1; transform: none; }
.toast .ic { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; }
.toast .ic svg { display: block; width: 34px; height: 34px; }
.toast b { font: 500 14px/1.2 var(--font); }
.toast span { font: 400 13px/1.3 var(--font); color: var(--ink-2); }
@media (max-width: 760px) {
  .duo .grad { background-image:linear-gradient(rgba(35,20,15,.12),rgba(35,20,15,.58)),url(img/stairs-m.webp); }
  .turn .stagebox { background-image:linear-gradient(rgba(25,14,10,.2),rgba(25,14,10,.48)),url(img/hills-m.webp); }
  .live .stage2 { background-image:linear-gradient(rgba(25,14,10,.18),rgba(25,14,10,.42)),url(img/oqshom-m.webp); }
  .live { grid-template-columns: 1fr; height: auto; max-height: none; min-height: 0; }
  .live .copy { padding: 40px 16px 24px; }
  .live .stage2 { min-height: 560px; }
  .today-w { padding: 26px 22px 22px; }
  .today-w .num { font-size: 48px; }
  .toast { right: 16px; top: 16px; width: calc(100% - 32px); }
}

/* ---------- 8. вкладки: закреплённая сцена ---------- */
.tabs-scene { position: relative; height: 330vh; }
.tabs-scene .stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; gap: var(--edge); padding: var(--edge); }
.tabs-scene .copy { position:relative; display:grid; align-content:center; padding:max(112px,var(--pad)) var(--pad) var(--pad); }
.tabs-scene .copy > div { grid-area: 1 / 1; display: grid; gap: 18px; max-width: 480px; justify-items: start; transition: opacity .7s var(--out), transform .7s var(--out); }
.tabs-scene .copy > div:not(.on) { opacity: 0; transform: translateY(16px); pointer-events: none; }
.tabs-scene .copy p { color: var(--ink-2); }
.tabs-scene .pics { position: relative; border-radius: var(--r) var(--r) 0 var(--r); overflow: hidden; isolation: isolate; }
.tabs-scene .pics .ph { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--out), transform 1.6s var(--out); }
.tabs-scene .pics .ph.on { opacity: 1; transform: none; }
.tabs-scene .pills { position: absolute; z-index: 2; top: 88px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 26px; background: rgba(30, 18, 14, .35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tabs-scene .pills button { position: relative; overflow: hidden; height: 40px; padding: 0 20px; border: 0; border-radius: 20px; background: transparent; color: var(--white); font: 500 var(--t5)/1 var(--font); cursor: pointer; transition: background-color .3s; }
.tabs-scene .pills button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--white); transform-origin: 0 50%; transform: scaleX(var(--tp, 0)); opacity: .9; }
.tabs-scene .pills button[aria-selected="true"] { background: rgba(255, 255, 255, .24); }
.tabs-scene .glass { position: absolute; z-index: 2; left: 32px; bottom: 32px; width: min(360px, calc(100% - 48px)); padding: 18px 20px; border-radius: 24px 24px 24px 6px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--ink); display: grid; gap: 6px; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.tabs-scene .glass:not(.on) { opacity: 0; transform: translateY(12px); }
.tabs-scene .glass small { font: 450 12px/1 var(--font); color: var(--ink-2); }
.tabs-scene .glass b { font: 450 var(--t3)/1.2 var(--font); }
.tabs-scene .glass > span { font: 300 14px/1.35 var(--font); color: var(--ink-2); }

/* ---------- 9. экраны Mini App ---------- */
.apps { padding: 152px 0 128px; overflow: hidden; }
.apps .head { text-align: center; display: grid; justify-items: center; gap: 16px; padding: 0 24px; }
.apps .head p { max-width: 42ch; color: var(--ink-2); }
.apps .row { margin-top: 64px; display: flex; justify-content: center; gap: 28px; padding: 0 24px; }
.apps figure { margin: 0; display: grid; justify-items: center; gap: 44px; }
.apps .phone { --pw: 270px; }
.apps .phone .scr { background: var(--paper); }
.apps figcaption { text-align: center; display: grid; gap: 4px; max-width: 240px; }
.apps figcaption b { font: 600 var(--t4)/1.3 var(--font); }
.apps figcaption span { font: 300 var(--t5)/1.4 var(--font); color: var(--ink-2); }
.apps .live-menu { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 10px 14px; background: #f8f6f2; color: rgba(58, 35, 30, .55); font: 450 8px/1 var(--font); }
.apps .live-menu .ic { width: 30px; height: 20px; border-radius: 10px; }
.apps .live-menu svg { width: 14px; height: 14px; }
.apps .live-menu .on { color: #3a231e; }
.apps .live-menu .on .ic { background: #3a231e; color: #f8f6f2; }

/* ---------- 11а. новое: подписки, копилка, проекты, чат и напоминания ---------- */
/* экран — настоящий скриншот Mini App; телефон «поднимается» из нижнего края панели, фон — персиковый рассвет брендбука */
.news { padding-top: 152px; }
.news > .head { text-align: center; display: grid; justify-items: center; gap: 16px; padding: 0 24px 64px; }
.news > .head p { max-width: 44ch; color: var(--ink-2); }
.feat { margin: var(--edge) var(--edge) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--edge); height: calc(100vh - 2 * var(--edge)); min-height: 640px; max-height: 920px; }
.feat .copy { display: grid; align-content: center; justify-items: start; gap: 20px; padding: var(--pad) var(--pad) var(--pad) calc(var(--pad) + 24px); max-width: 600px; }
.feat.flip .copy { order: 2; }
.feat .copy p { color: var(--ink-2); }
.feat .chips { display: flex; gap: 6px; }
.feat ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.feat li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font: 400 var(--t4)/1.4 var(--font); }
.feat li svg { width: 20px; height: 20px; margin-top: 1px; color: var(--acc); }
.feat .stage3 { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r) var(--r) 0 var(--r); background: linear-gradient(172deg, #ffffff 0%, #fbe7da 46%, #f6caa9 100%); display: grid; justify-items: center; align-items: end; }
.feat.flip .stage3 { border-radius: var(--r) var(--r) var(--r) 0; }
.feat .stage3 .phone { --pw: min(360px, 26vw, calc((100vh - 120px) * .45)); grid-area: 1 / 1; margin-bottom: calc(var(--pw) * -.3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 0 0 calc(var(--pw) * .012) rgba(0, 0, 0, .45), 0 40px 70px -30px rgba(80, 40, 20, .5); }
.feat .stage3 .phone .scr { background: var(--paper); }
.feat .stage3.two .phone.back { transform: translate(-38%, -6%) scale(.86) rotate(-4deg); opacity: .96; }
.feat .stage3.two .phone.front { transform: translateX(26%); }
.feat .notes2 { position: absolute; z-index: 2; top: calc(var(--navh, 76px) + 16px); right: 32px; width: min(340px, calc(100% - 64px)); display: grid; gap: 10px; }
.feat.flip .notes2 { right: auto; left: 32px; }
.feat .note { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: center; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: rgba(255, 255, 255, .94); box-shadow: 0 24px 50px -24px rgba(80, 40, 20, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.feat .note .ic { grid-row: span 2; width: 34px; height: 34px; }
.feat .note .ic svg { display: block; width: 34px; height: 34px; }
.feat .note small { font: 450 12px/1.2 var(--font); color: var(--ink-2); }
.feat .note span { font: 400 14px/1.35 var(--font); }

/* ---------- 11. наклонная карусель ---------- */
.skew { position: relative; height: 320vh; background: var(--paper); }
.skew .stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-content: center; }
.skew .glow { position: absolute; left: 50%; top: 52%; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 138, 75, .5) 0%, rgba(233, 138, 75, .18) 40%, rgba(233, 138, 75, 0) 70%); filter: blur(60px); }
.skew .lab { position: absolute; left: 0; right: 0; top: 72px; padding: 0 24px; text-align: center; color: var(--ink); }
.skew .track { position: relative; height: 500px; perspective: 1400px; transform: scale(var(--vk, 1)); }
.skew .it { position: absolute; left: 50%; top: 0; width: 360px; height: 500px; margin-left: -180px; border-radius: 32px; overflow: hidden; color: var(--white); display: grid; align-content: end; padding: 24px; transform: translateX(calc(var(--x) * 410px)) rotateY(calc(var(--x) * -22deg)) scale(calc(1 - min(1, abs(var(--x))) * .1)); transform-style: preserve-3d; isolation: isolate; }
.skew .it .ph { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.skew .it .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 14, 10, 0) 40%, rgba(25, 14, 10, .7) 100%); }
.skew .it p { display: grid; gap: 10px; font: 300 var(--t4)/1.35 var(--font); }
.skew .it p b { font: 600 var(--t3)/1.15 var(--font); letter-spacing: -0.01em; }

/* ---------- 13. тарифы ---------- */
.prices { padding: 0 var(--edge) 0; }
.prices .head { text-align: center; display: grid; justify-items: center; gap: 16px; padding: 152px 24px 56px; }
.prices .head p { max-width: 46ch; color: var(--ink-2); }
.prices .grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: var(--edge); max-width: 1040px; margin: 0 auto; align-items: stretch; }
.price { position: relative; border-radius: 36px; background: var(--sand); padding: 40px 40px 36px; display: grid; gap: 18px; grid-template-rows: auto auto auto 1fr auto; }
.price.main { background: var(--ink); color: var(--white); box-shadow: 0 40px 80px -48px rgba(30, 15, 10, .6); }
.price .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price .top h3 { font: 600 var(--t3)/1.2 var(--font); }
.price .badge { padding: 7px 14px; border-radius: 999px; background: var(--acc); color: var(--white); font: 500 14px/1 var(--font); white-space: nowrap; }
.price .badge.soft { background: rgba(58, 35, 30, .08); color: var(--ink-2); }
.price .val { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .val b { font: 600 clamp(44px, 5vw, 64px)/1 var(--font); letter-spacing: -.03em; }
.price .val span { font: 400 var(--t5)/1 var(--font); opacity: .7; }
.price .sub { font: 400 15px/1.4 var(--font); opacity: .72; margin-top: -6px; }
.price ul { margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(58, 35, 30, .12); list-style: none; display: grid; align-content: start; gap: 12px; font: 400 16px/1.4 var(--font); }
.price.main ul { border-top-color: rgba(255, 255, 255, .14); }
.price li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.price li svg { width: 20px; height: 20px; color: var(--acc); margin-top: 1px; }
.price .pill { margin-top: 10px; width: 100%; }
.price.main .pill { background: var(--white); color: var(--ink); }
.price .pill.line { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(58, 35, 30, .22); color: var(--ink); }
/* «Семья» идёт полосой под двумя тарифами: третья колонка сжала бы списки базового и Плюса */
.price.family { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto auto auto 1fr; column-gap: 48px; }
.price.family > * { grid-column: 1; }
.price.family > ul { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 0 0 0 40px; border-top: 0; border-left: 1px solid rgba(58, 35, 30, .12); align-content: center; }
.prices .trust { list-style: none; margin: 28px auto 0; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--edge); }
.prices .trust li { display: grid; gap: 6px; padding: 22px 24px; border-radius: 24px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(58, 35, 30, .08); }
.prices .trust b { font: 600 16px/1.3 var(--font); }
.prices .trust span { font: 400 14px/1.45 var(--font); color: var(--ink-2); }

.faq { padding: 152px var(--edge) 0; }
.faq .panel { max-width: 1120px; margin: 0 auto; border-radius: 48px; background: var(--sand); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq .side { position: sticky; top: 110px; display: grid; gap: 18px; justify-items: start; }
.faq .side p { color: var(--ink-2); max-width: 30ch; }
.faq .list { display: grid; }
.faq details { border-bottom: 1px solid rgba(58, 35, 30, .14); }
.faq details:first-child { border-top: 1px solid rgba(58, 35, 30, .14); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 2px; cursor: pointer; font: 500 var(--t4)/1.35 var(--font); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 8px; }
.faq summary i { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); flex: none; transition: background-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; border-radius: 1px; background: var(--ink); transition: transform .4s var(--ease), background-color .3s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open]:not(.closing) summary i { background: var(--ink); }
.faq details[open]:not(.closing) summary i::before, .faq details[open]:not(.closing) summary i::after { background: var(--paper); }
.faq details[open]:not(.closing) summary i::after { transform: rotate(0deg); }
.faq .a { overflow: hidden; }
.faq .a p { margin: 0 0 22px; padding-right: 52px; font: 400 16px/1.6 var(--font); color: var(--ink-2); max-width: 62ch; }

/* ---------- 15. начать ---------- */
.start { margin-top: 152px; padding: 128px 24px 140px; background: linear-gradient(180deg, var(--paper) 0%, #f4e2d5 100%); }
.start .in-wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.start .copy { display: grid; gap: 28px; justify-items: center; text-align: center; }
.start .tg-wrap { transform: rotate(7deg); }
.start .tg { width: 260px; padding: 26px; border-radius: 32px; background: var(--white); box-shadow: 0 30px 60px -30px rgba(58, 35, 30, .45); display: grid; gap: 14px; justify-items: center; text-align: center; }
.start .tg .ava { width: 84px; height: 84px; display: grid; place-items: center; }
.start .tg .ava svg { display: block; width: 84px; height: 84px; }
.start .tg b { font: 450 var(--t4)/1 var(--font); }
.start .tg span { font: 300 var(--t5)/1.35 var(--font); color: var(--ink-2); }

/* ---------- 16. подвал ---------- */
.foot { margin: 0 var(--edge); border-radius: var(--r) var(--r) 0 0; background: #2a1915; color: var(--white); padding: 56px var(--pad) 40px; display: grid; gap: 56px; }
.foot .top { display: grid; grid-template-columns: auto 1fr auto auto; gap: 56px; align-items: start; }
.foot .logo { justify-self: start; height: 44px; padding: 0 16px; border-radius: 22px; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; font: 600 22px/1 var(--font); letter-spacing: -0.04em; }
.foot nav { display: grid; gap: 10px; font: 300 var(--t6)/1.3 var(--font); }
.foot nav b { font-weight: 450; margin-bottom: 4px; }
.foot nav a { color: rgba(255, 255, 255, .78); }
.foot .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 300 var(--t6)/1.3 var(--font); color: rgba(255, 255, 255, .6); }

/* фото */
.p-mama { background-image: url(img/mama.jpg); background-image: image-set(url(img/mama.webp) type("image/webp"), url(img/mama.jpg) type("image/jpeg")); }
.p-bazaar { background-image: url(img/bazaar.jpg); background-image: image-set(url(img/bazaar.webp) type("image/webp"), url(img/bazaar.jpg) type("image/jpeg")); }
.p-tong { background-image: url(img/tong.jpg); background-image: image-set(url(img/tong.webp) type("image/webp"), url(img/tong.jpg) type("image/jpeg")); }
.p-park { background-image: url(img/park.jpg); background-image: image-set(url(img/park.webp) type("image/webp"), url(img/park.jpg) type("image/jpeg")); }
.p-kitchen { background-image: url(img/kitchen.jpg); background-image: image-set(url(img/kitchen.webp) type("image/webp"), url(img/kitchen.jpg) type("image/jpeg")); }
.p-bakery { background-image: url(img/bakery.jpg); background-image: image-set(url(img/bakery.webp) type("image/webp"), url(img/bakery.jpg) type("image/jpeg")); }
.p-stairs { background-image: url(img/stairs.jpg); background-image: image-set(url(img/stairs.webp) type("image/webp"), url(img/stairs.jpg) type("image/jpeg")); }
.p-metro { background-image: url(img/metro.jpg); background-image: image-set(url(img/metro.webp) type("image/webp"), url(img/metro.jpg) type("image/jpeg")); }
.p-cafe { background-image: url(img/cafe.jpg); background-image: image-set(url(img/cafe.webp) type("image/webp"), url(img/cafe.jpg) type("image/jpeg")); }
.p-oqshom { background-image: url(img/oqshom.jpg); background-image: image-set(url(img/oqshom.webp) type("image/webp"), url(img/oqshom.jpg) type("image/jpeg")); }
.p-tun { background-image: url(img/tun.jpg); background-image: image-set(url(img/tun.webp) type("image/webp"), url(img/tun.jpg) type("image/jpeg")); }
@media (max-width: 760px) {
  .hero .sky { background-image: image-set(url(img/cover-m.webp) type("image/webp"), url(img/cover.jpg) type("image/jpeg")); }
  .hero .lake { background-image: image-set(url(img/charvak-m.webp) type("image/webp"), url(img/charvak.jpg) type("image/jpeg")); }
  .p-mama { background-image: image-set(url(img/mama-m.webp) type("image/webp"), url(img/mama.jpg) type("image/jpeg")); }
  .p-bazaar { background-image: image-set(url(img/bazaar-m.webp) type("image/webp"), url(img/bazaar.jpg) type("image/jpeg")); }
  .p-tong { background-image: image-set(url(img/tong-m.webp) type("image/webp"), url(img/tong.jpg) type("image/jpeg")); }
  .p-park { background-image: image-set(url(img/park-m.webp) type("image/webp"), url(img/park.jpg) type("image/jpeg")); }
  .p-kitchen { background-image: image-set(url(img/kitchen-m.webp) type("image/webp"), url(img/kitchen.jpg) type("image/jpeg")); }
  .p-bakery { background-image: image-set(url(img/bakery-m.webp) type("image/webp"), url(img/bakery.jpg) type("image/jpeg")); }
  .p-stairs { background-image: image-set(url(img/stairs-m.webp) type("image/webp"), url(img/stairs.jpg) type("image/jpeg")); }
  .p-metro { background-image: image-set(url(img/metro-m.webp) type("image/webp"), url(img/metro.jpg) type("image/jpeg")); }
  .p-cafe { background-image: image-set(url(img/cafe-m.webp) type("image/webp"), url(img/cafe.jpg) type("image/jpeg")); }
  .p-oqshom { background-image: image-set(url(img/oqshom-m.webp) type("image/webp"), url(img/oqshom.jpg) type("image/jpeg")); }
  .p-tun { background-image: image-set(url(img/tun-m.webp) type("image/webp"), url(img/tun.jpg) type("image/jpeg")); }
}

/* ---------- телефон и планшет ---------- */
@media (max-width: 1100px) {
  .apps .row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .apps .row::-webkit-scrollbar { display: none; }
  .apps figure { scroll-snap-align: center; flex: none; }
}
@media (max-width: 760px) {
  .prices .grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .prices .trust { grid-template-columns: 1fr; max-width: 520px; }
  .price { padding: 32px 26px 28px; }
  .price.family { grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr auto; }
  .price.family > ul { grid-column: 1; grid-row: auto; margin: 6px 0 0; padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(58, 35, 30, .12); }
  .apps .row { flex-direction: column; align-items: center; overflow: visible; padding: 0 16px; }
  .apps figure { width: 100%; }
  .apps .phone { --pw: min(270px, calc(100vw - 80px)); }
  .phone.device.morning-phone { --pw: min(240px, 64vw); }
  .say { padding: 112px 20px 100px; }
  .card { height: 680px; min-height: 0; }
  .card .persp { bottom: -230px; }
  .card .persp .phone { transform: rotateX(var(--rx, 38deg)) scale(.92); }
  .duo { grid-template-columns: 1fr; height: auto; max-height: none; min-height: 0; }
  .duo > div { min-height: 560px; }
  .duo > div:has(.morning-phone) { min-height: 740px; }
  .duo > div:first-child { border-bottom-left-radius: var(--r); border-top-right-radius: var(--r); }
  .turn { grid-template-columns: 1fr; }
  .turn .stagebox { min-height: 620px; }
  .turn .stagebox .phone { transform: rotateY(var(--ry, 82deg)) scale(.82); }
  .turn .copy { padding: 40px 16px 24px; }
  .news { padding-top: 112px; }
  .news > .head { padding-bottom: 40px; }
  .feat { grid-template-columns: 1fr; height: auto; max-height: none; min-height: 0; }
  .feat.flip .copy { order: 0; }
  .feat .copy { padding: 40px 16px 24px; }
  .feat .stage3, .feat.flip .stage3 { min-height: 660px; border-radius: var(--r) var(--r) var(--r) 0; }
  .feat .stage3 .phone { --pw: min(270px, 68vw); }
  .feat .stage3.two .phone.back { transform: translate(-30%, -4%) scale(.84) rotate(-4deg); }
  .feat .stage3.two .phone.front { transform: translateX(18%); }
  .feat .notes2, .feat.flip .notes2 { top: 20px; left: 16px; right: 16px; width: auto; }
  .tabs-scene { height: auto; }
  .tabs-scene .stick { position: static; height: auto; grid-template-columns: 1fr; padding: var(--edge); }
  .tabs-scene .copy { padding:max(104px, calc(var(--navh, 0px) + 24px)) 16px 8px; }
  .tabs-scene .pics { height: 560px; }
  .tabs-scene .pills { top: 14px; max-width: calc(100% - 28px); }
  .tabs-scene .pills button { padding: 0 14px; }
  .skew { height: auto; }
  .skew .it p b { font-size: 22px; }
  .skew .stick { position: static; height: auto; padding: 96px 0 40px; }
  .skew .lab { position: static; padding: 0 20px 28px; }
  .skew .track { height: auto; perspective: none; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 8px; scrollbar-width: none; }
  .skew .track::-webkit-scrollbar { display: none; }
  .skew .it { position: relative; left: auto; margin: 0; flex: none; width: 280px; height: 400px; transform: none; scroll-snap-align: center; }
  .skew .glow { left: 0; width: 100%; height: 420px; margin: -210px 0 0; }
  .faq .panel { border-radius: 32px; grid-template-columns: 1fr; }
  .faq .side { position: static; }
  .faq .a p { padding-right: 0; }
  .start { padding: 96px 20px 110px; margin-top: 112px; }
  .start .in-wrap { grid-template-columns: 1fr; }
  .start .tg { justify-self: center; }
  .foot .top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot .top > :first-child, .foot .top > p { grid-column: 1 / -1; }
}

/* без анимаций и без JS: всё в итоговом положении */
html:not(.js) .hero { height: auto; }
html:not(.js) .hero .stage { position: relative; height: auto; min-height: 100vh; padding: 140px 0 64px; display: grid; gap: 64px; }
html:not(.js) .hero .phone { position: relative; left: auto; top: auto; transform: none; }
html:not(.js) .hero .lake { opacity: 0; }
html:not(.js) mark { color: var(--acc); background: none; }
html:not(.js) .card .persp .phone { transform: scale(1.18); }
html:not(.js) .turn .stagebox .phone { transform: none; }
html:not(.js) .tabs-scene { height: auto; }
html:not(.js) .tabs-scene .stick { position: static; height: auto; grid-template-columns: 1fr; }
html:not(.js) .tabs-scene .copy > div, html:not(.js) .tabs-scene .glass { position: static; opacity: 1; filter: none; transform: none; margin-bottom: 24px; }
html:not(.js) .tabs-scene .pics { height: 480px; }
html:not(.js) .tabs-scene .pills { display: none; }
html:not(.js) .skew { height: auto; }
html:not(.js) .skew .stick { position: static; height: auto; padding: 96px 0 40px; }
html:not(.js) .skew .lab { position: static; padding: 0 24px 28px; }
html:not(.js) .skew .track { height: auto; perspective: none; display: flex; gap: 12px; overflow-x: auto; padding: 0 24px; }
html:not(.js) .skew .it { position: relative; left: auto; margin: 0; flex: none; transform: none; }
/* бывшие inline-атрибуты стилей (SOMLY-337): CSP лендинга их запрещает */
.bg-acc { background: #e98a4b; }
.d06 { --d: .06s; }
.d08 { --d: .08s; }
.d10 { --d: .1s; }
.d12 { --d: .12s; }
.d14 { --d: .14s; }
.d16 { --d: .16s; }
.d20 { --d: .2s; }
.d30 { --d: .3s; }
.d35 { --d: .35s; }
.d40 { --d: .4s; }
.d60 { --d: .6s; }
.h52 { height: 52px; }
.k0 { --k: 0; }
.k4 { --k: .4; }
.sprite { position: absolute; }
.card .ph.bp70 { background-position: 70% center; }

/* ---------- голос бренда: подписки, чаты бота и соцсети (SOMLY-358) ---------- */
/* подписки стоят сразу после демо «Можно сегодня»: отступ меньше, чем у раздела с заголовком */
.subs-sec { padding-top: 64px; }

/* ---------- чаты ---------- */
.chats { padding: 152px var(--edge) 96px; }
.chats .head, .social .head { text-align: center; display: grid; justify-items: center; gap: 16px; padding: 0 24px 56px; }
.chats .head h2, .social .head h2 { max-width: 24ch; }
.chats .head p, .social .head p { max-width: 46ch; color: var(--ink-2); }
.tg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--edge); max-width: 1320px; margin: 0 auto; }
.tgw { display: grid; grid-template-rows: auto 1fr auto; border-radius: var(--r); overflow: hidden; background: linear-gradient(172deg, #ffffff 0%, #fbe7da 46%, #f6caa9 100%); }
.tgw-top { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 18px 22px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tgw-top .ava, .post-top .ava { grid-row: span 2; width: 40px; height: 40px; }
.tgw-top .ava svg, .post-top .ava svg { display: block; width: 100%; height: 100%; }
.tgw-top b, .post-top b { font: 600 var(--t5)/1.2 var(--font); }
.tgw-top small, .post-top small { font: 300 var(--t6)/1.3 var(--font); color: var(--ink-2); }
.tgw-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 18px 26px; }
.msg { position: relative; max-width: 92%; padding: 12px 14px 22px; border-radius: 20px 20px 20px 6px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 36px -24px rgba(80, 40, 20, .45); font: 400 14.5px/1.4 var(--font); }
.msg p { margin: 0; }
.msg b { font-weight: 600; }
.msg .gap { margin-top: 8px; color: var(--ink-2); }
.msg .joke { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ink-3); }
.msg time { position: absolute; right: 12px; bottom: 6px; font: 300 11px/1 var(--font); color: var(--ink-2); }
.tgw-cap { margin: 0; padding: 0 22px 22px; font: 450 var(--t5)/1.3 var(--font); color: var(--ink-2); }

/* ---------- соцсети и статьи ---------- */
.social { padding: 152px var(--edge) 96px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--edge); max-width: 1180px; margin: 0 auto; align-items: start; }
.post { display: grid; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--white); box-shadow: 0 30px 60px -40px rgba(80, 40, 20, .35); }
.posts .post:nth-child(3n+2) { margin-top: 64px; }
.post-top { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.post-art { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: end; justify-items: start; gap: 12px; aspect-ratio: 4 / 5; padding: 24px; border-radius: calc(var(--r) - 12px); color: var(--white); font: 600 clamp(24px, 2.2vw, 32px)/1.12 var(--font); letter-spacing: -0.015em; }
.post-art p { margin: 0; }
.post-art .nw { white-space: nowrap; }
.post-art i { position: absolute; top: 18px; left: 18px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); font: 500 var(--t6)/1.2 var(--font); font-style: normal; letter-spacing: 0; }
.post-art ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; width: 100%; font: 450 var(--t5)/1.3 var(--font); letter-spacing: 0; }
.post-art li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .16); }
.post-art li:first-child { background: rgba(255, 255, 255, .32); }
.post-art em { font-style: normal; font-weight: 600; }
.post-art .ph { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.post-art .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 14, 10, .1) 30%, rgba(25, 14, 10, .78) 100%); }
.post-art.a2 { background: radial-gradient(120% 90% at 85% 0%, #8a4f36 0%, #3a231e 60%); align-content: center; font-size: clamp(28px, 2.8vw, 40px); }
.post-art.a3 { background: linear-gradient(160deg, #6b8e3a 0%, #3f5f1f 100%); align-content: start; padding-top: 64px; aspect-ratio: auto; }
.post-art.a4 { background: linear-gradient(160deg, #f6caa9 0%, #e98a4b 100%); color: var(--ink); }
.post-art.a4 i, .post-art.a6 i { background: rgba(58, 35, 30, .1); }
.post-art.a6 { background: var(--sand); color: var(--ink); }
/* «Мудрость дня»: строгий чёрно-белый кадр и серьёзный тон, шутка в самой фразе */
.post-art.a7 { background: #1d1716; }
.post-art.a7 .ph { filter: grayscale(1) contrast(1.15); }
.post-art.a7 p, .post-art.a8 p { font-style: italic; }
.post-art.a8 { background: #1d1716; align-content: center; font-size: clamp(28px, 2.8vw, 40px); }
.post-art.a9 { background: var(--acc); align-content: center; }
.post-art .big { font: 600 clamp(48px, 5vw, 72px)/1 var(--font); letter-spacing: -0.03em; color: var(--acc); }
.post-re { display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid rgba(58, 35, 30, .08); font: 450 var(--t6)/1.2 var(--font); color: var(--ink-2); }
.post-txt { margin: 0; font: 400 var(--t5)/1.45 var(--font); }
.post-reply { display: grid; gap: 8px; font: 400 var(--t5)/1.4 var(--font); }
.post-reply p { margin: 0; padding: 10px 12px; border-radius: 16px 16px 16px 6px; background: var(--sand); }
.post-reply p:last-child { margin-left: 18px; background: rgba(233, 138, 75, .16); }
.post-reply b { font-weight: 600; }

@media (max-width: 1100px) {
  .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts .post:nth-child(3n+2) { margin-top: 0; }
  .posts .post:nth-child(2n) { margin-top: 48px; }
}
@media (max-width: 767px) {
  .subs-sec { padding-top: 24px; }
  .chats, .social { padding: 112px var(--edge) 64px; }
  .chats .head, .social .head { padding: 0 16px 40px; }
  .tg-grid { grid-template-columns: 1fr; }
  .posts { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--edge) * -1); padding: 0 var(--edge) 12px; scrollbar-width: none; }
  .posts::-webkit-scrollbar { display: none; }
  .posts .post { flex: none; width: 82vw; max-width: 340px; scroll-snap-align: center; }
  .posts .post:nth-child(n) { margin-top: 0; }
  .post-art { font-size: 24px; }
}
