/* =========================================================================
   SmashX landing — mobile-first.
   Base styles work for mobile/tablet (single-column flow + flex).
   `@media (min-width: 1280px)` blocks restore the original Figma desktop
   layout (absolute coords pixel-perfect to the design).
   ========================================================================= */


/* === 1. Fonts ============================================================ */

@font-face {
  font-family: "SF Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("SF Pro Text"), local("SFProText-Regular"),
       url("../fonts/SFPro-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "SF Pro";
  font-style: normal;
  font-weight: 510;
  font-display: swap;
  src: local("SF Pro Text Medium"), local("SFProText-Medium"),
       url("../fonts/SFPro-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "SF Pro";
  font-style: normal;
  font-weight: 590;
  font-display: swap;
  src: local("SF Pro Text Semibold"), local("SFProText-Semibold"),
       url("../fonts/SFPro-Semibold.woff2") format("woff2");
}


/* === 2. Reset ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }


/* === 3. Tokens =========================================================== */

:root {
  --font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;

  --color-bg: #000000;
  --color-text: #ffffff;
  --color-text-90: rgba(255, 255, 255, 0.9);
  --color-text-80: rgba(255, 255, 255, 0.8);
  --color-text-60: rgba(255, 255, 255, 0.6);
  --color-border-card: rgba(255, 255, 255, 0.07);
  --color-border-pill: rgba(255, 255, 255, 0.11);
  --color-overlay-dark: rgba(0, 0, 0, 0.6);
  --color-side-vignette: #120707;
  --color-btn-dark: #150a07;
  --color-footer-bottom: #272727;
  --color-header-bg: rgba(16, 16, 16, 0.5);

  --gradient-hero-1: linear-gradient(
    -89.25302287325405deg,
    rgb(255, 228, 212) 2.676%,
    rgb(241, 165, 117) 26.355%,
    rgb(90, 30, 20) 55.661%,
    rgb(241, 165, 117) 98.527%
  );
  --gradient-hero-2: linear-gradient(
    -89.13174480668818deg,
    rgb(255, 228, 212) 2.676%,
    rgb(241, 165, 117) 19.86%,
    rgb(241, 165, 117) 98.527%
  );
  --gradient-section: linear-gradient(
    -89deg,
    rgb(255, 178, 131) 2.676%,
    rgb(241, 165, 117) 19.86%,
    rgb(241, 165, 117) 98.527%
  );
  --gradient-display-outline: linear-gradient(
    to bottom,
    #f1a575 0%,
    #5a1e14 65.385%,
    #000000 81.25%
  );
  --gradient-orange-cta: linear-gradient(
    234.98531004967762deg,
    rgb(255, 153, 3) 29.402%,
    rgb(249, 62, 4) 105.55%
  );
  --gradient-email-pill: linear-gradient(
    113.2988165467372deg,
    rgba(134, 43, 3, 0.3) 7.66%,
    rgba(93, 38, 26, 0.3) 60.937%,
    rgba(158, 37, 14, 0.3) 112.3%
  );
  --gradient-features-title-bg: linear-gradient(
    126.85982920749058deg,
    rgba(0, 0, 0, 0.3) 7.66%,
    rgba(93, 38, 26, 0.3) 60.937%,
    rgba(56, 19, 12, 0.3) 112.3%
  );
  --gradient-feature-2: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(93, 38, 26, 0.5) 50%,
    rgba(56, 19, 12, 0.5) 100%
  );
  --gradient-contact-2: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(93, 38, 26, 0.6) 100%
  );

  --shadow-btn: 0 0 2px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.12);
  --shadow-card-glow: inset 0 0 12px rgba(255, 221, 205, 0.2);
  --shadow-header: 0 0 4px rgba(1, 27, 53, 0.1);

  --radius-card: 30px;
  --radius-btn: 100px;
  --radius-pill: 30px;

  /* Layout */
  --gutter: clamp(16px, 4vw, 40px);
  --container-max: 1240px;
  --section-gap: clamp(48px, 8vw, 96px);
}


/* === 4. Base ============================================================= */

html { font-size: 16px; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variation-settings: "wdth" 100;
  /* `clip` instead of `hidden` so sticky positioning still works on children */
  overflow-x: clip;
}

