/* ============================================================
   ПОМОЩЬ АВТО — выездная техпомощь
   Палитра: чёрный / красный / белый. Шрифты: Oswald (заголовки,
   акцидентный, условно-жирный, "дорожный") + Manrope (текст).
   Язык вёрстки — угловатый, контрастный, без скруглений и мягких
   теней прежнего корпоративного шаблона: диагональные срезы блоков,
   плашки-стикеры, широкие красные акценты.
   ============================================================ */

:root {
  --black: #0a0a0a;
  --black-2: #151515;
  --black-3: #1f1f1f;
  --red: #e2091a;
  --red-dark: #a30513;
  --red-glow: rgba(226, 9, 26, 0.35);
  --white: #ffffff;
  --off-white: #f2f0ee;
  --gray: #8c8c8c;
  --gray-dark: #4d4d4d;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--off-white); color: var(--black); font-family: var(--font-body); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* --- HEADER --- */
header {
  background: var(--black);
  color: var(--white);
  padding: 18px 0;
  border-bottom: 3px solid var(--red);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo h1 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.logo span {
  color: var(--black);
  background: var(--red);
  padding: 2px 8px;
  margin-left: 2px;
  display: inline-block;
}
.logo p { font-family: var(--font-body); font-size: 0.98rem; color: var(--gray); margin-top: 6px; letter-spacing: 0.3px; }
.logo p i { color: var(--red); margin-right: 4px; }
.header-phone { text-align: right; }
.header-phone a {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.header-phone a:hover { color: var(--red); }
.header-phone a i { color: var(--red); margin-right: 8px; }
.header-phone .worktime { font-size: 0.92rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* --- HERO --- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.92) 100%),
    url('/img/hero-bg.jpg') center 30% / cover no-repeat;
  color: var(--white);
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  padding: 60px 0 90px;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0 40px, transparent 40px 60px);
}
.hero .container { width: 100%; }
.hero .eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.hero h2 {
  font-family: var(--font-head);
  font-size: 3.6rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 780px;
  margin-bottom: 18px;
}
.hero h2 i { color: var(--red); margin-right: 14px; }
.hero p { font-size: 1.15rem; color: #dcdcdc; max-width: 620px; margin-bottom: 34px; line-height: 1.6; }
.hero .btn {
  background: var(--red);
  color: var(--white);
  padding: 17px 38px;
  border-radius: 2px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  transition: 0.25s;
  border: 2px solid var(--red);
  box-shadow: 0 0 0 0 var(--red-glow);
}
.hero .btn:hover { background: transparent; color: var(--white); box-shadow: 0 0 24px var(--red-glow); }

/* --- SECTION TITLE --- */
.section-title { margin: 70px 0 40px; }
.section-title h3 {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
  position: relative;
  padding-left: 22px;
}
.section-title h3::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 8px;
  background: var(--red);
}
.section-title p { color: var(--gray-dark); margin-top: 10px; margin-left: 22px; font-size: 1.05rem; }

section.on-dark .section-title h3 { color: var(--white); }
section.on-dark .section-title p { color: var(--gray); }

/* --- DARK SECTION WRAPPER --- */
section.on-dark {
  background: var(--black);
  color: var(--white);
  padding: 10px 0 50px;
  position: relative;
  clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
  margin-top: -24px;
}

/* --- ADVANTAGES --- */
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; margin: 30px 0; background: #2a2a2a; }
.advantage-item { background: var(--black-2); padding: 34px 26px; transition: 0.2s; border-top: 3px solid transparent; }
.advantage-item:hover { border-top-color: var(--red); background: var(--black-3); }
.advantage-item i { font-size: 2.2rem; color: var(--red); margin-bottom: 18px; display: block; }
.advantage-item h4 { font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; margin-bottom: 10px; color: var(--white); }
.advantage-item p { color: var(--gray); line-height: 1.6; font-size: 1.12rem; }

/* --- SERVICES (photo cards) --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin: 30px 0; }
.service-card {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--black);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: 0.3s;
}
.service-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(15%) contrast(1.05);
}
.service-card:hover img { transform: scale(1.08); filter: grayscale(0%) contrast(1.1); }
.service-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.05) 30%, rgba(10,10,10,0.92) 100%);
}
.service-card .badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 42px; height: 42px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--white);
}
.service-card .card-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; }
.service-card h5 { font-family: var(--font-head); color: var(--white); font-size: 1.22rem; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 5px; }
.service-card p { color: #cfcfcf; font-size: 1rem; }
.service-card:hover { box-shadow: 0 10px 30px rgba(226, 9, 26, 0.25); }

/* --- GALLERY (works, real photos) --- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px 0 50px; }
.gallery-item {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: var(--black-2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(10%); transition: 0.35s; }
.gallery-item:hover img { filter: grayscale(0%); transform: scale(1.06); }
.gallery-item span {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.88), transparent);
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  padding: 30px 14px 12px;
}

/* --- PRICE TABLE --- */
.price-section { background: var(--white); padding: 6px 0 10px; margin: 30px 0 50px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #e2e2e2; }
.price-category { background: var(--white); padding: 22px 22px 16px; }
.price-category h4 {
  font-family: var(--font-head);
  color: var(--white);
  background: var(--black);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 14px;
  margin: -22px -22px 16px;
  display: flex; align-items: center; gap: 10px;
}
.price-category h4 i { color: var(--red); }
.price-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 1.08rem; border-bottom: 1px dashed #e2e2e2; }
.price-item .name { color: var(--gray-dark); }
.price-item .cost { font-weight: 700; color: var(--black); }
.price-note {
  margin-top: 28px;
  background: var(--black);
  color: var(--white);
  padding: 16px 22px;
  border-left: 6px solid var(--red);
  font-weight: 500;
  font-size: 1.1rem;
}
.price-note i { color: var(--red); margin-right: 8px; }

/* --- TRANSPORT --- */
.transport-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; margin: 30px 0 20px; background: #2a2a2a; }
.transport-item { background: var(--black-2); padding: 32px 20px; text-align: center; transition: 0.2s; }
.transport-item:hover { background: var(--black-3); }
.transport-item i { font-size: 3rem; color: var(--red); margin-bottom: 16px; }
.transport-item h4 { font-family: var(--font-head); font-size: 1.2rem; text-transform: uppercase; color: var(--white); }

/* --- DIAGNOSTIC --- */
.diagnostic-block { background: var(--white); padding: 32px 30px; margin: 30px 0 40px; border-left: 6px solid var(--red); }
.diagnostic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 10px; }
.diagnostic-grid h4 { font-family: var(--font-head); color: var(--black); margin-bottom: 15px; font-size: 1.25rem; text-transform: uppercase; border-bottom: 2px solid var(--red); padding-bottom: 8px; display: inline-block; }
.diagnostic-grid ul { list-style: none; padding: 0; }
.diagnostic-grid li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px dashed #e6e6e6; color: var(--gray-dark); font-size: 1.1rem; }
.diagnostic-grid li:before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--red); }
.diagnostic-result { background: var(--black); color: var(--white); padding: 20px 25px; margin-top: 25px; }
.diagnostic-result p { margin: 8px 0; font-size: 1.1rem; }
.diagnostic-result i { color: var(--red); width: 24px; }

