:root {
  /* MAGNIT brand — cool Vladivostok steel + amber signal */
  --bg: #0a0e13;
  --bg-elevated: #10161e;
  --bg-card: #141b24;
  --bg-soft: #1a222d;
  --steel: #6b7c90;
  --fog: #a8b4c4;
  --text: #eef2f6;
  --muted: #8b9aab;
  --line: rgba(168, 180, 196, 0.12);
  --primary: #d4a24a;
  --primary-hover: #e0b45e;
  --primary-ink: #141008;
  --accent: #6f9eab;
  --danger: #c75c5c;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1140px;
  --header-h: 72px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --photo-frame: rgba(168, 180, 196, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(11, 15, 20, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 15, 20, 0.92);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #c9963a, var(--primary));
  color: var(--primary-ink);
  font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(212, 162, 74, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.logo__text span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header__phone {
  font-weight: 700;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(145deg, #c9963a, var(--primary));
  color: var(--primary-ink);
  box-shadow: 0 8px 22px rgba(212, 162, 74, 0.22);
}

.btn--primary:hover {
  background: linear-gradient(145deg, var(--primary), var(--primary-hover));
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.btn--sm {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
}

/* Real Vladivostok shoot — almost no grade, just light for text */
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 1;
  filter: none;
  transform: scale(1.01);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 10, 14, 0.78) 0%, rgba(8, 10, 14, 0.42) 42%, rgba(8, 10, 14, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.15) 0%, transparent 40%, rgba(8, 10, 14, 0.5) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.stars {
  color: var(--primary);
  letter-spacing: 0.05em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero__lead {
  margin: 0 0 1.8rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero__stats li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__stats strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.hero__stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--bg-elevated);
}

.section__head {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section__head--left {
  text-align: left;
}

.section__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.section__note {
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
}

.filter:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}

/* Fleet */
.fleet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 162, 74, 0.28);
  box-shadow: var(--shadow);
}

/* Unified brand photo frame — same ratio, same edge for every car */
.card__visual {
  aspect-ratio: 3 / 2;
  height: auto;
  background: #121820;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--photo-frame);
}

.card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(168, 180, 196, 0.06);
  z-index: 1;
}

.card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: none;
  transition: transform 0.55s ease;
}

.card:hover .card__visual img {
  transform: scale(1.03);
}

.card__visual--empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(212, 162, 74, 0.12), transparent 55%),
    linear-gradient(160deg, #1a2330, #10161e);
}

.card__placeholder {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(168, 180, 196, 0.35);
}

.card__year {
  color: var(--primary);
  font-weight: 800;
}

/* Prices table — 2ГИС style */
.prices-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.prices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prices-table th,
.prices-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.prices-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.2);
}

.prices-table tr:last-child td {
  border-bottom: none;
}

.prices-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.prices-note {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

.prices-year {
  white-space: nowrap;
  font-weight: 700;
  color: var(--primary);
}

.prices-price {
  white-space: nowrap;
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.gallery__item {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--photo-frame);
  aspect-ratio: 3 / 2;
  background: #121820;
}

.gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: none;
  transition: transform 0.55s ease;
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.card__body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.tag--4wd {
  color: var(--accent);
  background: rgba(45, 212, 168, 0.1);
}

.tag--premium {
  color: var(--primary);
  background: rgba(232, 163, 23, 0.12);
}

.card h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.4rem;
}

.price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.price strong {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.price span {
  font-size: 0.78rem;
  color: var(--muted);
}

.card .btn {
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
}

/* Advantages */
.advantages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.adv {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.adv__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(232, 163, 23, 0.1);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.adv h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.adv p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Conditions */
.conditions {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.checklist {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.7rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(45, 212, 168, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.conditions__card {
  background: linear-gradient(160deg, #1a2230, #121820);
  border: 1px solid rgba(232, 163, 23, 0.25);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.conditions__card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.conditions__card-lead {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
}

.form label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: rgba(232, 163, 23, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.12);
}

.form textarea {
  resize: vertical;
  min-height: 88px;
}

.form-alt {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-alt a {
  color: var(--primary);
  font-weight: 700;
}

/* Contacts */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-list__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-list a {
  color: var(--text);
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--primary);
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.social {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.15s;
}

.social:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.contacts__map {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  /* mild map grade only */
  filter: saturate(0.95) contrast(1.02) brightness(0.95);
  transition: filter 0.35s ease;
}

.contacts__map:hover iframe {
  filter: saturate(1) contrast(1.03) brightness(1);
}

.map-link {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(11, 15, 20, 0.9);
  border: 1px solid var(--line);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
}

.map-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 5rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.logo--footer .logo__mark {
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

.footer a {
  font-weight: 700;
  color: var(--text);
}

.footer__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* FAB */
.fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.15s;
}

.fab:hover {
  transform: scale(1.06);
}

/* Responsive */
@media (max-width: 960px) {
  .fleet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero__photo {
    object-position: center center;
  }

  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0.35) 40%, rgba(8, 10, 14, 0.72) 100%);
  }

  .conditions,
  .contacts {
    grid-template-columns: 1fr;
  }

  .header__phone {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(11, 15, 20, 0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.75rem 0.25rem;
    font-size: 1.05rem;
    color: var(--text);
  }

  .burger {
    display: inline-flex;
  }

  .header__actions .btn--sm {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2.5rem 0 3.5rem;
  }

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

  .fleet,
  .advantages {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.15rem;
  }

  .card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .card .btn {
    width: 100%;
  }
}
