/* ROX Motor — site clone. Base styles, layout and homepage blocks.
   Breakpoints: 600 / 960 / 1280 / 1720 (same as the original site). */

:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --card: #1c1c1c;
  --card-2: #262626;
  --gold: #d5b970;
  --gold-2: #c3ab69;
  --gold-soft: rgba(224, 205, 156, .35);
  --white: #fff;
  --t1: rgba(247, 249, 250, .89);
  --t2: rgba(247, 249, 250, .67);
  --t3: rgba(247, 249, 250, .43);
  --line: rgba(247, 249, 250, .14);
  /* Commissioner (Google Fonts, OFL) — closest free match to TT Norms Pro.
     Weights are tuned so the stroke matches TT Norms: 200→100, 300→200, 400→325, 500→475. */
  --f-display: "Commissioner", Arial, Helvetica, sans-serif;
  --f-text: "Commissioner", Arial, Helvetica, sans-serif;
  --fw-thin: 100;
  --fw-light: 200;
  --fw-regular: 325;
  --fw-medium: 475;
  --fw-bold: 600;
  --pad: 24px;
  --gutter: 24px;
  --header-h: 64px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --radius: 4px;
  color-scheme: dark;
}
@media (min-width: 600px) { :root { --pad: 40px; } }
@media (min-width: 960px) { :root { --pad: 64px; --gutter: 32px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.4;
  font-weight: var(--fw-regular);
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (min-width: 960px) { body { font-size: 18px; line-height: 1.3; } }
@media (min-width: 1720px) { body { font-size: 20px; } }
body.is-locked { overflow: hidden; }
img, video, svg, picture { display: block; max-width: 100%; }
b, strong { font-weight: var(--fw-bold); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button, select, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(213, 185, 112, .15); }
.main:focus { outline: none; }
.skip-link { position: fixed; z-index: 2000; top: 8px; left: 8px; padding: 12px 16px; border-radius: var(--radius); background: var(--gold); color: var(--bg); font-weight: var(--fw-medium); transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; font-weight: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.icon { width: 24px; height: 24px; flex: none; }
.visually-hidden { position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.container { width: 100%; max-width: 1720px; margin: 0 auto; padding: 0 var(--pad); }
.main { display: block; }

/* ---------- Typography ---------- */
.h1 { font-family: var(--f-display); font-size: 40px; line-height: 1; letter-spacing: -.6px; font-weight: var(--fw-thin); }
.h2 { font-family: var(--f-display); font-size: 32px; line-height: 1.1; letter-spacing: -.4px; font-weight: var(--fw-thin); }
.h3 { font-family: var(--f-display); font-size: 26px; line-height: 1.2; letter-spacing: -.2px; font-weight: var(--fw-thin); }
.h5 { font-family: var(--f-display); font-size: 18px; line-height: 1.3; letter-spacing: -.2px; font-weight: var(--fw-light); }
.h6 { font-family: var(--f-text); font-size: 16px; line-height: 1.2; font-weight: var(--fw-light); }
.main-text { font-size: 16px; line-height: 1.4; }
.small-text { font-size: 14px; line-height: 1.4; }
.large-caps { font-size: 16px; line-height: 1.4; letter-spacing: 1.4px; font-weight: var(--fw-medium); text-transform: uppercase; }
.caps { font-size: 14px; line-height: 1.3; letter-spacing: 1.2px; text-transform: uppercase; }
.small-caps { font-size: 12px; line-height: 1; letter-spacing: 1px; text-transform: uppercase; }
@media (min-width: 600px) {
  .h1 { font-size: 44px; }
  .h2 { font-size: 36px; letter-spacing: -.64px; line-height: 1; }
  .h3 { font-size: 32px; letter-spacing: -.4px; }
  .h5 { font-size: 24px; line-height: 1.2; }
  .h6 { font-size: 20px; }
  .main-text { font-size: 18px; line-height: 1.3; }
  .small-text { font-size: 16px; line-height: 1.3; }
  .large-caps { font-size: 18px; letter-spacing: 1.6px; }
  .caps { font-size: 16px; letter-spacing: 1.4px; line-height: 1.4; }
  .small-caps { font-size: 14px; letter-spacing: 1.2px; line-height: 1.3; }
}
@media (min-width: 960px) {
  .h1 { font-size: 64px; letter-spacing: -.8px; }
  .h2 { font-size: 48px; letter-spacing: -.6px; }
  .h6 { line-height: 1.4; }
}
@media (min-width: 1280px) {
  .h1 { font-size: 80px; }
  .h2 { font-size: 56px; }
}
@media (min-width: 1720px) {
  .h1 { font-size: 92px; letter-spacing: -1px; }
  .h3 { font-size: 44px; letter-spacing: -.6px; line-height: 1.1; }
  .h2 { font-size: 68px; letter-spacing: -.8px; }
  .h5 { font-size: 36px; line-height: 1.1; }
  .h6 { font-size: 32px; line-height: 1.1; }
  .main-text { font-size: 20px; }
  .small-text { font-size: 18px; }
  .large-caps { font-size: 20px; letter-spacing: 1.8px; }
  .caps { font-size: 18px; letter-spacing: 1.6px; }
  .small-caps { font-size: 16px; line-height: 1.4; }
}
.c-t1 { color: var(--t1); }
.c-t2 { color: var(--t2); }
.c-t3 { color: var(--t3); }
.c-gold { color: var(--gold); }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 56px;
  padding: 19.5px 34.5px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-family: var(--f-text);
  font-size: 12px;
  line-height: 1;
  font-weight: var(--fw-medium);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  white-space: nowrap;
  transition: background-color .3s ease-in-out, color .3s ease-in-out, border-color .3s ease-in-out;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.btn:active { background: var(--gold-2); border-color: var(--gold-2); }
.btn .icon { width: 24px; height: 24px; }
.btn_solid { background: var(--gold); color: var(--bg); }
.btn_solid:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn_small { min-height: 40px; padding: 13px 20px; font-size: 11px; }
@media (min-width: 1720px) { .btn { min-height: 66px; font-size: 14px; padding: 23.5px 35.5px; } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1.4;
  transition: color .2s;
}
.link-arrow .icon { color: var(--gold); transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  color: var(--white);
  background: var(--bg);
  box-shadow: 0 4px 8px rgba(10, 10, 10, .07);
  transition: transform .3s ease-in-out, background-color .3s ease-in-out;
}
.header_transparent { background: rgba(10, 10, 10, .5); }
.header_hidden { transform: translateY(-100%); }
.header.is-open { background: var(--bg); transform: none; }
.header__wrap { display: flex; align-items: center; height: 100%; }
.header__logo { flex: none; display: flex; align-items: center; gap: 14px; margin-right: 40px; }
.header__logo img { width: 96px; height: auto; }
/* dealer name next to the ROX logo (company.js → headerName) */
.header__dealer { font-size: 13px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--white); transition: color .2s; }
.header__logo:hover .header__dealer { color: var(--gold); }
@media (min-width: 960px) {
  .header__logo { gap: 24px; }
  .header__logo img { width: 126px; }
  .header__dealer { font-size: 16px; }
}
@media (max-width: 359.98px) { .header__dealer { display: none; } }

.menu { height: 100%; }
.menu__list { display: flex; gap: 32px; height: 100%; }
.menu__item { display: flex; }
.menu__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .2s ease-in-out;
}
.menu__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.menu__link:hover::after, .menu__item.is-open > .menu__link::after { transform: scaleX(1); }
.menu__arrow { display: none; }
.menu__extra { display: none; }

.header-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.header-links__item { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.3; white-space: nowrap; }
.header-links__icon { width: 28px; height: 28px; color: var(--gold); }
.header-links__item:hover .header-links__text { color: var(--gold); }
.header-links__text { transition: color .2s; }
.header-links__phone .header-links__text { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the phone number stays visible down to 1024px, other header link texts hide below 1280px */
@media (min-width: 1024px) { .header-links .header-links__phone .header-links__text { display: inline; } }
.header__burger { display: none; width: 28px; height: 28px; margin-left: 24px; color: var(--gold); }
.header__burger .icon { width: 28px; height: 28px; }
.header__burger .i-close, .header.is-open .header__burger .i-open { display: none; }
.header.is-open .header__burger .i-close { display: block; }

/* Desktop dropdown */
.menu-dropdown {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, #0a0a0a 0%, rgba(10, 10, 10, .94) 100%);
  box-shadow: 0 40px 60px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
}
.menu__item.is-open > .menu-dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
.menu-dropdown__head { display: none; }

.menu-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 52px 0 48px; }
.menu-models__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border-radius: 6px;
  background: var(--card-2);
  transition: background-color .3s;
}
.menu-models__card:hover { background: #2f2f2f; }
.menu-models__img { display: flex; justify-content: center; align-items: center; aspect-ratio: 368 / 168; }
.menu-models__img img { width: 72%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.menu-models__card:hover .menu-models__img img { transform: scale(1.04); }
.menu-models__info { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 16px; }
.menu-models__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; font-family: var(--f-display); font-weight: var(--fw-light); font-size: 20px; line-height: 1.4; }
.menu-models__price { font-family: var(--f-text); font-size: 14px; color: var(--t2); }
.menu-models__pos { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--t1); }
.menu-models__info .icon { margin-bottom: 2px; }

.menu-groups { display: flex; padding: 36px 64px 48px; }
.menu-group { width: 272px; margin-right: 32px; flex: none; }
.menu-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  cursor: default;
}
.menu-group__title .icon { display: none; }
.menu-group__list li + li { margin-top: 12px; }
.menu-group__list a { font-size: 16px; line-height: 1.3; color: var(--t1); transition: color .2s; }
.menu-group__list a:hover { color: var(--gold); }
.menu-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  padding-left: 32px;
  border-left: 1px solid var(--line);
  min-width: 272px;
}
.menu-side__title { margin-bottom: 16px; font-size: 16px; color: var(--t3); }
.socials { display: flex; gap: 20px; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--card-2);
  color: var(--white);
  transition: background-color .25s, color .25s;
}
.social-btn .icon { width: 20px; height: 20px; }
.social-btn:hover { background: var(--gold); color: var(--bg); }

