/* ==========================================================================
   Muras Ticket landing — styles
   Mobile-first (Figma frame 390), desktop overrides from 1024px (Figma frame 1440).
   ========================================================================== */

/* ---------- Design tokens (Figma variables) ---------- */
:root {
  --navy-950: #050a22;
  --navy-900: #071233;
  --navy-800: #0a1440;
  --navy-700: #0f1d54;
  --slate-300: #a3aed3;
  --slate-500: #7e8ab3;
  --slate-600: #3a456b;
  --blue-400: #4c9bff;
  --blue-500: #0088ff;
  --accent-primary: var(--blue-500);
  --accent-cyan: #00c0e8;
  --accent-purple: #cb30e0;
  --accent-pink: #ff2d55;
  --status-success: #34c759;
  --status-error: #ff383c;
  --border-default: #c7c7cc;
  --text-secondary: #727272;
  --static-white: #ffffff;
  --static-black: #000000;
  --white-a10: rgba(255, 255, 255, 0.1);
  --white-a16: rgba(255, 255, 255, 0.16);
  --white-a20: rgba(255, 255, 255, 0.2);

  --radius-m: 12px;
  --radius-pill: 999px;

  /* SF Pro is the design font. Apple devices get it from the system; others fall back. */
  --font-expanded: -apple-system, BlinkMacSystemFont, "SF Pro", "Unbounded", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Inter", "Segoe UI", Roboto, sans-serif;

  --page-gutter: 20px;
  --content-width: 1200px;
  --header-height: 65px;

  /* Fluid scale: values interpolate linearly between the Figma frames 390 → 1440
     and are clamped to the exact Figma values at both ends. */
  --fluid: calc((100vw - 390px) / 1050);
  --fs-hero-title: clamp(40px, calc(40px + 36 * var(--fluid)), 76px);
  --fs-hero-lead: clamp(17px, calc(17px + 5 * var(--fluid)), 22px);
  --fs-h2: clamp(30px, calc(30px + 18 * var(--fluid)), 48px);
  --fs-lead: clamp(17px, calc(17px + 3 * var(--fluid)), 20px);
  --fs-step-title: clamp(22px, calc(22px + 2 * var(--fluid)), 24px);
  --fs-step-text: clamp(16px, calc(16px + 1 * var(--fluid)), 17px);
  --fs-card-title: clamp(18px, calc(18px + 2 * var(--fluid)), 20px);
  --fs-card-text: clamp(15px, calc(15px + 1 * var(--fluid)), 16px);
  --space-section: clamp(64px, calc(64px + 56 * var(--fluid)), 120px);
  --space-heading: clamp(32px, calc(32px + 24 * var(--fluid)), 56px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--navy-900);
  color: var(--static-white);
  font-family: var(--font-text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html.is-menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-m);
  background: var(--accent-primary);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--page-gutter));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.expanded {
  font-family: var(--font-expanded);
  font-stretch: 132%;
  font-variation-settings: "wdth" 132;
}

/* ---------- Download state visibility ----------
   Elements with [data-show] are visible only in listed states:
   both | ios | android | none (see js/download-availability.js). */
html[data-download="both"] [data-show]:not([data-show~="both"]),
html[data-download="ios"] [data-show]:not([data-show~="ios"]),
html[data-download="android"] [data-show]:not([data-show~="android"]),
html[data-download="none"] [data-show]:not([data-show~="none"]) {
  display: none !important;
}

html[data-download="none"] .when-available,
html:not([data-download="none"]) .when-soon {
  display: none;
}

/* ---------- Typography presets ---------- */
.hero__title,
.section-heading__title,
.download-block__title,
.step__title,
.feature-card__title,
.mobile-menu__link,
.logo__text,
.btn,
.step__number,
.hero__eyebrow {
  font-family: var(--font-expanded);
  font-stretch: 132%;
  font-variation-settings: "wdth" 132;
}

/* ---------- Buttons (bttn) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-m);
  background: var(--accent-primary);
  color: var(--static-white);
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: #1a91ff;
}

.btn:active {
  background: #0077e0;
}

/* Button/Medium on 390, Button/Large on 1440 */
.btn--header {
  height: 36px;
  font-size: 14px;
  font-weight: 760;
  line-height: 20px;
  letter-spacing: -0.56px;
}

.btn--hero,
.btn--block {
  width: 100%;
  height: 56px;
  font-size: 17px;
}

/* ---------- Icon button ---------- */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--white-a10);
}

