:root {
  --bg: #0e0e10;
  --bg-alt: #17181b;
  --bg-card: #1d1e22;
  --border: #2a2b30;
  --text: #f2efe9;
  --muted: #a9a49c;
  --red: #c8161f;
  --red-dark: #8f0f16;
  --red-light: #e2313a;
  --gold: #d9ac5c;
  --gold-light: #f3d999;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(200,22,31,.35);
}
.btn--whatsapp {
  background: #1ea952;
  color: #fff;
  box-shadow: 0 6px 18px rgba(30,169,82,.3);
}
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* Topbar */
.topbar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 8px 20px;
  justify-content: center;
}
.topbar__item--address { color: var(--muted); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,14,16,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand__logo { width: 44px; height: 44px; }
.brand__logo--sm { width: 36px; height: 36px; }
.brand__name {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.05rem;
  color: var(--text);
}
.brand__accent { color: var(--gold); }

.nav {
  display: flex;
  gap: 22px;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover { color: var(--gold-light); }

.header__cta { display: flex; gap: 10px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.burger span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* Hero */
.hero {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(200,22,31,.18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(217,172,92,.12), transparent 60%),
    var(--bg);
  padding: 64px 0 40px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  margin: 0 0 18px;
}
.hero h1 span { color: var(--gold); }
.hero__lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 620px;
  margin: 0 0 28px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero__art { display: flex; justify-content: center; }
.hero__wheel {
  width: min(100%, 340px);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
  animation: spin-in 1.2s ease-out;
}
@keyframes spin-in {
  from { opacity: 0; transform: rotate(-25deg) scale(.85); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

/* Section titles */
.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  text-align: center;
  margin: 0 0 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 40px;
}
.section-title--left, .section-subtitle--left { text-align: left; margin-left: 0; }

/* Services */
.services { padding: 70px 0; background: var(--bg-alt); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card__icon {
  font-size: 1.8rem;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200,22,31,.18), rgba(217,172,92,.18));
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Process */
.process { padding: 70px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Why */
.why { padding: 70px 0; background: var(--bg-alt); }
.grid--why { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.why__item {
  text-align: center;
  padding: 20px;
}
.why__icon { font-size: 2rem; margin-bottom: 10px; }
.why__item h3 { margin: 0 0 8px; font-size: 1.02rem; }
.why__item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Prices */
.prices { padding: 70px 0; }
.grid--prices { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.price-card h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--gold-light);
}
.price-card__subtitle { margin-top: 22px; }
.price-list { display: flex; flex-direction: column; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}
.price-list li:last-child { border-bottom: none; }
.price-list li span:last-child {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.prices__note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 30px auto 0;
  max-width: 640px;
}

/* Gallery / works slider */
.gallery { padding: 70px 0; text-align: center; }

.slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  flex: 1;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide {
  flex: 0 0 clamp(220px, 32vw, 360px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
}
.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider__arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.slider__arrow:hover { border-color: var(--gold); background: var(--bg-alt); }
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, transform .15s ease;
}
.slider__dot.is-active { background: var(--gold); transform: scale(1.2); }

/* Contacts */
.contacts { padding: 70px 0; background: var(--bg-alt); }
.contacts__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.contacts__list { margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.contacts__list a { color: var(--gold-light); }
.contacts__map {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 20px;
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.contacts__map:hover { border-color: var(--gold); transform: translateY(-2px); }
.contacts__map-icon { font-size: 1.8rem; }
.contacts__map p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

.order-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.order-form h3 { margin: 0 0 4px; }
.order-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.order-form input, .order-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.order-form input:focus, .order-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.order-form__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Footer */
.footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
}
.brand--footer { margin-right: 0; }
.footer__phones { display: flex; gap: 16px; flex-wrap: wrap; }

/* Floating WhatsApp button */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1ea952;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 60;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .contacts__inner { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .header__inner { flex-wrap: wrap; }
  .nav, .header__cta { display: none; }
  .burger { display: flex; }

  /* Бургер всегда справа вверху, меню — строками ниже */
  .brand { order: 1; }
  .burger { order: 2; }
  .nav { order: 3; }
  .header__cta { order: 4; }

  /* Раскрытое мобильное меню: пункты и кнопки переносятся
     на отдельные строки внутри шапки — без наложений */
  .header.nav-open .nav {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    width: 100%;
    gap: 4px;
    padding: 6px 0;
    border-top: 1px solid var(--border);
  }
  .header.nav-open .nav a {
    padding: 10px 4px;
    font-size: 1.05rem;
    color: var(--text);
  }
  .header.nav-open .header__cta {
    display: flex;
    flex-basis: 100%;
    width: 100%;
    gap: 10px;
    padding-bottom: 8px;
  }
  .header.nav-open .header__cta .btn { flex: 1; }

  /* Анимация иконки бургера в крестик */
  .header.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.nav-open .burger span:nth-child(2) { opacity: 0; }
  .header.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 520px) {
  .topbar__inner { font-size: 0.74rem; gap: 4px 14px; }
  .hero { padding: 44px 0 30px; }
  .slider__arrow { width: 36px; height: 36px; font-size: 1.1rem; }
  .slider__slide { flex-basis: 78vw; }
  .contacts__map { flex-direction: column; text-align: center; }
}