@media (max-width: 1279.98px) {
  .header-links__text { display: none; }
  .header-links { gap: 14px; }
  .menu-groups { padding-left: 0; padding-right: 0; }
  .menu-group { width: auto; flex: 1; }
  .menu-side { min-width: 0; }
}

/* Mobile menu */
@media (max-width: 959.98px) {
  .header__burger { display: block; }
  .header__logo { margin-right: auto; }
  .header-links { gap: 14px; }
  .menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100% - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(10, 10, 10, .97);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s .25s;
  }
  .header.is-open .menu { opacity: 1; visibility: visible; transition: opacity .25s ease; }
  .menu__list { display: block; height: auto; }
  .menu__item { display: block; border-bottom: 1px solid var(--line); }
  .menu__link { height: auto; padding: 16px var(--pad); justify-content: space-between; font-size: 16px; }
  .menu__link::after { display: none; }
  .menu__arrow { display: block; }
  .menu__extra { display: flex; flex-direction: column; gap: 24px; padding: 32px var(--pad); }
  .menu__extra-link { display: flex; align-items: center; gap: 8px; font-size: 14px; }
  .menu__extra-link .icon { color: var(--gold); }

  /* level 2 / 3 panels slide over the list */
  .menu-dropdown {
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg);
    z-index: 5;
    box-shadow: none;
    transform: translateX(100%);
    opacity: 1;
    transition: transform .3s var(--ease), visibility 0s .3s;
  }
  .menu__item.is-open > .menu-dropdown { transform: none; transition: transform .3s var(--ease); }
  .menu-dropdown__head { display: block; border-bottom: 1px solid var(--line); margin: 0 var(--pad); }
  .menu-back {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }
  .menu-back .icon { position: absolute; left: 0; }
  .menu-dropdown > .container { flex: 1; display: flex; flex-direction: column; padding: 0; }
  .menu-models { grid-template-columns: 1fr; gap: 12px; padding: 16px var(--pad); }
  .menu-models__card { padding: 16px; }
  .menu-groups { flex: 1; flex-direction: column; padding: 0; position: relative; }
  .menu-group { flex: none; width: auto; margin: 0 var(--pad); border-bottom: 1px solid var(--line); }
  .menu-group__title { margin: 0; padding: 16px 0; font-size: 16px; letter-spacing: 0; white-space: normal; cursor: pointer; }
  .menu-group__title .icon { display: block; }
  .menu-group__list {
    position: fixed;
    top: calc(var(--header-h) + 53px);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px var(--pad);
    background: var(--bg);
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
  }
  .menu-group.is-open .menu-group__list { transform: none; }
  .menu-group__list li + li { margin-top: 0; }
  .menu-group__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--white); }
  .menu-side { margin: auto var(--pad) 0; padding: 24px 0 32px; border-left: 0; border-top: 1px solid var(--line); }
  .menu-side__title { font-size: 14px; }
}
@media (max-width: 599.98px) {
  .header-links__icon { width: 28px; height: 28px; }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); touch-action: pan-y; }
