:root {
  --bg: #080c14;
  --bg-2: #0f1623;
  --card: #141c2b;
  --card-2: #1a2438;
  --accent: #e85d2c;
  --accent-2: #ff7a45;
  --accent-glow: rgba(232, 93, 44, 0.35);
  --blue: #3b82f6;
  --gold: #f5b942;
  --text: #f4f7fb;
  --muted: #8b9cb3;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --font: 'Manrope', system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px;
  transition: .25s; border: 2px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #c2410c);
  color: #fff; box-shadow: 0 8px 28px var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--outline { border-color: rgba(255,255,255,.2); color: var(--text); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 15px 28px; font-size: 15px; }
.btn--block { width: 100%; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  background: rgba(8, 12, 20, .72); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
}
.header.scrolled { background: rgba(8, 12, 20, .95); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #9a3412);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.logo__text { font-size: 20px; font-weight: 800; }
.logo__text em { font-style: normal; color: var(--accent-2); }
.nav { display: flex; gap: 24px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--muted); transition: .2s; }
.nav a:hover { color: var(--text); }
.header__right { display: flex; align-items: center; gap: 16px; }
.header__phone { font-weight: 800; font-size: 17px; white-space: nowrap; }
.header__phone:hover { color: var(--accent-2); }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; padding-top: var(--header-h);
  display: flex; align-items: center; overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-slide.is-active img { animation: kenburns 8s ease forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero-slide__info {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  background: rgba(8,12,20,.75); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.hero-slide__name { display: block; font-weight: 800; font-size: 18px; }
.hero-slide__meta { font-size: 13px; color: var(--muted); }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(8,12,20,.92) 0%, rgba(8,12,20,.75) 45%, rgba(8,12,20,.55) 100%);
}
.hero__grid {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 60px 20px; width: 100%; max-width: 1200px; margin: 0 auto;
}
.hero__eyebrow {
  display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 18px;
}
.hero h1 span { color: var(--accent-2); }
.hero__promo { font-size: 18px; margin-bottom: 6px; }
.hero__promo s { color: var(--muted); margin-right: 8px; }
.hero__promo strong { color: var(--gold); font-size: 22px; }
.hero__promo-note { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill {
  padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.06);
  border: 1px solid var(--border); font-size: 13px;
}
.pill strong { color: #fff; }
.hero-slider__nav { display: flex; gap: 8px; }
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25);
  border: none; transition: .3s;
}
.hero-dot.is-active { background: var(--accent); width: 28px; border-radius: 999px; }

.hero-form {
  background: rgba(20, 28, 43, .88); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.hero-form h3 { font-size: 20px; margin-bottom: 18px; line-height: 1.3; }
.hero-form__alt { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.hero-form__alt a { color: var(--blue); font-weight: 700; }

/* Forms */
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text);
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,93,44,.15);
}
.lead-form--inline { flex-direction: row; flex-wrap: wrap; align-items: center; }
.lead-form--inline input { flex: 1; min-width: 200px; }
.checkbox {
  display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.5;
}
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox a { color: var(--blue); }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-success {
  padding: 14px; border-radius: var(--radius-sm); background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3); color: #86efac; font-size: 14px;
}
.form-success[hidden] { display: none !important; }

/* Rates */
.rates { background: var(--bg-2); border-block: 1px solid var(--border); padding: 14px 0; }
.rates__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.rates__label, .rates__hours { color: var(--muted); }
.rates__items { display: flex; gap: 24px; flex-wrap: wrap; }
.rates__items strong { color: var(--gold); }

