/* ==========================================================================
   Power Motors — holiday promo page
   Mobile first. Desktop layout starts at 64rem (design: 360 and 1440).
   ========================================================================== */


/* ---------- Fonts ---------- */

@font-face {
  font-family: "Benzin";
  src: url("../assets/fonts/benzin-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Coolvetica";
  src: url("../assets/fonts/coolvetica-heavy-compressed.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "TT Firs Neue";
  src: url("../assets/fonts/tt-firs-neue-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "TT Firs Neue";
  src: url("../assets/fonts/tt-firs-neue-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "TT Firs Neue";
  src: url("../assets/fonts/tt-firs-neue-demibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}


/* ---------- Design tokens ---------- */

:root {
  --c-header: #0A0D12;
  --c-ink: #020E1E;
  --c-ink-2: #06172E;
  --c-card: #0B1D38;
  --c-footer: #01070F;
  --c-cyan: #1EB4F0;
  --c-yellow: #FFD400;
  --c-sky: #A9C9EA;
  --c-white: #FFFFFF;

  --c-lets-race: #FF7A1A;
  --c-twist-stunt: #FFD400;
  --c-fun-wheels: #7BC043;
  --c-drift-cars: #A259FF;
  --c-eco-speed: #3FE0C5;
  --c-action-truck: #B8C2CC;

  --font-heading: "Benzin", "Arial Black", sans-serif;
  --font-numbers: "Coolvetica", "Arial Narrow", sans-serif;
  --font-body: "TT Firs Neue", "Segoe UI", Arial, sans-serif;

  --container: 75rem;
  --gutter: 1rem;
  --section-space: 6rem;
  --head-space: 2.5rem;

  --radius-button: 0.625rem;
  --radius-card: 1rem;
  --radius-chip: 0.5rem;
  --radius-badge: 0.375rem;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 2.5rem;
    --section-space: 7rem;
    --head-space: 3.5rem;
  }
}


/* ---------- Base ---------- */

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

/* The whole layout is in rem, and rem follows the screen width:
   16px at 360 (mobile design) and at 1440 (desktop design), scaling in between and beyond. */
html {
  font-size: clamp(14px, 4.4444vw, 20px);
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

/* Desktop: up to laptop size (~1512, a 14" MacBook) the page scales 1:1 with the screen
   (1.1111vw = 16px at 1440). Wider than that it almost stops growing, and from 1920 on
   it is 0.8 of the full scale (0.8889vw), so big monitors don't get an oversized page:
     min(full scale, max(0.8 of full scale, 15.81px + 0.0654vw))
   The middle line goes from 16.8px at 1512 to 17.07px at 1920, where it meets 0.8889vw. */
@media (min-width: 1024px) {
  html { font-size: clamp(12px, min(1.1111vw, max(0.8889vw, 15.81px + 0.0654vw)), 24px); }
}

body {
  margin: 0;
  background: var(--c-ink);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
  body { font-size: 1rem; }
}

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

ul { list-style: none; }

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

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

address { font-style: normal; }

/* Trim text boxes to cap height — matches the Figma layout (Vertical trim: cap height) */
h1, h2, h3, p,
.btn, .chip, .badge, .link {
  text-box: trim-both cap alphabetic;
}

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 0.1875rem;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -6.25rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--c-yellow);
  color: var(--c-ink);
  border-radius: var(--radius-button);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: currentColor;
}

.desktop-only { display: none; }

@media (min-width: 1024px) {
  .desktop-only { display: initial; }
  .mobile-only { display: none; }
}


/* ---------- Typography ---------- */

.section__title {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section__lead {
  color: var(--c-sky);
}

.section__head {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .section__title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .section__lead {
    font-size: 1.25rem;
  }

  .section__head { gap: 1.25rem; }
}


/* ---------- Sections ---------- */

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

.section--ink { background: var(--c-ink); }
.section--ink-2 { background: var(--c-ink-2); }

.section .section__title,
.section .section__head {
  margin-bottom: var(--head-space);
}

.section .section__head .section__title,
.section .section__head .section__head { margin-bottom: 0; }


/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-button);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, box-shadow 0.25s, color 0.25s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--yellow { background: var(--c-yellow); color: var(--c-header); }
.btn--yellow:hover { box-shadow: 0 0.625rem 1.875rem -0.625rem rgb(255 212 0 / 0.7); }

.btn--cyan { background: var(--c-cyan); color: var(--c-ink); }
.btn--cyan:hover { box-shadow: 0 0.625rem 1.875rem -0.625rem rgb(30 180 240 / 0.8); }

.btn--dark { background: var(--c-ink); color: var(--c-white); }
.btn--dark:hover { box-shadow: 0 0.625rem 1.875rem -0.75rem rgb(2 14 30 / 0.8); }

.btn--outline { border-color: rgb(255 255 255 / 0.9); color: var(--c-white); }
.btn--outline:hover { background: var(--c-white); color: var(--c-ink); }

.btn--small {
  padding: 0.6875rem 0.875rem;
}

@media (min-width: 1024px) {
  .btn {
    gap: 0.625rem;
    padding: 1.125rem 2rem 1.125rem 1.5rem;
    font-size: 1rem;
  }

  .btn--small { padding: 0.875rem 1.25rem; }
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--c-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.link .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s var(--ease-out);
}

.link:hover .icon { transform: translateX(0.25rem); }

@media (min-width: 1024px) {
  .link {
    gap: 0.5rem;
    font-size: 1rem;
  }

  .link .icon { width: 1.125rem; height: 1.125rem; }
}

.round-button {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.25s, border-color 0.25s, opacity 0.25s;
}

.round-button .icon { width: 1.375rem; height: 1.375rem; }
.round-button:hover { border-color: var(--c-white); background: rgb(255 255 255 / 0.08); }

.round-button--filled {
  border-color: var(--c-cyan);
  background: var(--c-cyan);
  color: var(--c-ink);
}
.round-button--filled:hover { background: #4BC6F5; border-color: #4BC6F5; }

.round-button:disabled { opacity: 0.35; cursor: default; }

.play-button {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--c-cyan);
  color: var(--c-ink);
  transition: transform 0.3s var(--ease-out);
}

.play-button .icon { width: 40%; height: 40%; margin-left: 4%; }

@media (min-width: 1024px) {
  .play-button { width: 4rem; height: 4rem; }
  .play-button--large { width: 5.5rem; height: 5.5rem; }
}


/* ---------- Chips and badges ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5625rem 0.875rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius-chip);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}

.chip:hover { border-color: rgb(255 255 255 / 0.7); }

.chip.is-active,
.chip:has(input:checked) {
  border-color: var(--c-cyan);
  background: var(--c-cyan);
  color: var(--c-ink);
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--c-cyan);
  outline-offset: 0.1875rem;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .chips { gap: 0.5rem; }

  .chip {
    padding: 0.75rem 1.125rem;
    font-size: 0.875rem;
  }
}

.badge {
  display: inline-block;
  padding: 0.3125rem 0.5rem;
  border-radius: var(--radius-badge);
  background: rgb(2 14 30 / 0.75);
  color: var(--c-white);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.badge--light { background: var(--c-white); color: var(--c-ink); }
.badge--cyan { background: var(--c-cyan); color: var(--c-ink); }
.badge--sale { background: var(--c-yellow); color: var(--c-ink); font-weight: 600; }

@media (min-width: 1024px) {
  .badge {
    padding: 0.4375rem 0.625rem;
    font-size: 0.875rem;
  }
}


/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-header);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.header.is-scrolled {
  background: rgb(10 13 18 / 0.86);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06);
  backdrop-filter: blur(0.875rem);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 5.375rem;
}

.header__logo { margin-right: auto; }
.header__logo img { width: 11.5rem; }

.nav { display: none; }

.header__sale {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.header__sale .icon { width: 1.25rem; height: 1.25rem; }
.header__sale-label { display: none; }

.header__burger {
  display: grid;
  place-content: center;
  gap: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius-button);
  background: transparent;
}

.header__burger span {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--c-white);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.375rem) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.375rem) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - 5.375rem);
  overflow-y: auto;
  padding: 2rem var(--gutter);
  background: var(--c-header);
  animation: menu-in 0.35s var(--ease-out);
}

.mobile-menu__list {
  display: grid;
  gap: 1.75rem;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  text-transform: uppercase;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-0.75rem); }
}

@media (min-width: 1024px) {
  .header__inner { height: 5.5rem; }
  .header__logo { margin-right: 0; }
  .header__logo img { width: 15rem; }

  .nav {
    display: block;
    margin-inline: auto;
  }

  .nav__list {
    display: flex;
    gap: 2.25rem;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
  }

  .nav__list a {
    position: relative;
    padding-block: 0.375rem;
  }

  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--c-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
  }

  .nav__list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .header__sale {
    width: auto;
    height: auto;
    padding: 1.125rem 2rem 1.125rem 1.5rem;
  }

  .header__sale-label { display: inline; }
  .header__burger,
  .mobile-menu { display: none; }
}


/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-bottom: var(--section-space);
  overflow: hidden;
  background: var(--c-ink);
}

.hero__panels {
  position: relative;
  height: 19rem;
  overflow: hidden;
}

/* Each panel covers the whole hero and is cut into a slanted strip with clip-path */
.hero__panel {
  position: absolute;
  inset: 0;
}

/* --px/--py come from the pointer parallax in main.js, --zoom from hover */
.hero__panel img {
  position: absolute;
  max-width: none;
  object-fit: cover;
  transform: translate(var(--px, 0px), var(--py, 0px)) scale(var(--zoom, 1));
  transition: transform 0.7s var(--ease-out);
}

.hero__panel--fun   { clip-path: polygon(0 0, 36.8% 0, 28.3% 100%, 0 100%); }
.hero__panel--twist { clip-path: polygon(36.8% 0, 70.1% 0, 61.7% 100%, 28.3% 100%); }
.hero__panel--drift { clip-path: polygon(70.1% 0, 100% 0, 100% 100%, 61.7% 100%); }

.hero__panel--fun img   { left: -25.3%; top: -44.7%; width: 83.9%; height: 149.3%; }
.hero__panel--twist img { left: 9.2%;   top: -45.4%; width: 81.7%; height: 145.4%; }
.hero__panel--drift img { left: 41.9%;  top: -51.3%; width: 85%;   height: 151.3%; }

.hero__panels::before,
.hero__panels::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__panels::before {
  top: 0;
  height: 5.625rem;
  background: linear-gradient(var(--c-ink), rgb(2 14 30 / 0));
}

.hero__panels::after {
  bottom: 0;
  height: 6.875rem;
  background: linear-gradient(rgb(2 14 30 / 0), rgb(2 14 30 / 0.95));
}

.hero__cuts {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero__cuts line {
  stroke: rgb(255 255 255 / 0.55);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.hero__cuts--desktop { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.25rem;
  margin-top: 4.5rem;
  text-align: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Each line slides up on load (see Motion at the end of the file) */
.hero__title-line { display: block; }
.hero__title-line > span { display: inline-block; }

.hero__text {
  color: var(--c-sky);
}

.hero__buttons {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* Partner stores right under the buttons, so they're visible on any screen */
.hero__shops {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.875rem;
  margin-top: 2rem;
  text-align: center;
}

.hero__shops-title {
  color: var(--c-sky);
  font-size: 0.875rem;
  font-weight: 500;
  text-shadow: 0 1px 0.75rem rgb(5 16 31 / 0.9);
}

.hero__shops-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.hero__shop.partner {
  height: 3.75rem;
  border-color: rgb(255 255 255 / 0.14);
  background: rgb(5 16 31 / 0.6);
  backdrop-filter: blur(0.5rem);
}

.hero__shop.partner--epicentr { --logo-height: 0.875rem; }
.hero__shop.partner--bi       { --logo-height: 1.5rem; }
.hero__shop.partner--antoshka { --logo-height: 1.25rem; }

@media (min-width: 600px) and (max-width: 1023px) {
  .hero__panels { height: 26.25rem; }
  .hero__buttons { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  /* Same proportions as the 1440 × 860 design (53.75rem) and fits the screen height,
     but never flatter than 46.8rem (on wide, low screens the cars would end up under the text).
     Photos are sized in cqw (% of the hero width) and pinned to the bottom,
     so on wide screens only the sky above the cars gets cropped. */
  .hero {
    height: max(min(53.75rem, 100svh - 5.5rem), 46.8rem);
    padding: 0;
    background: var(--c-header);
    container-type: inline-size;
  }

  .hero__panels {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .hero__panel--fun   { clip-path: polygon(0 0, 38.19% 0, 28.47% 100%, 0 100%); }
  .hero__panel--twist { clip-path: polygon(38.19% 0, 71.53% 0, 61.81% 100%, 28.47% 100%); }
  .hero__panel--drift { clip-path: polygon(71.53% 0, 100% 0, 100% 100%, 61.81% 100%); }

  .hero__panel img { top: auto; }
  .hero__panel--fun img   { left: -2.64%; bottom: -5.14cqw; width: 43.33cqw; height: max(65.07cqw, 100% + 9cqw); }
  .hero__panel--twist img { left: 27.08%; bottom: -7.85cqw; width: 45.83cqw; height: max(68.75cqw, 100% + 12cqw); }
  .hero__panel--drift img { left: 59.51%; bottom: -4.72cqw; width: 42.92cqw; height: max(64.44cqw, 100% + 9cqw); }

  .hero__panels::before {
    height: 61%;
    background: linear-gradient(rgb(5 16 31 / 0.9), rgb(5 16 31 / 0.55) 60%, rgb(5 16 31 / 0));
  }

  .hero__panels::after {
    height: 30%;
    background: linear-gradient(rgb(5 16 31 / 0), rgb(5 16 31 / 0.75) 55%, rgb(5 16 31 / 0.95));
  }

  .hero__cuts--mobile { display: none; }
  .hero__cuts--desktop { display: block; }
  .hero__cuts line { stroke-width: 2; }

  /* Hovering a panel brings its car closer */
  .hero__panel:hover { --zoom: 1.04; }

  .hero__content {
    gap: 0;
    margin-top: 4.5rem;
    justify-items: center;
  }

  .hero__title {
    font-size: 4rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  /* offsets match the Figma frame, where this paragraph isn't cap-trimmed */
  .hero__text {
    max-width: 49.5rem;
    margin-top: 2.375rem;
    color: #D6ECFF;
  }

  .hero__buttons {
    display: flex;
    margin-top: 1.9375rem;
  }

  /* the outline button sits on a photo here, so it gets a dark backing */
  .hero__buttons .btn--outline { background: rgb(5 16 31 / 0.7); }
  .hero__buttons .btn--outline:hover { background: var(--c-white); }

  /* along the bottom edge, as in the design: caption on the left, store buttons on the right */
  .hero__shops {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0;
  }

  .hero__shops-title { color: #D6ECFF; font-size: 1rem; }

  .hero__shops-list {
    grid-template-columns: repeat(3, 13.5rem);
    gap: 0.75rem;
  }

  .hero__shop.partner { height: 4rem; border-radius: 0.875rem; }
  .hero__shop.partner--epicentr { --logo-height: 1.25rem; }
  .hero__shop.partner--bi       { --logo-height: 2rem; }
  .hero__shop.partner--antoshka { --logo-height: 1.75rem; }
}


/* ---------- Countdown ---------- */

.countdown {
  padding-block: var(--section-space);
  background: var(--c-cyan);
  color: var(--c-ink);
}

.countdown__inner {
  display: grid;
  gap: 2rem;
}

.countdown__text {
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

.countdown__title {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  line-height: 1.2;
  text-transform: uppercase;
}

/* after New Year: no timer, a big greeting instead (main.js adds the class) */
.countdown--greeting .countdown__title { font-size: 2.25rem; line-height: 1.1; }

.countdown__timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.countdown__colon { display: none; }

.countdown__unit {
  display: grid;
  justify-items: center;
  gap: 0.375rem;
}

.countdown__value {
  display: block;
  font-family: var(--font-numbers);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 0.86;
  font-variant-numeric: tabular-nums;
  text-box: trim-both cap alphabetic;
}

/* Each digit is a tiny stack: the old one slides up, the new one comes from below (main.js) */
.countdown__value {
  display: flex;
  justify-content: center;
}

.countdown__digit {
  display: inline-grid;
}

.countdown__digit > span {
  grid-area: 1 / 1;
  text-box: trim-both cap alphabetic;
}

.countdown__name {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  .countdown { padding-block: 3rem; }

  .countdown__inner {
    grid-template-columns: minmax(0, 24rem) auto 1fr;
    align-items: center;
    gap: 1.5rem;
  }

  .countdown__text {
    gap: 0.875rem;
    text-align: left;
  }

  .countdown__title { font-size: 1.5rem; }

  .countdown__timer {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .countdown__unit {
    width: 4.875rem;
    gap: 0.75rem;
  }

  .countdown__colon {
    display: block;
    width: 1rem;
    font-family: var(--font-numbers);
    font-size: 7.5rem;
    font-weight: 800;
    line-height: 0.86;
    text-align: center;
    text-box: trim-both cap alphabetic;
  }

  .countdown__value,
  .countdown__colon { font-size: 7.5rem; }

  .countdown__name { font-size: 0.875rem; }

  .countdown__button { justify-self: end; }

  .countdown--greeting .countdown__inner { grid-template-columns: 1fr auto; }
  .countdown--greeting .countdown__text { max-width: none; }
  .countdown--greeting .countdown__title { font-size: 3.5rem; line-height: 1.05; }
}


/* ---------- Carousel (series, new arrivals, videos) ---------- */

.carousel__track {
  position: relative;
  display: flex;
  gap: 1rem;
  /* the track bleeds to the screen edges but starts at the container edge */
  padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  scroll-padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  overflow-x: auto;
  overflow-y: hidden; /* otherwise the cards' rise-in animation makes the track scroll vertically on iOS */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.carousel__track::-webkit-scrollbar { display: none; }

.carousel__track.is-animating { scroll-snap-type: none; }

.carousel__track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}
.carousel__track > * { scroll-snap-align: start; flex-shrink: 0; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2.25rem;
}

.carousel__dots[hidden] { display: none; }

.carousel__dot {
  width: 0.5rem;
  height: 0.25rem;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.3);
  transition: width 0.35s var(--ease-out), background-color 0.35s;
}

.carousel__dot.is-active {
  width: 1.25rem;
  background: var(--c-cyan);
}

.carousel__arrows { display: none; }

@media (min-width: 1024px) {
  .carousel__track { gap: 1.5rem; }

  .carousel__dots {
    gap: 0.5rem;
    margin-top: 2.5rem;
  }

  .carousel__dot { width: 0.75rem; }
  .carousel__dot.is-active { width: 1.75rem; }

  .carousel__arrows {
    display: flex;
    gap: 0.75rem;
  }

  .section__head--with-arrows {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}


/* ---------- Series ---------- */

.series-card {
  display: flex;
  flex-direction: column;
  width: 17.5rem;
  overflow: hidden;
  border-top: 0.25rem solid var(--series-color);
  border-radius: var(--radius-card);
  background: var(--c-card);
}

.series-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.series-card:hover .series-card__photo { transform: scale(1.05); }

.series-card__body {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem 1.25rem;
}

.series-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.series-card__tagline {
  color: var(--series-color);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.series-card__text { color: var(--c-sky); }

.series-card__link {
  align-self: flex-start;
  margin: auto 1.25rem 1.5rem;
  padding-top: 0.25rem;
  white-space: nowrap;
}

/* centred on phones, as in the mobile design */
@media (max-width: 1023px) {
  #series .section__title { text-align: center; }
}

@media (min-width: 1024px) {
  .carousel--series .carousel__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: min(var(--container), 100% - 2 * var(--gutter));
    margin-inline: auto;
    padding: 0;
    overflow: visible;
  }

  .carousel--series .carousel__dots { display: none; }

  .series-card { width: auto; }
  .series-card__photo { aspect-ratio: 384 / 300; }

  .series-card__body {
    gap: 0.875rem;
    padding: 1.75rem 1.75rem 2rem;
  }

  .series-card__name { font-size: 1.5rem; }
  .series-card__tagline { font-size: 0.875rem; }

  .series-card__link {
    margin: auto 1.75rem 2rem;
    padding-top: 0;
  }
}


/* ---------- Product card ---------- */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 0.875rem;
  background: var(--c-card);
}

.product-card__photo {
  position: relative;
  aspect-ratio: 200 / 164;
  overflow: hidden;
  background: var(--c-white);
}

.product-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-card__photo img { transform: scale(1.06); }

.product-card__tags {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.product-card__tags .badge { white-space: nowrap; }

/* the white «Новинка» badge sits on a white photo, so it gets a thin outline */
.product-card__tags .badge--light { box-shadow: inset 0 0 0 1px rgb(2 14 30 / 0.15); }

.product-card__name {
  padding: 1rem 1rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.product-card__shop {
  padding: 0.5rem 1rem 0;
  color: var(--c-sky);
  font-size: 0.75rem;
  line-height: 1.4;
}

.product-card__no-price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
}

.product-card__bottom {
  display: grid;
  gap: 1.25rem;
  margin-top: auto;
  padding: 1.25rem 1rem 1rem;
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}

.product-card__old-price {
  display: block;
  margin-top: 0.625rem;
  color: var(--c-sky);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: line-through;
}

@media (min-width: 1024px) {
  .product-card__old-price {
    display: inline;
    margin: 0 0 0 0.625rem;
    font-size: 1rem;
  }
}

.product-card .btn .icon { width: 1.125rem; height: 1.125rem; }
.product-card .btn:hover .icon { transform: translate(2px, -2px); }
.product-card .btn .icon { transition: transform 0.25s var(--ease-out); }

/* Big card in the sale list on phones: photo on white, price and button in one row */
@media (max-width: 1023px) {
  .product-card--wide { border-radius: var(--radius-card); }

  .product-card--wide .product-card__photo {
    aspect-ratio: auto;
    height: 14.375rem;
    padding: 1.75rem 1.25rem 0.75rem;
  }

  .product-card--wide .product-card__photo img { object-fit: contain; }

  .product-card--wide .product-card__tags { top: 0.75rem; left: 0.75rem; gap: 0.375rem; }

  /* big card, bigger badges (same size as on desktop) */
  .product-card--wide .badge {
    padding: 0.4375rem 0.625rem;
    font-size: 0.875rem;
  }

  .product-card--wide .product-card__name {
    padding: 1.25rem 1rem 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
  }

  .product-card--wide .product-card__shop { font-size: 0.875rem; }

  .product-card--wide .product-card__bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.25rem 1rem 1rem;
  }

  .product-card--wide .product-card__price { font-size: 1.625rem; }

  .product-card--wide .btn { padding: 1rem 1.25rem; }
}

@media (min-width: 1024px) {
  .product-card { border-radius: var(--radius-card); }
  .product-card__photo { aspect-ratio: 282 / 240; }
  .product-card__tags { top: 0.75rem; left: 0.75rem; gap: 0.375rem; }

  .product-card__name {
    padding: 1.25rem 1.25rem 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
  }

  .product-card__shop { padding: 0.25rem 1.25rem 0; font-size: 0.875rem; }

  .product-card__bottom {
    gap: 1rem;
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .product-card__price { font-size: 1.5rem; }
}


/* ---------- Sale ---------- */

.section#sale { --head-space: 2rem; }

.sale__toolbar {
  margin-bottom: 2rem;
}

.sort { display: none; }

.product-grid {
  display: grid;
  gap: 1rem;
}

.product-grid > li { transition: opacity 0.35s, transform 0.45s var(--ease-out); }
.product-grid > li.is-hidden { display: none; }
.product-grid > li.is-entering { opacity: 0; transform: translateY(1rem); }

.sale__more {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.sale__more .btn { width: 100%; }
.sale__more[hidden] { display: none; }

.sale__count {
  color: var(--c-sky);
  font-size: 0.75rem;
  font-weight: 500;
}

@media (min-width: 600px) and (max-width: 1023px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .section#sale { --head-space: 2.5rem; }

  .sale__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .sort {
    position: relative;
    display: block;
  }

  .sort__button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border: 0;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
  }

  .sort__button .icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s var(--ease-out);
  }

  .sort__button[aria-expanded="true"] .icon { transform: rotate(180deg); }

  .sort__list {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    z-index: 5;
    min-width: 16.5rem;
    padding: 0.375rem;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 0.75rem;
    background: var(--c-card);
    box-shadow: 0 1.25rem 2.5rem -0.75rem rgb(0 0 0 / 0.6);
    animation: sort-open 0.25s var(--ease-out);
  }

  @keyframes sort-open {
    from { opacity: 0; transform: translateY(-0.375rem); }
  }

  .sort__option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: var(--radius-chip);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }

  .sort__option:hover,
  .sort__option.is-focused { background: rgb(255 255 255 / 0.06); }

  .sort__option[aria-selected="true"] { color: var(--c-cyan); }

  /* a small check mark next to the chosen option */
  .sort__option[aria-selected="true"]::after {
    content: "";
    width: 0.75rem;
    height: 0.4375rem;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg) translateY(-2px);
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .sale__more {
    gap: 0.875rem;
    margin-top: 2.5rem;
  }

  .sale__more .btn { width: auto; }
  .sale__count { font-size: 0.875rem; }
}


/* ---------- Gift quiz ---------- */

.quiz {
  display: grid;
  gap: 0.75rem;
}

.quiz__question {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  padding: 1.25rem;
  border: 0;
  border-radius: 0.875rem;
  background: var(--c-card);
}

.quiz__legend {
  display: flex;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.quiz__legend span { color: var(--c-cyan); }

.quiz .chips { gap: 0.5rem; }

.quiz .chip {
  padding: 0.9375rem 1.25rem;
  border-radius: var(--radius-button);
  font-size: 1rem;
  line-height: 1.2;
}

.quiz .chip:active { transform: scale(0.96); }

.quiz__result {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgb(30 180 240 / 0.7);
  border-radius: 0.875rem;
  background: var(--c-card);
}

.quiz__result-text {
  display: grid;
  gap: 0.75rem;
}

.quiz__result-label {
  color: var(--c-cyan);
  font-size: 0.75rem;
  font-weight: 500;
}

.quiz__result-series {
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.quiz__result-about { color: var(--c-sky); }

.quiz__result.is-updating .quiz__result-text {
  animation: result-swap 0.5s var(--ease-out);
}

@keyframes result-swap {
  from { opacity: 0; transform: translateY(0.625rem); }
}

.quiz__products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.quiz__products > li { animation: result-swap 0.5s var(--ease-out) backwards; }

/* a series with one model: the card takes both columns */
.quiz__products--single { grid-template-columns: 1fr; }
.quiz__products > li + li { animation-delay: 0.08s; }

@media (min-width: 1024px) {
  .section#quiz .section__head { gap: 1.25rem; }

  .quiz {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
  }

  .quiz__question {
    grid-column: span 4;
    align-content: start;
    padding: 1.75rem;
    border-radius: var(--radius-card);
  }

  .quiz__legend {
    gap: 0.75rem;
    font-size: 1.5rem;
  }

  .quiz .chip {
    padding: 0.75rem 1.125rem;
    border-radius: var(--radius-chip);
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .quiz__result {
    grid-column: span 6;
    align-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem;
    border-radius: var(--radius-card);
  }

  .quiz__result-text { gap: 1rem; }
  .quiz__result-label { font-size: 0.875rem; }
  .quiz__result-series { font-size: 1.5rem; }

  .quiz__products {
    grid-column: span 6;
    gap: 1.5rem;
  }

  .quiz__products--single .product-card__photo { aspect-ratio: auto; height: 15rem; padding: 1.25rem 0; }
  .quiz__products--single .product-card__photo img { object-fit: contain; }
}


/* ---------- Gift for dad ---------- */

.dad__inner {
  display: grid;
  gap: 2.5rem;
}

.dad__text {
  display: grid;
  gap: 1rem;
}

.dad .section__title { margin-bottom: 0; }

.dad__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--c-card);
}

.dad__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dad__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(2 14 30 / 0.3);
}

.dad__video .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 4rem;
  height: 4rem;
  translate: -50% -50%;
}

.dad__video .play-button:hover { transform: scale(1.08); }

.dad__video-note {
  position: absolute;
  top: calc(50% + 3rem);
  left: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

@media (min-width: 1024px) {
  /* video on the left, text and button stacked on the right */
  .dad__inner {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      "video ."
      "video text"
      "video button"
      "video .";
    column-gap: 5rem;
    row-gap: 1.5rem;
  }

  .dad__button {
    grid-area: button;
    justify-self: start;
  }

  .dad__video {
    grid-area: video;
    width: 100%;
  }

  .dad__video .play-button { width: 5.5rem; height: 5.5rem; }

  .dad__video-note {
    top: calc(50% + 4rem);
    left: 3rem;
    right: 3rem;
    font-size: 0.875rem;
  }

  .dad__text {
    grid-area: text;
    gap: 1.5rem;
  }
}


/* ---------- New arrivals ---------- */

.product-row > li { width: 12.5rem; }

@media (min-width: 1024px) {
  .section__head--with-arrows .section__lead { max-width: 49.5rem; }
  .product-row > li { width: calc((min(var(--container), 100vw - 2 * var(--gutter)) - 3 * 1.5rem) / 4); }
}

@media (max-width: 1023px) {
  #new .carousel__track { gap: 0.5rem; }
}


/* ---------- Where to buy ---------- */

.partners {
  display: grid;
  gap: 0.75rem;
}

.partner {
  display: grid;
  place-items: center;
  height: 6rem;
  border: 1px solid transparent;
  border-radius: 0.875rem;
  background: var(--c-card);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background-color 0.35s;
}

.partner:hover {
  transform: translateY(-0.25rem);
  border-color: rgb(255 255 255 / 0.12);
  background: #0F2546;
}

/* Logos are SVG masks, so one colour change makes them white or brand-coloured */
.partner__logo {
  display: block;
  height: var(--logo-height);
  aspect-ratio: var(--logo-ratio);
  background-color: var(--c-white);
  mask: var(--logo) center / contain no-repeat;
  transition: background-color 0.35s;
}

.partner--epicentr { --logo: url("../assets/img/partner-epicentr.svg"); --logo-ratio: 514 / 109; --logo-height: 1.375rem; --brand: #FFE600; }
.partner--bi       { --logo: url("../assets/img/partner-bi.svg");       --logo-ratio: 108 / 44; --logo-height: 2.125rem; --brand: #EC008C; }
.partner--antoshka { --logo: url("../assets/img/partner-antoshka.svg"); --logo-ratio: 167 / 48; --logo-height: 1.875rem; --brand: #E82727; }

.partner:hover .partner__logo,
.partner:focus-visible .partner__logo { background-color: var(--brand); }

@media (min-width: 1024px) {
  .partners {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .partner {
    height: 12.5rem;
    border-radius: var(--radius-card);
  }

  .partner--epicentr { --logo-height: 2.125rem; }
  .partner--bi       { --logo-height: 2.75rem; }
  .partner--antoshka { --logo-height: 2.5rem; }
}


/* ---------- Videos ---------- */

.video-card { width: 17.5rem; }

.video-card__thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.875rem;
  background: var(--c-card);
}

.video-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.video-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(2 14 30 / 0.3);
  transition: background-color 0.3s;
}

.video-card__thumb .play-button { position: relative; z-index: 1; }

.video-card__thumb .badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 1;
}

.video-card__thumb:hover img { transform: scale(1.05); }
.video-card__thumb:hover::after { background: rgb(2 14 30 / 0.1); }
.video-card__thumb:hover .play-button { transform: scale(1.12); }

.video-card__title {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.video-card__meta {
  margin-top: 0.75rem;
  color: var(--c-sky);
  font-size: 0.75rem;
  font-weight: 500;
}

.video__bottom {
  display: grid;
  justify-items: start;
  gap: 2rem;
  margin-top: 2.25rem;
}

.video__bottom .carousel__dots {
  justify-self: center;
  margin-top: 0;
}

.video__more { width: 100%; }

@media (min-width: 1024px) {
  .video-card { width: 30rem; }
  .video-card__thumb { border-radius: var(--radius-card); }

  .video-card__thumb .badge { top: 1rem; left: 1rem; }

  .video-card__title { font-size: 1.5rem; }
  .video-card__meta { margin-top: 1rem; font-size: 0.875rem; }

  .video__bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 2.5rem;
  }

  .video__bottom .carousel__dots { justify-self: start; }
  .video__more { width: auto; }
}


/* ---------- Video player ---------- */

.video-modal {
  width: min(26.25rem, 100vw - 2rem);
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
}

.video-modal::backdrop {
  background: rgb(1 7 15 / 0.85);
  backdrop-filter: blur(0.5rem);
}

.video-modal.is-wide { width: min(62rem, 100vw - 2rem); }
.video-modal.is-wide .video-modal__frame { aspect-ratio: 16 / 9; }

.video-modal[open] { animation: modal-in 0.4s var(--ease-out); }

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(0.75rem); }
}

.video-modal__frame {
  aspect-ratio: 9 / 16;
  max-height: calc(100svh - 6rem);
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--c-card);
}

.video-modal__frame iframe,
.dad__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 50%;
  background: transparent;
  color: var(--c-white);
  font-size: 1.5rem;
  line-height: 1;
}

.video-modal__close:hover { background: var(--c-white); color: var(--c-ink); }

.dad__video.is-playing::after,
.dad__video.is-playing .play-button { display: none; }


/* ---------- Footer ---------- */

.footer {
  padding: 4rem 0 2.5rem;
  background: var(--c-footer);
}

.footer__top {
  display: grid;
  gap: 2.5rem;
}

.footer__brand {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  color: var(--c-sky);
}

.footer__brand img { width: 11.25rem; }

.footer__socials {
  display: flex;
  gap: 0.625rem;
}

.footer__socials a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 50%;
  color: var(--c-white);
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.25s, color 0.25s;
}

.footer__socials a:hover { background: var(--c-white); color: var(--c-ink); }

.footer__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.footer__column ul,
.footer__contacts {
  display: grid;
  gap: 0.625rem;
}

.footer__heading {
  margin-bottom: 0.625rem;
  color: var(--c-cyan);
  font-size: 0.75rem;
  font-weight: 500;
}

.footer__contacts .footer__heading { margin-bottom: 0; }

.footer a:not(.footer__socials a) { transition: color 0.2s; }
.footer__column a:hover,
.footer__contacts a:hover { color: var(--c-cyan); }

.footer__bottom {
  display: grid;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: var(--c-sky);
  font-size: 0.75rem;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .footer { padding-top: 5rem; }

  .footer__top {
    grid-template-columns: 17.625rem auto 17.625rem;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .footer__brand { gap: 1.5rem; }
  .footer__brand img { width: 16.5rem; }

  .footer__socials { gap: 0.75rem; }
  .footer__socials a { width: 2.75rem; height: 2.75rem; }

  .footer__columns {
    grid-template-columns: 11.25rem 11.25rem;
    gap: 5.75rem;
  }

  .footer__column ul,
  .footer__contacts { gap: 0.875rem; }

  .footer__heading {
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
  }

  .footer__bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    font-size: 0.875rem;
  }
}


/* ==========================================================================
   Motion
   The page is fully readable without JS; main.js adds .js to <html>
   and only then the "before" states below kick in.
   ========================================================================== */

/* Scroll reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* inside a horizontal carousel cards only fade in: a vertical shift would overflow the track
   (on desktop the series are a plain grid, so they keep the rise) */
@media (max-width: 1023px) {
  .js .carousel__track > [data-reveal] { transform: none; }
}

/* Hero intro */
.js .hero__panel {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
}

.js .hero__panel img { scale: 1.15; transition: scale 1.8s var(--ease-out), transform 0.7s var(--ease-out); }
.js .hero__panel--twist { transition-delay: 0.12s; }
.js .hero__panel--drift { transition-delay: 0.24s; }

.js .hero__cuts {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s 0.5s var(--ease-out);
}

.js .hero__title-line > span {
  opacity: 0;
  transform: translateY(45%);
  transition: transform 0.9s var(--ease-out), opacity 0.7s var(--ease-out);
}

.js .hero__title-line:nth-child(2) > span { transition-delay: 0.1s; }

.js .hero__text,
.js .hero__buttons,
.js .hero__shops {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.8s 0.35s var(--ease-out), transform 0.8s 0.35s var(--ease-out);
}

.js .hero__buttons { transition-delay: 0.45s; }
.js .hero__shops { transition-delay: 0.55s; }

.js .hero.is-ready .hero__panel,
.js .hero.is-ready .hero__text,
.js .hero.is-ready .hero__buttons,
.js .hero.is-ready .hero__shops {
  opacity: 1;
  transform: none;
}

.js .hero.is-ready .hero__panel img { scale: 1; }
.js .hero.is-ready .hero__cuts { clip-path: inset(0); }
.js .hero.is-ready .hero__title-line > span { opacity: 1; transform: none; }
