:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-strong: #f0f3f4;
  --text: #0e1a16;
  --muted: #5d6b65;
  --line: #e4e8ea;
  --accent: #0e9c74;
  --accent-dark: #0b7d5d;
  --accent-soft: #e7f6f0;
  --warning: #c2410c;
  --shadow: 0 1px 2px rgba(12, 30, 24, 0.05), 0 12px 34px rgba(12, 30, 24, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(244, 246, 243, 0.9);
  border-bottom: 1px solid rgba(219, 225, 216, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover,
.telegram-link:hover {
  color: var(--accent-dark);
}

.telegram-link {
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent-dark);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  padding: 110px clamp(18px, 5vw, 72px) 34px;
  overflow: hidden;
  background: #15211c;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 18, 15, 0.86), rgba(10, 18, 15, 0.36) 58%, rgba(10, 18, 15, 0.68)),
    linear-gradient(0deg, rgba(10, 18, 15, 0.78), transparent 42%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  padding-bottom: 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9ef2df;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand,
.price,
.hero-amount,
.found-n,
.car-credit-month {
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

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

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover {
  background: var(--accent-dark);
}

.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-panel span {
  min-height: 72px;
  display: grid;
  align-items: center;
  padding: 18px;
  background: rgba(15, 27, 23, 0.72);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.hero-legal {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.promo-countdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 620px);
  gap: 18px;
  align-items: center;
  padding: 30px clamp(18px, 5vw, 72px);
  background: linear-gradient(135deg, #e24427, #ef7d61);
  color: #fff;
}

.promo-countdown .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.promo-countdown h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  text-transform: uppercase;
}

.promo-legal {
  max-width: 720px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.promo-countdown-bar {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(20, 24, 22, 0.28);
}

.promo-countdown-bar span {
  font-weight: 800;
}

.promo-countdown-bar strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
}

.promo-countdown-bar [data-expired="true"] {
  font-size: 22px;
}

.chip {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.chip.active,
.chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.section {
  padding: 72px clamp(18px, 5vw, 72px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.section-head p,
.selection-copy p,
.lead-card p,
.steps p,
.car-meta,
.form-note,
.section-legal,
.form-legal,
.legal-muted {
  color: var(--muted);
}

.section-legal {
  max-width: 880px;
  margin: -10px 0 18px;
  font-size: 12px;
  font-weight: 700;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  outline: 0;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 110px;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.catalog-status {
  min-height: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.car-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(28, 45, 36, 0.08);
  cursor: pointer;
}

.car-card:focus-visible {
  outline: 3px solid rgba(35, 113, 75, 0.35);
  outline-offset: 3px;
}

.car-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-strong);
}

.car-image img,
.car-image-placeholder {
  width: 100%;
  height: 100%;
}

.car-image img {
  object-fit: cover;
  transition: transform 0.26s ease;
}

.car-image-placeholder,
.detail-image-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(216, 135, 47, 0.12)),
    var(--surface-strong);
  color: var(--muted);
  font-weight: 900;
}

.car-card:hover .car-image img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.car-body {
  padding: 16px;
}

.car-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.car-title-row h3 {
  margin-bottom: 0;
}

.price-stack {
  flex: none;
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.old-price {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: line-through;
}

.price {
  color: var(--accent-dark);
  font-weight: 900;
}

.discount-price {
  color: #c1121f;
}

.car-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.details-button {
  width: 100%;
  margin-bottom: 10px;
}

.ghost-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 800;
}

.modal-open {
  overflow: hidden;
}

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

.car-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.car-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 21, 17, 0.68);
}

.car-modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(10, 16, 13, 0.28);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.car-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
}

.detail-gallery {
  padding: 18px;
  background: var(--surface-strong);
}

.detail-main-image,
.detail-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
}

.detail-main-image {
  background: #dfe6df;
  object-fit: cover;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  max-height: 178px;
  margin-top: 10px;
  overflow: auto;
  padding-right: 4px;
}

.detail-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.detail-thumb.active {
  border-color: var(--accent);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  padding: 32px 28px;
}

