:root {
  --bg0: #f7fbf9;
  --bg1: #ffffff;
  --bg2: #edf5f0;
  --surface: #ffffff;
  --surface-alt: #f3f8f5;
  --line: rgba(20, 70, 50, 0.08);
  --line-strong: rgba(20, 70, 50, 0.14);
  --text: #1a2e24;
  --muted: #667a72;
  --accent: #22a055;
  --accent-hover: #1a8544;
  --accent-2: #0d9668;
  --accent-soft: rgba(34, 160, 85, 0.1);
  --accent-soft-border: rgba(34, 160, 85, 0.22);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --ok: #22a055;
  --warn: #d97706;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 60, 40, 0.05);
  --shadow-md: 0 12px 40px rgba(20, 60, 40, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 60, 40, 0.1);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(34, 160, 85, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(13, 150, 104, 0.05), transparent 55%),
    var(--bg0);
  line-height: 1.55;
}

.noise { display: none; }

.hero-wash { display: none; }

@keyframes washIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
}

/* Fallback, если нет .site-header__inner */
.site-header:not(:has(.site-header__inner)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 10px;
}

.brand__name {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav__cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 0.5rem 1rem;
  font-weight: 700 !important;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(34, 160, 85, 0.25);
}

.nav__cta:hover {
  background: linear-gradient(135deg, var(--accent-hover), #0a7a55);
  color: #fff !important;
  transform: translateY(-1px);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title,
.hero__brand {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
}

.hero__lead {
  margin: 1rem 0 0;
  max-width: none;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.vin-form-box {
  margin-top: 1.5rem;
  max-width: none;
  width: 100%;
  padding: 1.55rem 1.4rem;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  box-sizing: border-box;
}

.hero__lead strong { color: var(--text); font-weight: 600; }

.vin-form-box .vin-form {
  margin-top: 0;
  max-width: none;
}

.vin-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.vin-form__row {
  display: flex;
  gap: 0.5rem;
}

.vin-form__row input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 1rem;
  letter-spacing: 0.06em;
  outline: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vin-form__row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.vin-form__row button,
.btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(34, 160, 85, 0.22);
  transition: transform 0.15s, box-shadow 0.15s;
}

.vin-form__row button:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 160, 85, 0.28);
}

.vin-form__row button:disabled,
.btn-primary:disabled { opacity: 0.55; cursor: wait; transform: none; }

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

.hero__examples {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.example-vin {
  border: 1px solid var(--accent-soft-border);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  border-radius: 999px;
}

.example-vin:hover {
  border-color: var(--accent);
  background: rgba(34, 160, 85, 0.16);
}

.hero__trustline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.hero__trustline-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  flex-shrink: 0;
}

.demo-hint { color: var(--warn); font-size: 0.92rem; }
.form-error { color: var(--danger); font-size: 0.95rem; }

.preview-panel {
  max-width: 1120px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  animation: heroRise 0.55s ease both;
}

.preview-card {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-md);
}