/* ---------- Logo / Muras Ticket ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.logo__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.logo__text {
  font-size: 16px;
  font-weight: 760;
  line-height: normal;
  white-space: nowrap;
}

/* ---------- Landing header ---------- */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-950);
  border-bottom: 1px solid var(--white-a10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.landing-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

/* 390: logo shows only the mark (Logo / Size=Mark) */
.landing-header .logo__text {
  display: none;
}

.landing-header__nav {
  display: none;
}

.landing-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Below 360px the header CTA is hidden — it is available in the menu */
@media (max-width: 359px) {
  .landing-header .btn--header {
    display: none;
  }
}

/* Nav link */
.nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0 4px;
  color: var(--slate-300);
  font-size: 16px;
  font-weight: 510;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: "";
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-primary);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--static-white);
}

.nav-link.is-active::after {
  opacity: 1;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--navy-950);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--white-a10);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 16px 20px 0;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--white-a10);
  font-size: 22px;
  font-weight: 650;
  line-height: normal;
}

.mobile-menu__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 24px 20px calc(40px + env(safe-area-inset-bottom));
}

.mobile-menu__note {
  color: var(--slate-500);
  font-size: 14px;
  text-align: center;
}

/* ---------- Store badge ---------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 180px;
  height: 60px;
  padding: 0 22px 0 18px;
  border: 1px solid var(--white-a20);
  border-radius: 14px;
  background: var(--static-black);
  color: var(--static-white);
  transition: border-color 0.15s ease;
}

.store-badge:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.store-badge__icon {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-badge__label {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.store-badge__caption {
  font-size: 11px;
  font-weight: 510;
  line-height: normal;
  opacity: 0.8;
}

.store-badge__name {
  font-size: 20px;
  font-weight: 590;
  line-height: 1.1;
}

/* Hero badges on 390 are scaled to 169×56 */
.store-badge--compact {
  gap: 11.27px;
  width: 169px;
  height: 56.33px;
  padding: 0 20.66px 0 16.9px;
  border-radius: 13.14px;
}

.store-badge--compact .store-badge__icon {
  width: 24.41px;
  height: 24.41px;
}

.store-badge--compact .store-badge__caption {
  font-size: 10.33px;
}

.store-badge--compact .store-badge__name {
  font-size: 18.78px;
}

/* ---------- Phone mockup (exported PNG @2x) ---------- */
/* Export has the canvas colour baked into the corners — clip to the device radius (52 / 320×668) */
.phone {
  width: 320px;
  height: auto;
  aspect-ratio: 320 / 668;
  border-radius: 16.25% / 7.78%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow-x: clip;
}

/* bg / stripes: runs past the hero bottom, under the next section, as in Figma */
.hero__bg {
  position: absolute;
  inset: 0 0 -180px;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.04) 0 120px,
    transparent 120px 188.4px,
    rgba(255, 255, 255, 0.02) 188.4px 308.4px,
    transparent 308.4px 376.8px
  );
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 40px var(--page-gutter) 56px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__eyebrow {
  color: var(--blue-400);
  font-size: 13px;
  font-weight: 650;
  line-height: normal;
}

.hero__title {
  font-size: var(--fs-hero-title);
  font-weight: 870;
  line-height: 1.04;
}

