/* =====================================================
   style.css — АвтоМастер СТО
   ===================================================== */

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

/* * {
    outline: 1px solid red;
} */

:root {
  --bg:        #F5F5F3;
  --surface:   #FFFFFF;
  --s2:        #EBEBEA;
  --accent:    #1845B8;
  --accent-h:  #1040CE;
  --accent-bg: #EEF2FF;
  --cta:       #E8520A;
  --cta-h:     #FF6020;
  --text:      #0D0D14;
  --muted:     #64647A;
  --border:    #E0E0EA;
  --shadow:    0 2px 18px rgba(0,0,20,.07);
  --shadow-md: 0 4px 32px rgba(0,0,20,.10);
  --r:         8px;
}

html { scroll-behavior: smooth; }

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

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

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 72px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,20,.06);
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-badge svg { width: 22px; height: 22px; }

.logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 1.5px;
  line-height: 1; color: var(--text);
}
.logo-sub {
  font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .logo-badge {
      display: none;
  }

  .logo-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px; letter-spacing: 1px;
    line-height: 1; color: var(--text);
  }
}

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 13.5px; font-weight: 500;
  color: var(--muted); letter-spacing: .3px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-end { display: flex; align-items: center; gap: 18px; }
.nav-phone {
  font-weight: 600; font-size: 15px;
  color: var(--text); transition: color .2s;
}
.nav-phone:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--r);
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-h); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-bg); }
.btn-lg { padding: 14px 30px; font-size: 15px; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); transition: all .3s;
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 110px 48px 72px;
  
  position: relative; overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85); /* чем больше — тем светлее */
  z-index: 1;
}

/* Technical grid pattern 
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .45;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(255,255,255,.95) 30%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(238,242,255,.6) 0%, transparent 60%);
  pointer-events: none;
}
*/
.hero-inner {
  max-width: 1120px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.accred-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-bg);
  border: 1px solid rgba(24,69,184,.2);
  border-radius: 40px;
  padding: 8px 16px 8px 10px;
  margin-bottom: 24px;
}
.accred-badge svg { width: 20px; height: 20px; fill: var(--accent); flex-shrink: 0; }
.accred-badge span { font-size: 12.5px; font-weight: 600; color: var(--accent); letter-spacing: .3px; }


.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(50px, 7vw, 88px);
  line-height: .92; letter-spacing: 2px;
  color: var(--text); margin-bottom: 20px;
}
.hero-title .accent { color: var(--accent); }

@media (max-width: 768px) {
  .hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    line-height: .92; letter-spacing: 2px;
    color: var(--text); margin-bottom: 20px;
  }
}

.hero-desc {
  font-size: 16.5px; color: var(--muted);
  line-height: 1.75; margin-bottom: 32px;
  max-width: 460px;
}

.hero-actions {
  display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 36px;
}

.hero-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.cat-pill .code {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; color: var(--accent); letter-spacing: 1.2px;
}

