/* ===== Шрифты ===== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ===== Переменные бренда ===== */
:root {
  --bg: #08090a;
  --bg-elevated: #121412;
  --bg-card: #17191a;
  --green: #4bff2b;
  --green-soft: #2fd616;
  --green-dim: rgba(75, 255, 43, 0.12);
  --text: #f4f6f2;
  --text-muted: #9aa39a;
  --border: #232622;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { overflow-x: hidden; width: 100%; }

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 32px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background-color: var(--green);
  color: #08090a;
  box-shadow: 0 0 24px var(--green-dim);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(75, 255, 43, 0.35); }

.btn-outline {
  border: 1.5px solid var(--green);
  color: var(--green);
}

.btn-outline:hover { background-color: var(--green-dim); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Шапка ===== */
.site-header {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; margin-left: 28px; }

.brand img { height: 48px; width: auto; }

.brand-name {
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.bn-lock {
  color: var(--green);
  font-size: 19px;
  letter-spacing: 0.5px;
}

.bn-smith {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 2px;
}

.main-nav { display: flex; align-items: center; gap: 32px; }

.main-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover, .main-nav a.active { color: var(--green); }

.header-phone {
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.reviews-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.reviews-hero-text {
  max-width: 420px;
  min-width: 280px;
}

.reviews-badge-img {
  flex-shrink: 0;
  width: 180px;
  height: auto;
  margin-left: -28px;
}

.reviews-badge-caption {
  flex-shrink: 0;
  width: 260px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

/* ===== Hero ===== */
.hero {
  padding: 90px 0 70px;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(75,255,43,0.08), transparent 55%);
}

.hero-home {
  background-color: #08090a;
  background-image:
    linear-gradient(90deg, rgba(8,9,10,0.85) 0%, rgba(8,9,10,0.88) 22%, rgba(8,9,10,0.65) 38%, rgba(8,9,10,0.28) 56%, rgba(8,9,10,0.06) 74%, rgba(8,9,10,0) 100%),
    linear-gradient(0deg, rgba(8,9,10,0.25) 0%, rgba(8,9,10,0) 16%),
    url('images/hero-van-madison.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, 58% 40%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-home .container {
  margin: 0;
  max-width: none;
  padding-left: max(24px, 6vw);
}

.hero-home .eyebrow,
.hero-home h1,
.hero-home .hero-subtitle {
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

.hero h1 {
  font-size: 46px;
  max-width: 640px;
  margin-bottom: 18px;
}

@media (min-width: 1100px) {
  .hero-home {
    min-height: 640px;
    background-size: cover, cover, contain;
    background-position: center, center, right center;
  }
}

.hero h1 span { color: var(--green); }

.hero-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 30px;
}

/* Зубцы ключа — фирменный разделитель секций */
.key-divider {
  height: 22px;
  width: 100%;
  background-color: var(--bg-elevated);
  -webkit-clip-path: polygon(
    0% 0%, 4% 100%, 8% 0%, 12% 100%, 16% 0%, 20% 100%, 24% 0%, 28% 100%,
    32% 0%, 36% 100%, 40% 0%, 44% 100%, 48% 0%, 52% 100%, 56% 0%, 60% 100%,
    64% 0%, 68% 100%, 72% 0%, 76% 100%, 80% 0%, 84% 100%, 88% 0%, 92% 100%,
    96% 0%, 100% 100%, 100% 0%
  );
  clip-path: polygon(
    0% 0%, 4% 100%, 8% 0%, 12% 100%, 16% 0%, 20% 100%, 24% 0%, 28% 100%,
    32% 0%, 36% 100%, 40% 0%, 44% 100%, 48% 0%, 52% 100%, 56% 0%, 60% 100%,
    64% 0%, 68% 100%, 72% 0%, 76% 100%, 80% 0%, 84% 100%, 88% 0%, 92% 100%,
    96% 0%, 100% 100%, 100% 0%
  );
}

/* ===== Полоса доверия ===== */
.trust-bar {
  background-color: var(--bg-elevated);
  padding: 22px 0;
}

.trust-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.trust-grid strong { color: var(--green); }

/* ===== Секции ===== */
.section { padding: 80px 0; }
.section-alt { background-color: var(--bg-elevated); }

.section-head { text-align: center; max-width: 600px; margin: 0 auto 50px; }
.section-head h2 { font-size: 32px; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); }

/* ===== Карточки услуг ===== */
.card-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: 6px;
  padding: 30px;
  width: 310px;
}

.service-card h3 { font-size: 20px; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); margin-bottom: 16px; }

.service-card ul { list-style: none; }
.service-card li {
  color: var(--text-muted);
  font-size: 14px;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 2px;
  background-color: var(--green);
}

.service-card a.card-link {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== Почему мы ===== */
.why-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.why-item { flex: 1; min-width: 220px; }

.why-number {
  font-family: var(--font-display);
  color: var(--green);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.why-item h3 { font-size: 18px; margin-bottom: 8px; }
.why-item p { color: var(--text-muted); font-size: 15px; }

/* ===== Галерея ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 6 / 7;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

@supports not (aspect-ratio: 1 / 1) {
  .gallery-item { height: 220px; }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.9);
  transition: transform 0.3s ease;
  display: block;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,50,20,0.35) 0%, rgba(8,9,10,0.1) 45%, rgba(8,9,10,0.92) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  z-index: 2;
}

.gallery-caption-title {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.gallery-caption-sub {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  margin-top: 2px;
}

/* ===== Статистика (about) ===== */
.stats-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
}

.stat { min-width: 180px; }
.stat-value {
  font-family: var(--font-display);
  color: var(--green);
  font-size: 40px;
}
.stat-label { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

/* ===== CTA-баннер ===== */
.cta-banner {
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 { font-size: 28px; margin-bottom: 10px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 26px; }

/* ===== Форма контактов ===== */
.contact-layout {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-info { flex: 1; min-width: 260px; }
.contact-info h3 { font-size: 18px; margin: 24px 0 8px; }
.contact-info p { color: var(--text-muted); }
.contact-info a.phone-big {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 24px;
}

.contact-form { flex: 1.3; min-width: 300px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

.map-frame {
  width: 100%;
  height: 280px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 20px;
  filter: grayscale(1) invert(0.92) contrast(0.9);
}

/* ===== Подвал ===== */
.site-footer {
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer-inner .bn-lock { font-size: 16px; }
.footer-inner .bn-smith { font-size: 10px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--green); }
.footer-phone:hover { color: var(--green); }
.footer-copy { color: var(--text-muted); font-size: 13px; margin-top: 20px; text-align: center; }

/* ===== Адаптивность ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .header-inner { position: relative; flex-wrap: wrap; gap: 10px; }
  .nav-toggle { display: flex; }

  .brand { gap: 8px; }
  .service-card { width: 100%; max-width: 310px; }
  .review-card { width: 100%; max-width: 320px; }
  .section { padding: 40px 0; }
  .brand img { height: 38px; }
  .bn-lock { font-size: 16px; }
  .bn-smith { font-size: 9px; letter-spacing: 1.5px; }
  .header-phone { font-size: 15px; flex-shrink: 0; }
  .nav-toggle { margin-right: 14px; }

  .main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 4px 24px 16px;
  }

  .main-nav.is-open { display: flex; min-height: 100vh; }
  .main-nav a { width: 100%; padding: 12px 0; }
  .main-nav a::after { display: none; }

  .hero h1 { font-size: 32px; }

  .hero-home {
    min-height: 0;
    padding: 48px 0 calc(58vw + 20px);
    background-image:
      linear-gradient(180deg, rgba(8,9,10,1) 0%, rgba(8,9,10,0) 100%),
      url('images/hero-van-madison.jpg');
    background-size: 100% 70px, 100% auto;
    background-position: center bottom calc(58vw - 70px), center bottom;
    background-repeat: no-repeat, no-repeat;
  }

  .reviews-hero-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .reviews-hero-text { max-width: 100%; text-align: center; }
  .reviews-badge-img { width: 140px; margin-left: 0; }
  .reviews-badge-caption { width: 100%; max-width: 320px; margin: 0 auto; text-align: center; }

  .footer-inner { flex-direction: column; justify-content: center; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 14px 20px; }
  .footer-copy { padding: 0 12px; }
}

/* ===== Анимации появления при скролле ===== */
/* .reveal сам по себе НИЧЕГО не скрывает — скрытие включает только JS,
   поэтому если script.js не загрузится, контент всё равно виден */
.reveal.will-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.will-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal.will-animate { transition: none; opacity: 1; transform: none; }
}

/* ===== Hero: лёгкое появление при загрузке страницы ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow { animation: fadeInUp 0.6s ease both; }
.hero h1 { animation: fadeInUp 0.6s ease 0.1s both; }
.hero-subtitle { animation: fadeInUp 0.6s ease 0.2s both; }
.hero .btn-row { animation: fadeInUp 0.6s ease 0.3s both; }

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero-subtitle, .hero .btn-row { animation: none; }
}

/* ===== Карточки: лёгкий подъём при наведении ===== */
.service-card, .review-card, .faq-item {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover, .review-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
}

/* ===== Счётчики на статистике ===== */
.stat-value { transition: color 0.2s ease; }

/* ===== Отзывы ===== */
.review-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px;
  width: 320px;
}

.review-stars { color: var(--green); font-size: 15px; margin-bottom: 10px; }
.review-text { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.review-author { font-family: var(--font-display); font-size: 14px; }
.review-source { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== FAQ ===== */
.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 14px;
}

.faq-item h3 { font-size: 17px; margin-bottom: 8px; color: var(--green); }
.faq-item p { color: var(--text-muted); font-size: 15px; }

/* ===== Анимация подчёркивания в меню ===== */
.main-nav a { position: relative; }

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--green);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* ===== Пульсация основной кнопки ===== */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px var(--green-dim); }
  50% { box-shadow: 0 0 34px rgba(75, 255, 43, 0.38); }
}

.btn-primary { animation: pulseGlow 2.6s ease-in-out infinite; }

.btn-primary:hover { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; }
}

/* ===== Собственный бейдж "#1 в Мэдисоне" (SVG-медаль вместо фото) ===== */
.award-badge-wrap {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.award-badge-svg {
  width: 140px;
  height: auto;
  flex-shrink: 0;
}
