/* Magnum Motors — workshop editorial */
:root {
  --bg: #f2f4f6;
  --bg-dark: #0e1116;
  --ink: #12151a;
  --muted: #5c6570;
  --muted-light: #9aa3ad;
  --accent: #c8102e;
  --accent-hover: #a50d25;
  --surface: #ffffff;
  --line: #d8dce2;
  --line-dark: #2a3038;
  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ----- Reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
}

.btn-dark {
  background: var(--bg-dark);
  color: #fff;
}

.btn-dark:hover {
  background: #1a1f27;
}

.btn:focus-visible,
.nav a:focus-visible,
.header-phone:focus-visible,
.reviews__link:focus-visible,
.modal__close:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----- Header ----- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
  border-radius: 4px;
  background: #000;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.logo__text span {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
}

.nav__item--dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
}

.nav__item--dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.nav__item--dropdown > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s var(--ease);
}

.nav__item--dropdown:hover > a::after,
.nav__item--dropdown:focus-within > a::after {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  min-width: 240px;
  padding: 12px 0 8px;
  background: var(--bg-dark);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 60;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
}

.nav__dropdown a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav__dropdown--brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 320px;
  padding: 10px 0 8px;
}

.nav__dropdown--brands a {
  white-space: nowrap;
}

.nav__dropdown-all {
  grid-column: 1 / -1;
  margin-top: 4px;
  border-top: 1px solid var(--line-dark);
  color: var(--accent) !important;
  font-weight: 700;
}