.page {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* Gradient-text utility */
.gtxt,
.hero__title-1,
.hero__title-2,
.lead-in__title,
.app-section-title__h2,
.about__h2,
.contacts__h2,
.hero__display {
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* === 5. Decorative blobs (desktop-only) ================================== */

.page__blob {
  display: none;
}


/* === 6. Header =========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border-card);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(13.5px);
  -webkit-backdrop-filter: blur(13.5px);
}
.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;       /* parent (a) не должен сжиматься flex-родителем header'а */
}
.site-header__logo img {
  /* SVG logo-smashx имеет viewBox 201.152 x 25.5737 (≈ 7.86:1).
     Жёстко фиксируем aspect-ratio + height — браузер вычисляет width пропорционально.
     flex-shrink: 0 на самом img защищает от сжатия flex-системой. */
  height: 18px;
  width: auto;
  aspect-ratio: 200 / 30;
  flex-shrink: 0;
  display: block;
}
.site-header__nav {
  display: none;
}
.site-header__geo {
  display: none;
}

@media (min-width: 768px) {
  .site-header__logo img { width: 180px; }
  .site-header__nav { display: block; }
  .site-header__nav ul {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .site-header__nav a {
    font-family: var(--font-family);
    font-weight: 590;
    font-size: 15px;
    line-height: 1.2;
    color: var(--color-text-80);
    white-space: nowrap;
    transition: color .15s ease;
  }
  .site-header__nav a:hover { color: var(--color-text); }
  .site-header__geo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-80);
    font-family: var(--font-family);
    font-weight: 590;
    font-size: 15px;
    line-height: 1.2;
  }
  .site-header__geo svg { width: 14px; height: 14px; opacity: 0.9; }
}


/* === 7. Hero ============================================================= */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  padding: clamp(48px, 12vw, 120px) var(--gutter) clamp(72px, 14vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero__bg-1,
.hero__bg-2 {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg-2 { display: none; }   /* duplicate of bg-1; only desktop uses both for parallax */
.hero__bg-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero__bg-1::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 50%, #000 100%);
  pointer-events: none;
}
.hero__side { display: none; }

/* hero__display — большой декоративный gradient-text "ИГРАЙ В ПАДЕЛ".
   На mobile/tablet рендерится в потоке flex-column hero (после кнопок).
   На desktop @media — absolute по Figma координатам. */
.hero__display {
  display: block;
  font-family: var(--font-family);
  font-weight: 590;
  font-size: clamp(1.5rem, 6.5vw, 4.5rem);
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  background-image: var(--gradient-display-outline);
  pointer-events: none;
  user-select: none;
  margin-top: 8px;
  padding-block: 0.25em;
  max-width: 100%;
}

.hero__title-1 {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-family);
  font-weight: 590;
  font-size: clamp(2rem, 8vw, 5rem);
  line-height: 1.05;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background-image: var(--gradient-hero-1);
}
.hero__title-2 {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-family);
  font-weight: 590;
  font-size: clamp(2rem, 8vw, 5rem);
  line-height: 1.05;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background-image: var(--gradient-hero-2);
  text-shadow: 0 0 10px rgba(29, 12, 9, 0.3);
}
.hero__title-2 p { margin: 0; line-height: 1; }

.hero__btn-1,
.hero__btn-2 {
  position: relative;
  margin-top: 8px;
}


/* === 8. Buttons (shared) ================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 6px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font-family);
  font-weight: 510;
  font-size: 16px;
  line-height: 1.3;
  color: var(--color-text);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: filter .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--gradient-orange-cta); }
.btn--primary:hover { filter: brightness(1.08); box-shadow: 0 0 2px rgba(0,0,0,0.1), 0 4px 14px rgba(249, 62, 4, 0.35); }
.btn--dark    { background: var(--color-btn-dark); }
.btn--dark:hover { background: #251410; }
.btn__inner   { height: 36px; display: flex; align-items: center; justify-content: center; }


/* === 9. Lead-in ========================================================== */