.detail-kicker {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-info h2 {
  margin: 0 44px 12px 0;
  font-size: 30px;
  line-height: 1.12;
}

.detail-price {
  margin: 0 0 20px;
  color: var(--accent-dark);
  font-size: 26px;
  font-weight: 900;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.detail-specs div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.detail-specs dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-specs dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-promo-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 18px 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e24427, #f08a68);
  color: #fff;
}

.detail-promo-banner span,
.detail-promo-banner strong {
  display: block;
}

.detail-promo-banner span {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-promo-banner strong {
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1;
}

.detail-offer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
  padding: 0 18px 18px;
}

.credit-calculator,
.detail-gifts {
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.offer-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.offer-section-head .eyebrow,
.offer-section-head h3 {
  margin: 0;
}

.offer-section-head h3 {
  font-size: 22px;
}

.offer-section-head > span {
  color: var(--muted);
  font-weight: 800;
}

.credit-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.credit-field {
  color: var(--muted);
}

.credit-stepper {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.credit-stepper input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  text-align: center;
  font-weight: 900;
}

.credit-stepper button {
  border: 0;
  background: var(--surface);
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 900;
}

.credit-stepper button:hover {
  background: var(--accent-soft);
}

.credit-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.credit-results div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.credit-results span,
.credit-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.credit-results strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.credit-note {
  margin: 12px 0 0;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gift-grid article {
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
}

.gift-grid strong {
  font-size: 15px;
}

.gift-visual {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e9eef0;
}

.gift-visual-payments::before,
.gift-visual-payments::after {
  position: absolute;
  inset: 16px 9px 24px;
  content: "";
  border-radius: 50%;
  background: #b8bec5;
  box-shadow: 0 10px 0 #d7dbe0;
}

.gift-visual-payments::after {
  inset: 22px 16px 18px;
  background: #8d959f;
}

.gift-visual-fuel {
  border-radius: 18px 18px 28px 28px;
  background: linear-gradient(135deg, #f3b83f, #e24427);
}

.gift-visual-fuel::after {
  position: absolute;
  right: -8px;
  top: 18px;
  width: 22px;
  height: 32px;
  content: "";
  border: 5px solid #232323;
  border-left: 0;
  border-radius: 0 16px 16px 0;
}

.gift-visual-casco {
  border-radius: 18px 18px 32px 32px;
  background: linear-gradient(135deg, #ffd76f, #f3a622);
}

.gift-visual-casco::before {
  position: absolute;
  inset: 13px 18px 24px;
  content: "";
  border-radius: 0 0 20px 20px;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-top: 0;
}

.gift-visual-tires {
  background:
    radial-gradient(circle at center, #f7f7f7 0 14px, #4c5358 15px 23px, transparent 24px),
    repeating-radial-gradient(circle at center, #1d2326 0 5px, #384047 6px 10px);
}

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

.selection {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  background: var(--surface-strong);
}

.selection-copy {
  max-width: 560px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.steps article {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--warning);
  font-weight: 900;
}

.lead-section {
  background: var(--bg);
}

.lead-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  font-size: 14px;
}

.form-legal {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  font-size: 12px;
  font-weight: 700;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.consent a {
  color: var(--accent-dark);
  font-weight: 900;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer span:first-child {
  color: var(--text);
  font-weight: 900;
}

.footer a {
  color: var(--accent-dark);
  font-weight: 800;
}

.legal-page {
  max-width: 920px;
}

.legal-page h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.legal-page h2 {
  margin-top: 28px;
  font-size: clamp(24px, 3vw, 34px);
}

.legal-muted {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  font-size: 14px;
  font-weight: 700;
}

.admin-page {
  background: var(--surface-strong);
}

.admin-shell {
  display: grid;
  width: 100%;
  max-width: 100vw;
  gap: 20px;
  padding: 34px clamp(16px, 4vw, 56px) 70px;
  overflow-x: hidden;
}

.admin-hero,
.admin-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(28, 45, 36, 0.07);
}

.admin-hero {
  padding: 28px;
}

.admin-hero h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
}

.admin-hero p {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--muted);
}

.admin-section {
  padding: 22px;
}

.admin-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-section-head h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 36px);
}

.admin-status {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-form {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.car-editor {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.admin-table td span {
  color: var(--muted);
  font-size: 14px;
}

.admin-table td:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger {
  color: #9d2b22;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .section-head,
  .filters,
  .catalog-grid,
  .car-detail-layout,
  .detail-offer-layout,
  .promo-countdown,
  .selection,
  .lead-card,
  .admin-form,
  .car-editor {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .topbar {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .telegram-link {
    padding: 9px 11px;
    font-size: 14px;
  }

  .hero {
    min-height: 680px;
    padding: 92px 16px 20px;
  }

  .hero-content {
    padding-bottom: 36px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .quick-picks,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .admin-section-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .car-title-row,
  .card-actions,
  .detail-actions,
  .detail-specs,
  .detail-promo-banner,
  .credit-controls,
  .credit-results,
  .gift-grid,
  .footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .promo-countdown-bar {
    grid-template-columns: 1fr;
  }

  .car-modal {
    padding: 10px;
  }

  .car-modal-panel {
    max-height: 94vh;
  }

  .detail-gallery {
    padding: 10px;
  }

  .detail-info {
    padding: 20px 16px;
  }

  .detail-info h2 {
    margin-right: 42px;
    font-size: 24px;
  }
}


/* --- Offer/trust strip (added) --- */
.offer-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.offer-strip article {
  display: grid;
  gap: 4px;
  padding: 20px 16px;
  background: var(--surface);
  text-align: center;
}
.offer-strip strong {
  color: var(--accent-dark);
  font-size: 20px;
  line-height: 1.1;
}
.offer-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 980px) {
  .offer-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .offer-strip { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
}

/* --- Per-card credit line (added) --- */
.car-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: 0 0 12px;
}
.car-credit-month {
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 15px;
}
.car-credit-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}
.car-credit-discount {
  flex-basis: 100%;
  color: #c1121f;
  font-size: 13px;
  font-weight: 800;
}

/* ===================================================================
   REDESIGN 2026: светлый маркетплейс + геро с ползунком платежа
   (перебивает старые правила по каскаду; механику JS не трогает)
   =================================================================== */
.hero {
  position: relative;
  min-height: 0;
  display: block;
  padding: clamp(32px, 5vw, 60px) clamp(18px, 5vw, 72px) clamp(24px, 4vw, 38px);
  background: linear-gradient(180deg, #eef3f1 0%, var(--bg) 100%);
  color: var(--text);
  overflow: visible;
}

.hero-grid {
  display: grid;
  gap: clamp(22px, 4vw, 40px);
  grid-template-columns: 1fr;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 16px;
  max-width: none;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.hero-sub {
  max-width: 520px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hpill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #33433c;
  font-size: 13px;
  font-weight: 600;
}

.hpill svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.slider-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 26px);
}

.sc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-amount {
  margin: 4px 0 2px;
  font-size: clamp(34px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-amount small {
  font-size: 18px;
  color: var(--muted);
  font-weight: 600;
}

.range {
  width: 100%;
  margin: 16px 0 8px;
  padding: 0;
  min-height: 0;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  outline: none;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(14, 156, 116, 0.45);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.range::-webkit-slider-thumb:hover {
  transform: scale(1.08);
}

.range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid #fff;
  cursor: pointer;
}

.range:focus {
  box-shadow: none;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.found {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid #bfe7d6;
  border-radius: 13px;
  padding: 13px 15px;
}

.found-n {
  font-weight: 800;
  font-size: 18px;
  color: var(--accent-dark);
}

.found small {
  display: block;
  color: #3f6a59;
  font-weight: 500;
  font-size: 12.5px;
}

.found .button {
  min-height: 44px;
  padding: 11px 18px;
}

.sc-legal {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.hero .hero-legal {
  position: static;
  max-width: 1180px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 12px;
}

/* quick-picks + chips */
.quick-picks {
  gap: 9px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.chip {
  font-weight: 600;
}

/* card polish */
.car-card {
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.car-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(12, 30, 24, 0.08), 0 22px 50px rgba(12, 30, 24, 0.12);
}

.badge {
  font-weight: 700;
}

/* trust strip */
.offer-strip strong {
  color: var(--accent-dark);
  font-size: 17px;
}

@media (max-width: 680px) {
  .found {
    flex-direction: column;
    align-items: stretch;
  }
  .found .button {
    width: 100%;
  }
}

/* promo-bar (акция, авто-воскресенье) — спокойный стиль маркетплейса */
.promo-bar {
  padding: 0 clamp(18px, 5vw, 72px) 8px;
}

.promo-bar-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), #ffffff);
}

.promo-bar-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.promo-bar-text strong {
  font-family: "Manrope", Inter, sans-serif;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -0.01em;
}

.promo-bar-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.promo-bar-timer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.promo-bar-timer strong {
  font-family: "Manrope", Inter, sans-serif;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}

.promo-bar-timer strong[data-expired="true"] {
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 760px) {
  .promo-bar-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .promo-bar-timer {
    align-items: flex-start;
  }
  .promo-bar-inner .button {
    width: 100%;
  }
}
