:root {
  --bg: #0d0f0e;
  --card: #161a18;
  --card-2: #1c211f;
  --accent: #4ade80;
  --accent-2: #16a34a;
  --text: #e8ece9;
  --muted: #9aa39d;
  --border: #262c29;
  --radius: 16px;
  --radius-sm: 12px;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }

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

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

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}

.btn--accent {
  background: var(--accent);
  color: #0a0c0b;
  box-shadow: 0 6px 20px rgba(74, 222, 128, .25);
}
.btn--accent:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74, 222, 128, .35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--outline:hover { background: var(--accent); color: #0a0c0b; }

.btn--sm { padding: 10px 20px; font-size: 14px; }

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 14, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
}
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #0a0c0b;
  font-size: 18px;
}
.logo__text { color: var(--text); }

.nav { display: flex; gap: 26px; }
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease;
}
.nav__link:hover { color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 600; font-size: 15px; }
.header__phone:hover { color: var(--accent); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Первый экран */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,15,14,.55) 0%, rgba(13,15,14,.85) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(74,222,128,.12), transparent 60%),
    url('imige/image_hero.jpg') center/cover no-repeat,
    #0d0f0e;
}
.hero__inner { position: relative; z-index: 1; padding: 80px 0; }
.hero__title {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  max-width: 800px;
  margin-bottom: 20px;
}
.hero__title span { color: var(--accent); }
.hero__subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* Секции */
.section { padding: 90px 0; }
.section__title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section__subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 48px;
  font-size: 17px;
}

/* Преимущества */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-6px); border-color: var(--accent); }
.feature__title { font-size: 18px; margin-bottom: 10px; }
.feature__text { color: var(--muted); font-size: 15px; }

/* Услуги */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-6px); border-color: var(--accent); }
.service__title { font-size: 18px; margin-bottom: 10px; }
.service__text { color: var(--muted); font-size: 14px; flex: 1; margin-bottom: 16px; }
.service__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Прайс */
.prices__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.price-table {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.price-table__title {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--accent);
}
.price-table table { width: 100%; border-collapse: collapse; }
.price-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.prices__cta { text-align: center; }

/* Работы */
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.work:hover { transform: translateY(-6px); border-color: var(--accent); }
.work__slider { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.work__slider img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.work__caption {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
}

/* Отзывы */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.review {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review__stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; }
.review__text { color: var(--text); font-size: 15px; flex: 1; }
.review__author { display: flex; flex-direction: column; }
.review__name { font-weight: 600; }
.review__car { color: var(--muted); font-size: 14px; }

/* О нас */
.about__text {
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}
.about__text:last-child { margin-bottom: 0; }

/* Запись */
.booking__form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.form__field input,
.form__field select {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease;
}
.form__field input:focus,
.form__field select:focus { border-color: var(--accent); }
.form__field select { appearance: none; cursor: pointer; }
.booking__note { text-align: center; color: var(--muted); margin-top: 16px; font-size: 14px; }

/* Контакты */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-item__label { color: var(--muted); font-size: 14px; }
.contact-item__value { font-size: 18px; font-weight: 600; }
.contact-item__value:hover { color: var(--accent); }
.contacts__buttons { display: flex; gap: 14px; margin-top: 8px; }
.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 360px;
  filter: brightness(.75) contrast(1.05) saturate(.8);
}

/* Подвал */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy { color: var(--muted); font-size: 14px; }
.footer__phone { font-weight: 600; }
.footer__phone:hover { color: var(--accent); }
.footer__link { color: var(--muted); font-size: 14px; }
.footer__link:hover { color: var(--accent); }

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .25); }

/* Модальное окно благодарности */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__dialog {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: translateY(20px);
  transition: transform .25s ease;
}
.modal.open .modal__dialog { transform: translateY(0); }
.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease;
}
.modal__close:hover { color: var(--text); }
.modal__title {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--accent);
}
.modal__text {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Анимации появления */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Адаптивность */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.open { max-height: 400px; }
  .nav__link { padding: 16px 0; border-bottom: 1px solid var(--border); }
  .header__actions { display: none; }
  .burger { display: flex; }

  .section { padding: 60px 0; }
  .prices__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .booking__form { padding: 24px; }
}

@media (max-width: 480px) {
  .features__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .hero__buttons .btn { width: 100%; }
}