.hero__track { display: flex; height: 100%; transition: transform .6s var(--ease); will-change: transform; }
.hero.is-dragging .hero__track { transition: none; }
.hero__slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .35) 0%, rgba(10, 10, 10, 0) 18%),
    linear-gradient(0deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 45%),
    linear-gradient(90deg, rgba(10, 10, 10, .35) 0%, rgba(10, 10, 10, 0) 55%);
  pointer-events: none;
}
.hero__video_m { display: block; }
.hero__video_d { display: none; }
@media (min-width: 960px) { .hero__video_m { display: none; } .hero__video_d { display: block; } }
.hero__content { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; padding-bottom: 80px; }
.hero__wrap { max-width: 640px; }
.hero__logo { height: 24px; margin-bottom: 16px; }
.hero__logo img { height: 24px; width: auto; }
.hero__caption { margin-bottom: 16px; color: var(--t1); }
.hero__text { margin-top: 16px; }
.hero__links { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.hero__links .btn { width: 100%; }
@media (min-width: 600px) {
  .hero__links { flex-direction: row; }
  .hero__links .btn { width: auto; }
}
@media (min-width: 960px) {
  .hero__content { padding-bottom: 64px; }
  .hero__wrap { max-width: 50%; padding-right: 16px; }
  .hero__logo { margin-bottom: 24px; }
  .hero__caption { margin-bottom: 24px; }
  .hero__text { margin-top: 24px; }
  .hero__links { margin-top: 36px; }
}
/* text entrance on active slide */
.hero__wrap > * { opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .8s var(--ease); }
.hero__slide.is-active .hero__wrap > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__wrap > :nth-child(2) { transition-delay: .08s; }
.hero__slide.is-active .hero__wrap > :nth-child(3) { transition-delay: .16s; }
.hero__slide.is-active .hero__wrap > :nth-child(4) { transition-delay: .24s; }
.hero__slide.is-active .hero__wrap > :nth-child(5) { transition-delay: .32s; }

.hero__dots { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 2; display: flex; gap: 16px; }
.hero__dot { position: relative; width: 20px; height: 8px; background: var(--gold-soft); overflow: hidden; transition: background-color .3s linear; }
.hero__dot::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { animation: dot-progress var(--hero-delay, 5s) linear forwards; }
.hero.is-paused .hero__dot.is-active::after { animation: none; transform: none; }
@keyframes dot-progress { to { transform: scaleX(1); } }
@media (min-width: 960px) {
  .hero__dots { left: auto; right: calc(140px + var(--pad)); bottom: 64px; width: auto; padding: 0; }
  .hero__dot { width: 8px; }
  .hero__dot.is-active { background: var(--gold); }
  .hero__dot.is-active::after { animation: none; }
}
.hero__dot:hover { background: var(--gold); }

/* ---------- Flow tiles ---------- */
.tiles { padding: 40px 12px; }
.tiles__grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 1896px; margin: 0 auto; }
.tile {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--card);
  isolation: isolate;
}
.tile__img { position: absolute; inset: 0; z-index: -1; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .1) 60%);
  transition: background-color .4s;
}
.tile__info { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; flex-direction: column; }
.tile__title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tile__title .icon { color: var(--gold); }
.tile__btn { display: none; }
@media (min-width: 600px) {
  .tiles__grid { grid-template-columns: 1fr 1fr; }
  .tile { height: auto; aspect-ratio: 462 / 337; }
  .tile_wide { grid-column: span 2; aspect-ratio: 936 / 337; }
}
@media (min-width: 960px) {
  .tiles { padding: 64px 12px; }
  .tiles__grid { grid-template-columns: repeat(4, 1fr); }
  .tile { aspect-ratio: 346 / 337; }
  .tile_wide, .tile_wide-lg { grid-column: span 2; aspect-ratio: 702 / 337; }
  .tile::after { background: rgba(10, 10, 10, .25); }
  .tile__info { top: 48px; left: 48px; right: 48px; bottom: auto; align-items: center; text-align: center; }
  .tile__title { justify-content: center; }
  .tile__title .icon { display: none; }
  .tile__btn {
    display: inline-flex;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .35s ease, transform .35s var(--ease), background-color .3s, color .3s;
  }
  .tile:hover .tile__btn, .tile:focus-visible .tile__btn { opacity: 1; transform: none; }
  .tile:hover .tile__img img { transform: scale(1.06); }
  .tile:hover::after { background-color: rgba(10, 10, 10, .45); }
}

