@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./assets/fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  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-display: swap;
  font-weight: 100 900;
  src: url("./assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #0064d3;
  --brand-hover: #004fa9;
  --accent: var(--brand);
  --accent-hover: var(--brand-hover);
  --hover: #ededed;
  --selection: #d8e9fc;
  --text: #0d0d0d;
  --muted: #606060;
  --line: #e8e8e8;
  --neutral: #f4f4f4;
  --surface: #fff;
  --frame: #0d0d0d;
  --gutter: 16px;
  --section: 64px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand: oklch(.51 .175 254);
  --brand-hover: oklch(.55 .18 254);
  --accent: oklch(.77 .12 250);
  --accent-hover: oklch(.84 .09 250);
  --text: oklch(.95 .009 253);
  --muted: oklch(.78 .023 253);
  --line: oklch(.335 .024 253);
  --neutral: oklch(.25 .021 253);
  --surface: oklch(.2 .018 253);
  --hover: oklch(.31 .026 253);
  --frame: oklch(.32 .024 253);
  --selection: oklch(.38 .09 254);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: 80px; }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 1.0625rem/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { color: var(--muted); text-wrap: pretty; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
img, svg { display: block; max-inline-size: 100%; }
img { block-size: auto; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
a, button, select { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--selection); }
:root[dir="rtl"] :is(h1, h2, h3) { letter-spacing: normal; line-height: 1.24; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; max-inline-size: 33em; }
.accent { color: var(--accent); }

.site-header { position: sticky; inset-block-start: 0; z-index: 20; border-block-end: 1px solid var(--line); background: var(--surface); }
.header-inner { min-block-size: 64px; display: flex; align-items: center; gap: 24px; }
.logo-link { flex-shrink: 0; display: flex; align-items: center; min-block-size: 44px; }
.logo-link { font-size: 1.625rem; font-weight: 750; letter-spacing: -.04em; }
.page-nav { display: flex; align-items: center; gap: 4px; }
.page-nav a { padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: .9375rem; font-weight: 500; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; min-inline-size: 0; }
.theme-toggle {
  display: grid; place-items: center; flex: 0 0 44px; block-size: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer;
}
.theme-toggle .theme-sun, :root[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
.language-field { flex-shrink: 0; position: relative; }
.language-field summary {
  display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  min-block-size: 44px; border: 1px solid var(--line); border-radius: 8px; padding-inline: 10px;
  font-size: .875rem; line-height: 1.05; font-weight: 600;
}
.language-field summary::-webkit-details-marker { display: none; }
.language-field summary > svg { flex: 0 0 auto; }
.language-field summary > svg:last-of-type { inline-size: 9px; transition: rotate 150ms var(--ease-out); }
.language-field[open] summary { background: var(--neutral); }
.language-field[open] summary > svg:last-of-type { rotate: 180deg; }
.language-menu {
  position: absolute; z-index: 1; inset-block-start: calc(100% + 6px); inset-inline-end: 0;
  min-inline-size: 174px; max-block-size: min(380px, calc(100dvh - 80px)); overflow: auto;
  padding: 6px; list-style: none; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface);
  box-shadow: 0 10px 24px oklch(.12 .018 253 / .14), 0 2px 4px oklch(.12 .018 253 / .07);
}
.language-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-block-size: 44px; padding: 8px 12px; border-radius: 6px;
  white-space: nowrap; font-size: .9375rem;
}
.language-menu a:focus-visible { outline-offset: -2px; }
.language-menu a[aria-current="true"] { font-weight: 650; }
.language-menu a[aria-current="true"]::after {
  content: ""; flex: 0 0 6px; block-size: 6px; border-radius: 50%; background: var(--accent);
}

.primary-button, .secondary-button, .header-download {
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: 48px; padding: 8px 20px; border-radius: 8px;
  font: 600 1rem/1.2 var(--font); text-align: center;
  transition: background-color 150ms ease, transform 120ms var(--ease-out);
}
.primary-button, .header-download { color: #fff; background: var(--brand); }
.secondary-button { color: var(--text); background: var(--neutral); }
.header-download { min-block-size: 44px; min-inline-size: 0; padding-inline: 16px; font-size: .875rem; overflow-wrap: anywhere; }
.header-download-short { display: none; }
.primary-button:active, .secondary-button:active, .header-download:active { transform: scale(.98); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.store-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .875rem; font-weight: 500; }
.store-link { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; }
.store-link svg { flex-shrink: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-block-size: 44px; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.benefits { list-style: none; padding: 24px 0 0; margin-block-start: 36px; border-block-start: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--muted); font-size: .9375rem; font-weight: 500; }

.phone {
  container-type: inline-size;
  position: relative;
  inline-size: 100%;
  max-inline-size: 300px;
  --bezel: 2.4cqw;
  --radius: 14cqw;
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .10);
}
.phone img {
  inline-size: 100%; block-size: auto;
  border: var(--bezel) solid var(--frame);
  border-radius: var(--radius);
  background: var(--neutral);
}
.phone[data-platform="ios"]::after {
  content: "";
  position: absolute;
  inset-block-start: calc(var(--bezel) + 2.6cqw);
  left: 50%;
  translate: -50% 0;
  inline-size: 29cqw;
  block-size: 8.6cqw;
  border-radius: 999px;
  background: #000;
  pointer-events: none;
}