.lead-in {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 8vw, 80px) var(--gutter) clamp(24px, 5vw, 40px);
  max-width: 900px;
  margin: 0 auto;
}
.lead-in__title {
  font-family: var(--font-family);
  font-weight: 590;
  font-size: clamp(1.5rem, 5vw, 3.75rem);
  line-height: 1.15;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background-image: var(--gradient-section);
}
.lead-in__text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.4;
  color: var(--color-text-80);
}
.lead-in__text p { margin: 0; line-height: 1.4; }


/* === 10. Features title card ============================================= */

.features-title {
  margin: clamp(24px, 5vw, 40px) auto 0;
  max-width: var(--container-max);
  width: calc(100% - 2 * var(--gutter));
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-card);
  background-image: var(--gradient-features-title-bg);
  overflow: hidden;
}
.features-title__h2 {
  font-family: var(--font-family);
  font-weight: 590;
  font-size: clamp(1.375rem, 4vw, 3.125rem);
  line-height: 1.15;
  color: var(--color-text);
  width: 100%;
  word-wrap: break-word;
}
.features-title__text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.4;
  color: var(--color-text-80);
  width: 100%;
}
.features-title__text p { margin: 0; line-height: 1.4; }


/* === 11. Features grid =================================================== */

.features-grid {
  margin: 16px auto 0;
  max-width: var(--container-max);
  width: calc(100% - 2 * var(--gutter));
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.feature-card {
  position: relative;
  width: 100%;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  background: transparent;
}
.feature-card--1, .feature-card--3 { background: var(--color-overlay-dark); }
.feature-card--2 { background-image: var(--gradient-feature-2); }
.feature-card--1::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-card-glow);
  pointer-events: none;
  z-index: 3;
}

/* Mobile: photo сверху карточки (DOM order, flex column).
   Fade через ::after overlay (gradient к чёрному снизу) — image плавно
   растворяется в фон карточки. mask-image на wrapper'е с overflow:hidden
   parent ведёт себя нестабильно в Chrome, overlay надёжнее. */
.feature-card__photo {
  position: relative;
  z-index: 0;
  margin: 0 -24px;       /* выходит за padding card по бокам */
  height: clamp(180px, 40vw, 260px);
  overflow: hidden;
  align-self: stretch;
  /* Mobile: photo стоит ПЕРВЫМ в карточке (над title/text). Fade на нижней
     границе фото — плавный переход в фон карточки, где идёт заголовок.
     Узкая зона (15%) не затемняет картинку. */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 15%, #000 100%);
          mask-image: linear-gradient(to top, transparent 0%, #000 15%, #000 100%);
}
.feature-card--1 .feature-card__photo { background: #000; }
.feature-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: static;
  max-width: none;
}

.feature-card__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-family);
  font-weight: 590;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  line-height: 1.1;
  color: var(--color-text-90);
}
.feature-card__text {
  position: relative;
  z-index: 2;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  line-height: 1.4;
  color: var(--color-text-80);
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}


/* === 12. Divider "Выходи на корт" — desktop only ========================= */

.divider-display { display: none; }


/* === 13. App section ===================================================== */

.app-section-title {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 8vw, 80px) var(--gutter) clamp(24px, 4vw, 32px);
  max-width: 1000px;
  margin: 0 auto;
}
.app-section-title__h2 {
  font-family: var(--font-family);
  font-weight: 590;
  font-size: clamp(1.5rem, 5vw, 3.75rem);
  line-height: 1.15;
  word-wrap: break-word;
  background-image: var(--gradient-section);
}
.app-section-title__text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.4;
  color: var(--color-text-80);
}
.app-section-title__text p { margin: 0; line-height: 1.4; }

.app-section {
  position: relative;
  width: 100%;
  height: clamp(280px, 40vw, 520px);
  overflow: hidden;
}
.app-section__bg {
  position: absolute;
  inset: 0;
  background: url("../images/app-section-bg.png") center / cover no-repeat, #000;
}