/* ---------- Media brand / half-height ---------- */
.media-brand { position: relative; background: var(--bg); }
.media-brand__img { position: relative; aspect-ratio: 390 / 290; overflow: hidden; }
/* the picture fills the image box without changing its proportions */
.media-brand__img > picture, .media-half__img > picture { position: absolute; inset: 0; display: block; }
.media-brand__img img { width: 100%; height: 100%; object-fit: cover; }
.media-brand__content { padding-top: 32px; }
.media-brand__title { margin-top: 8px; }
.media-brand__text { margin-top: 8px; color: var(--t1); }
.media-brand__content .btn { margin-top: 24px; width: 100%; }
@media (min-width: 960px) {
  .media-brand { display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
  .media-brand__img { position: absolute; inset: 0; aspect-ratio: auto; }
  .media-brand__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .45) 0%, rgba(10, 10, 10, 0) 55%); }
  .media-brand__content { position: relative; padding-top: 64px; padding-bottom: 64px; }
  .media-brand__inner { max-width: calc((100% + var(--gutter)) / 12 * 5 - var(--gutter)); }
  .media-brand__title { margin-top: 12px; }
  .media-brand__text { margin-top: 24px; }
  .media-brand__content .btn { width: auto; margin-top: 36px; }
}

.media-half { position: relative; background: var(--bg); }
.media-half__img { position: relative; aspect-ratio: 390 / 240; overflow: hidden; }
.media-half__img img { width: 100%; height: 100%; object-fit: cover; }
.media-half__content { padding-top: 32px; }
.media-half__title { margin-top: 8px; }
.media-half__content .btn { margin-top: 24px; width: 100%; }
@media (min-width: 960px) {
  .media-half { height: 480px; }
  .media-half__img { position: absolute; inset: 0; aspect-ratio: auto; }
  .media-half__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .4) 0%, rgba(10, 10, 10, 0) 60%); }
  .media-half__content { position: relative; padding-top: 72px; }
  .media-half__title { margin-top: 12px; max-width: 50%; }
  .media-half__content .btn { width: auto; margin-top: 36px; }
}