.hero__lead {
  color: var(--slate-300);
  font-size: var(--fs-hero-lead);
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Group 1: phone + mascot, proportions shared by 390 and 1440 frames */
.hero__art {
  position: relative;
  width: 100%;
  max-width: 348px;
  aspect-ratio: 476.45 / 633.14;
}

.hero__phone {
  position: absolute;
  left: 0;
  top: 0;
  width: 63.66%;
}

/* Unknown-78 1: 227.8×521 frame cropping the source image (left −27.29%, width 152.46%) */
.hero__mascot {
  position: absolute;
  left: 52.19%;
  top: 17.72%;
  width: 47.81%;
  aspect-ratio: 227.81 / 520.97;
  overflow: hidden;
}

.hero__mascot img {
  position: absolute;
  top: 0;
  left: -27.29%;
  width: 152.46%;
  height: 100%;
  max-width: none;
}

/* bg / glow: 420px ellipse at 390 (svg includes 30% blur bleed on each side) */
.hero__glow {
  position: absolute;
  z-index: -1;
  left: -162px;
  top: -131px;
  width: 672px;
  height: 672px;
  max-width: none;
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section {
  padding-bottom: var(--space-section);
}

.section--how {
  padding-top: var(--space-section);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-heading);
}

.section-heading__title {
  font-size: var(--fs-h2);
  font-weight: 760;
  line-height: 1.1;
}

.section-heading__lead {
  color: var(--slate-300);
  font-size: var(--fs-lead);
  line-height: 1.4;
}

/* ---------- Steps (Как это работает) ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  overflow: hidden;
  padding: 24px 24px 0;
  border: 1px solid var(--white-a10);
  border-radius: 28px;
  background: var(--navy-800);
}

.step__number {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-primary);
  font-size: 13px;
  font-weight: 650;
  line-height: normal;
  white-space: nowrap;
}

.step__title {
  font-size: var(--fs-step-title);
  font-weight: 760;
  line-height: 1.15;
}

.step__text {
  color: var(--slate-300);
  font-size: var(--fs-step-text);
  line-height: 1.45;
}

.step__screens {
  position: relative;
  width: 100%;
  height: 400px;
}

.step__phone {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 236.8px;
  transform: translateX(-50%);
}

/* ---------- Feature card ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--white-a10);
  border-radius: 24px;
  background: var(--navy-800);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--accent-primary);
}

.feature-card__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.feature-card__title {
  font-size: var(--fs-card-title);
  font-weight: 760;
  line-height: 1.2;
}

.feature-card__text {
  color: var(--slate-300);
  font-size: var(--fs-card-text);
  line-height: 1.45;
}

/* ---------- Arena ---------- */
.arena {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.arena__map {
  display: block;
}

.arena__map img {
  width: 100%;
  height: auto;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legend__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.legend__swatch {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.legend__swatch--stage {
  border: 1px solid var(--white-a20);
  background: var(--static-black);
}

.legend__swatch--dancefloor {
  background: var(--accent-cyan);
}

.legend__swatch--fanzone {
  background: var(--accent-purple);
}

.legend__swatch--stands {
  background: var(--accent-pink);
}

.legend__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend__title {
  font-size: 18px;
  font-weight: 590;
  line-height: normal;
}

.legend__description {
  color: var(--slate-300);
  font-size: 15px;
  line-height: 1.4;
}

.legend__note {
  margin-top: 24px;
  color: var(--slate-500);
  font-size: 14px;
}

/* ---------- Мои билеты ---------- */
.tickets-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: hidden;
  padding: 28px 24px 0;
  border: 1px solid var(--white-a10);
  border-radius: 28px;
  background: var(--navy-800);
}

.tickets-card__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-heading--compact {
  margin-bottom: 0;
}

.statuses {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.statuses__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

/* wraps under the chip instead of squeezing into 3+ lines on narrow columns */
.statuses__text {
  flex: 1 1 120px;
  color: var(--slate-300);
  font-size: 15px;
  line-height: 1.4;
}

/* Status chip (Card/Description: SF Pro Medium 13/1.2) */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--static-white);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 510;
  line-height: 1.2;
  white-space: nowrap;
}

.status-chip--error {
  color: var(--status-error);
}

.status-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-chip__dot--valid {
  background: var(--status-success);
}

.status-chip__dot--used {
  background: var(--border-default);
}

.status-chip__dot--cancelled {
  background: var(--status-error);
}

.status-chip__dot--refunded {
  background: var(--accent-primary);
}

.tickets-card__tip {
  font-size: 15px;
  font-weight: 510;
  line-height: 1.4;
}

.tickets-card__phone {
  position: relative;
  height: 380px;
}

.tickets-card__phone .phone {
  position: absolute;
  top: 0;
  left: 50%;
  width: 256px;
  transform: translateX(-50%);
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq__heading {
  margin-bottom: 0;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FAQ item — State=Закрыт / State=Открыт */
.faq-item {
  border: 1px solid var(--white-a10);
  border-radius: 20px;
  background: var(--navy-800);
  transition: background-color 0.15s ease;
}

.faq-item[open] {
  background: var(--navy-700);
}

.faq-item__question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  font-size: 18px;
  font-weight: 590;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__toggle {
  flex: none;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 16px;
  background: var(--white-a10) url("../icons/chevron-down.svg") center / 24px no-repeat;
}

.faq-item[open] .faq-item__toggle {
  background-color: var(--accent-primary);
  background-image: url("../icons/chevron-up.svg");
}

.faq-item[open] .faq-item__question {
  padding-bottom: 12px;
}

.faq-item__answer {
  padding: 0 28px 24px;
  color: var(--slate-300);
  font-size: 16px;
  line-height: 1.5;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--white-a10);
  border-radius: 24px;
  background: var(--navy-800);
}

.support-card__title {
  font-size: 18px;
  font-weight: 590;
}

.support-card__text {
  color: var(--slate-300);
  font-size: 15px;
  line-height: 1.4;
}

.support-card__link {
  color: var(--blue-400);
  font-size: 16px;
  font-weight: 590;
}

.support-card__link:hover {
  text-decoration: underline;
}

/* ---------- Download block ---------- */
.download-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
  padding: 36px 24px 0;
  border-radius: 32px;
  background: var(--blue-500);
}

.download-block__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.download-block__title {
  font-size: var(--fs-h2);
  font-weight: 760;
  line-height: 1.1;
}

.download-block__text {
  font-size: var(--fs-lead);
  line-height: 1.4;
  opacity: 0.86;
}

.download-block__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.download-block__stores {
  flex-direction: column;
}

.download-block__unavailable {
  font-size: 15px;
  font-weight: 510;
  opacity: 0.8;
}

.download-block__note {
  font-size: 15px;
  line-height: 1.4;
  opacity: 0.8;
}

.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border: 1px solid var(--white-a20);
  border-radius: 14px;
  background: var(--white-a16);
  font-size: 17px;
  font-weight: 590;
}

.soon-badge__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--static-white);
}

