/*
Theme Name: Автореалсервис
Theme URI: https://avtorealservice.ru
Author: Автореалсервис
Description: Профессиональный автосервис — тёмная тема для лендинга автосервиса с поддержкой WordPress Customizer
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: avtorealservice
*/

/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:     #e84b1a;
  --primary-dark:#c43a12;
  --bg:          #0a0a0a;
  --bg-card:     #111111;
  --border:      rgba(255,255,255,.08);
  --text:        #ffffff;
  --muted:       #888888;
  --font-body:   'Inter', sans-serif;
  --font-display:'Inter', sans-serif;
  --container:   1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  padding: 14px 32px;
}
.btn-outline:hover { background: rgba(255,255,255,.05); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.site-logo svg { color: var(--primary); flex-shrink: 0; }
.site-logo .accent { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.main-nav a:hover { color: #fff; }
.main-nav .btn-primary { padding: 10px 24px; font-size: 12px; }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 4px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: #fff; margin: 5px 0;
  transition: transform .3s, opacity .3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(20px);
  padding: 100px 24px 40px;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu a {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.02em;
  color: #fff;
}
.mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger    { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .4;
  filter: grayscale(20%);
}
.hero-bg::before {
  content:'';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #0a0a0a 0%, rgba(10,10,10,.8) 50%, transparent 100%);
}
.hero-bg::after {
  content:'';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 60%, #0a0a0a 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(232,75,26,.3);
  background: rgba(232,75,26,.1);
  border-radius: 100px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}
.hero-badge::before {
  content:'';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

#hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  text-transform: uppercase;
  margin-bottom: 24px;
}
#hero h1 .gradient {
  background: linear-gradient(90deg,#fff 0%,#555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#hero p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   STATS
   ============================================================ */
#stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.5);
  padding: 40px 0;
}
.stats-grid {
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.stat-value {
  font-size: clamp(36px,5vw,52px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
}

/* ============================================================
   SERVICES
   ============================================================ */
#services { padding: 120px 0; }
.section-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 32px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  text-transform: uppercase;
  max-width: 600px;
}
.section-title .accent { color: var(--primary); }
.section-desc { color: var(--muted); font-size: 17px; max-width: 500px; }

.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color .3s;
}
.service-card:hover { border-color: rgba(232,75,26,.4); }
.service-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-img::after {
  content:'';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  transition: background .3s;
}
.service-card:hover .service-card-img::after { background: rgba(0,0,0,.2); }
.service-icon {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  background: rgba(10,10,10,.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 12px;
  color: var(--primary);
}
.service-body { padding: 28px; }
.service-body h3 {
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.service-body p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.service-card::after {
  content:'';
  position: absolute; bottom: 0; left: 0;
  height: 2px; background: var(--primary);
  width: 0; transition: width .5s;
}
.service-card:hover::after { width: 100%; }

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  padding: 120px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-features { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.about-feature { display: flex; gap: 16px; }
.feature-line { width: 4px; background: var(--primary); flex-shrink: 0; border-radius: 2px; }
.feature-title { font-size: 18px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; letter-spacing: -.01em; }
.feature-desc  { color: var(--muted); font-size: 15px; line-height: 1.7; }
.about-visual  { position: relative; }
.about-visual img { width: 100%; border: 1px solid var(--border); }
.about-badge {
  position: absolute; bottom: -28px; left: -28px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px;
  max-width: 220px;
}
.about-badge .number { font-size: 48px; font-weight: 700; color: var(--primary); line-height: 1; }
.about-badge .label  { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { position: static; margin-top: 16px; }
}

/* ============================================================
   PRICING
   ============================================================ */
#pricing { padding: 120px 0; }
.pricing-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  max-width: 860px; margin: 0 auto;
}
.pricing-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  transition: background .2s;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row:hover { background: rgba(255,255,255,.02); }
.pricing-name  { font-size: 16px; font-weight: 500; }
.pricing-price { font-size: 20px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.pricing-note  { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }

/* ============================================================
   TEAM
   ============================================================ */
#team {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.team-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 48px; max-width: 860px; margin: 0 auto; }
.team-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.team-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%);
  transition: filter .7s;
}
.team-card:hover .team-card-img img { filter: grayscale(0); }
.team-info { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.team-name { font-size: 24px; text-transform: uppercase; margin-bottom: 4px; }
.team-role  { font-size: 14px; color: var(--primary); font-weight: 500; }
.team-exp   { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
  padding: 120px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
}
.review-quote {
  position: absolute; top: 12px; right: 20px;
  font-size: 64px; font-weight: 700;
  color: var(--primary); opacity: .15;
  line-height: 1;
}
.review-text  { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 28px; }
.review-author { display: flex; align-items: center; gap: 16px; }
.review-avatar {
  width: 48px; height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.review-name  { font-weight: 700; font-size: 15px; }
.review-car   { font-size: 13px; color: var(--primary); }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding: 120px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-items { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.contact-item  { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 48px; height: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.contact-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.contact-value { font-size: 17px; }
.contact-value a { color: #fff; transition: color .2s; }
.contact-value a:hover { color: var(--primary); }

/* Contact Form */
.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 40px;
  position: relative; overflow: hidden;
}
.contact-form-wrap h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 32px; }
.form-field   { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--primary); }
.form-field textarea,
.wpcf7-form textarea { height: 120px; resize: none; }
.form-submit .btn-primary,
.wpcf7-form input[type="submit"] {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
}
.wpcf7-form input[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s;
}
.wpcf7-form input[type="submit"]:hover { background: var(--primary-dark); }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.footer-copy  { font-size: 13px; color: var(--muted); }

/* ============================================================
   ANIMATIONS (Scroll-triggered)
   ============================================================ */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .contact-form-wrap { padding: 24px; }
  .pricing-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
