:root {
  --bg: oklch(0.976 0.004 95);
  --surface: #ffffff;
  --surface2: oklch(0.945 0.005 95);
  --ink: oklch(0.16 0.006 95);
  --muted: oklch(0.52 0.008 95);
  --line: oklch(0.88 0.004 95);
  --dark: oklch(0.17 0.006 95);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
img { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(20px, 4vw, 64px);
  background: oklch(0.976 0.004 95 / 86%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: 'Golos Text', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.nav { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.nav a { font-weight: 500; font-size: 15px; color: var(--muted); }
.nav a.is-active { font-weight: 600; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.header-phone { font-weight: 600; font-size: 15px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: opacity .3s, background .3s;
}
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { opacity: .85; color: var(--bg); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--surface2); color: var(--ink); }
.btn-lg { padding: 18px 34px; font-size: 16px; }

.site-footer {
  background: var(--dark); color: oklch(0.78 0.006 95);
  padding: 90px clamp(20px, 4vw, 64px) 40px;
  display: flex; flex-direction: column; gap: 64px;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 56px; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 280px; }
.footer-brand .logo { color: var(--bg); font-size: 26px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: oklch(0.55 0.006 95); }
.footer-col a, .footer-col div { color: inherit; font-size: 15px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
  border-top: 1px solid oklch(0.32 0.006 95); padding-top: 28px;
  font-size: 13px; color: oklch(0.55 0.006 95);
}
.footer-bottom a { color: inherit; }
.footer-links { display: flex; gap: 20px; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }

.page-hero { padding: 100px clamp(20px, 4vw, 64px) 40px; }
.page-hero h1 {
  font-family: 'Golos Text', sans-serif; font-weight: 900;
  font-size: clamp(48px, 7vw, 96px); margin: 0; line-height: 0.98;
}

.section { padding: 0 clamp(20px, 4vw, 64px) 140px; }
.section-title {
  font-family: 'Golos Text', sans-serif; font-weight: 800;
  font-size: clamp(34px, 4.6vw, 56px); margin: 0 0 40px; line-height: 1;
}

.placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(135deg, var(--surface2), var(--surface2) 16px, var(--bg) 16px, var(--bg) 32px);
  display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center;
}
.placeholder span {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  letter-spacing: .05em; color: var(--muted); text-transform: uppercase;
}

@keyframes livniMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: livniMarquee 32s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 20px; padding-right: 20px; }
.marquee-item span:first-child {
  font-family: 'Golos Text', sans-serif; font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px); white-space: nowrap;
}
.marquee-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }

.product-card {
  background: var(--surface); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
}
.product-card__img { aspect-ratio: 1/1; overflow: hidden; display: block; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__title { font-family: 'Golos Text', sans-serif; font-weight: 700; font-size: 20px; color: inherit; }
.product-card__title:hover { color: var(--muted); }
.product-card__desc { font-size: 15px; color: var(--muted); line-height: 1.4; flex: 1; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.product-card__price { font-weight: 700; font-size: 17px; }
.product-card__link {
  border: 1px solid var(--line); padding: 10px 18px; border-radius: 100px;
  font-weight: 600; font-size: 14px;
}
.product-card__link:hover { background: var(--surface2); color: var(--ink); }

.calc-opt {
  padding: 13px 20px; border-radius: 100px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all .2s; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); user-select: none;
}
.calc-opt.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.calc-opt.is-disabled { opacity: .55; cursor: not-allowed; color: var(--muted); }

.admin-body { margin: 0; font-family: 'Manrope', system-ui, sans-serif; background: #f4f4f2; color: #1a1a1a; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-nav { width: 220px; background: #171717; color: #ddd; padding: 28px 18px; flex-shrink: 0; }
.admin-nav a { display: block; color: #ccc; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; font-size: 14px; }
.admin-nav a:hover, .admin-nav a.is-active { background: #2a2a2a; color: #fff; }
.admin-main { flex: 1; padding: 32px; }
.admin-table { width: 100%; background: #fff; border-collapse: collapse; border-radius: 12px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
.admin-table th { background: #fafafa; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #666; }
.admin-form { background: #fff; border-radius: 12px; padding: 24px; max-width: 860px; display: flex; flex-direction: column; gap: 14px; }
.admin-form label { font-size: 13px; color: #666; display: flex; flex-direction: column; gap: 6px; }
.admin-form input, .admin-form select, .admin-form textarea {
  border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px;
}
.admin-btn { background: #171717; color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; }
.admin-alert { background: #e8f5e9; color: #1b5e20; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.admin-error { background: #fce8e8; color: #8b1a1a; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eee; }
.badge-new { background: #171717; color: #fff; }

@media (max-width: 700px) {
  #usage-grid { grid-template-columns: 1fr 1fr !important; }
  .nav { gap: 16px; }
}
@media (max-width: 640px) {
  #avto-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  #usage-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  #calc-grid { grid-template-columns: 1fr !important; }
  .admin-wrap { flex-direction: column; }
  .admin-nav { width: auto; }
}