.download-block__phone {
  position: relative;
  height: 330px;
}

.download-block__phone .phone {
  position: absolute;
  top: 0;
  left: 50%;
  width: 256px;
  transform: translateX(-50%);
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--white-a10);
}

.footer__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--slate-300);
  font-size: 15px;
  white-space: nowrap;
}

.footer__links a:hover {
  color: var(--static-white);
}

.footer__copyright {
  margin-top: 24px;
  color: var(--slate-500);
  font-size: 14px;
}

/* ==========================================================================
   Large phone / small tablet: ≥640
   ========================================================================== */
@media (min-width: 640px) {
  :root {
    --page-gutter: 32px;
  }

  .landing-header .logo__text {
    display: inline;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
  }

  .download-block__stores {
    flex-direction: row;
    gap: 16px;
  }

  .footer__links {
    flex-flow: row wrap;
    gap: 14px 32px;
  }

  .footer__row {
    gap: 24px;
  }
}

/* ==========================================================================
   Tablet: 768–1023 (no Figma frame — composed from the 390/1440 components)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* Hero: text left, phone + mascot right */
  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .hero__text {
    flex: 1 1 0;
    min-width: 0;
  }

  .btn--hero {
    max-width: 340px;
  }

  .hero__art {
    flex: 0 0 auto;
    width: clamp(260px, 36vw, 348px);
  }

  /* Steps: horizontal cards, phone on the right cut by the card edge */
  .step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 236.8px;
    grid-template-rows: auto auto 1fr;
    column-gap: 32px;
    row-gap: 14px;
    height: 360px;
  }

  .step__number {
    justify-self: start;
  }

  .step__number,
  .step__title,
  .step__text {
    grid-column: 1;
  }

  .step__screens {
    grid-column: 2;
    grid-row: 1 / span 3;
    height: auto;
  }

  .step__phone {
    top: 0;
  }

  /* Мои билеты: text left, phone right */
  .tickets-card {
    flex-direction: row;
    gap: 32px;
    padding: 40px 40px 0;
    border-radius: 32px;
  }

  .tickets-card__text {
    flex: 1;
    min-width: 0;
    padding-bottom: 40px;
  }

  .tickets-card__phone {
    flex: 0 0 256px;
    height: auto;
  }

  .statuses__text {
    flex-basis: 180px;
  }

  /* Download block: content left, phone right */
  .download-block {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    min-height: 420px;
    padding: 40px 0 0 40px;
  }

  .download-block__content {
    flex: 1;
    min-width: 0;
    padding-bottom: 40px;
  }

  .download-block__phone {
    flex: 0 0 300px;
    align-self: stretch;
    height: auto;
  }
}

/* ==========================================================================
   Desktop: ≥1024 (Figma frame 1440)
   ========================================================================== */
