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

:root {
  --bg-deep: #060408;
  --bg-panel: #0e0a0f;
  --graphite: #161018;
  --steel: #8a8494;
  --text: #f5f3f0;
  --text-muted: #a8a0ae;
  --text-soft: #928a9c;
  --accent: #d4b06a;
  --accent-dim: rgba(212, 176, 106, 0.32);
  --accent-cool: #9b8fb8;
  --amber: #c9a060;
  --radius: 12px;
  --font: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

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

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

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

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, 92vw);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 4vw;
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.92), transparent);
  backdrop-filter: none;
}

.header-quiz-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  transition:
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out);
}

.header-quiz-link:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(212, 176, 106, 0.08);
}

.header-quiz-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }
  .nav {
    display: flex;
  }
}

@media (max-width: 899px) {
  .nav {
    display: none;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

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

.btn--primary {
  background: linear-gradient(135deg, #5c4518 0%, #a67c3a 38%, var(--accent) 72%, #ecd9a8 100%);
  color: #100b06;
  box-shadow:
    0 0 0 1px rgba(255, 248, 235, 0.12) inset,
    0 8px 28px var(--accent-dim);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: transparent;
}

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

.btn--hero-cta {
  position: relative;
  padding: 1.15rem 2.75rem;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: linear-gradient(
    155deg,
    #3d2e0f 0%,
    #7a5a24 22%,
    #c9a050 48%,
    #e8cf8a 78%,
    #faf3df 100%
  );
  color: #120d08;
  box-shadow:
    0 0 0 1px rgba(255, 250, 240, 0.2) inset,
    0 14px 44px rgba(201, 160, 80, 0.28),
    0 4px 20px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    filter 0.35s var(--ease-out);
}

.btn--hero-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 42%);
  pointer-events: none;
  opacity: 0.75;
}

.btn--hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.05) saturate(1.05);
  box-shadow:
    0 0 0 1px rgba(255, 252, 245, 0.28) inset,
    0 20px 52px rgba(212, 176, 106, 0.38),
    0 8px 28px rgba(0, 0, 0, 0.5);
}

.btn--hero-cta:active {
  transform: translateY(-1px) scale(1.01);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 4.25rem 4vw 1.25rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__media-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.07) saturate(1.03);
}

@media (max-width: 899px) {
  .hero__media-img {
    /* Вертикальный mob-кадр: чаще важен верх кадра */
    object-position: center 22%;
  }

  .hero__bottom {
    transform: translateY(-60px);
  }

  .hero__bottom .hero__title-line--lead {
    transform: translateY(-26px);
  }

  .hero__legal {
    display: none;
  }

  .legal-mobile {
    display: block;
  }
}

.hero__inner {
  position: relative;
  z-index: 10;
  width: min(1120px, 92vw);
  margin-inline: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100dvh - 5.5rem);
  min-height: calc(100vh - 5.5rem);
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 50% at 48% 18%, rgba(212, 176, 106, 0.2), transparent 58%),
    radial-gradient(ellipse 55% 45% at 82% 55%, rgba(155, 143, 184, 0.14), transparent 52%),
    radial-gradient(ellipse 45% 40% at 12% 72%, rgba(90, 72, 58, 0.24), transparent 48%),
    linear-gradient(165deg, rgba(18, 13, 21, 0.72) 0%, rgba(10, 7, 13, 0.62) 42%, rgba(14, 10, 18, 0.78) 100%);
  z-index: 1;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 34%, rgba(0, 0, 0, 0.56) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__haze {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 4;
}

.hero__haze--1 {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(232, 200, 138, 0.07);
}

.hero__haze--2 {
  width: min(50vw, 400px);
  height: min(50vw, 400px);
  bottom: 15%;
  right: 5%;
  background: rgba(120, 98, 150, 0.12);
}

.hero__sweep {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 48%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.03) 52%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: overlay;
}

.hero__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  will-change: transform, opacity;
  background: transparent;
}

.hero__canvas {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  background: transparent;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  perspective: 1100px;
  perspective-origin: 50% 45%;
}

.hero__visual--3d {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 11;
  max-width: 820px;
  width: 100%;
  text-align: center;
  margin-inline: auto;
  margin-top: clamp(0.25rem, 2vh, 1.25rem);
  pointer-events: auto;
}

