/* ===== Time2Car — premium dark theme ===== */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --text-dim: #6e6e6e;
  --accent: #e6c068;
  --accent-2: #d4af37;
  --accent-soft: rgba(230, 192, 104, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.text-accent { color: var(--accent); }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  z-index: 200; transition: width 0.1s linear;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  letter-spacing: 0.01em; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap; border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1408; box-shadow: 0 10px 30px rgba(230, 192, 104, 0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(230, 192, 104, 0.4); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: background 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(10, 10, 10, 0.82); backdrop-filter: blur(14px);
  padding: 12px 0; border-bottom-color: var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo__mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1408;
  border-radius: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.5px;
}
.logo__text { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.logo__accent { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { color: var(--text-muted); font-weight: 500; font-size: 15px; transition: color 0.2s; position: relative; }
.nav__link:hover { color: var(--text); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.25s var(--ease);
}
.nav__link:hover::after { width: 100%; }
.nav__cta { padding: 10px 20px; font-size: 14px; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Section base ===== */
.section { padding: 100px 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__eyebrow {
  color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 14px;
}
.section__title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; }
.section__lead { color: var(--text-muted); font-size: 17px; }

/* ===== Card ===== */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 80px; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(230, 192, 104, 0.18), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(212, 175, 55, 0.12), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #121212 60%, #0a0a0a 100%);
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 32px 32px;
}
.hero__overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 880px; }
.hero__eyebrow {
  display: inline-block; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 22px; padding: 8px 16px;
  background: var(--accent-soft); border: 1px solid rgba(230, 192, 104, 0.25); border-radius: 999px;
}
.hero__title { font-family: var(--font-display); font-size: clamp(38px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; margin-bottom: 24px; }
.hero__subtitle { font-size: clamp(17px, 2vw, 20px); color: var(--text-muted); max-width: 620px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero__stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong { font-family: var(--font-display); font-size: 34px; color: var(--accent); font-weight: 800; }
.hero__stats span { color: var(--text-muted); font-size: 14px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; background: var(--accent); border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== Services ===== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.service { padding: 36px 30px; position: relative; }
.service:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.service--accent { background: linear-gradient(160deg, rgba(230,192,104,0.08), var(--surface)); border-color: rgba(230,192,104,0.25); }
.service__badge {
  position: absolute; top: 20px; right: 20px; background: var(--accent); color: #1a1408;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.service__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; border: 1px solid rgba(230,192,104,0.2);
}
.service__icon svg { width: 28px; height: 28px; }
.service__title { font-family: var(--font-display); font-size: 22px; margin-bottom: 12px; }
.service__desc { color: var(--text-muted); margin-bottom: 20px; font-size: 15px; }
.service__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.service__list li { position: relative; padding-left: 24px; color: var(--text); font-size: 15px; }
.service__list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px;
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 50%;
}
.service__list li::after {
  content: ""; position: absolute; left: 5px; top: 13px; width: 4px; height: 7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg);
}
.service__link { color: var(--accent); font-weight: 600; font-size: 15px; transition: gap 0.2s; }
.service__link:hover { letter-spacing: 0.02em; }

.complex {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 36px 40px; background: linear-gradient(135deg, rgba(230,192,104,0.06), var(--surface));
  border-color: rgba(230,192,104,0.2);
}
.complex__title { font-family: var(--font-display); font-size: 26px; margin: 8px 0 10px; }
.complex__desc { color: var(--text-muted); max-width: 620px; }
.complex__cta { flex-shrink: 0; }

/* ===== Prices ===== */
.prices { background: var(--bg-2); }
.prices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price { padding: 32px 28px; }
.price--accent { border-color: rgba(230,192,104,0.25); background: linear-gradient(160deg, rgba(230,192,104,0.06), var(--surface)); }
.price__title { font-family: var(--font-display); font-size: 20px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.price__list { display: flex; flex-direction: column; gap: 14px; }
.price__list li { display: flex; justify-content: space-between; gap: 16px; color: var(--text-muted); font-size: 15px; }
.price__list li span:last-child { color: var(--accent); font-weight: 700; white-space: nowrap; }
.price__note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }
.prices__disclaimer { margin-top: 28px; color: var(--text-dim); font-size: 14px; text-align: center; }

/* ===== Gallery ===== */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item { overflow: hidden; }
.gallery__item:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.gallery__ph {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.gallery__ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.gallery__item:hover .gallery__ph img { transform: scale(1.05); }
.gallery__ph--1 { background: linear-gradient(135deg, #2a2a2a, #1a1a1a); }
.gallery__ph--2 { background: linear-gradient(135deg, #1f1f1f, #2d2a22); }
.gallery__ph--3 { background: linear-gradient(135deg, #262626, #1c1c1c); }
.gallery__ph--4 { background: linear-gradient(135deg, #2a2620, #1a1a1a); }
.gallery__ph--5 { background: linear-gradient(135deg, #1e1e1e, #28241e); }
.gallery__ph--6 { background: linear-gradient(135deg, #242424, #1a1a1a); }
.gallery__ph--7 { background: linear-gradient(135deg, #2a2620, #1c1c1c); }
.gallery__ph--8 { background: linear-gradient(135deg, #1e1e1e, #2a2620); }
.gallery__ph--9 { background: linear-gradient(135deg, #262626, #1f1f1f); }
.gallery__ph--10 { background: linear-gradient(135deg, #2a2a2a, #1a1a1a); }
.gallery__item figcaption { padding: 16px 18px; font-size: 14px; color: var(--text-muted); }

/* ===== Process ===== */
.process { background: var(--bg-2); }
.process__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process__step { padding: 30px 26px; position: relative; }
.process__step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.process__num { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--accent); opacity: 0.5; display: block; margin-bottom: 12px; }
.process__step h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.process__step p { color: var(--text-muted); font-size: 15px; }

/* ===== Reviews ===== */
.reviews__yandex {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 24px 28px; margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(230,192,104,0.06), var(--surface));
  border: 1px solid rgba(230,192,104,0.2); border-radius: var(--radius);
}
.reviews__yandex-badge { flex-shrink: 0; }
.reviews__yandex-badge iframe { width: 150px; height: 70px; border: 0; border-radius: 10px; display: block; background: transparent; }
.reviews__yandex-text { flex: 1; min-width: 240px; }
.reviews__yandex-text p { color: var(--text-muted); margin-bottom: 14px; font-size: 16px; }
.reviews__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review { padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.review:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.review__stars { color: var(--accent); letter-spacing: 3px; font-size: 16px; }
.review__text { font-size: 16px; line-height: 1.6; }
.review__author { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--border); }
.review__name { font-weight: 700; }
.review__car { color: var(--text-dim); font-size: 14px; }

/* ===== FAQ ===== */
.faq { background: var(--bg-2); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { padding: 0; overflow: hidden; }
.faq__item[open] { border-color: rgba(230,192,104,0.3); }
.faq__item summary {
  padding: 22px 26px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 24px; color: var(--accent); transition: transform 0.3s var(--ease); flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 26px 22px; color: var(--text-muted); font-size: 15px; }

/* ===== Contacts ===== */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.contacts__list { display: flex; flex-direction: column; gap: 26px; }
.contacts__list li { display: flex; flex-direction: column; gap: 6px; }
.contacts__label { color: var(--text-dim); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.contacts__value { font-size: 18px; color: var(--text); }
.contacts__link:hover { color: var(--accent); }
.contacts__socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social {
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--border-strong); transition: all 0.25s var(--ease);
}
.social--wa:hover { background: #25d366; color: #063; border-color: #25d366; }
.social--tg:hover { background: #229ed9; color: #fff; border-color: #229ed9; }
.social--vk:hover { background: #0077ff; color: #fff; border-color: #0077ff; }
.social--avito:hover { background: #00aaff; color: #fff; border-color: #00aaff; }
.contacts__form { padding: 36px 32px; }
.form__title { font-family: var(--font-display); font-size: 24px; margin-bottom: 22px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 80px; }
.form__submit { width: 100%; margin-top: 6px; }
.form__note { margin-top: 14px; padding: 12px 16px; background: rgba(37, 211, 102, 0.1); border: 1px solid rgba(37, 211, 102, 0.3); border-radius: var(--radius-sm); color: #6ee396; font-size: 14px; }
.form__hint { margin-top: 12px; color: var(--text-dim); font-size: 12px; text-align: center; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox__figure { max-width: min(92vw, 1100px); max-height: 86vh; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox__caption { color: var(--text-muted); font-size: 15px; text-align: center; }
.lightbox__counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--text-dim); font-size: 14px; letter-spacing: 0.1em; }
.lightbox__close, .lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.08);
  color: var(--text); font-size: 30px; line-height: 1; display: grid; place-items: center;
  border: 1px solid var(--border-strong); transition: background 0.2s, transform 0.2s var(--ease);
}
.lightbox__close { top: 22px; right: 22px; transform: none; font-size: 36px; }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: #1a1408; transform: translateY(-50%) scale(1.05); }
.lightbox__close:hover { transform: scale(1.05); }
@media (max-width: 560px) {
  .lightbox__nav { width: 42px; height: 42px; font-size: 24px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__close { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 30px; }
}

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease); animation: waPulse 2.4s infinite;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ===== Footer ===== */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 50px 0 30px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.footer__copy { color: var(--text-dim); font-size: 14px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .services__grid, .prices__grid, .gallery__grid, .process__list { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .complex { flex-direction: column; align-items: flex-start; }
  .complex__cta { width: 100%; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 320px);
    background: var(--bg-2); border-left: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 90px 28px 28px; gap: 8px; transform: translateX(100%); transition: transform 0.35s var(--ease);
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
  }
  .nav.open { transform: none; }
  .nav__link { font-size: 18px; padding: 10px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 14px; width: 100%; justify-content: center; }
  .burger { display: flex; }
  .section { padding: 70px 0; }
  .section__head { margin-bottom: 40px; }
  .hero__stats { gap: 28px; }
  .hero__stats strong { font-size: 28px; }
  .container { padding: 0 18px; }
}
@media (max-width: 560px) {
  .services__grid, .prices__grid, .gallery__grid, .process__list { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
  .contacts__form { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