@media (min-width: 1024px) {
  :root {
    --page-gutter: 40px;
    --header-height: 77px;
  }

  /* Header */
  .landing-header__inner {
    max-width: calc(var(--content-width) + 2 * var(--page-gutter));
    margin-inline: auto;
    padding: 16px var(--page-gutter);
  }

  /* 24px at 1024 → 36px (Figma) at 1440, keeps air around logo and CTA on small laptops */
  .landing-header__nav {
    display: flex;
    gap: clamp(24px, calc(24px + 12 * (100vw - 1024px) / 416), 36px);
  }

  .landing-header__menu-toggle {
    display: none;
  }

  .btn--header {
    height: 44px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .logo {
    gap: 10px;
  }

  .logo__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .logo__text {
    font-size: 20px;
  }

  /* Hero */
  .hero__bg {
    bottom: -186px;
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    max-width: 1440px;
    min-height: 691px;
    margin-inline: auto;
    /* 1440: text starts at x=118, art group ends at x=1349 (Frame 2087327204) */
    padding: 0 max(var(--page-gutter), calc((100% - 1258px) / 2)) 0 max(var(--page-gutter), calc((100% - 1204px) / 2));
  }

  .hero__text {
    flex: 0 1 755px;
    gap: 44px;
  }

  .hero__copy {
    gap: 24px;
  }

  .hero__eyebrow {
    display: none;
  }

  .hero__title {
    max-width: 724px;
  }

  .hero__lead {
    max-width: 560px;
  }

  .hero__actions {
    gap: 20px;
  }

  .btn--hero {
    width: 340px;
    height: 64px;
    font-size: 20px;
  }

  .store-badge--compact {
    gap: 12px;
    width: 180px;
    height: 60px;
    padding: 0 22px 0 18px;
    border-radius: 14px;
  }

  .store-badge--compact .store-badge__icon {
    width: 26px;
    height: 26px;
  }

  .store-badge--compact .store-badge__caption {
    font-size: 11px;
  }

  .store-badge--compact .store-badge__name {
    font-size: 20px;
  }

  .hero__art {
    flex: 0 0 auto;
    width: clamp(380px, 33.1vw, 476.45px);
    max-width: none;
  }

  /* bg / glow: 620px ellipse, centre offset from the art group as in Figma */
  .hero__glow {
    left: -259px;
    top: -75px;
    width: 992px;
    height: 992px;
  }

  /* Sections */
  .section-heading--narrow {
    max-width: 760px;
  }

  /* Steps */
  .steps {
    flex-direction: row;
    gap: 24px;
  }

  .step {
    flex: 1 1 0;
    min-width: 0;
    height: 675px;
    padding: 32px 32px 0;
    border-radius: 32px;
  }

  .step__screens {
    flex: 1 0 440px;
  }

  .step__phone {
    width: 262.4px;
  }

  /* Features */
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .feature-card {
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    border-radius: 28px;
  }

  .feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 26px;
  }

  .feature-card__copy {
    gap: 16px;
  }

  /* Arena */
  .arena {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .arena__map {
    flex: 0 1 800px;
  }

  .arena__legend {
    flex: 0 1 360px;
  }

  .legend {
    display: flex;
    gap: 24px;
  }

  /* Мои билеты */
  .tickets-card {
    flex-direction: row;
    gap: 64px;
    padding: 64px 72px 0;
    border-radius: 40px;
  }

  .tickets-card__text {
    flex: 1;
    gap: 32px;
    padding-bottom: 64px;
  }

  .statuses__text {
    font-size: 16px;
  }

  .tickets-card__phone {
    flex: 0 0 340px;
    height: auto;
  }

  .tickets-card__phone .phone {
    left: 10px;
    width: 320px;
    transform: none;
  }

  /* FAQ: aside (heading + support) on the left, list on the right;
     DOM order stays heading → list → support for the 390 layout */
  .faq {
    display: flow-root;
  }

  .faq__heading,
  .faq__support {
    float: left;
    clear: left;
    width: 360px;
  }

  .faq__heading {
    margin-bottom: 0;
  }

  .faq__support {
    margin-top: 32px;
  }

  .faq__list {
    float: right;
    width: calc(100% - 424px);
  }

  /* Download block */
  .download-block {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    height: 480px;
    padding: 0 0 0 72px;
    border-radius: 40px;
  }

  .download-block__content {
    flex: 1;
    gap: 28px;
  }

  .soon-badge {
    font-size: 20px;
  }

  .download-block__phone {
    flex: 0 0 440px;
    align-self: stretch;
    height: auto;
  }

  .download-block__phone .phone {
    top: 64px;
    left: 60px;
    width: 320px;
    transform: none;
  }

  /* Footer */
  .footer {
    padding: 40px 0 48px;
  }

  .footer__row {
    flex-direction: row;
    align-items: center;
  }

  .footer__links {
    flex-wrap: nowrap;
    gap: 32px;
    font-size: 16px;
  }

  .footer__copyright {
    margin-top: 28px;
  }
}