.store-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: clamp(20px, 4vw, 32px) var(--gutter);
}
.store-badge {
  position: relative;
  display: inline-block;
  height: 48px;
  overflow: hidden;
  flex-shrink: 0;
}
.store-badge .b {
  position: absolute;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.store-badge--appstore  { width: 144px; }
.store-badge--appstore  .b-outline { inset: 0; background-image: url("../icons/badge-appstore-outline.svg"); }
.store-badge--appstore  .b-apple   { top: 21.8%;  left: 8.33%;  right: 76.86%; bottom: 23.76%; background-image: url("../icons/badge-appstore-apple.svg"); }
.store-badge--appstore  .b-name    { top: 44.68%; left: 28.77%; right: 8.5%;   bottom: 16.27%; background-image: url("../icons/badge-appstore-name.svg"); }
.store-badge--appstore  .b-caption { top: 21.43%; left: 29.54%; right: 28.12%; bottom: 59.17%; background-image: url("../icons/badge-appstore-caption.svg"); }

.store-badge--googleplay { width: 162px; }
.store-badge--googleplay .b-outline { inset: 0;                                background-image: url("../icons/badge-googleplay-outline.svg"); }
.store-badge--googleplay .b-content { top: 17.13%; left: 30.63%; right: 28.72%; bottom: 64.31%; background-image: url("../icons/badge-googleplay-content.svg"); }

.store-badge--smashx { width: 133px; }
.store-badge--smashx .b-content { inset: 1.25% 0.45%; background-image: url("../icons/badge-smashx-content.svg"); }


/* === 14. About =========================================================== */

.about {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 8vw, 80px) var(--gutter) clamp(24px, 5vw, 40px);
  max-width: 900px;
  margin: 0 auto;
}
.about__h2 {
  font-family: var(--font-family);
  font-weight: 590;
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  line-height: 1.15;
  background-image: var(--gradient-section);
}
.about__text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.4;
  color: var(--color-text-80);
}
.about__text p { margin: 0; line-height: 1.4; }


/* === 15. Contacts ======================================================== */

.contacts {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 32px);
  align-items: center;
  padding: clamp(40px, 6vw, 64px) var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
}
.contacts__h2 {
  font-family: var(--font-family);
  font-weight: 590;
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  line-height: 1.15;
  background-image: var(--gradient-section);
}
.contacts__grid {
  display: grid;
  gap: 16px;
  width: 100%;
  grid-template-columns: 1fr;
}

.contact-card {
  position: relative;
  width: 100%;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  /* background-color чтобы не пробивать background-image у contact-card--2 */
  background-color: #000;
}
.contact-card--1 { overflow: clip; }
.contact-card--1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay-dark);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
/* SVG Frame200 (чёрный rect + blue blurred circle) — фиксированные размеры из Figma.
   На любой ширине card SVG ставится в верх-левый угол (top -1, left -1.5);
   blue circle в SVG на cy=247 — визуально оказывается в нижней части card. */
.contact-card--1 .contact-card__bg {
  position: absolute;
  top: -1px;
  left: -1.5px;
  width: 409px;
  height: 555px;
  z-index: 1;
  pointer-events: none;
}
.contact-card--1::after,
.contact-card--2::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-card-glow);
  pointer-events: none;
  z-index: 3;
}
.contact-card--2 { background-image: var(--gradient-contact-2); }

.contact-card__head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
}
.contact-card__title {
  font-family: var(--font-family);
  font-weight: 590;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  line-height: 1.1;
  color: var(--color-text-90);
}
.contact-card__text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  line-height: 1.4;
  color: var(--color-text-80);
}

.email-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-pill);
  background-image: var(--gradient-email-pill);
  font-family: var(--font-family);
  font-weight: 590;
  font-size: 15px;
  line-height: 1.2;
  color: var(--color-text-80);
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
}

.contact-card__cta {
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .contacts__grid { grid-template-columns: repeat(2, 1fr); }
}


/* === 16. Footer ========================================================== */

.site-footer {
  background: #000;
  padding: clamp(32px, 6vw, 60px) var(--gutter) 0;
  margin-top: clamp(40px, 6vw, 60px);
}
.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-bottom: clamp(28px, 5vw, 48px);
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.site-footer__brand .logo img {
  /* Аналогично header — пропорции жёстко зафиксированы */
  height: 24px;
  width: auto;
  aspect-ratio: 200 / 30;
  flex-shrink: 0;
  display: block;
}
.site-footer__stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.site-footer__menus {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.site-footer__contact-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
}
.site-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.site-footer__menu a,
.site-footer__contacts .menu-title {
  font-family: var(--font-family);
  font-weight: 590;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-text-80);
  white-space: nowrap;
  transition: color .15s ease;
}
.site-footer__menu a:hover { color: var(--color-text); }