.nav__dropdown-all:hover {
  color: #fff !important;
  background: rgba(200, 16, 46, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.header-phone:hover {
  color: rgba(255, 255, 255, 0.85);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.55) 0%, rgba(14, 17, 22, 0.35) 40%, rgba(14, 17, 22, 0.88) 100%),
    linear-gradient(90deg, rgba(14, 17, 22, 0.75) 0%, rgba(14, 17, 22, 0.25) 55%, rgba(14, 17, 22, 0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: calc(var(--header-h) + 24px) 0 48px;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero__brand em {
  font-style: normal;
  color: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 20px;
}

.hero__lead {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 34rem;
  margin-bottom: 36px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__promise {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.hero__promise-value {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.hero__promise-text {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__ctas .btn,
.section__ctas .btn {
  min-width: 15.5rem;
}

.section__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* ----- Trust ----- */
.trust {
  background: var(--bg-dark);
  color: #fff;
  padding: 40px 0;
  border-top: 1px solid var(--line-dark);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.trust__item p {
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.4;
}

/* ----- Sections ----- */
.section {
  padding: 88px 0;
}

.section--surface {
  background: var(--surface);
}

.section--dark {
  background: var(--bg-dark);
  color: #fff;
}

.section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section--dark .section__eyebrow {
  color: #f07178;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 18ch;
}

.section__lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 42ch;
  margin-bottom: 40px;
}

.section--dark .section__lead {
  color: var(--muted-light);
}

.section__head {
  margin-bottom: 40px;
}

/* ----- Results ----- */
.results__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.metric {
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--line);
}

.metric__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.metric__label {
  font-size: 15px;
  color: var(--muted);
}

.effects {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.effects li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.effects li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  flex-shrink: 0;
  background: var(--accent);
  border-radius: 1px;
}

.results__visual {
  position: relative;
}

.results__visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ----- Steps ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted-light);
  font-size: 15px;
}

/* ----- Gallery ----- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery__item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dce0e5;
  padding: 0;
  border: none;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.gallery__item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

/* ----- Reviews ----- */
.reviews__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.reviews__link {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

.reviews__link:hover {
  opacity: 0.8;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.quote {
  background: var(--bg);
  padding: 28px 24px;
  border-left: 3px solid var(--accent);
}

.quote p {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
}

.quote cite {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.reviews__shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.reviews__shot {
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  cursor: zoom-in;
  display: block;
  width: 100%;
  overflow: hidden;
}

.reviews__shot img,
.reviews__shots img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.35s var(--ease);
}

.reviews__shot:hover img {
  transform: scale(1.03);
}

.reviews__shots--collapsed .reviews__shot:nth-child(n + 5) {
  display: none;
}

.reviews__toggle {
  display: block;
  margin: 24px auto 0;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.reviews__toggle:hover {
  background: var(--accent);
  color: #fff;
}

/* ----- Specialty ----- */
.specialty__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.specialty__note {
  font-size: 16px;
  color: var(--muted-light);
  margin-top: 16px;
  max-width: 36ch;
}

.model-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  border-top: 1px solid var(--line-dark);
}

.model-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

/* ----- Pricing ----- */
.pricing {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}

.pricing__price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 20px 0 12px;
}

.pricing__price span {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing__note {
  color: var(--muted);
  max-width: 40ch;
}

.pricing__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

/* ----- Partners ----- */
.partners__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.partners__row img {
  height: 120px;
  width: auto;
  max-width: calc((100% - 96px) / 4);
  flex: 1 1 0;
  object-fit: contain;
  filter: grayscale(1) brightness(1.15);
  opacity: 0.9;
  transition: filter 0.2s, opacity 0.2s;
}

.partners__row img:hover {
  filter: none;
  opacity: 1;
}

/* ----- Contacts ----- */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}

.contact-list dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-list dd {
  font-size: 18px;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-map {
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(14, 17, 22, 0.55), rgba(14, 17, 22, 0.2)),
    url("../assets/gallery/02.png") center / cover no-repeat;
  color: #fff;
  border-radius: 4px;
}

.contact-map strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.contact-map span {
  opacity: 0.85;
  font-size: 14px;
}

.contact-map:hover strong {
  color: #ffb3b8;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--bg-dark);
  color: var(--muted-light);
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__links {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* ----- Brand pages ----- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 56px;
  background: var(--bg-dark);
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/hero-workshop.jpg") center / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.55) 0%, rgba(14, 17, 22, 0.35) 40%, rgba(14, 17, 22, 0.88) 100%),
    linear-gradient(90deg, rgba(14, 17, 22, 0.75) 0%, rgba(14, 17, 22, 0.25) 55%, rgba(14, 17, 22, 0.45) 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero .section__eyebrow,
.page-hero .section__lead {
  color: var(--muted-light);
}

.page-hero__inner .hero__brand {
  margin-bottom: 12px;
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 16px;
}

.page-hero__lead {
  color: var(--muted-light);
  max-width: 42rem;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.page-hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.page-hero .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted-light);
  margin-bottom: 28px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.tune-table-wrap {
  overflow-x: auto;
  margin: 32px 0 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.tune-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.tune-table th,
.tune-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tune-table thead th {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  white-space: nowrap;
}

.tune-table tbody th {
  font-weight: 600;
  color: var(--ink);
  min-width: 160px;
}

.tune-table tbody tr:last-child th,
.tune-table tbody tr:last-child td {
  border-bottom: none;
}

.tune-table__after {
  color: var(--accent);
  font-weight: 700;
}

.tune-table__pct {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.78em;
  font-weight: 700;
  color: #1a7a3c;
  white-space: nowrap;
}

.tune-card__stats .tune-table__pct {
  display: block;
  margin-left: 0;
  margin-top: 4px;
  font-size: 13px;
}

.tune-table__note {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}

.tune-disclaimer {
  font-size: 13px;
  color: var(--muted);
  max-width: 52rem;
  margin-bottom: 28px;
}

.tune-cta {
  margin-top: 8px;
}

.tune-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}

.tune-cta__lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 24px;
  line-height: 1.45;
}

.tune-cta .section__ctas {
  margin-top: 0;
}

/* Mobile cards for before/after (shown only on narrow screens) */
.tune-cards {
  display: none;
}

.tune-card {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.tune-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}

.tune-card__meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.tune-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.tune-card__stats dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.tune-card__stats dd {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .tune-table-wrap {
    display: none;
  }

  .tune-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 28px 0 16px;
  }
}

.brand-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.brand-cta .section__lead {
  color: var(--muted-light);
  max-width: 36rem;
}

.brand-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-group {
  margin-bottom: 48px;
}

.brand-group:last-child {
  margin-bottom: 0;
}

.brand-group__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 12px;
}

.brand-grid__link {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.brand-grid__link span {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.brand-grid__link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.brand-grid__link--hl {
  color: var(--accent);
}

.brand-index {
  margin-top: 24px;
}

.brand-index__groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand-index__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.brand-index__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.brand-index__list a {
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.brand-index__list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.specialty__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.service-cards--hub {
  margin-top: 8px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.section--dark .service-card {
  border-color: var(--line-dark);
  background: transparent;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}

.section--dark .service-card p {
  color: rgba(255, 255, 255, 0.72);
}

.service-card span {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

/* ----- Modal ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 17, 22, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  padding: 36px 32px;
  border-radius: 8px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal-overlay.is-open .modal {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
}

.modal__close:hover {
  color: var(--ink);
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.modal__sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.hp-fields {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.form-status.is-ok {
  display: block;
  background: #e8f6ec;
  color: #1b6b35;
}

.form-status.is-err {
  display: block;
  background: #fdecee;
  color: #a50d25;
}

body.modal-open {
  overflow: hidden;
}

/* ----- Lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 64px;
  background: rgba(14, 17, 22, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.8);
  z-index: 2;
}

.lightbox__close:hover {
  color: #fff;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 42px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
  z-index: 2;
}

.lightbox__nav:hover {
  color: #fff;
}

.lightbox__nav--prev {
  left: 12px;
}

.lightbox__nav--next {
  right: 12px;
}

@media (max-width: 700px) {
  .lightbox {
    padding: 56px 12px 24px;
  }

  .lightbox__nav--prev {
    left: 4px;
  }

  .lightbox__nav--next {
    right: 4px;
  }
}

/* ----- Mobile nav ----- */
@media (max-width: 900px) {
  .nav,
  .header-phone {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-dark);
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line-dark);
  }

  .site-header.is-open .nav > a,
  .site-header.is-open .nav__item--dropdown > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
    width: 100%;
  }

  .site-header.is-open .nav__item--dropdown {
    display: block;
    height: auto;
  }

  .site-header.is-open .nav__item--dropdown > a::after {
    display: none;
  }

  .site-header.is-open .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0 0 8px 12px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-header.is-open .nav__dropdown--brands {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .site-header.is-open .nav__dropdown a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line-dark);
    white-space: normal;
  }

  .site-header.is-open .nav__dropdown-all {
    margin-top: 0;
    border-top: none;
  }

  .site-header.is-open .nav a {
    width: 100%;
  }

  .trust__grid {
    grid-template-columns: 1fr 1fr;
  }

  .results__grid,
  .specialty__grid,
  .pricing,
  .contacts__grid,
  .service-cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 10;
  }

  .quotes,
  .reviews__shots {
    grid-template-columns: 1fr 1fr;
  }

  .reviews__shots img,
  .reviews__shot img {
    height: 200px;
  }

  .reviews__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .model-list {
    grid-template-columns: 1fr;
  }

  .partners__row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px 40px;
  }

  .partners__row img {
    height: 88px;
    max-width: 280px;
    flex: 0 1 auto;
  }

  .section {
    padding: 64px 0;
  }

  .brand-cta {
    align-items: flex-start;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 32px);
  }

  .tune-table th,
  .tune-table td {
    padding: 12px 12px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .trust__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-bottom: 48px;
  }

  .header-actions .btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .logo__text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img,
  .page-hero::before {
    animation: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----- CTA bar ----- */
.cta-bar-wrap {
  padding: 28px 0;
}

.cta-bar-wrap.section--dark {
  background: var(--bg-dark);
  color: #fff;
}

.cta-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.cta-bar__note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.cta-bar-wrap.section--dark .cta-bar__note {
  color: rgba(255, 255, 255, 0.65);
}

.cta-bar-wrap.section--dark .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-bar-wrap.section--dark .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ----- Sticky mobile CTA ----- */
.sticky-cta {
  display: none;
}

@media (max-width: 900px) {
  body.has-sticky-cta {
    padding-bottom: 64px;
  }

  .sticky-cta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    height: 60px;
    background: var(--bg-dark);
    border-top: 1px solid var(--line-dark);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  }

  .sticky-cta__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    border: none;
    background: transparent;
    border-right: 1px solid var(--line-dark);
  }

  .sticky-cta__icon {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
  }

  .sticky-cta__item:last-child {
    border-right: none;
  }

  .sticky-cta__item:hover,
  .sticky-cta__item:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .sticky-cta__item--primary {
    color: #fff;
    background: var(--accent);
  }

  .sticky-cta__item--primary:hover,
  .sticky-cta__item--primary:focus-visible {
    background: var(--accent-hover);
    color: #fff;
  }

  .cta-bar__actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }

  .cta-bar__actions .btn-primary {
    grid-column: 1 / -1;
  }
}