.showcase-hero { padding-block-start: 48px; overflow: hidden; }
.showcase-grid { display: grid; gap: 40px; align-items: center; }
.showcase-copy { display: grid; gap: 24px; justify-items: start; }
:root[lang="ru"] .showcase-copy .accent { display: block; }
.showcase-visual {
  position: relative; inline-size: 100%; max-inline-size: 560px; justify-self: center;
  aspect-ratio: 1 / .88; isolation: isolate; clip-path: inset(-24px -24px 0 -24px);
}
.showcase-visual .phone { position: absolute; max-inline-size: none; }
.showcase-front { inline-size: 49%; inset-block-start: 15%; inset-inline-start: 1%; z-index: 2; }
.showcase-back { inline-size: 50%; inset-block-start: 0; inset-inline-end: 5%; }
.showcase-side { display: none; }

.feature-section { --feature-time: 5s; padding-block: var(--section); overflow-x: clip; }
.feature-grid { display: grid; gap: 24px; align-items: center; }
.feature-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.feature-pause {
  min-block-size: 44px; padding-inline: 10px; background: transparent; border: 0;
  border-radius: 6px; color: var(--muted); font-size: .875rem; font-weight: 600; cursor: pointer;
}
.feature-controls { display: none; list-style: none; padding: 0; }
.feature-strip {
  position: relative; min-inline-size: 0; margin-inline: calc(-1 * var(--gutter)); overflow-x: auto; padding: 8px var(--gutter) 12px;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
}
.feature-strip ol { display: flex; gap: 16px; list-style: none; padding: 0; }
.feature-strip li { position: relative; scroll-snap-align: start; flex: 0 0 min(62vw, 250px); padding-block-start: 8px; }
.feature-strip li::before, .feature-strip li::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 2px;
  border-radius: 1px; background: var(--line);
}
.feature-strip li::after { display: none; background: var(--accent); transform-origin: left; }
:root[dir="rtl"] .feature-strip li::after { transform-origin: right; }
.feature-strip li.is-active::after { display: block; animation: feature-progress-x var(--feature-time) linear both; }
@keyframes feature-progress-x { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes feature-progress-y { from { scale: 1 0; } to { scale: 1 1; } }
.feature-section[data-paused] .is-active::after { animation-play-state: paused; }
@media (hover: hover) {
  .feature-section:has(.feature-row:hover, .feature-fan img:hover, .feature-strip li:hover) .is-active::after {
    animation-play-state: paused;
  }
}
.feature-section[data-stopped] .is-active::after { animation: none; }
.feature-strip h3 { margin-block-start: 16px; }
.feature-strip p { font-size: .9375rem; margin-block-start: 6px; }
.feature-fan { display: none; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(64px, 22%); align-items: center; gap: 24px; padding-block-end: 32px; }
.about-copy { border-block-start: 1px solid var(--line); padding-block-start: 28px; }
.about h2 { margin-block-end: 12px; font-size: clamp(1.4rem, 3vw, 2rem); }
.about p { max-inline-size: 60ch; }
.about img { inline-size: 100%; max-inline-size: 154px; justify-self: center; }

.site-footer { background: var(--neutral); padding-block: 44px calc(64px + env(safe-area-inset-bottom)); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block-end: 24px; }
.footer-main h2 { margin-block-end: 12px; }
.footer-social p { font-weight: 600; color: var(--text); }
.footer-social ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; }
.footer-social a { display: flex; align-items: center; gap: 6px; min-block-size: 44px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; border-block-start: 1px solid var(--line); padding-block-start: 16px; color: var(--muted); font-size: .875rem; }
.footer-meta a { min-block-size: 44px; }

