/* ============ Автосервис RemZona — классическая тема (по мотивам шаблона Tilda) ============ */
:root {
  --bg: #262626;
  --bg-soft: #2e2e2e;
  --bg-dark: #1e1e1e;
  --accent: #6f41e1;
  --accent-light: #c5aeff;
  --accent-dark: #580be4;
  --text: #ffffff;
  --text-soft: #d6dcdf;
  --gray: #73787b;
  --white: #ffffff;
  --radius: 16px;
  --font-head: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

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

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

/* ============ Кнопки ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn--violet { background: var(--accent); color: var(--white); }
.btn--violet:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn--white { background: var(--white); color: var(--accent-dark); }
.btn--white:hover { background: var(--accent-light); }
.btn--header { padding: 10px 20px; font-size: 12px; background: transparent; border-color: var(--accent); color: var(--accent-light); }
.btn--header:hover { background: var(--accent); color: var(--white); transform: none; }
.btn--lg { padding: 18px 36px; font-size: 15px; }
.btn--full { width: 100%; }

/* ============ Шапка ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(38,38,38,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 20px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 15px; color: var(--text-soft); transition: color .2s; }
.nav a:hover { color: var(--accent-light); }
.header__actions { display: flex; align-items: center; gap: 18px; }
.phone { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--white); }
.phone:hover { color: var(--accent-light); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .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 {
  position: fixed;
  top: 69px; left: 0; right: 0;
  background: var(--bg-dark);
  padding: 24px 20px;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu__nav a { font-size: 17px; color: var(--text-soft); }
.mobile-menu__nav a:hover { color: var(--accent-light); }

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(38,38,38,.8), rgba(38,38,38,.05)), url('../images/hero.jpg') center/cover no-repeat, var(--bg);
  padding: 140px 0 80px;
}
.hero__inner { max-width: 760px; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ Заголовки секций ============ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.2;
  margin-bottom: 8px;
}
.section-sub { color: var(--text-soft); }

section { padding: 100px 0; }

/* ============ Услуги ============ */
.services { background: var(--bg); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.service-card {
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .25s, transform .25s, background .25s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card summary::-webkit-details-marker { display: none; }
.service-card h3 { font-family: var(--font-head); font-weight: 500; font-size: 17px; line-height: 1.35; margin-bottom: 6px; }
.price { color: var(--accent-light); font-weight: 600; font-size: 15px; }
.service-card__btn {
  align-self: flex-start;
  font-size: 13px;
  color: var(--gray);
  border-bottom: 1px dashed var(--gray);
  transition: color .2s;
}
.service-card[open] .service-card__btn { color: var(--accent-light); border-color: var(--accent-light); }
.price-list { margin: 18px 0 14px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; list-style: none; }
.price-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; color: var(--text-soft); }
.price-list b { color: var(--white); font-weight: 600; white-space: nowrap; }
.service-card__order { font-size: 14px; color: var(--accent-light); font-weight: 500; }
.service-card__order:hover { color: var(--white); }

.notfound {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 48px 24px;
  max-width: 720px;
  margin: 0 auto;
}
.notfound h3 { font-family: var(--font-head); font-weight: 500; font-size: 22px; margin-bottom: 12px; }
.notfound p { color: var(--text-soft); margin-bottom: 24px; }

/* ============ О компании ============ */
.about { background: var(--bg-dark); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__text p { color: var(--text-soft); margin-bottom: 16px; }
.about__list { list-style: none; margin-top: 24px; }
.about__list li {
  position: relative;
  padding: 10px 0 10px 36px;
  color: var(--text);
  font-weight: 500;
}
.about__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
}
.about__image img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ============ Марки ============ */
.brands { padding: 60px 0; background: var(--bg-soft); }
.brands__title { text-align: center; margin-bottom: 32px; font-size: 22px; font-weight: 500; }
.brands__row { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.brands__row img { height: 40px; width: auto; opacity: .65; filter: grayscale(1) brightness(1.3); transition: .3s; }
.brands__row img:hover { opacity: 1; filter: none; transform: scale(1.05); }
.brands__more { color: var(--gray); font-size: 18px; }

/* ============ Преимущества ============ */
.advantages { background: var(--bg); }
.advantages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adv-card {
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .25s, transform .25s;
}
.adv-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.adv-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent);
  margin-bottom: 20px;
  position: relative;
}
.adv-card__icon::after { content: ''; position: absolute; inset: 15px; border: 2px solid var(--white); border-radius: 8px; }
.adv-card__icon--2::before { content: ''; position: absolute; inset: 12px 16px; border: 2px solid var(--white); border-radius: 10px; }
.adv-card__icon--3 { background: var(--accent-light); }
.adv-card__icon--4 { background: var(--accent-dark); }
.adv-card__icon--5 { background: #5a3ab8; }
.adv-card__icon--6 { background: #8459e8; }
.adv-card h3 { font-family: var(--font-head); font-weight: 500; font-size: 16px; margin-bottom: 10px; }
.adv-card p { font-size: 14px; color: var(--text-soft); }

/* ============ Этапы ============ */
.stages { background: var(--bg-dark); }
.stages__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stage-card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: border-color .25s;
}
.stage-card:hover { border-color: var(--accent); }
.stage-card__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 40px;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.stage-card h3 { font-family: var(--font-head); font-weight: 500; font-size: 16px; margin-bottom: 10px; }
.stage-card p { font-size: 14px; color: var(--text-soft); }

/* ============ Галерея ============ */
.gallery { background: var(--bg); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__grid img { border-radius: var(--radius); width: 100%; height: 280px; object-fit: cover; transition: transform .3s; cursor: zoom-in; }
.gallery__grid img:hover { transform: scale(1.02); }

/* ============ Команда ============ */
.team { background: var(--bg-dark); }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .25s, transform .25s;
}
.team-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.team-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.team-card h3 { font-family: var(--font-head); font-weight: 500; font-size: 16px; padding: 18px 20px 4px; }
.team-card span { display: block; padding: 0 20px 20px; font-size: 14px; color: var(--gray); }

/* ============ Отзывы ============ */
.reviews { background: var(--bg); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card {
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .25s;
}
.review-card:hover { border-color: var(--accent); }
.review-card__stars { color: #ffb800; letter-spacing: 4px; font-size: 18px; }
.review-card p { font-size: 14px; color: var(--text-soft); flex: 1; }
.review-card__author b { display: block; font-size: 15px; }
.review-card__author span { font-size: 13px; color: var(--gray); }

/* ============ Акция ============ */
.promo { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.promo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.promo__badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 18px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.promo__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, 3vw, 34px); margin-bottom: 12px; }
.promo p { max-width: 480px; opacity: .9; }

/* ============ Контакты ============ */
.contacts { background: var(--bg-dark); }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacts__list { list-style: none; margin: 24px 0 32px; }
.contacts__list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.contacts__label { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.contacts__list a { color: var(--text); font-weight: 500; transition: color .2s; }
.contacts__list a:hover { color: var(--accent-light); }

.contacts__form {
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 40px;
}
.contacts__form h3 { font-family: var(--font-head); font-weight: 500; font-size: 22px; margin-bottom: 10px; }
.contacts__form p { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; }
.contacts__form form { display: flex; flex-direction: column; gap: 14px; }
.contacts__form input[type="text"], .contacts__form input[type="tel"] {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.contacts__form input:focus { border-color: var(--accent); }
.contacts__form input::placeholder { color: var(--gray); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--gray); }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.consent a { color: var(--accent-light); }

/* ============ Футер ============ */
.footer { background: #1a1a1a; padding-top: 56px; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__logo img { height: 34px; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a { color: var(--text-soft); font-size: 14px; transition: color .2s; }
.footer__nav a:hover { color: var(--accent-light); }
.footer__contacts { text-align: right; }
.footer__contacts .phone { font-size: 17px; display: block; margin-bottom: 4px; }
.footer__contacts span { font-size: 13px; color: var(--gray); }
.footer__bottom { padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--gray); }
.footer__bottom-inner a { color: var(--gray); }
.footer__bottom-inner a:hover { color: var(--accent-light); }

/* ============ Плавающие кнопки ============ */
.call-float, .wa-float {
  position: fixed;
  right: 20px;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform .25s;
}
.call-float { bottom: 88px; background: var(--accent); }
.call-float:hover { transform: scale(1.08); }
.call-float svg { width: 24px; height: 24px; }
.wa-float { bottom: 20px; background: #25d366; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; color: #fff; }

/* ============ Блог ============ */
.blog { background: var(--bg); }
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.blog-card h3 { font-family: var(--font-head); font-weight: 500; font-size: 17px; line-height: 1.4; }
.blog-card p { color: var(--text-soft); font-size: 14px; margin-bottom: 8px; }
.blog-card__meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.blog-card__link { color: var(--accent-light); font-weight: 500; font-size: 14px; margin-top: auto; }
.blog-card__link:hover { color: var(--white); }
.blog__more { text-align: center; margin-top: 36px; }

/* ============ Страница статьи ============ */
.article-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}
.article-page h1 { font-family: var(--font-head); font-weight: 600; font-size: clamp(24px, 3.5vw, 36px); line-height: 1.25; margin-bottom: 12px; }
.article-page__meta { color: var(--gray); font-size: 14px; margin-bottom: 8px; }
.article-page__excerpt { color: var(--text-soft); font-size: 17px; margin-bottom: 28px; }
.article-page h2 { font-family: var(--font-head); font-weight: 500; font-size: 22px; margin: 36px 0 14px; color: var(--accent-light); }
.article-page h3 { font-family: var(--font-head); font-weight: 500; font-size: 17px; margin: 24px 0 10px; }
.article-page p { color: var(--text-soft); margin-bottom: 14px; }
.article-page ul, .article-page ol { color: var(--text-soft); margin: 0 0 16px 22px; }
.article-page li { margin-bottom: 6px; }
.article-page a { color: var(--accent-light); }
.article-page a:hover { text-decoration: underline; }
.article-cta {
  margin-top: 40px;
  padding: 28px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: var(--radius);
  text-align: center;
}
.article-cta h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.article-cta p { color: var(--text); opacity: .9; margin-bottom: 16px; }
.article-back { display: inline-block; margin-top: 40px; color: var(--accent-light); font-weight: 500; }

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

@media (max-width: 760px) {
  .nav, .header__actions .btn--header { display: none; }
  .burger { display: block; }
  .header__actions { gap: 12px; }
  .phone { font-size: 13px; }
  section { padding: 64px 0; }
  .services__grid, .advantages__grid, .gallery__grid { grid-template-columns: 1fr; }
  .about__grid, .contacts__grid { grid-template-columns: 1fr; }
  .stages__grid, .team__grid { grid-template-columns: 1fr; }
  .gallery__grid img { height: 220px; }
  .promo__inner { flex-direction: column; align-items: flex-start; }
  .footer__contacts { text-align: left; }
  .blog__grid { grid-template-columns: 1fr; }
}