.preview-card__media {
  min-height: 200px;
  background: var(--bg2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-card__body { padding: 1.5rem; }

.preview-card__badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.preview-card__body h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.preview-card__vin {
  margin: 0.35rem 0 0;
  font-family: ui-monospace, monospace;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.preview-cats {
  margin: 1rem 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.btn-ghost {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

.pay-email {
  display: block;
  margin-top: 0.75rem;
}

.pay-email span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.pay-email input {
  width: 100%;
  max-width: 280px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  border-radius: var(--radius);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section--wide { max-width: 1080px; }

.section__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section h2,
.section h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section__lead {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  border: 1px solid var(--line);
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.25rem;
}

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

/* Homepage */
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 1.75rem 1.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-panel .demo-hint,
.hero-panel .form-error {
  margin-top: 0.75rem;
}

.hero-panel .hero__title {
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
}

.hero-panel .vin-form-box {
  margin-top: 1.25rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  animation: heroRise 1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.hero-card:hover {
  box-shadow: 0 24px 56px rgba(20, 60, 40, 0.14);
  border-color: var(--accent-soft-border);
}

.hero-card__photo {
  position: relative;
  flex: 1 1 auto;
  min-height: 180px;
  background: var(--bg2);
  overflow: hidden;
}

.hero-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card__score {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-hover);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero-card__body {
  padding: 1.15rem 1.25rem 1.25rem;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.hero-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}

.hero-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-card__vin {
  margin: 0.25rem 0 0.75rem;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.chip--green {
  background: var(--accent-soft);
  border-color: var(--accent-soft-border);
  color: var(--accent-hover);
  font-weight: 600;
}

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

.hero-card__stats li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}

.hero-card__stats strong { color: var(--text); font-weight: 600; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.stats-bar__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-pill strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--accent-hover);
}

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

.section--alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section__note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.step-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.05rem;
}

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

.report-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.report-section-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.05rem;
}

.report-section-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pricing-band {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
  gap: 2.5rem 3.5rem;
  align-items: center;
  padding: 2rem 2.25rem;
  border: 1px solid var(--accent-soft-border);
  background:
    linear-gradient(135deg, rgba(34, 160, 85, 0.08), transparent 55%),
    var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.pricing-band__price-col h2 {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.pricing-band__price {
  margin: 1.1rem 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-hover);
  font-weight: 800;
}

.pricing-band__price small {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.15rem;
}

.pricing-band__note {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-band__cta {
  display: inline-flex;
  text-decoration: none;
}

.pricing-band__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.5rem;
}

.pricing-band__features li {
  display: grid;
  gap: 0.25rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
}

.pricing-band__features strong {
  font-size: 0.95rem;
  color: var(--text);
}

.pricing-band__features span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.05rem;
}

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

.step-card {
  border: 1px solid var(--line);
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
}

.report-section-card {
  border: 1px solid var(--line);
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.report-section-card:hover {
  border-color: var(--accent-soft-border);
  box-shadow: var(--shadow-md);
}

.faq-item {
  border: 1px solid var(--line);
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cta-band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(600px 280px at 80% 50%, rgba(22, 163, 74, 0.12), transparent),
    var(--surface-alt);
}

.cta-band__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.cta-band h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0.65rem 0 1.25rem;
  color: var(--muted);
}

.cta-band .btn-primary {
  display: inline-block;
  text-decoration: none;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Report */
.report-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
}

.report-hero h1 {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.report-sub {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

.report-lock {
  max-width: 1080px;
  margin: 1rem auto;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: var(--danger-soft);
  border-radius: var(--radius);
}

.report-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  display: grid;
  gap: 1.5rem;
}

.report-block {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.report-block h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.35rem;
}

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

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-weight: 500;
  width: 38%;
}

.table-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.data-table--accidents {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  margin: 0;
}

.data-table--accidents thead th {
  width: auto;
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.data-table--accidents tbody td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table--accidents tbody tr:last-child td {
  border-bottom: none;
}

.data-table--accidents tbody tr:hover td {
  background: var(--accent-soft);
}

.data-table--accidents .money {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  white-space: nowrap;
}

.data-table--accidents .money__krw {
  font-weight: 700;
  color: var(--text);
}

.data-table--accidents .money__rub {
  font-size: 0.82rem;
  color: var(--muted);
}

.data-table--accidents .money--total .money__krw {
  color: var(--accent-hover);
}

.data-table--accidents td:nth-child(n+3) {
  text-align: right;
}

.data-table--accidents th:nth-child(n+3) {
  text-align: right;
}

@media (max-width: 800px) {
  .table-card {
    overflow-x: auto;
  }
  .data-table--accidents {
    min-width: 640px;
  }
}

.badge-ok { color: var(--ok); font-weight: 600; }
.badge-bad { color: var(--danger); font-weight: 600; }
.badge-warn { color: var(--warn); font-weight: 600; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}

.photo-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: var(--bg2);
  cursor: zoom-in;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.photo-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft-border);
  box-shadow: var(--shadow-md);
}

.photo-grid img,
.photo-thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--bg2);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 16, 0.88);
  backdrop-filter: blur(6px);
  padding: 3.5rem 4rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__stage {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #111;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

@media (max-width: 700px) {
  .lightbox { padding: 3.5rem 0.75rem 1.25rem; }
  .lightbox__nav { display: none; }
}

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

.panel-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border: 1px solid var(--line);
  padding: 0.3rem 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface-alt);
  border-radius: calc(var(--radius) - 2px);
}

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  min-height: calc(100vh - 12rem);
}