@media (hover: hover) {
  .primary-button:hover, .header-download:hover { background: var(--brand-hover); }
  .secondary-button:hover, .page-nav a:hover, .language-field summary:hover, .language-menu a:hover, .theme-toggle:hover, .feature-pause:hover { background: var(--hover); }
  .text-link:hover, .store-link:hover, .footer-social a:hover, .footer-meta a:hover { color: var(--accent-hover); }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 96px; }
  .benefits { margin-block-start: 50px; }
  .footer-main { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 900px) {
  .showcase-hero { padding-block-start: 72px; }
  .showcase-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; }
  .showcase-visual { max-inline-size: none; aspect-ratio: 1 / 1.13; clip-path: none; }
  .showcase-front { inline-size: 46%; inset-block-start: auto; inset-block-end: 0; inset-inline-start: 0; }
  .showcase-back { inline-size: 50%; inset-inline-end: 18%; }
  .showcase-side { display: block; inline-size: 38%; inset-block-end: 0; inset-inline-end: 0; z-index: 1; }

  .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; }
  .feature-copy { display: grid; gap: 24px; }
  .feature-controls { display: grid; }
  .feature-row { position: relative; padding: 0 0 12px; padding-inline-start: 24px; }
  .feature-row::before, .feature-row::after { content: ""; position: absolute; inset-block: 4px 0; inset-inline-start: 0; inline-size: 2px; border-radius: 1px; background: var(--line); }
  .feature-row::after { display: none; background: var(--accent); transform-origin: top; }
  .feature-row.is-active::after { display: block; animation: feature-progress-y var(--feature-time) linear both; }
  .feature-row:last-child { padding-block-end: 0; }
  .feature-button { display: block; inline-size: 100%; min-block-size: 44px; padding: 4px 0; border: 0; background: none; color: var(--muted); text-align: start; cursor: pointer; }
  .feature-button strong { font-weight: 600; }
  .feature-button[aria-pressed="true"] { color: var(--text); }
  .feature-strip { display: none; }

  .feature-fan { display: block; position: relative; inline-size: 100%; aspect-ratio: 1 / 1.34; perspective: 1600px; }
  .fan-panel {
    position: absolute; inset-block-start: 3%; left: 50%; inline-size: 56%;
    transition: transform .5s var(--ease-out), opacity .3s ease, z-index 0s;
  }
  .fan-panel[data-position="front"] { z-index: 3; transform: translateX(-50%) rotate(-2deg); }
  .fan-panel[data-position="start"] { z-index: 1; transform: translateX(-104%) translateY(8%) rotateY(14deg) rotate(-8deg) scale(.92); }
  .fan-panel[data-position="end"] { z-index: 2; transform: translateX(4%) translateY(8%) rotateY(-14deg) rotate(8deg) scale(.92); }
  .fan-panel[data-position="back"] { z-index: 0; opacity: 0; transform: translateX(-50%) translateY(6%) scale(.86); pointer-events: none; }
  :root[dir="rtl"] .fan-panel[data-position="end"] { transform: translateX(-104%) translateY(8%) rotateY(14deg) rotate(-8deg) scale(.92); }
  :root[dir="rtl"] .fan-panel[data-position="start"] { transform: translateX(4%) translateY(8%) rotateY(-14deg) rotate(8deg) scale(.92); }
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .showcase-visual .phone { transition: transform .5s var(--ease-out), z-index 0s; }
  .showcase-visual :is(.showcase-back, .showcase-side):hover { z-index: 3; transform: translateY(-3%) scale(1.025); transition-delay: 0s, .14s; }
  .showcase-visual:has(:is(.showcase-back, .showcase-side):hover) .showcase-front { transform: translateX(-7%) scale(.95); }
  .feature-button:hover strong { color: var(--text); }
}

@media (max-width: 767px) {
  .header-inner { gap: 12px; }
  .logo-link { font-size: 1.5rem; }
  .header-download { padding-inline: 12px; }
  .page-nav { display: none; }
  .header-download-full { display: none; }
  .header-download-short { display: inline; }
}
@media (max-width: 380px) {
  .header-inner { gap: 8px; }
  .logo-link { font-size: 1.375rem; }
  .header-actions { gap: 4px; }
  .header-download { padding-inline: 8px; font-size: .78rem; }
  .language-field summary { padding-inline: 8px; gap: 4px; }
  .language-field summary > svg:last-of-type { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-pause { display: none; }
  .feature-section :is(.feature-row, li).is-active::after { animation: none; }
  .language-field summary > svg:last-of-type { transition: none; }
  .primary-button, .secondary-button, .header-download, .showcase-visual .phone, .fan-panel { transition: none; }
}
