/* ================================
   Sonder — landing (shares its language with zerikc.ru)
   ================================ */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: block;
  src: url(../assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: block;
  src: url(../assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: block;
  src: url(../assets/fonts/inter-latin.woff2) format('woff2');
  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: #0a0a0b;
  --bg-2: #131315;
  --text: #ededea;
  --dim: #8d8d93;
  --line: rgba(237, 237, 234, .14);
  --line-2: rgba(237, 237, 234, .3);
  --c: #0a84ff;
  --pad: clamp(20px, 3.6vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2f1ee;
  --bg-2: #e9e8e4;
  --text: #0e0e10;
  --dim: #5f5f65;
  --line: rgba(14, 14, 16, .14);
  --line-2: rgba(14, 14, 16, .32);
  --c: #0066d6;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c); color: #fff; }
.mono { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.dim { color: var(--dim); }
.label { color: var(--dim); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); }
.skip:focus { top: 12px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: space-between; padding: 20px var(--pad); background: var(--bg); transition: transform 1s var(--ease-io); }
.loader.done { transform: translateY(-100%); }
.skip-loader .loader, .no-js .loader { display: none; }
html:not(.js) .loader { display: none; }
.loader-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; }
.loader-num { align-self: flex-end; font-size: clamp(90px, 22vw, 320px); line-height: .85; font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.loader-num small { font-size: .3em; font-weight: 500; letter-spacing: 0; margin-left: .1em; }

/* ---------- cursor, progress ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 180; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; transition: scale .35s var(--ease); }
  .cursor.big { scale: 3.4; }
}
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 130; background: var(--c); transform: scaleX(0); transform-origin: left; }

/* ---------- top bar ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 120; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px var(--pad); }
.bar::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 34px); z-index: -1; pointer-events: none; background: linear-gradient(color-mix(in srgb, var(--bg) 88%, transparent), transparent); }
.bar-brand { font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.bar-brand i { font-style: normal; color: var(--c); }
.bar-nav { display: flex; gap: 6px; }
.bar-nav a { position: relative; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.bar-nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.bar-nav a.active::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .bar-nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.bar-tools { display: flex; gap: 8px; justify-self: end; }
.chip { height: 34px; min-width: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 99px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; display: grid; place-items: center; transition: background .3s, color .3s; }
@media (hover: hover) { .chip:hover { background: var(--text); color: var(--bg); } }
.theme-dot { display: block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.motion-ico { display: block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
#motionBtn[aria-pressed="true"] .motion-ico { width: 0; height: 0; margin-left: 2px; border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.bar-menu { display: none; }
.menu-ico { display: block; width: 14px; height: 8px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: 84px var(--pad) 28px; overflow: hidden; isolation: isolate; }
.crowd { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-top { display: flex; justify-content: space-between; gap: 20px; color: var(--dim); }
.hero-hint { text-align: center; }
.mega { font-size: min(26.6vw, 58svh); line-height: .86; font-weight: 800; letter-spacing: -.065em; margin-left: -.05em; white-space: nowrap; user-select: none; pointer-events: none; font-variation-settings: normal; will-change: transform; }
.ch { display: inline-block; }
.js .ch { transform: translateY(105%); clip-path: inset(-20% -20% 0 -20%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.js .ready .ch, .ready.ch { transform: none; }
.hero-bottom { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: clamp(20px, 4vw, 70px); align-items: end; }
.define { max-width: 40ch; font-size: 15px; line-height: 1.45; color: var(--dim); }
.define b { color: var(--text); font-weight: 600; }
.define .mono { text-transform: none; }
.hero-lead { max-width: 26ch; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -.015em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store img { height: 44px; width: auto; transition: transform .5s var(--ease); }
@media (hover: hover) { .store:hover img { transform: translateY(-3px); } }

.whisper { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s; will-change: transform; }
.whisper.on { opacity: 1; }
.whisper span { display: block; width: max-content; max-width: min(340px, calc(100vw - 24px)); padding: 8px 13px; border-radius: 16px 16px 16px 4px; background: var(--c); color: #fff; font-size: 14px; line-height: 1.3; }
.whisper.flip span { border-radius: 16px 16px 4px 16px; }

/* ---------- story ---------- */
.story { padding: clamp(100px, 16vw, 230px) var(--pad); display: grid; gap: clamp(30px, 5vw, 70px); }
.statement { max-width: 22em; margin-left: clamp(0px, 16vw, 300px); font-size: clamp(30px, 4.9vw, 82px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
.statement .w { opacity: .16; transition: opacity .4s; }
.statement .w.on { opacity: 1; }
html:not(.js) .statement .w { opacity: 1; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px); margin-left: clamp(0px, 16vw, 300px); max-width: 860px; color: var(--dim); }

/* ---------- talk: pinned phone, the scroll writes the conversation ---------- */
.talk { position: relative; height: 620svh; border-top: 1px solid var(--line); }
.talk-pin { position: sticky; top: 0; height: 100svh; padding: 84px var(--pad) 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(30px, 5vw, 90px); align-items: center; overflow: clip;
  background: radial-gradient(760px 620px at 82% 50%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); }
.talk-side { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.steps { display: grid; gap: 6px; }
.steps li { position: relative; color: var(--dim); opacity: .42; transition: opacity .5s, color .5s; }
.steps h2 { font-size: clamp(34px, 6.2vw, 110px); line-height: 1; letter-spacing: -.05em; font-weight: 800; }
.steps p { display: grid; max-width: 46ch; max-height: 0; overflow: hidden; opacity: 0; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.4; transition: max-height .6s var(--ease), opacity .5s, margin .6s var(--ease); }
.steps li.on { color: var(--text); opacity: 1; }
.steps li.on p { max-height: 9em; opacity: 1; margin: 12px 0 16px; }
html:not(.js) .talk { height: auto; }
html:not(.js) .talk-pin { position: static; height: auto; }
html:not(.js) .steps li { opacity: 1; }
html:not(.js) .steps p { max-height: none; opacity: 1; }
.talk-note { position: absolute; left: var(--pad); bottom: 22px; color: var(--dim); font-size: 11px; }

.phone { position: relative; height: min(82svh, 760px); aspect-ratio: 1350 / 2760; justify-self: end; }
.phone .hole { position: absolute; left: 5.3333%; top: 2.5%; width: 89.3333%; height: 95%; border-radius: 15.57% / 7.16%; overflow: hidden; background: #000; container-type: inline-size; }
.phone .bezel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; user-select: none; }
.ui { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 4.1cqw; line-height: 1.28; color: #fff; }
.ui-status { flex: none; padding: 1.3em 2.2em 0; font-weight: 600; font-size: .95em; height: 3.5em; }
.ui-nav { flex: none; display: grid; grid-template-columns: 2.6em 1fr 2.6em; align-items: center; padding: 0 .7em .6em; border-bottom: 1px solid #1f1f21; }
.ui-back { color: #0a84ff; font-size: 1.9em; line-height: 1; font-weight: 300; padding-left: .2em; }
.ui-who { text-align: center; min-width: 0; }
.ui-who b { display: block; font-weight: 600; font-size: 1.05em; }
.ui-who span { display: block; font-size: .72em; color: #8e8e93; }
.ui-av { justify-self: end; width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; font-weight: 600; background: #ff8a3d; transition: background .4s; }
.ui-view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.feed { position: absolute; left: 0; right: 0; bottom: 0; padding: .7em .75em .4em; display: flex; flex-direction: column; gap: .4em; transition: transform .6s var(--ease), opacity .4s; }
.feed[hidden] { display: none; }
.feed > [data-b], .react[data-b] { display: none; }
.feed > .show { display: block; animation: pop .55s var(--ease) both; }
.feed > .typing.show { display: flex; }
.react.show { display: block; animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(.8em) scale(.94); } to { opacity: 1; transform: none; } }
.bub { position: relative; width: fit-content; max-width: 78%; padding: .45em .8em; border-radius: 1.15em; }
.bub.in { align-self: flex-start; background: #262629; }
.bub.out { align-self: flex-end; background: #0a84ff; }
.feed > .bub.in { margin-right: auto; }
.feed > .bub.out { margin-left: auto; }
.bub time, .photo time { display: block; text-align: right; font-size: .66em; opacity: .7; margin-top: .1em; }
.from { display: block; font-size: .8em; font-weight: 600; }
.quote { border-left: .18em solid #30d158; background: rgba(255, 255, 255, .08); border-radius: .5em; padding: .3em .55em; margin-bottom: .35em; font-size: .84em; }
.quote b { display: block; color: #30d158; font-size: .92em; }
.react { position: absolute; left: .6em; bottom: -.85em; padding: .05em .4em; border-radius: 99px; background: #1c1c1e; border: .12em solid #000; font-size: .8em; font-style: normal; }
.bub:has(.react.show) { margin-bottom: .8em; }
.typing { align-self: flex-start; width: fit-content; gap: .25em; padding: .8em .85em; border-radius: 1.15em; background: #262629; }
.typing i { width: .42em; height: .42em; border-radius: 50%; background: #8e8e93; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.voice-row { display: flex; align-items: center; gap: .55em; min-width: 12em; }
.play { flex: none; width: 2.1em; height: 2.1em; border-radius: 50%; background: #fff; color: #0a84ff; display: grid; place-items: center; font-size: .82em; }
.wave { flex: 1; display: flex; align-items: center; gap: .12em; height: 1.7em; }
.wave u { flex: 1; min-width: 0; border-radius: 1em; background: #fff; opacity: .5; transition: opacity .25s; transition-delay: calc(var(--i) * 60ms); }
.voice.on .wave u { opacity: 1; }
.photo { position: relative; align-self: flex-end; margin-left: auto; width: 74%; aspect-ratio: 5 / 6; border-radius: 1.15em; overflow: hidden; background: radial-gradient(40% 34% at 72% 26%, #ffe2a8, transparent 70%), linear-gradient(170deg, #ff9b6a 0, #d4537e 44%, #3b2a78 66%, #14142f 100%); }
.photo::after { content: ''; position: absolute; left: -20%; right: -20%; bottom: -14%; height: 44%; border-radius: 50%; background: #0a0a18; }
.photo time { position: absolute; z-index: 1; right: .6em; bottom: .5em; padding: .1em .55em; border-radius: 99px; background: rgba(0, 0, 0, .45); opacity: 1; }
.ring { position: absolute; z-index: 1; left: 50%; top: 50%; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%; border: .22em solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin 1s linear infinite; transition: opacity .3s; }
.photo.on .ring { opacity: 0; }
@keyframes spin { to { rotate: 360deg; } }
.sys { align-self: center; margin: 0 auto .4em; width: fit-content; padding: .2em .75em; border-radius: 99px; background: #1c1c1e; color: #8e8e93; font-size: .76em; }
.ui-comp { flex: none; display: flex; gap: .55em; align-items: center; padding: .55em .75em 2.1em; }
.ui-plus { flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: #38383a; display: grid; place-items: center; font-size: 1.05em; font-weight: 300; }
.ui-field { flex: 1; min-width: 0; height: 2.35em; border-radius: 1.2em; background: #1c1c1e; color: #8e8e93; display: flex; align-items: center; padding: 0 .9em; }

/* ---------- more ---------- */
.more { padding: clamp(70px, 10vw, 140px) var(--pad); }
.more-list { border-top: 1px solid var(--line); }
.more-list li { display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: baseline; padding: clamp(20px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.more-list .mono { color: var(--dim); }
.more-list h3 { font-size: clamp(26px, 3.6vw, 56px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; }
.more-list p { max-width: 44ch; color: var(--dim); }

/* ---------- trust ---------- */
.trust { padding: clamp(50px, 7vw, 90px) var(--pad) 0; }
.trust-head { display: grid; gap: 14px; margin-bottom: clamp(30px, 5vw, 60px); }
.trust-sub { max-width: 30ch; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; }
.card { position: sticky; top: calc(84px + var(--i) * 18px); min-height: min(72svh, 620px); margin-bottom: 26px; padding: clamp(24px, 4vw, 56px); border-radius: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, var(--bg)), color-mix(in srgb, var(--c) 8%, var(--bg)) 70%); }
.card h2 { max-width: 13em; font-size: clamp(38px, 7.4vw, 130px); line-height: .95; letter-spacing: -.055em; font-weight: 800; }
.card p { max-width: 54ch; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.42; }
.card a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- closing ---------- */
.get { display: grid; gap: 30px; padding: clamp(110px, 16vw, 230px) var(--pad); justify-items: start; }
.quote-big { max-width: 13em; font-size: clamp(42px, 8.6vw, 160px); line-height: .95; letter-spacing: -.055em; font-weight: 800; }
.quote-big .w { display: inline-block; opacity: 0; transform: translateY(.3em); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.quote-big.in .w, html:not(.js) .quote-big .w { opacity: 1; transform: none; }

.foot { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; padding: 22px var(--pad) 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 26px; }
@media (hover: hover) { .foot a:hover { color: var(--text); } }

.js .fade { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .fade.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 1000px) {
  .hero-bottom { grid-template-columns: 1fr 1fr; }
  .hero-bottom .stores { grid-column: 1 / -1; }
  .talk-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding: 70px var(--pad) 26px; }
  .phone { order: -1; justify-self: center; height: 100%; max-height: 100%; min-height: 0; }
  .talk-side { align-self: end; display: block; min-height: 8.6em; }
  .talk-side .label { display: none; }
  .steps { position: relative; }
  .steps li { position: absolute; left: 0; right: 0; top: 0; opacity: 0; }
  .steps li.on { position: relative; }
  .steps h2 { font-size: clamp(30px, 8vw, 54px); }
  .steps li.on p { margin: 6px 0 0; }
  .talk-note { bottom: 7px; font-size: 10px; }
  .more-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .more-list p { grid-column: 2; }
}
@media (max-width: 700px) {
  .bar { grid-template-columns: auto 1fr; padding-block: 12px; }
  .bar-nav { display: none; position: absolute; top: calc(100% - 4px); right: var(--pad); min-width: 190px; padding: 8px; flex-direction: column; gap: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg); }
  .bar.menu-open .bar-nav { display: flex; }
  .bar-nav a { padding: 12px; font-size: 16px; }
  .bar-nav a::after { display: none; }
  .bar-menu { display: grid; }
  .hero-hint { display: none; }
  .hero-bottom { grid-template-columns: 1fr; gap: 16px; }
  .statement, .story-grid { margin-left: 0; }
  .story-grid { grid-template-columns: 1fr; }
}
@media (pointer: coarse) {
  .chip { height: 44px; min-width: 44px; }
  .foot a { display: inline-block; padding: 10px 0; }
}

/* ---------- motion off: the OS setting and the header switch give the same page ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js .ch { transform: none; }
  .js .fade { opacity: 1; transform: none; }
}
.no-motion { scroll-behavior: auto; }
.no-motion *, .no-motion *::before, .no-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
.no-motion.js .ch { transform: none; }
.no-motion.js .fade { opacity: 1; transform: none; }