.legal-page h1 {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.legal-page p, .legal-page li { color: var(--muted); }

.admin-page { max-width: 1100px; }
.admin-meta { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 1rem; }
.inline-form { display: inline; }
.btn-small {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
  cursor: pointer;
  margin: 0.1rem;
  border-radius: calc(var(--radius) - 2px);
}
.btn-small--danger { color: var(--danger); }
.status--paid { color: var(--ok); }
.status--pending { color: var(--warn); }
.muted { color: var(--muted); }
.admin-actions { white-space: nowrap; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-card { width: 100%; max-width: none; margin: 0; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .report-sections-grid { grid-template-columns: 1fr 1fr; }
  .pricing-band {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-card { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .report-sections-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .preview-card { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav a:not(.nav__cta) { display: none; }
  .vin-form__row { flex-direction: column; }
  .pricing-band__features { grid-template-columns: 1fr; }
  .pricing-band__cta { width: 100%; justify-content: center; }
}

/* Report v2 */
.report-main { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem 4rem; min-height: calc(100vh - 12rem); }
.report-hero-v2 { padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.report-hero-v2__eyebrow { color: var(--accent); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.5rem; }
.report-hero-v2__vin { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.35rem; }
.report-hero-v2__title { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 0.35rem; letter-spacing: -0.03em; }
.report-hero-v2__meta { color: var(--muted); margin: 0 0 1.25rem; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
.stat-card { background: var(--surface); border: 1px solid var(--line); padding: 0.85rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-card__label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.25rem; }
.stat-card__value { font-size: 1.15rem; font-weight: 700; color: var(--accent-hover); }
.score-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.5rem; align-items: center; background: var(--accent-soft); border: 1px solid var(--accent-soft-border); padding: 1rem 1.25rem; border-radius: var(--radius); }
.score-card__num { font-family: var(--display); font-size: 2.5rem; line-height: 1; color: var(--accent); }
.score-card__of { color: var(--muted); font-size: 0.9rem; }
.score-bars { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 0.45rem; }
.score-bar { display: grid; grid-template-columns: 5.5rem 1fr 2.5rem; gap: 0.5rem; align-items: center; font-size: 0.82rem; color: var(--muted); }
.score-bar__track { height: 6px; background: rgba(15, 60, 40, 0.08); border-radius: 3px; overflow: hidden; }
.score-bar__fill { height: 100%; background: linear-gradient(90deg, var(--accent), #34d399); }
.report-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; position: sticky; top: 3.75rem; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.report-nav a { font-size: 0.82rem; color: var(--muted); text-decoration: none; padding: 0.35rem 0.65rem; border: 1px solid var(--line); border-radius: calc(var(--radius) - 2px); background: var(--surface); }
.report-nav a:hover { color: var(--accent-hover); border-color: var(--accent); background: var(--accent-soft); }
.report-sections .report-block { margin-bottom: 2rem; scroll-margin-top: 4rem; }
.report-sections h2 { font-family: var(--display); font-size: 1.25rem; margin: 0 0 1rem; display: flex; align-items: center; gap: 0.65rem; }
.sec-num { color: var(--accent); font-size: 0.85rem; font-weight: 700; }
.findings-list { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.photo-grid--report { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.mileage-chart-wrap {
  margin: 1rem 0 1.25rem;
  padding: 0.75rem 0.5rem 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.mileage-chart {
  display: block;
  width: 100%;
  height: auto;
}

.mileage-chart__grid {
  stroke: var(--line);
  stroke-width: 1;
}

.mileage-chart__line {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mileage-chart__area {
  fill: var(--accent-soft);
}

.mileage-chart__dot {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 2;
}

.mileage-chart__label {
  fill: var(--muted);
  font-size: 11px;
  font-family: var(--font);
}
.owner-cards { display: grid; gap: 0.65rem; }
.owner-card { border: 1px solid var(--line); padding: 0.75rem 1rem; display: grid; gap: 0.2rem; font-size: 0.9rem; background: var(--surface); border-radius: var(--radius); }
.owner-card--current { border-color: var(--accent-soft-border); background: var(--accent-soft); }
.timeline { display: flex; flex-direction: column; gap: 0.35rem; }
.timeline-date {
  margin: 1rem 0 0.35rem;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-hover);
  border-bottom: 1px solid var(--line);
}
.timeline-date:first-child { margin-top: 0; }
.timeline-item { border-left: 3px solid var(--line); padding: 0.45rem 0 0.55rem 0.85rem; }
.timeline-item--accidents { border-left-color: var(--danger); }
.timeline-item--owners { border-left-color: var(--accent-2); }
.timeline-item--inspection { border-left-color: var(--accent); }
.timeline-item--registration { border-left-color: #64748b; }
.timeline-item--service { border-left-color: var(--warn); }
.timeline-item h3 { margin: 0 0 0.15rem; font-size: 0.95rem; }
.timeline-item p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.diag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem; }
.diag-item { border: 1px solid var(--line); padding: 0.55rem 0.65rem; font-size: 0.82rem; display: grid; gap: 0.15rem; background: var(--surface); border-radius: calc(var(--radius) - 2px); }
.diag-item__group { color: var(--muted); font-size: 0.72rem; }

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.report-actions .btn-ghost,
.report-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font);
  min-height: 2.85rem;
}

.report-actions .btn-ghost {
  background: var(--surface);
}

.report-actions__hint {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 16, 0.45);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  text-align: center;
  border: 1px solid var(--line);
}

.modal h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.35rem;
}

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

.share-modal__input {
  width: 100%;
  margin: 1rem 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg2);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  box-sizing: border-box;
}

.share-modal__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.share-modal__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.share-modal__actions .btn-ghost,
.share-modal__actions .btn-primary {
  font-family: var(--font);
  cursor: pointer;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media print {
  .site-header,
  .site-footer,
  .report-nav,
  .report-block--actions,
  .report-lock,
  .lightbox,
  .form-error,
  .modal-overlay,
  .no-print {
    display: none !important;
  }

  body.report-page {
    background: #fff;
  }

  .report-main {
    max-width: none;
    padding: 0;
  }

  .report-block {
    break-inside: avoid;
  }

  .photo-grid--report img {
    max-height: 140px;
  }
}