/* Sections */
.section { padding: 90px 0; }
.section--dark { background: var(--bg-2); }
.section--accent { background: linear-gradient(180deg, #10182a, #0d1422); }
.section__tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px;
}
.section__header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section__header--left { text-align: left; margin-left: 0; }
.section__header h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.section__header p { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: start; }
.about__text p { color: var(--muted); margin-bottom: 14px; }
.about__highlight { color: var(--text) !important; font-weight: 600; padding-left: 16px; border-left: 3px solid var(--accent); }
.about__stats { display: flex; flex-direction: column; gap: 14px; }
.about-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.about-stat span { display: block; font-size: 22px; font-weight: 800; color: var(--accent-2); }
.about-stat small { color: var(--muted); font-size: 13px; }

/* Carousel */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 4px 2px 12px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--border); color: #fff; font-size: 24px; line-height: 1;
  box-shadow: var(--shadow);
}
.carousel__btn--prev { left: -12px; }
.carousel__btn--next { right: -12px; }
.car-tile {
  flex: 0 0 280px; scroll-snap-align: start; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: .3s;
}
.car-tile:hover { transform: translateY(-4px); border-color: rgba(232,93,44,.35); }
.car-tile img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.car-tile__body { padding: 16px; }
.car-tile__body h3 { font-size: 17px; margin-bottom: 4px; }
.car-tile__body p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.car-tile__price { font-size: 20px; font-weight: 800; color: var(--gold); margin-bottom: 12px; }
.car-tile--delivered .car-tile__price { margin-bottom: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: .3s;
}
.service-card:hover { border-color: rgba(232,93,44,.3); background: var(--card-2); }
.service-card__icon { font-size: 28px; margin-bottom: 12px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.service-card ul { list-style: none; }
.service-card li {
  font-size: 13px; color: var(--muted); padding: 6px 0 6px 18px; position: relative;
  border-top: 1px solid var(--border);
}
.service-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

/* Workflow */
.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.workflow__step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.workflow__num { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.workflow__step h3 { margin-bottom: 8px; }
.workflow__step p { font-size: 14px; color: var(--muted); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-item {
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.why-item strong { display: block; margin-bottom: 8px; font-size: 17px; }
.why-item p { font-size: 14px; color: var(--muted); }

/* Risks */
.risks { max-width: 800px; margin: 0 auto 28px; }
.risk-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; background: var(--card); }
.risk-item summary { padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.risk-item summary::-webkit-details-marker { display: none; }
.risk-item p { padding: 0 20px 18px; font-size: 14px; color: var(--muted); }
.risks-cta { text-align: center; }
.risks-cta p { color: var(--muted); margin-bottom: 16px; }

/* Reviews */
.reviews-slider { overflow: hidden; }
.reviews-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 min(320px, 85vw); scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.review-card__stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.review-card p { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 14px; line-height: 1.7; }
.review-card span { font-size: 13px; font-weight: 700; }
.reviews-nav { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.reviews-nav .carousel__btn { position: static; transform: none; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #9a3412, var(--accent));
  padding: 48px 0;
}
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: 28px; margin-bottom: 6px; }
.cta-band p { opacity: .9; }
.cta-band .lead-form input { background: rgba(255,255,255,.95); color: #111; border: none; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--card); overflow: hidden; }
.faq__item summary { padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p { padding: 0 20px 18px; font-size: 14px; color: var(--muted); }

/* Form section */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-info h2 { font-size: 30px; margin-bottom: 16px; }
.form-phone { display: block; font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.form-info p { color: var(--muted); }
.lead-form:not(.lead-form--compact):not(.lead-form--inline) {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}

/* Footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer__links h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer__links a, .footer__links span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 18px 0; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted);
}

/* Popup (jcar-style) */
.popup[hidden] { display: none !important; }
.popup {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.popup__overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}
.popup__container {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: popupIn 0.35s ease;
  max-height: 90vh; overflow-y: auto;
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.popup__close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.06); color: #333;
  font-size: 24px; line-height: 1;
  display: grid; place-items: center;
  transition: background 0.2s;
}
.popup__close:hover { background: rgba(0,0,0,.12); }
.popup__wrapper { padding: 36px 32px 32px; }
.popup__head { text-align: center; margin-bottom: 24px; }
.popup__title {
  font-size: 22px; font-weight: 800; line-height: 1.3;
  color: #111; margin-bottom: 10px;
}
.popup__descr { font-size: 14px; line-height: 1.55; color: #555; }

.popup-form__fields { display: flex; flex-direction: column; gap: 16px; }
.popup-field input[type="tel"],
.popup-field input[type="text"],
.popup-field select {
  width: 100%; padding: 14px 16px;
  border: 1px solid #c9c9c9; border-radius: 5px;
  background: #fff; color: #111; font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.popup-field input:focus,
.popup-field select:focus {
  outline: none; border-color: #e85d2c;
  box-shadow: 0 0 0 3px rgba(232, 93, 44, 0.12);
}
.popup-field input::placeholder { color: #111; opacity: 0.45; }
.popup-label {
  display: block; font-size: 15px; font-weight: 600;
  color: #111; margin-bottom: 4px;
}
.popup-hint {
  display: block; font-size: 12px; color: #777;
  margin-bottom: 8px; line-height: 1.4;
}
.popup-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.popup-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; line-height: 1.5; color: #444; cursor: pointer;
}
.popup-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.popup-checkbox__box {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px;
  border: 1px solid #c9c9c9; border-radius: 3px;
  background: #fff; position: relative;
}
.popup-checkbox input:checked + .popup-checkbox__box {
  background: #e85d2c; border-color: #e85d2c;
}
.popup-checkbox input:checked + .popup-checkbox__box::after {
  content: ''; position: absolute; left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.popup-checkbox a { color: #e85d2c; text-decoration: underline; }
.popup-submit {
  width: 100%; padding: 16px 24px; margin-top: 4px;
  background: #e53935; color: #fff; border: none; border-radius: 5px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.popup-submit:hover { background: #c62828; }
.popup-submit:active { transform: scale(0.98); }
.popup-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.popup-form__success {
  text-align: center; padding: 32px 16px;
  font-size: 16px; font-weight: 600; color: #16a34a; line-height: 1.5;
}
.popup-form__success[hidden] { display: none !important; }

@media (max-width: 480px) {
  .popup__wrapper { padding: 28px 20px 24px; }
  .popup__title { font-size: 19px; }
}

/* Float CTA */
.float-cta {
  position: fixed; bottom: 22px; right: 22px; z-index: 999;
  display: flex; align-items: center; gap: 8px; padding: 14px 22px;
  background: linear-gradient(135deg, #16a34a, #15803d); color: #fff;
  border: none; border-radius: 999px; font-weight: 800; font-size: 14px;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 10px 30px rgba(22,163,74,.4);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: .3s;
}
.float-cta.visible { opacity: 1; transform: none; pointer-events: auto; }
.float-cta svg { width: 18px; height: 18px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid, .about, .services, .workflow, .why-grid, .form-grid { grid-template-columns: 1fr; }
  .carousel__btn--prev { left: 4px; }
  .carousel__btn--next { right: 4px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--bg);
    flex-direction: column; padding: 20px; gap: 14px; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); opacity: 0; transition: .3s;
  }
  .nav.open { transform: none; opacity: 1; }
  .burger { display: flex; }
  .header__right { display: none; }
  .hero__grid { padding: 40px 20px; }
  .hero-slide__info { display: none; }
  .services, .why-grid { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .lead-form--inline { flex-direction: column; }
  .lead-form--inline .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .rates__inner { flex-direction: column; align-items: flex-start; }
}