/* --- CITY PRICES --- */
.city-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2px; margin: 30px 0 20px; background: #e2e2e2; }
.city-price-item { background: var(--white); padding: 18px 15px; text-align: center; }
.city-price-item .city { font-family: var(--font-head); font-weight: 600; color: var(--black); display: block; text-transform: uppercase; font-size: 1.05rem; }
.city-price-item .price { color: var(--red); font-weight: 700; font-size: 1.15rem; margin-top: 6px; display: block; }
.city-note { background: var(--black); color: var(--white); padding: 14px 20px; text-align: center; margin: 10px 0 30px; font-size: 1.05rem; }

/* --- ABOUT COMPANY --- */
.about-company { background: var(--white); padding: 40px 30px; margin: 30px 0 40px; border-top: 4px solid var(--red); }
.about-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.about-text { flex: 2; min-width: 280px; }
.about-text p { color: var(--gray-dark); line-height: 1.75; font-size: 1.18rem; }
.about-stats { flex: 1; min-width: 200px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #e2e2e2; }
.stat-item { background: var(--black); padding: 22px 15px; text-align: center; }
.stat-item .number { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--red); display: block; }
.stat-item .label { font-size: 0.95rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.3px; }

/* --- FAQ --- */
.faq-block { background: var(--white); padding: 10px 26px; margin: 30px 0 50px; }
.faq-item { border-bottom: 1px solid #e6e6e6; padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; color: var(--black); font-size: 1.2rem; transition: 0.2s; }
.faq-question:hover { color: var(--red); }
.faq-question i { color: var(--red); transition: 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--gray-dark); line-height: 1.65; padding: 0 20px 0 0; font-size: 1.12rem; }
.faq-answer.open { max-height: 400px; padding: 12px 20px 0 0; }
.faq-answer p { margin: 8px 0; }

/* --- CONTACT --- */
.contact-block { background: var(--red); color: var(--white); padding: 55px 0; margin-top: 40px; clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%); }
.contact-flex { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px; }
.contact-info h3 { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; text-transform: uppercase; }
.contact-info h3 span { color: var(--black); background: var(--white); padding: 2px 8px; margin-left: 2px; display: inline-block; }
.contact-info p { opacity: 0.92; margin: 10px 0; font-size: 1.18rem; }
.contact-info .big-phone { font-family: var(--font-head); font-size: 2.1rem; font-weight: 600; color: var(--white); text-decoration: none; }
.contact-info .big-phone i { margin-right: 12px; }
.contact-btn .btn-outline {
  background: var(--black);
  border: 2px solid var(--black);
  color: var(--white);
  padding: 17px 38px;
  border-radius: 2px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.02rem;
  text-decoration: none;
  display: inline-block;
  transition: 0.25s;
}
.contact-btn .btn-outline:hover { background: transparent; border-color: var(--white); }

/* --- FOOTER --- */
footer { background: var(--black); color: var(--gray); padding: 26px 0; text-align: center; font-size: 1.02rem; border-top: 3px solid var(--red); }
footer span { color: var(--red); font-weight: 700; }

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { height: 300px; }
}
@media (max-width: 768px) {
  .header-flex { flex-direction: column; text-align: center; }
  .header-phone { text-align: center; }
  .hero { min-height: 78vh; align-items: center; text-align: center; }
  .hero h2 { font-size: 2.3rem; margin-left: auto; margin-right: auto; }
  .hero p { font-size: 1rem; margin-left: auto; margin-right: auto; }
  .section-title h3 { font-size: 1.6rem; }
  .contact-flex { flex-direction: column; text-align: center; }
  .price-grid { grid-template-columns: 1fr; }
  .about-flex { flex-direction: column; }
  .about-stats { grid-template-columns: 1fr 1fr; width: 100%; }
}
@media (max-width: 480px) {
  .hero h2 { font-size: 1.9rem; }
  .price-category { padding: 18px 16px 14px; }
  .price-category h4 { margin: -18px -16px 14px; }
  .diagnostic-grid { grid-template-columns: 1fr; }
  .service-card { height: 220px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item { height: 260px; }
}