/* Hero accreditation card */
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  box-shadow: var(--shadow-md);
}
.hero-card-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.hero-card-seal {
  width: 56px; height: 56px; background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-card-seal svg { width: 28px; height: 28px; }
.hero-card-org { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.hero-card-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.hero-card-row {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 14px;
}
.hero-card-row:last-child { margin-bottom: 0; }
.hcr-label { font-size: 12px; color: var(--muted); }
.hcr-val { font-size: 13.5px; font-weight: 600; text-align: right; max-width: 55%; }
.hero-card-cats { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.hero-card-cats-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.hero-card-cats-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hcp {
  background: var(--accent-bg); color: var(--accent);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px; letter-spacing: 1.2px;
  padding: 4px 16px; border-radius: 4px;
}
.verified-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.verified-dot { width: 8px; height: 8px; background: #16a34a; border-radius: 50%; flex-shrink: 0; }
.verified-text { font-size: 13px; color: #16a34a; font-weight: 600; }

/* ===================== UTILITY ===================== */
.container { max-width: 1120px; margin: 0 auto; }

/* Общий класс для секций с отступами */
.section { padding: 96px 48px; }

.eyebrow {
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
  font-weight: 600; margin-bottom: 10px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4.5vw, 54px);
  letter-spacing: 1.5px; line-height: 1;
  margin-bottom: 52px;
  position: relative; display: inline-block; color: var(--text);
}
.section-title::after {
  content: '';
  position: absolute; left: 0; bottom: -14px;
  width: 36px; height: 3px;
  background: var(--accent);
  box-shadow: 52px 0 0 var(--accent);
}

/* ===================== CATEGORIES ===================== */
#categories {
  padding: 96px 48px;
  background: var(--accent-bg);
  border-top: 1px solid rgba(24,69,184,.12);
  border-bottom: 1px solid rgba(24,69,184,.12);
}
.cat-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: end; margin-bottom: 52px;
}
.cat-intro-desc { font-size: 15.5px; color: var(--muted); line-height: 1.75; max-width: 480px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px 20px;
  box-shadow: var(--shadow);
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.cat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(24,69,184,.3);
  transform: translateY(-3px);
}
.cat-code-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px; letter-spacing: 1px;
  color: var(--accent); line-height: 1; margin-bottom: 8px;
}
.cat-card-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.cat-card-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.cat-card-gost { margin-top: 12px; font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: .5px; opacity: .7; }

/* ===================== SERVICES ===================== */
#services { padding: 96px 48px; background: var(--surface); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.s-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.s-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(24,69,184,.25);
  transform: translateY(-3px);
}
.s-card.featured {
  background: var(--accent); border-color: var(--accent); color: #fff;
  grid-column: span 3;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 28px; padding: 32px 36px;
}
.s-icon {
  width: 50px; height: 50px;
  background: rgba(24,69,184,.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
}
.s-card.featured .s-icon {
  background: rgba(255,255,255,.18);
  margin-bottom: 0; width: 60px; height: 60px;
}
.s-icon svg {
  width: 24px; height: 24px; fill: none;
  stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.s-card.featured .s-icon svg { stroke: #fff; width: 28px; height: 28px; }
.s-name { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.s-card.featured .s-name { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; margin-bottom: 6px; }
.s-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.s-card.featured .s-desc { color: rgba(255,255,255,.8); font-size: 15px; }
.s-price { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--accent); }
.s-card.featured .s-price { display: none; }

/* ===================== PROCESS ===================== */
#process { padding: 96px 48px; background: var(--bg); }
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative; gap: 0;
}
.process-grid::before {
  content: '';
  position: absolute; top: 27px;
  left: 12%; right: 12%;
  height: 1px; background: var(--border); z-index: 0;
}
.p-step { padding: 0 16px; text-align: center; }
.p-num {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  position: relative; z-index: 1;
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--accent); box-shadow: var(--shadow);
}
.p-step:first-child .p-num,
.p-step:last-child .p-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.p-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ===================== REVIEWS ===================== */
#reviews { padding: 96px 48px; background: var(--surface); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.r-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px; box-shadow: var(--shadow);
}
.r-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.r-stars svg { width: 15px; height: 15px; fill: var(--cta); }
.r-text { font-size: 14px; color: var(--muted); line-height: 1.72; margin-bottom: 22px; }
.r-author { display: flex; align-items: center; gap: 12px; }
.r-ava {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-bg); border: 1.5px solid rgba(24,69,184,.2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 18px;
  color: var(--accent); flex-shrink: 0;
}
.r-name { font-size: 14px; font-weight: 700; }
.r-vehicle { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ===================== CONTACT ===================== */
#contact { background: var(--bg); }  /* отступы задаются классом .section */

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

.c-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.c-icon {
  width: 46px; height: 46px;
  background: var(--accent-bg); border: 1px solid rgba(24,69,184,.15);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.c-icon svg {
  width: 20px; height: 20px;
  stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; fill: none;
}
.c-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.c-value { font-size: 15px; font-weight: 500; }
.c-value a:hover { color: var(--accent); }

.hours-tbl { width: 100%; border-collapse: collapse; }
.hours-tbl td { padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.hours-tbl td:first-child { color: var(--muted); width: 155px; }
.hours-tbl td:last-child { font-weight: 600; }
.open-badge {
  display: inline-block; background: #dcfce7; color: #16a34a;
  font-size: 11px; padding: 2px 9px; border-radius: 20px;
  font-weight: 600; margin-left: 8px; vertical-align: middle;
}

/* Обёртка формы */
.c-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 36px;
  box-shadow: var(--shadow-md);
}
.c-form h3 { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; margin-bottom: 6px; }
.c-form p { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }

/* ===================== CONTACT FORM ===================== */
.contact-form .form-group {
  margin-bottom: 16px;
}
.contact-form .form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(24,69,184,.08);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form .form-submit {
  margin-top: 4px;
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
  line-height: 1.5;
}
.form-status.ok  { color: #16a34a; }
.form-status.err { color: #dc2626; }

.honeypot { display: none !important; }

/* ===================== MAP ===================== */
.map-wrap { width: 100%; height: 460px; display: block; line-height: 0; }
.map-wrap iframe { width: 100%; height: 100%; display: block; border: none; }

/* ===================== FOOTER ===================== */
footer {
  background: var(--text);
  color: rgba(255,255,255,.55);
  padding: 28px 48px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 1.5px; }
.footer-logo span { color: var(--cta); }
.footer-copy { font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: #fff; }

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s, transform .55s; }
.reveal.on { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { max-width: 500px; }
  .cat-intro { grid-template-columns: 1fr; gap: 16px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 28px 24px; gap: 24px; z-index: 199;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { font-size: 17px; color: var(--text); }

  .hero { padding: 100px 24px 64px; }

  /* Секции с ID — переопределяем padding */
  #categories, #services, #process, #reviews { padding: 72px 24px; }

  /* Секции с классом .section */
  .section { padding: 72px 24px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .s-card.featured { grid-column: span 2; grid-template-columns: auto 1fr; }
  .s-card.featured .btn { display: none; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .process-grid::before { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }

  footer { padding: 24px; }
  .footer-links { display: none; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .s-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