/* ---------- Section header ---------- */
.section-head { padding: 40px 0; text-align: center; }
@media (min-width: 960px) { .section-head { padding: 64px 0; } }

/* ---------- Carousel (mobile) / grid (desktop) ---------- */
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad);
  scroll-padding: 0 var(--pad);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__dots { display: flex; gap: 12px; margin-top: 24px; }
.carousel__dot { width: 8px; height: 8px; background: var(--gold-soft); transition: background-color .3s; }
.carousel__dot.is-active { background: var(--gold); }
@media (min-width: 600px) { .carousel__track > * { flex-basis: calc(50% - 12px); } }
@media (min-width: 960px) {
  .carousel__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; overflow: visible; margin: 0; padding: 0; }
  .carousel__dots { display: none; }
}

/* ---------- Articles ---------- */
.articles { padding-bottom: 40px; }
.article-card { display: block; }
.article-card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--card); }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.article-card:hover .article-card__img img { transform: scale(1.05); }
.article-card__title { margin-top: 24px; margin-bottom: 16px; transition: color .2s; }
.article-card:hover .article-card__title { color: var(--gold); }
.article-card__summary { margin-bottom: 16px; color: var(--t1); }
.article-card__date { color: var(--t3); }
.articles__more { margin-top: 32px; text-align: center; }
.articles__more .btn { width: 100%; }
@media (min-width: 600px) { .articles__more .btn { width: auto; } }
@media (min-width: 960px) {
  .articles { padding-bottom: 64px; }
  .article-card__title { margin-top: 36px; margin-bottom: 24px; }
  .article-card__summary { margin-bottom: 24px; }
  .articles__more { margin-top: 48px; }
}

