/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #DC2626;
  --accent-hover: #B91C1C;
  --dark: #0F172A;
  --dark2: #1E293B;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --bg-light: #F8FAFC;
  --tg: #0EA5E9;
  --viber: #7C3AED;
  --radius-card: 16px;
  --radius-input: 12px;
  --shadow-card: 0 4px 24px rgba(15,23,42,.08);
  --shadow-card-hover: 0 8px 40px rgba(15,23,42,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar__phone {
  color: #fff;
  font-weight: 600;
  transition: color .2s;
}
.topbar__phone:hover { color: var(--accent); }

.topbar__badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: .03em;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(15,23,42,.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.wordmark__main {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--dark);
}

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

.wordmark__sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .04em;
  font-weight: 500;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav__link:hover { background: var(--bg-light); color: var(--accent); }

.btn-cta {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
}
.burger:hover { background: var(--bg-light); }
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav__link { padding: 10px 12px; font-size: 15px; }
.mobile-menu .btn-cta { margin-top: 4px; text-align: center; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a0a0a 60%, #3b0808 100%);
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
}

/* dot pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 56px;
  align-items: center;
  position: relative;
}

/* Left */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220,38,38,.18);
  border: 1px solid rgba(220,38,38,.35);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: .05em;
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 20px;
}
.hero__h1 .accent { color: var(--accent); }

.hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero__perk {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 500;
}

.hero__perk-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Form card */
.form-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}

.form-card__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.form-card__discount {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.form__group { margin-bottom: 14px; }

.form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.form__input::placeholder,
.form__textarea::placeholder { color: #94A3B8; }

.form__textarea { resize: vertical; min-height: 72px; }

.form__vin-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
  padding: 8px 10px;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 3px solid var(--border);
}

/* Contact selector */
.contact-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
  text-align: center;
}
.contact-btn:hover { border-color: var(--accent); color: var(--accent); }
.contact-btn.active {
  border-color: var(--accent);
  background: rgba(220,38,38,.06);
  color: var(--accent);
}
.contact-btn[data-channel="telegram"].active { border-color: var(--tg); background: rgba(14,165,233,.06); color: var(--tg); }
.contact-btn[data-channel="viber"].active { border-color: var(--viber); background: rgba(124,58,237,.06); color: var(--viber); }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border-radius: var(--radius-input);
  transition: background .2s, transform .15s;
  letter-spacing: -.01em;
}
.btn-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }

.form__micro {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* Thank you state */
.form-thankyou {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form-thankyou.visible { display: block; }
.form-thankyou__icon {
  width: 56px;
  height: 56px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #16A34A;
}
.form-thankyou__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-thankyou__text {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.form-thankyou__reset {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== CATEGORIES ===== */
.section { padding: 72px 0; }
.section--light { background: var(--bg-light); }

.section__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--dark);
  text-align: center;
  margin-bottom: 8px;
}

.section__sub {
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.category-tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.category-tile:hover .category-tile__icon { color: var(--accent); }

.category-tile__icon {
  width: 40px;
  height: 40px;
  color: var(--muted);
  transition: color .2s;
}

.category-tile__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* ===== WHY ===== */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.why-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(220,38,38,.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.why-card__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.why-card__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ===== PRODUCTS ===== */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

/* Photo placeholder */
.product-card__photo {
  height: 180px;
  background: #F8FAFC;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.product-card__photo-icon {
  width: 48px;
  height: 48px;
  opacity: .55;
}

.product-card__photo-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  opacity: .7;
}

.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.tag--hit { background: #FEF3C7; color: #92400E; }
.tag--original { background: #DCFCE7; color: #15803D; }
.tag--popular { background: #EDE9FE; color: #6D28D9; }

.product-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.product-card__art {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
  margin-bottom: 4px;
}

.product-card__models {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.4;
  flex: 1;
}

.btn-price {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
  transition: background .2s;
}
.btn-price:hover { background: var(--accent-hover); }

/* ===== REVIEWS ===== */
.reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.reviews__stars { display: flex; gap: 3px; }
.star-icon { width: 20px; height: 20px; color: #F59E0B; fill: #F59E0B; }

.reviews__score {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s;
}
.review-card:hover { box-shadow: var(--shadow-card-hover); }

.review-card__stars { display: flex; gap: 3px; margin-bottom: 12px; }

.review-card__text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-card__avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #7f1d1d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.review-card__car {
  font-size: 12px;
  color: var(--muted);
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  padding: 72px 0;
  text-align: center;
}

.final-cta__title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}

.final-cta__text {
  font-size: 17px;
  color: rgba(255,255,255,.82);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn-final {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  font-size: 17px;
  font-weight: 800;
  padding: 16px 40px;
  border-radius: 12px;
  transition: transform .2s, box-shadow .2s;
  letter-spacing: -.01em;
}
.btn-final:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer__wordmark { margin-bottom: 12px; }
.footer__wordmark .wordmark__main { color: #fff; font-size: 20px; }
.footer__wordmark .wordmark__sub { color: rgba(255,255,255,.45); }

.footer__about {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer__payment {
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer__links a:hover { color: #fff; }

.footer__nav-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: color .2s;
  text-align: left;
}
.footer__nav-btn:hover { color: #fff; }

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.footer__contact-item:hover { color: #fff; }

.footer__contact-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.footer__contact-tg { color: var(--tg) !important; }
.footer__contact-vb { color: var(--viber) !important; }

.footer__hours {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-top: 8px;
  line-height: 1.5;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
}

.footer__disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  text-align: center;
  line-height: 1.5;
}

/* ===== FLOATING MESSENGER BUTTONS ===== */
.float-messengers {
  position: fixed;
  right: 20px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: transform .2s, box-shadow .2s;
  color: #fff;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}

.float-btn--tg { background: var(--tg); }
.float-btn--vb { background: var(--viber); }

.float-btn svg { width: 26px; height: 26px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 420px; gap: 36px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .categories__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .form-card { max-width: 480px; }
  .categories__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .btn-cta { display: none; }
  .burger { display: flex; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar__inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero__h1 { font-size: 26px; }
  .hero__sub { font-size: 15px; }
  .form-card { padding: 20px; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .float-messengers { right: 14px; bottom: 16px; }
}
