﻿/* ==========================================================================
   De la. Poco — промостраница
   Токены сняты с тёмных экранов приложения: фон, поверхности, акцент,
   радиусы карточек и пилюль. Шрифт — Onest (SIL OFL 1.1), self-hosted.
   ========================================================================== */

/* Шрифт ------------------------------------------------------------------ */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/onest-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 {
  color-scheme: dark;
  --bg: #0f060b;
  --surface: #1c1319;
  --surface-2: #241820;
  --text: #f7eff3;
  --muted: #b9a9b1;
  --muted-2: #938189;
  --accent: #f90f72;
  --accent-hover: #ff3d8e;
  --rose: #ff9ec2;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius: 20px;
  --radius-sm: 14px;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* База ------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 72% -8%, rgba(249, 15, 114, 0.1), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection {
  background: var(--accent);
  color: #fff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

/* Общая сетка ------------------------------------------------------------ */
.header-inner,
.hero,
.section,
.footer {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.section {
  padding: clamp(48px, 6.4vw, 76px) 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(20px, 2.8vw, 32px);
}
.section-head h2 {
  max-width: 720px;
}
h1 {
  font-size: clamp(46px, 7.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}
h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 700;
}
h3 {
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h2 span {
  color: var(--rose);
}
.arrow {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Шапка ------------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 6, 11, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  overflow: hidden;
  border-radius: 8px;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  font-size: 14px;
  color: var(--muted);
}
.nav a {
  padding-block: 2px;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--text);
}
.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  transition: border-color 0.2s;
}
.nav-cta:hover {
  border-color: var(--accent);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-right: -10px;
}
.menu-lines {
  position: relative;
  display: block;
  width: 22px;
  height: 15px;
}
.menu-lines span {
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s;
}
.menu-lines span:first-child {
  top: 3px;
}
.menu-lines span:last-child {
  top: 11px;
}
.menu-toggle[aria-expanded='true'] .menu-lines span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] .menu-lines span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Герой ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  min-height: calc(100svh - 72px);
  overflow: clip;
  padding: clamp(32px, 4.5vw, 60px) 0 clamp(44px, 5.5vw, 72px);
}
.hero-copy h1 {
  margin-bottom: 24px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--rose);
}
.lead {
  max-width: 440px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(249, 15, 114, 0.22);
  transition: background 0.2s, transform 0.2s;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn .arrow {
  transition: transform 0.2s;
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.hero-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  overflow: visible;
  padding: 24px 24px 0;
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 86%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 15, 114, 0.22), rgba(249, 15, 114, 0.05) 45%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.hero-orbit {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 112%;
  height: 66%;
  translate: -50% -50%;
  border: 1px solid rgba(255, 158, 194, 0.17);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
}
.phone {
  position: relative;
  display: block;
  overflow: hidden;
  border: 6px solid #2a1f25;
  border-radius: 32px;
  background: #0b0709;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.phone-fade::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  background: linear-gradient(to bottom, rgba(15, 6, 11, 0), rgba(15, 6, 11, 0.92));
  pointer-events: none;
}
.phone img {
  width: 100%;
  height: auto;
}
.hero-phone {
  position: relative;
  flex: none;
}
.hero-phone-back {
  z-index: 1;
  width: 46%;
  margin-right: -12%;
  transform: rotate(-7deg);
  transform-origin: bottom center;
  filter: brightness(0.82) saturate(0.95);
}
.hero-phone-front {
  z-index: 2;
  width: 60%;
  transform: rotate(4deg);
  transform-origin: bottom center;
}
.hero-mascot {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 38%;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.35));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* О приложении ----------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.about-copy h2 {
  margin-bottom: 24px;
}
.about-copy p {
  max-width: 470px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
}
.about-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.about-figure .phone {
  width: min(250px, 82%);
}
.about-figure figcaption {
  max-width: 300px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* Возможности ------------------------------------------------------------ */
.features {
  border-top: 1px solid var(--line);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  padding: clamp(18px, 1.8vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature h3 {
  margin-bottom: 10px;
}
.feature p {
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.feature-media {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 4 / 3;
  margin-top: auto;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  background: #0d080b;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.feature-match {
  background: linear-gradient(120deg, #2d1022, var(--surface) 62%);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}
.link .arrow {
  color: var(--accent);
  transition: transform 0.2s;
}
.link:hover .arrow {
  transform: translateX(3px);
}

/* Как это работает ------------------------------------------------------- */
.how {
  border-top: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.2vw, 26px);
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border: 1px solid rgba(249, 15, 114, 0.45);
  border-radius: 50%;
  color: var(--rose);
  font-size: 13px;
  font-weight: 700;
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.step-media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 3 / 4;
  margin: auto auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.step-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(to bottom, rgba(15, 6, 11, 0), var(--bg));
  pointer-events: none;
}
.step:nth-child(1) .step-media img {
  object-position: center 62%;
}
.step:nth-child(3) .step-media img {
  object-position: left top;
}

/* Галерея ---------------------------------------------------------------- */
.gallery {
  border-top: 1px solid var(--line);
}
.carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin-inline: auto;
}
.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 32px;
  cursor: grab;
  user-select: none;
}
.carousel-viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.carousel-viewport img {
  -webkit-user-drag: none;
  user-select: none;
}
.carousel-viewport::-webkit-scrollbar {
  display: none;
}
.carousel-track {
  display: flex;
  padding: 0;
  list-style: none;
}
.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
}
.slide-open {
  display: block;
  width: min(310px, 100%);
  border-radius: 32px;
  transition: transform 0.2s;
}
.slide-open:hover {
  transform: translateY(-3px);
}
.slide-open .phone {
  width: 100%;
  border-width: 7px;
  border-radius: 36px;
}
.slide-title {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
}
.slide-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.carousel-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: #241820;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.carousel-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.carousel-btn:disabled:hover {
  background: #241820;
  border-color: rgba(255, 255, 255, 0.24);
}
.carousel-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}
.carousel-dots {
  display: flex;
  gap: 4px;
}
.dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}
.dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6d5862;
  transition: width 0.2s, border-radius 0.2s, background 0.2s;
}
.dot[aria-current='true']::before {
  width: 22px;
  border-radius: 6px;
  background: var(--accent);
}
.carousel-counter {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Скачивание ------------------------------------------------------------- */
.download {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  overflow: hidden;
  padding: clamp(28px, 4.5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(120deg, #3a1228, #1d1219 58%, #170f14);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.download h2 {
  margin-bottom: 16px;
}
.download-copy > p {
  max-width: 400px;
  margin-bottom: 20px;
  color: #e4ced8;
  font-size: 15px;
  line-height: 1.65;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.store-button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 160px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(12, 7, 10, 0.7);
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.store-button:hover {
  background: #28151f;
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}
.store-button small,
.store-button b {
  display: block;
  line-height: 1.3;
}
.store-button small {
  color: var(--muted);
  font-size: 11px;
}
.store-button b {
  font-size: 14px;
  font-weight: 600;
}
.apple-logo {
  width: 21px;
  height: 23px;
  flex: none;
}
.play-symbol {
  width: 0;
  height: 0;
  flex: none;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #44d5aa;
  margin-inline: 3px;
}
.rustore-symbol {
  flex: none;
  color: #ff526d;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}
.download-mascot {
  width: min(300px, 78%);
  justify-self: center;
  align-self: end;
  margin-bottom: calc(clamp(28px, 4.5vw, 56px) * -1);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.3));
}

/* Вопросы ---------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.faq-head h2 {
  margin-bottom: 0;
}
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  position: relative;
  padding: 18px 40px 18px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}
.faq-item summary:hover {
  color: var(--rose);
}
.faq-answer {
  max-width: 640px;
  padding: 0 40px 20px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Подвал ----------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links a {
  display: inline-block;
  padding-block: 4px;
}
.footer-links a:hover {
  color: var(--text);
}
.telegram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  transition: border-color 0.2s;
}
.telegram:hover {
  border-color: var(--accent);
}
.telegram svg {
  color: #4fc6e7;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}

/* Лайтбокс --------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 4, 0.88);
  backdrop-filter: blur(8px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(440px, 92vw);
  outline: none;
}
.lightbox-dialog img {
  width: auto;
  max-height: calc(90svh - 70px);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.lightbox-caption {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 6, 11, 0.72);
  backdrop-filter: blur(6px);
}
.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Служебные страницы ------------------------------------------------------ */
.legal-page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}
.legal-page .legal {
  flex: 1;
}
.legal-page .footer {
  width: min(720px, calc(100% - var(--gutter) * 2));
}
.legal {
  width: min(720px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
}
.legal h1 {
  margin-bottom: 20px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.legal p {
  max-width: 620px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.legal .link {
  margin-top: 24px;
}
.legal-header {
  border-bottom: 1px solid var(--line);
}

/* Адаптив ---------------------------------------------------------------- */
@media (min-width: 1600px) {
  .hero {
    width: min(1400px, calc(100% - var(--gutter) * 2));
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 88px;
  }
  .hero-art {
    padding: 40px 40px 0;
  }
}

@media (min-width: 1600px) and (min-height: 1200px) {
  .hero-phone-front {
    width: 64%;
  }
  .hero-phone-back {
    width: 48%;
    margin-right: -14%;
  }
  .hero-mascot {
    width: 42%;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 0;
  }
  .hero-art {
    min-height: 500px;
  }
  .feature-match .feature-media {
    max-width: 380px;
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: grid;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 12px 0;
    font-size: 16px;
  }
  .nav-cta {
    margin-top: 8px;
    padding: 12px 16px;
    text-align: center;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
    overflow: visible;
  }
  .hero-copy {
    max-width: 640px;
  }
  .hero-art {
    min-height: 0;
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
    padding: 20px 20px 0;
    overflow: visible;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about-figure .phone {
    width: min(220px, 70%);
  }
  .section-head {
    display: block;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .step {
    display: grid;
    grid-template-columns: 1fr 180px;
    align-items: end;
    gap: 24px;
  }
  .step .step-media {
    width: 100%;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .download {
    grid-template-columns: 1fr;
  }
  .download-mascot {
    justify-self: end;
    width: min(260px, 60%);
    margin-bottom: calc(clamp(28px, 4.5vw, 56px) * -1);
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(40px, 12.4vw, 64px);
  }
  .hero {
    padding-top: 36px;
  }
  .hero-art {
    padding: 16px 16px 0;
  }
  .hero-orbit {
    display: none;
  }
  .hero-phone-back {
    transform: rotate(-5deg);
  }

  .carousel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }
  .carousel-btn {
    width: 44px;
    height: 44px;
  }
  .slide-open {
    width: min(300px, 100%);
  }
  .carousel-counter {
    font-size: 12px;
  }
  .download {
    width: calc(100% - 24px);
    margin-inline: auto;
  }
  .stores {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 240px;
  }
  .store-button {
    width: 100%;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 48px 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .step {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .step .step-media {
    width: min(220px, 70%);
    justify-self: center;
  }

  .carousel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
  }
  .carousel-btn {
    width: 44px;
    height: 44px;
  }
  .slide-open {
    width: 100%;
  }
  .slide-note {
    font-size: 13px;
  }
  .download-mascot {
    width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-mascot {
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