/* ---------- Flow slider (vertical cards) ---------- */
.flow { padding: 40px 0; }
.flow-card { position: relative; display: block; aspect-ratio: 342 / 444; overflow: hidden; background: var(--card); isolation: isolate; }
.flow-card__img { position: absolute; inset: 0; z-index: -1; }
.flow-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.flow-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 10, 10, .7) 0%, rgba(10, 10, 10, 0) 45%); }
.flow-card__inner { position: absolute; left: 0; right: 0; bottom: 0; margin: 24px 0; padding: 0 24px; }
.flow-card__title { margin-bottom: 16px; }
.flow-card:hover .flow-card__img img { transform: scale(1.05); }
@media (min-width: 960px) {
  .flow { padding: 64px 0; }
  .flow-card { aspect-ratio: 416 / 540; }
  .flow-card__inner { margin: 36px 0; }
  .flow-card__title { margin-bottom: 24px; }
}

/* ---------- Disclaimer ---------- */
.disclaimer { padding: 24px 0; }
.disclaimer__inner { max-width: 100%; }
.disclaimer__text { font-size: 12px; line-height: 1.3; color: var(--t3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.disclaimer__text p + p { margin-top: 12px; }
.disclaimer.is-open .disclaimer__text { display: block; -webkit-line-clamp: unset; }
.disclaimer__btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; line-height: 1.4; }
.disclaimer__btn .icon { width: 20px; height: 20px; transition: transform .3s; }
.disclaimer.is-open .disclaimer__btn .icon { transform: rotate(180deg); }
@media (min-width: 600px) { .disclaimer__text { font-size: 14px; line-height: 1.4; } .disclaimer__btn { font-size: 16px; } }
@media (min-width: 960px) { .disclaimer { padding: 48px 0; } }
@media (min-width: 1280px) {
  .disclaimer__inner { margin-left: calc((100% + var(--gutter)) / 12); max-width: calc((100% + var(--gutter)) / 12 * 10 - var(--gutter)); }
}

/* ---------- Footer ---------- */
.footer { padding: 40px 0; background: var(--bg); }
.footer__cols { display: grid; grid-template-columns: 1fr; }
.footer__col { border-bottom: 1px solid var(--line); }
.footer__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 0;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
}
.footer__title .icon { color: var(--white); transition: transform .3s; }
.footer__col.is-open .footer__title .icon { transform: rotate(180deg); }
.footer__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.footer__col.is-open .footer__body { grid-template-rows: 1fr; }
.footer__body-inner { overflow: hidden; }
.footer__col.is-open .footer__body-inner { padding-bottom: 16px; }
.footer__sub { margin: 16px 0 8px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--t3); }
.footer__sub:first-child { margin-top: 0; }
.footer__link { display: block; padding: 4px 0; font-size: 14px; line-height: 1.4; transition: color .2s; }
.footer__link:hover { color: var(--gold); }
.footer__link_caps { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.footer__middle { display: flex; flex-direction: column; gap: 24px; padding: 72px 0 0; }
.footer__social-title { display: block; margin-bottom: 16px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--t3); }
.footer__company { margin-top: 32px; font-size: 13px; line-height: 1.5; color: var(--t3); }
.footer__company p + p { margin-top: 4px; }
.footer__company-name { display: block; margin-bottom: 4px; font-weight: var(--fw-medium); color: var(--t2); }
.footer__contact { color: var(--t2); text-decoration: none; white-space: nowrap; transition: color .2s; }
.footer__contact:hover { color: var(--gold); }
.footer__bottom { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; font-size: 14px; }
.footer__copy { color: var(--t2); }
.footer__legal:hover { color: var(--gold); }
@media (min-width: 960px) {
  .footer { padding: 102px 0 64px; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
  .footer__col { border: 0; }
  .footer__title { padding: 0; margin-bottom: 24px; font-size: 16px; letter-spacing: 1.4px; cursor: default; }
  .footer__title .icon { display: none; }
  .footer__body { display: block; }
  .footer__body-inner { overflow: visible; }
  .footer__sub { margin: 20px 0 12px; font-size: 14px; letter-spacing: 1.2px; }
  .footer__link { padding: 0; font-size: 16px; line-height: 1.3; }
  .footer__link + .footer__link { margin-top: 12px; }
  .footer__link_caps { font-size: 14px; letter-spacing: 1.2px; }
  .footer__middle { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 0; border-bottom: 1px solid var(--line); }
  .footer__logo img { width: 104px; }
  .footer__social { display: flex; align-items: center; gap: 20px; }
  .footer__social-title { margin: 0; font-size: 14px; }
  .footer__company { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .footer__company-name { display: inline; margin: 0; }
  .footer__company-ids::before { content: " · "; }
  .footer__bottom { flex-direction: row; gap: 40px; margin-top: 36px; font-size: 16px; }
}

/* ---------- Floating contact button ---------- */
.fab { position: fixed; z-index: 900; right: 16px; bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fab__toggle, .fab__action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: #2b2414;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .3s var(--ease), background-color .2s, opacity .3s;
}
.fab__toggle .icon, .fab__action .icon { width: 28px; height: 28px; }
.fab__toggle:hover, .fab__action:hover { background: #e0c886; }
.fab__toggle .i-close, .fab.is-open .fab__toggle .i-open { display: none; }
.fab.is-open .fab__toggle .i-close { display: block; width: 22px; height: 22px; }
.fab__actions { display: flex; flex-direction: column; gap: 8px; }
.fab__action { opacity: 0; transform: translateY(16px) scale(.6); pointer-events: none; }
.fab.is-open .fab__action { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-open .fab__action:nth-child(3) { transition-delay: .03s; }
.fab.is-open .fab__action:nth-child(2) { transition-delay: .06s; }
.fab.is-open .fab__action:nth-child(1) { transition-delay: .09s; }
.fab__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--card-2);
  color: var(--white);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translate(8px, -50%);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.fab__action:hover .fab__tip, .fab__action:focus-visible .fab__tip { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 960px) {
  .fab { right: 27px; bottom: 37px; }
  .fab__toggle, .fab__action { width: 64px; height: 64px; }
  .fab__toggle .icon, .fab__action .icon { width: 32px; height: 32px; }
}

/* ---------- Scroll top ---------- */
.scroll-top {
  position: fixed;
  z-index: 890;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(44, 46, 53, .15);
  transform: translateY(100%);
  transition: transform .3s var(--ease);
}
.scroll-top .icon { width: 20px; height: 20px; }
.scroll-top.is-visible { transform: none; }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed;
  z-index: 950;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 0;
  background: var(--bg);
  box-shadow: 0 0 10px rgba(0, 0, 0, .25);
  transform: translateY(110%);
  transition: transform .4s var(--ease);
}
.cookie.is-visible { transform: none; }
.cookie__text { font-size: 16px; line-height: 1.4; }
.cookie__text a { text-decoration: underline; text-underline-offset: 2px; }
.cookie__text a:hover { color: var(--gold); }
.cookie__btn { margin-top: 24px; }
@media (min-width: 960px) {
  .cookie { padding: 32px 0; }
  .cookie__wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
  .cookie__text { max-width: calc((100% + var(--gutter)) / 12 * 9 - var(--gutter)); font-size: 18px; line-height: 1.3; }
  .cookie__btn { margin: 0 120px 0 0; }
}

/* ---------- Modal + form ---------- */
.modal { position: fixed; z-index: 1100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 10, 10, .75); backdrop-filter: blur(4px); animation: fade-in .25s ease; }
.modal__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px 24px 32px;
  border-radius: 6px;
  background: var(--bg-2);
  animation: modal-in .35s var(--ease);
}
.modal__close { position: absolute; top: 16px; right: 16px; color: var(--t2); transition: color .2s; }
.modal__close:hover { color: var(--gold); }
.modal__lead { margin: 12px 0 28px; color: var(--t1); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px); } }
@media (min-width: 600px) { .modal__box { padding: 48px 48px 40px; } }