/* Bottom bar — нормальный flow, БЕЗ position:absolute */
.site-footer__bottom {
  background: var(--color-footer-bottom);
  margin: 0 calc(-1 * var(--gutter));
  padding: clamp(16px, 3vw, 24px) var(--gutter);
}
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-60);
  max-width: var(--container-max);
  margin: 0 auto;
}
.site-footer__copy-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.site-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.site-footer__phone-icon { width: 18px; height: 18px; flex-shrink: 0; }
.site-footer__legal {
  color: var(--color-text-60);
  text-decoration: underline;
  text-decoration-skip-ink: none;
  transition: color .15s ease;
}
.site-footer__legal:hover { color: var(--color-text); }

@media (min-width: 768px) {
  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 64px;
  }
  .site-footer__menus {
    flex-direction: row;
    justify-content: space-between;
    width: auto;
    gap: 64px;
  }
  .site-footer__bottom-inner {
    flex-wrap: wrap;
    gap: 12px 30px;
  }
}


/* =========================================================================
   17. DESKTOP (≥1280px) — restore the original Figma absolute layout
   ========================================================================= */

@media (min-width: 1280px) {
  body {
    min-width: 1440px;
    overflow-x: hidden;   /* desktop needs hidden to clip blobs/hero-bg overflow */
  }
  .page {
    width: 1440px;
    height: 4373px;
    margin: 0 auto;
  }

  /* --- decorative blobs --- */
  .page__blob {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: screen;
  }
  .page__blob > .blob-svg {
    position: absolute;
    top: -50.18%;
    bottom: -50.18%;
    left: -21.2%;
    right: -21.2%;
    width: auto;
    height: auto;
  }
  .page__blob--1 {
    top: 30.32%;
    bottom: 50.99%;
    left: -23.68%;
    right: -10.63%;
  }
  .page__blob--1 > .blob-svg { transform: scaleX(-1); }
  .page__blob--2 {
    top: 77.06%;
    bottom: 4.25%;
    left: 21.39%;
    right: -55.69%;
  }
  .page__blob--2 > .blob-svg { transform: rotate(180deg) scaleX(-1); }

  /* --- header --- */
  .site-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1440px;
    height: 80px;
    padding: 0;
    background: var(--color-header-bg);
    border: 1px solid var(--color-border-card);
    border-bottom: 1px solid var(--color-border-card);
    border-radius: 0 0 30px 30px;
    box-shadow: var(--shadow-header);
    overflow: hidden;
    display: block;
  }
  .site-header__logo {
    position: absolute;
    top: 50%;
    left: 6.94%;
    transform: translate(-0.86px, calc(-50% + 0.5px));
    width: 200px;
    height: 29px;
  }
  .site-header__logo img { width: 200px; height: 29px; aspect-ratio: 200 / 30; }
  .site-header__nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 20px;
  }
  .site-header__nav ul { gap: 30px; }
  .site-header__nav a { font-size: 16px; }
  .site-header__geo {
    position: absolute;
    top: 29px;
    left: 1219px;
    width: 120px;
    height: 24px;
    font-size: 16px;
  }

  /* --- hero --- */
  .hero {
    position: relative;
    height: 966px;
    overflow: hidden;
    isolation: isolate;
    background: #000;
    padding: 0;
    display: block;
    text-align: left;
    gap: 0;
  }
  .hero__bg-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    height: 832px;
    overflow: hidden;
    z-index: -3;
    inset: auto;
  }
  .hero__bg-1 img {
    position: absolute;
    height: 137.14%;
    width: 118.88%;
    left: -10.14%;
    top: -4.29%;
    max-width: none;
    object-fit: initial;
    opacity: 1;
  }
  .hero__bg-1::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 81.128%, #000 100%);
  }
  .hero__bg-2 {
    display: block;
    position: absolute;
    top: 0;
    left: -146px;
    width: 1712px;
    height: 832px;
    overflow: hidden;
    pointer-events: none;
    z-index: -4;
    inset: auto;
  }
  .hero__bg-2 img {
    position: absolute;
    height: 137.14%;
    width: 100%;
    left: 0;
    top: -4.29%;
    max-width: none;
    object-fit: initial;
    opacity: 1;
  }
  .hero__side {
    display: flex;
    position: absolute;
    top: 0;
    width: 201px;
    z-index: -1;
    pointer-events: none;
  }
  .hero__side--left  { left: -101px; height: 953px; }
  .hero__side--right { left: 1339px; height: 966px; transform: scaleX(-1); }
  .hero__side::before {
    content: "";
    flex: 1 0 0;
    background: var(--color-side-vignette);
    min-width: 1px;
  }
  .hero__side::after {
    content: "";
    width: 101px;
    background: linear-gradient(to left, rgba(18,7,7,0) 0%, var(--color-side-vignette) 100%);
  }
  .hero__title-1 {
    position: absolute;
    top: 101px;
    left: calc(50% - 620px);
    width: 739px;
    font-size: 100px;
    line-height: 1;
  }
  .hero__title-2 {
    position: absolute;
    top: 320px;
    left: calc(50% - 620px);
    width: 859px;
    font-size: 100px;
    line-height: 1;
    margin-top: 0;
  }
  .hero__btn-1 {
    position: absolute;
    top: 570px;
    left: 100px;
    margin-top: 0;
  }
  .hero__btn-2 {
    position: absolute;
    top: 570px;
    left: 270px;
    margin-top: 0;
  }
  .hero__display {
    /* base styles inherited; override to absolute Figma layout */
    position: absolute;
    top: 771px;
    left: calc(50% + .5px);
    transform: translateX(-50%);
    font-size: 170px;
    line-height: 1.2;
    white-space: nowrap;
    margin-top: 0;
  }

  /* --- lead-in --- */
  .lead-in {
    position: absolute;
    top: 1096px;
    left: calc(50% + 0.5px);
    transform: translateX(-50%);
    padding: 0;
    max-width: none;
    margin: 0;
    white-space: nowrap;
  }
  .lead-in__title { font-size: 60px; line-height: 1; }
  .lead-in__text { font-size: 20px; }

  /* --- features title --- */
  .features-title {
    position: absolute;
    top: 1376px;
    left: 100px;
    width: 1240px;
    max-width: none;
    margin: 0;
    padding: 20px;
  }
  .features-title__h2 { font-size: 50px; line-height: 1; }
  .features-title__text { font-size: 20px; }

  /* --- features grid --- */
  .features-grid {
    position: absolute;
    top: 1541px;
    left: 100px;
    width: 1240px;
    max-width: none;
    margin: 0;
    display: flex;
    gap: 5px;
  }
  .feature-card {
    width: 410px;
    height: 555px;
    min-height: 0;
    padding: 30px;
    flex-shrink: 0;
  }
  /* Desktop: photo absolute на всю карточку 410x555. Image позиционирована
     в нижней части (top:160-183, height:372-395 — image начинается ~29-33%
     высоты card). Mask: transparent сверху (где image нет), fade-зона
     накрывает верх image (28%→42% card), далее opaque. Это создаёт мягкий
     градиент на границе image и фона карточки. */
  .feature-card__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    height: auto;
    border-radius: inherit;
    align-self: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 28%, #000 42%, #000 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, transparent 28%, #000 42%, #000 100%);
  }
  .feature-card__photo img {
    position: absolute;
    max-width: none;
  }
  .feature-card--1 .feature-card__photo img {
    top: 183px;
    left: 0;
    width: 100%;
    height: 372px;
    object-fit: cover;
  }
  .feature-card--2 .feature-card__photo img {
    top: 160px;
    left: 0;
    width: 100%;
    height: 395px;
    object-fit: cover;
  }
  .feature-card--3 .feature-card__photo img {
    top: 160px;
    left: -3%;
    width: 120.68%;
    height: 395px;
    object-fit: cover;
  }
  .feature-card__title { font-size: 30px; line-height: 1; }
  .feature-card__text  { font-size: 20px; line-height: 1.4; }

  /* --- divider --- */
  .divider-display {
    display: block;
    position: absolute;
    top: 2104px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-family);
    font-weight: 590;
    font-size: 170px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    pointer-events: none;
    user-select: none;
  }

  /* --- app section --- */
  .app-section-title {
    position: absolute;
    top: 2316px;
    left: calc(50% + 0.5px);
    transform: translateX(-50%);
    padding: 0;
    margin: 0;
    max-width: none;
    white-space: nowrap;
  }
  .app-section-title__h2 { font-size: 60px; line-height: 1; }
  .app-section-title__text { font-size: 20px; }

  .app-section {
    position: absolute;
    top: 2476px;
    left: 0;
    width: 1440px;
    height: 713px;
  }
  .app-section__bg {
    background: url("../images/app-section-bg.png") center / 1440px 713px no-repeat, #000;
  }

  .store-badges {
    position: absolute;
    top: 2476px;
    left: calc(50% + 0.5px);
    transform: translateX(-50%);
    padding: 0;
    flex-wrap: nowrap;
    z-index: 2;
  }

  /* --- about --- */
  .about {
    position: absolute;
    top: 3289px;
    left: calc(50% + 0.5px);
    transform: translateX(-50%);
    padding: 0;
    margin: 0;
    max-width: none;
    white-space: nowrap;
  }
  .about__h2 { font-size: 60px; line-height: 1; }
  .about__text { font-size: 20px; }

  /* --- contacts --- */
  .contacts {
    position: absolute;
    top: 3575px;
    left: calc(58.33% - 116.5px);
    transform: translateX(-50%);
    padding: 0;
    max-width: none;
    margin: 0;
    gap: 14px;
  }
  .contacts__h2 { font-size: 60px; line-height: 1; white-space: nowrap; }
  .contacts__grid {
    display: flex;
    gap: 10px;
    width: auto;
  }
  .contact-card {
    width: 410px;
    height: 306px;
    min-height: 0;
    padding: 30px;
    flex-shrink: 0;
    /* background-color, НЕ shorthand — иначе background-image у contact-card--2 сбрасывается */
    background-color: #000;
    gap: 0;
    justify-content: space-between;
  }
  /* contact-card--1 .contact-card__bg уже задана в base — desktop наследует */
  .contact-card__title { font-size: 30px; line-height: 1; }
  .contact-card__text { font-size: 20px; line-height: 1.4; }
  .email-pill { font-size: 16px; padding: 6px 10px; }

  /* --- footer --- */
  .site-footer {
    position: absolute;
    top: 4055px;
    left: 0;
    width: 1440px;
    height: 318px;
    background: #000;
    /* overflow: visible — иначе обрежет site-footer__bottom который тянется на 100vw */
    overflow: visible;
    padding: 0;
    margin-top: 0;
  }
  .site-footer__top {
    position: absolute;
    top: 60px;
    left: 138.5px;
    width: 1163px;
    max-width: none;
    margin: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: row;
    gap: 164px;
    align-items: flex-start;
  }
  .site-footer__brand {
    width: 459px;
    gap: 20px;
  }
  .site-footer__brand .logo img { width: 200px; height: 30px; }
  .site-footer__stores {
    width: 100%;
    flex-wrap: nowrap;
  }
  .site-footer__menus {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 540px;
    gap: 0;
  }
  .site-footer__contacts {
    width: 189px;
    gap: 18px;
  }
  .site-footer__contact-group {
    width: 100%;
    gap: 10px;
  }
  .site-footer__menu {
    width: 125px;
    gap: 20px;
  }

  /* Bottom bar — full-bleed на всю ширину viewport (тянется за .page 1440px) */
  .site-footer__bottom {
    position: absolute;
    bottom: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    height: 60px;
    margin: 0;
    background: var(--color-footer-bottom);
    padding: 0 98px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-footer__bottom-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: center;
    width: 100%;
    max-width: 1244px;   /* 1440 - 2*98 padding — контент остаётся в пределах основной сетки */
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.2;
    color: var(--color-text-60);
    white-space: nowrap;
  }
  .site-footer__copy-group {
    flex-wrap: nowrap;
    gap: 20px;
  }
}
