/* АвтоДосье — визуальная система */
:root {
  --bg: #e9eef3;
  --bg-deep: #0f1720;
  --surface: #f4f7fa;
  --ink: #15202b;
  --ink-soft: #4a5868;
  --line: rgba(21, 32, 43, 0.12);
  --accent: #1f6f8b;
  --accent-2: #c96a2b;
  --ok: #2f6b4f;
  --warn: #9a6b1f;
  --danger: #9b3b3b;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(15, 23, 32, 0.12);
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "Unbounded", "IBM Plex Sans", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 111, 139, 0.18), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(201, 106, 43, 0.14), transparent 55%),
    linear-gradient(180deg, #dfe7ee 0%, var(--bg) 28%, #f2f5f8 100%);
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
[hidden] { display: none !important; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: .5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 250, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, #1f6f8b, #163a4a 55%, #c96a2b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  position: relative;
}
.logo-mark::after {
  content: "VIN";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.logo-text {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover,
.nav a.is-active { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, #2583a3, var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 111, 139, 0.28);
}
.btn-primary:hover { color: #fff; }

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover { color: var(--ink); border-color: rgba(31,111,139,.35); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
}

.btn-accent {
  background: linear-gradient(180deg, #d8843f, var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(201, 106, 43, 0.25);
}
.btn-accent:hover { color: #fff; }

.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #f5f8fb;
  background:
    linear-gradient(180deg, rgba(15,23,32,.35) 0%, rgba(15,23,32,.78) 55%, rgba(15,23,32,.92) 100%),
    linear-gradient(120deg, #1a3344 0%, #0f1720 45%, #2a1d16 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(201,106,43,.25), transparent 35%),
    repeating-linear-gradient(
      115deg,
      transparent 0 18px,
      rgba(255,255,255,.015) 18px 19px
    );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  padding: 7rem 0 4.5rem;
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
}

.brand-hero {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  animation: rise .8s ease both;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  max-width: 28ch;
  animation: rise .8s ease .08s both;
}

.hero-lead {
  margin: 0;
  color: rgba(245,248,251,.82);
  font-size: 1.05rem;
  max-width: 42ch;
  animation: rise .8s ease .14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  animation: rise .8s ease .2s both;
}

.hero-note {
  margin: 0;
  font-size: .88rem;
  color: rgba(245,248,251,.65);
  max-width: 52ch;
  animation: rise .8s ease .26s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  display: grid;
  gap: .65rem;
  margin-bottom: 2rem;
  max-width: 640px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.panel {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.feature h3 {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
}

.feature-num {
  font-family: var(--display);
  font-size: .78rem;
  color: var(--accent);
  margin-bottom: .7rem;
  letter-spacing: .04em;
}

/* VIN form */
.vin-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.vin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
}

.field { display: grid; gap: .4rem; }
.field label {
  font-size: .9rem;
  font-weight: 600;
}
.field .hint {
  font-size: .82rem;
  color: var(--ink-soft);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 .95rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 120px; padding-top: .8rem; resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(31,111,139,.55);
  box-shadow: 0 0 0 4px rgba(31,111,139,.12);
}

.vin-input {
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.form-error {
  color: var(--danger);
  font-size: .88rem;
  margin: .55rem 0 0;
  display: none;
}
.form-error.is-visible { display: block; }

.form-success {
  color: var(--ok);
  font-size: .92rem;
  margin-top: .75rem;
  display: none;
}
.form-success.is-visible { display: block; }

.check-list {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: .7rem;
  align-items: start;
}
.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: .2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 28%, transparent 29%),
    var(--accent);
}

/* Pricing */
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}
.price-card.is-featured {
  border-color: rgba(31,111,139,.45);
  box-shadow: 0 16px 40px rgba(31,111,139,.14);
  transform: translateY(-4px);
}
.price-card h3 { margin: 0; font-family: var(--display); font-size: 1.15rem; }
.price-value {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.03em;
}
.price-value span { font-size: 1rem; color: var(--ink-soft); font-family: var(--font); }
.price-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  display: grid;
  gap: .4rem;
}

/* Reviews */
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  display: grid;
  gap: .7rem;
}
.review-top {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: baseline;
}
.review strong { font-size: 1rem; }
.review time { color: var(--ink-soft); font-size: .82rem; }
.review p { margin: 0; color: var(--ink-soft); }
.stars { color: var(--accent-2); letter-spacing: .08em; font-size: .9rem; }
.example-tag {
  display: inline-flex;
  align-items: center;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(31, 111, 139, 0.12);
  border: 1px solid rgba(31, 111, 139, 0.22);
}

/* Disclaimer */
.disclaimer {
  background: rgba(154, 107, 31, 0.08);
  border: 1px solid rgba(154, 107, 31, 0.22);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  color: #5d4518;
  font-size: .92rem;
}

.notice {
  background: rgba(31,111,139,.08);
  border: 1px solid rgba(31,111,139,.18);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  color: var(--ink-soft);
  font-size: .92rem;
}

/* Forms extras */
.checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .7rem;
  align-items: start;
  font-size: .9rem;
  color: var(--ink-soft);
}
.checkbox input { width: 18px; height: 18px; margin-top: .15rem; }

.form-grid {
  display: grid;
  gap: 1rem;
}

/* Auth / cabinet */
.auth-wrap {
  max-width: 460px;
  margin: 2rem auto;
}

.cabinet-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
}
.stat span { color: var(--ink-soft); font-size: .85rem; }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
table.data th,
table.data td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
table.data th {
  background: #f0f4f8;
  font-weight: 600;
}
.badge {
  display: inline-flex;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  background: rgba(31,111,139,.12);
  color: var(--accent);
}
.badge.done { background: rgba(47,107,79,.12); color: var(--ok); }
.badge.wait { background: rgba(154,107,31,.14); color: var(--warn); }

/* Legal pages */
.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
}
.prose h1 {
  margin-top: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.prose h2 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--ink-soft); }

.page-hero {
  padding: 3rem 0 1rem;
}
.page-hero h1 {
  margin: 0 0 .6rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.02em;
}
.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 55ch;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--bg-deep);
  color: rgba(245,248,251,.78);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
}
.site-footer a { color: rgba(245,248,251,.86); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h3 {
  margin: 0 0 .8rem;
  color: #fff;
  font-size: .95rem;
  font-family: var(--display);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.footer-brand {
  font-family: var(--display);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: .6rem;
}
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem;
  color: rgba(245,248,251,.55);
  display: grid;
  gap: .35rem;
}

/* Cookie bar — нижняя панель, не pop-up/pop-under */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(15, 23, 32, 0.96);
  color: rgba(245,248,251,.9);
  padding: .9rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  transform: translateY(110%);
  transition: transform .35s ease;
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-inner p {
  margin: 0;
  font-size: .88rem;
  max-width: 70ch;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: .8rem 0 1rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: .65rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 960px) {
  .grid-3, .footer-grid, .cabinet-stats { grid-template-columns: 1fr 1fr; }
  .price-card.is-featured { transform: none; }
}

@media (max-width: 780px) {
  .nav { display: none; }
  .burger { display: inline-block; }
  .vin-row { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .footer-grid, .cabinet-stats { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-grid { padding: 5.5rem 0 3rem; }
}