.form { display: grid; gap: 20px; }
.field { position: relative; display: block; }
.field__input {
  width: 100%;
  height: 48px;
  padding: 18px 0 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s;
  appearance: none;
}
select.field__input { cursor: pointer; background-color: var(--bg-2); color: var(--white); }
select.field__input option { background: var(--bg-2); }
.field__input:focus { border-color: var(--gold); }
.field__label { position: absolute; left: 0; top: 16px; font-size: 16px; color: var(--t3); pointer-events: none; transition: transform .2s, font-size .2s, color .2s; transform-origin: left top; }
.field__input:focus + .field__label, .field__input:not(:placeholder-shown) + .field__label, select.field__input + .field__label { transform: translateY(-16px); font-size: 12px; color: var(--t2); }
.field.is-invalid .field__input { border-color: #e5484d; }
.field__error { display: none; margin-top: 4px; font-size: 12px; color: #ff6b6b; }
.field.is-invalid .field__error { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--t2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); }
.check.is-invalid { color: #ff6b6b; }
.form .btn { justify-self: start; margin-top: 8px; }
.form-success { text-align: center; padding: 24px 0 8px; }
.form-success__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); }
.form-success__icon .icon { width: 32px; height: 32px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Stub page ---------- */
.stub { min-height: 70vh; display: flex; align-items: center; padding: calc(var(--header-h) + 64px) 0 64px; }
.stub__lead { margin: 24px 0 36px; max-width: 640px; color: var(--t1); }
.stub__actions { display: flex; flex-wrap: wrap; gap: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Cookie notice with a choice (when Yandex Metrica is connected) */
.cookie__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cookie__btns .cookie__btn { margin: 0; }
@media (max-width: 599.98px) { .cookie__btns .cookie__btn { flex: 1 1 100%; } }
@media (min-width: 960px) { .cookie__btns { flex-wrap: nowrap; flex: none; margin: 0 120px 0 0; } }