.hero__bottom {
  position: relative;
  z-index: 11;
  width: 100%;
  max-width: 720px;
  margin-top: auto;
  margin-inline: auto;
  padding-bottom: clamp(1rem, 3vh, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto;
}

.hero__bottom .hero__title-line--lead {
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}

.hero__legal {
  position: absolute;
  left: calc((100vw - min(1120px, 92vw)) / -2);
  bottom: 0.85rem;
  z-index: 12;
  max-width: min(40vw, 620px);
  font-size: 0.56rem;
  line-height: 1.34;
  letter-spacing: 0.01em;
  color: rgba(235, 232, 240, 0.72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.legal-mobile {
  display: none;
  background: rgba(6, 4, 10, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-mobile__inner {
  padding: 0.9rem 0 1.1rem;
}

.legal-mobile__inner p {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.4;
  color: rgba(228, 224, 236, 0.8);
}

@media (max-width: 899px) {
  .hero__legal {
    display: none !important;
  }

  .legal-mobile {
    display: block !important;
  }
}

@media (min-width: 960px) {
  .hero__content {
    text-align: center;
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28em;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}

.hero__title-line {
  display: block;
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  line-height: 1.18;
  color: var(--text);
}

.hero__title-line--lead {
  font-size: clamp(1.55rem, 3.8vw, 2.65rem);
  color: var(--accent);
  font-weight: 600;
}

.hero__lead {
  margin: 1rem auto 0;
  margin-bottom: 0;
  max-width: 26rem;
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  text-wrap: balance;
}

/* Квиз: не дублируем «золотую плитку» — стеклянная капсула + золотой штрих слева */
.hero__quiz-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.35rem;
  width: min(100%, 360px);
  padding: 0.74rem 1.15rem 0.74rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.18) 100%);
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  animation: heroCtaBlink 1.2s ease-in-out infinite;
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background 0.25s var(--ease-out);
}

.hero__quiz-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 176, 106, 0.45);
  box-shadow:
    0 0 0 1px rgba(212, 176, 106, 0.12) inset,
    0 12px 36px rgba(0, 0, 0, 0.35);
}

.hero__quiz-cta:active {
  transform: translateY(0);
}

.hero__quiz-cta__rail {
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 62%;
  transform: translateY(-50%);
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, #f0d9a8 0%, var(--accent) 48%, #7a5a28 100%);
  opacity: 0.95;
}

.hero__quiz-cta__label {
  flex: 0 1 auto;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  text-align: center;
  font-weight: 900;
  font-size: 1.14em;
  letter-spacing: 0.01em;
}

.hero__quiz-cta__hint {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.hero__quiz-cta__arrow {
  display: none;
}

.hero__quiz-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes heroCtaBlink {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(212, 176, 106, 0.1) inset,
      0 4px 24px rgba(0, 0, 0, 0.25);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(212, 176, 106, 0.42) inset,
      0 0 18px rgba(212, 176, 106, 0.4),
      0 10px 30px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
}

.hero__actions--solo {
  margin: 0;
}

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

.section--dark {
  background: var(--graphite);
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.section__head {
  margin-bottom: 2.5rem;
}

.section__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--4 {
  grid-template-columns: 1fr;
}

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

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

.grid--3 {
  grid-template-columns: 1fr;
}

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

.card {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card--icon h3 {
  font-size: 1.1rem;
}

.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(212, 176, 106, 0.12);
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, background 0.2s;
}

.cat-card:hover {
  border-color: var(--accent-dim);
  background: rgba(155, 143, 184, 0.07);
}

.cat-card__name {
  font-weight: 600;
  font-size: 1.05rem;
}

.cat-card__meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: none;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.steps__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.steps__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.section--vin {
  background: linear-gradient(180deg, var(--bg-deep), #100c14);
}

.vin-block {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .vin-block {
    grid-template-columns: 1fr 1fr;
  }
}

.vin-list {
  margin-top: 1rem;
}

.vin-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.vin-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

.vin-block__panel {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.vin-block__panel label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.vin-block__panel input {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.vin-hint {
  font-size: 0.8rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
  opacity: 0.7;
}

.product-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow: hidden;
}

.product-card__ph {
  aspect-ratio: 16/10;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e293b, #334155 50%, #0f172a);
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.05rem;
}

.product-card__meta {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.product-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(212, 176, 106, 0.18);
  color: var(--accent);
}

.review {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.review p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.review footer {
  font-size: 0.9rem;
  color: var(--steel);
}

.faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item p {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.footer {
  padding: 3rem 0 0;
  background: #030406;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__desc {
  max-width: 280px;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.footer__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer__credit {
  font-size: 0.78rem;
  opacity: 0.75;
  max-width: 100%;
}

.footer__credit a {
  display: inline;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__credit a:hover {
  color: var(--accent);
}

.logo--footer span {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__sweep {
    opacity: 0.35 !important;
    animation: none !important;
  }
}
