/* ========== Переменные темы — мягкая, приятная палитра ========== */
:root {
  /* Фоны: тёплые кремовые и слоновая кость */
  --color-bg: #f7f5f1;
  --color-bg-alt: #efece6;
  --color-surface: #fefdfb;
  --color-surface-hover: #faf9f6;

  /* Зелёные: приглушённые, природные (шалфей, лес) */
  --color-green-900: #243b2a;
  --color-green-800: #2d4a36;
  --color-green-700: #3a5c45;
  --color-green-600: #4a7057;
  --color-green-500: #5d8a6a;
  --color-green-200: #d4e2d8;
  --color-green-100: #e8f0eb;

  /* Акцент: тёплое золото/мёд, не кислотное */
  --color-gold: #b8956b;
  --color-gold-light: #d4b896;
  --color-gold-dark: #9a7b52;
  --color-gold-soft: rgba(184, 149, 107, 0.2);

  /* Текст: тёплый тёмно-серый, не чёрный */
  --color-text: #2d2a26;
  --color-text-muted: #5c5954;
  --color-text-soft: #78746e;
  --color-border: rgba(45, 42, 38, 0.08);
  --color-border-soft: rgba(45, 42, 38, 0.06);
  --color-overlay: rgba(36, 59, 42, 0.72);

  /* Типографика */
  --font-heading: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  /* Размеры и отступы */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Тени: мягкие, тёплые */
  --shadow-sm: 0 2px 12px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 6px 24px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 12px 40px rgba(45, 42, 38, 0.1);
  --shadow-glow: 0 4px 24px rgba(184, 149, 107, 0.25);

  /* Анимации */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.6s;
}

/* ========== Сброс и база ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color var(--duration-fast), opacity var(--duration-fast); }
a:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
::selection {
  background: var(--color-gold-soft);
  color: var(--color-green-900);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== Шапка ========== */
.header {
  background: var(--color-green-900);
  color: #fff;
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--duration-normal), box-shadow var(--duration-normal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header.header--scrolled {
  background: rgba(36, 59, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex: 1;
  min-width: 0;
}
.header__right::before {
  content: "";
  flex: 1;
  min-width: 0;
}
.header__right .header__phone {
  flex: 1;
  text-align: right;
  min-width: 0;
}
.header__logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.header__phone {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast), color var(--duration-fast);
  flex-shrink: 0;
}
.header__phone:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  align-items: center;
}
.nav-list a {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.nav-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.nav-item--dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(45, 74, 54, 0.98);
  padding: var(--space-sm) 0;
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo),
    visibility var(--duration-normal);
  box-shadow: var(--shadow-md);
}
.nav-item--dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  white-space: nowrap;
}
.nav-dropdown a:hover { background: rgba(255, 255, 255, 0.08); }
.nav-list a {
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-sm);
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: opacity var(--duration-normal), transform var(--duration-normal) var(--ease-out-expo);
}
.nav-list a:hover::after,
.nav-link--active::after {
  opacity: 0.6;
  transform: scaleX(1);
  transform-origin: left;
}
.nav-link--active::after { opacity: 1; }

/* ========== Герой ========== */
.hero {
  position: relative;
  color: #fff;
  padding: var(--space-4xl) 0;
  text-align: center;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
}
.hero--parallax { background: var(--color-green-900); }
.hero__bg {
  position: absolute;
  inset: -25%;
  top: -40%;
  left: -15%;
  right: -15%;
  background-color: var(--color-green-900);
  background-image: url("/images/hero.jpg");
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, var(--color-gold-soft) 0%, transparent 55%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 var(--space-lg);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  animation: heroTitleIn 1s var(--ease-out-expo) both;
}
.hero__title sup { font-size: 0.5em; opacity: 0.9; }
.hero__subtitle {
  font-size: 1.15rem;
  margin: 0 0 var(--space-xl);
  opacity: 0.95;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: heroSubtitleIn 0.8s var(--ease-out-expo) 0.2s both;
}
.hero__subtitle::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: var(--space-lg) auto 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
}
.hero__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  margin: 0 auto var(--space-xl);
  max-width: 560px;
  opacity: 0.9;
  line-height: 1.7;
  animation: heroQuoteIn 0.8s var(--ease-out-expo) 0.4s both;
}
.hero__footnote {
  font-size: 0.8rem;
  opacity: 0.75;
  animation: heroFootnoteIn 0.6s var(--ease-out-expo) 0.6s both;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroSubtitleIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}
@keyframes heroQuoteIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 0.9; transform: translateY(0); }
}
@keyframes heroFootnoteIn {
  from { opacity: 0; }
  to { opacity: 0.75; }
}

.section--bg-placeholder { position: relative; }
.section__bg-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  color: var(--color-text-soft);
  white-space: nowrap;
  padding: var(--space-sm) var(--space-lg);
  background: repeating-linear-gradient(-45deg, var(--color-bg), var(--color-bg) 8px, var(--color-bg-alt) 8px, var(--color-bg-alt) 16px);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  z-index: 0;
  pointer-events: none;
}
.diagnostics.section--bg-placeholder {
  background: var(--color-bg-alt);
  background-image: url("/images/diagnostics.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.diagnostics.section--bg-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 245, 241, 0.92) 0%, rgba(239, 236, 230, 0.95) 100%);
  z-index: 0;
  pointer-events: none;
}
.diagnostics .container { position: relative; z-index: 1; }

.services.section--bg-placeholder {
  background: var(--color-bg-alt);
  background-image: url("/images/services.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.services.section--bg-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 245, 241, 0.88) 0%, rgba(239, 236, 230, 0.94) 100%);
  z-index: 0;
  pointer-events: none;
}
.services .container { position: relative; z-index: 1; }

.clients.section--bg-placeholder { background: var(--color-bg); }
.clients .container { position: relative; z-index: 1; }

.order-form.section--bg-placeholder {
  background: var(--color-bg-alt);
  background-image: url("/images/order-form.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.order-form.section--bg-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(239, 236, 230, 0.9) 0%, rgba(239, 236, 230, 0.96) 100%);
  z-index: 0;
  pointer-events: none;
}
.order-form .container { position: relative; z-index: 1; }
.order-form .section-title { margin-bottom: var(--space-sm); }
.order-form .form--consult { margin-top: var(--space-2xl); }

/* ========== Статистика с параллаксом ========== */
.stats { position: relative; overflow: hidden; }
.stats--parallax { background: var(--color-green-900); }
.stats__bg {
  position: absolute;
  inset: -20%;
  will-change: transform;
  background-color: var(--color-green-900);
  background-image: linear-gradient(180deg, rgba(36, 59, 42, 0.65) 0%, rgba(36, 59, 42, 0.85) 100%),
    url("/images/stats.jpg");
  background-size: cover;
  background-position: center;
}
.stats__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 0%, var(--color-gold-soft) 0%, transparent 50%);
}
.stats .container { position: relative; z-index: 1; }

/* ========== Кнопка ========== */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: color var(--duration-normal) var(--ease-out-expo),
    background var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal),
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.btn:active { transform: translateY(0) scale(0.98); }
/* Слайд-подчёркивание при наведении */
.btn--slide::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.btn--slide:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-surface);
  box-shadow: 0 2px 12px rgba(154, 123, 82, 0.35);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  color: var(--color-green-900);
  box-shadow: 0 6px 20px rgba(184, 149, 107, 0.4);
}
.btn--primary:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 3px;
}
.btn--primary.btn--slide::after { background: var(--color-green-900); }
.btn--outline {
  background: transparent;
  color: var(--color-green-800);
  border-color: var(--color-green-600);
}
.btn--outline:hover {
  background: var(--color-green-100);
  border-color: var(--color-green-700);
  color: var(--color-green-900);
}
.btn--outline.btn--slide::after { background: var(--color-green-800); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--ghost.btn--slide::after { background: #fff; }

/* ========== Диагностика ========== */
.diagnostics { padding: var(--space-4xl) 0; }
.diagnostics__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}
.diagnostics-card {
  background: var(--color-surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal),
    background var(--duration-normal);
  border: 1px solid var(--color-border-soft);
}
.diagnostics-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-green-600), var(--color-gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--duration-normal);
}
.diagnostics-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-hover);
}
.diagnostics-card:hover::before { opacity: 1; }
.diagnostics-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.diagnostics-card__badges span {
  font-size: 0.75rem;
  background: var(--color-green-100);
  color: var(--color-green-700);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.diagnostics-card__title {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-green-800);
  line-height: 1.3;
}
.diagnostics-card__features {
  margin: var(--space-lg) 0;
  padding-left: 0;
}
.diagnostics-card__features li {
  margin: var(--space-sm) 0;
  padding-left: 1.25rem;
  position: relative;
}
.diagnostics-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0.85;
}
.diagnostics-card__brand {
  display: inline-block;
  margin-top: var(--space-lg);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-green-700);
  letter-spacing: 0.12em;
}

/* ========== Общие секции ========== */
.section-title {
  font-family: var(--font-heading);
  text-align: center;
  margin: 0 0 var(--space-md);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--color-green-800);
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
  width: 100%;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: var(--space-md) auto 0;
  background: linear-gradient(90deg, var(--color-green-600), var(--color-gold));
  border-radius: var(--radius-full);
}
.section-subtitle {
  text-align: center;
  margin: 0 0 var(--space-2xl);
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
/* Декоративный разделитель между секциями */
.section--bg-placeholder + .section--bg-placeholder,
.advantages + .stats,
.stats + .clients {
  position: relative;
}
.advantages::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  pointer-events: none;
}

/* ========== Услуги ========== */
.services { padding: var(--space-4xl) 0; }
.services__categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}
.services-cat {
  position: relative;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-green-100);
  color: var(--color-green-800);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  transition: background var(--duration-normal) var(--ease-out-expo),
    color var(--duration-normal),
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal);
}
.services-cat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-normal) var(--ease-out-expo);
  border-radius: var(--radius-full);
}
.services-cat:hover {
  background: var(--color-green-700);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.services-cat:hover::after {
  transform: scaleX(1);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.service-card {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  transition: transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal),
    border-color var(--duration-normal),
    background var(--duration-normal);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-green-500), var(--color-gold));
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  opacity: 0;
  transition: opacity var(--duration-normal);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-green-200);
  background: var(--color-surface-hover);
}
.service-card:hover::before { opacity: 1; }
.service-card__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-green-800);
  line-height: 1.3;
}
.service-card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========== Преимущества ========== */
.advantages {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-alt);
}
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.advantage-card {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal),
    background var(--duration-normal);
  border: 1px solid var(--color-border-soft);
  position: relative;
  overflow: hidden;
}
.advantage-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-green-200);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  opacity: 0.6;
  transition: opacity var(--duration-normal);
}
.advantage-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.advantage-card:hover::before { opacity: 1; background: var(--color-green-500); }
.advantage-card--highlight {
  background: linear-gradient(145deg, var(--color-green-700), var(--color-green-800));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
.advantage-card--highlight:hover {
  background: linear-gradient(145deg, var(--color-green-700), var(--color-green-800));
  box-shadow: var(--shadow-lg);
}
.advantage-card--highlight .advantage-card__title { color: #fff; }
.advantage-card--highlight .advantage-card__text { color: rgba(255, 255, 255, 0.9); }
.advantage-card--highlight::before {
  background: rgba(255, 255, 255, 0.35);
  opacity: 0.9;
}
.advantage-card__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-green-800);
  line-height: 1.35;
}
.advantage-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========== Статистика ========== */
.stats {
  padding: var(--space-4xl) 0;
  color: #fff;
  text-align: center;
}
.stats .section-title { color: #fff; }
.stats .section-title::after {
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold));
}
.stats .section-subtitle { color: rgba(255, 255, 255, 0.85); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
}
.stat-item {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: transform var(--duration-normal), background var(--duration-normal);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-soft), transparent);
  opacity: 0.8;
}
.stat-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.02);
}
.stat-item__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-gold-light);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.stat-item__label {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* ========== Клиенты ========== */
.clients { padding: var(--space-3xl) 0; }
.clients__logos {
  min-height: 140px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  padding: var(--space-2xl);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
  color: var(--color-text-soft);
  font-size: 0.9rem;
}
.section-placeholder {
  display: block;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ========== Отзывы ========== */
.reviews {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-alt);
}
.reviews__list {
  min-height: 140px;
  padding: var(--space-2xl);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}

/* ========== Форма ========== */
.order-form { padding: var(--space-4xl) 0; }
.form--consult {
  max-width: 460px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-soft);
  position: relative;
  overflow: hidden;
}
.form--consult::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-green-600), var(--color-gold));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.form label { display: block; margin-bottom: var(--space-lg); }
.form input,
.form textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
  background: var(--color-surface);
  color: var(--color-text);
}
.form input:hover,
.form textarea:hover {
  border-color: var(--color-green-200);
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-green-600);
  box-shadow: 0 0 0 4px rgba(74, 112, 87, 0.18);
}
.form input::placeholder,
.form textarea::placeholder { color: var(--color-text-soft); }
.form textarea { min-height: 120px; resize: vertical; }
.form__recaptcha { margin: var(--space-md) 0; min-height: 78px; }
.form .btn { width: 100%; margin-top: var(--space-sm); padding: var(--space-lg); }
.form-select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.form-select:focus {
  outline: none;
  border-color: var(--color-green-600);
  box-shadow: 0 0 0 4px rgba(74, 112, 87, 0.18);
}
.form__privacy {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  margin-top: var(--space-lg);
  line-height: 1.5;
}

/* ========== Подвал ========== */
.footer {
  background: var(--color-green-900);
  color: #fff;
  padding: var(--space-3xl) 0 var(--space-lg);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.6;
}
.footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer__brand {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
}
.footer__brand strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  display: block;
  margin-bottom: var(--space-sm);
}
.footer__contacts {
  line-height: 1.8;
}
.footer__contacts a,
.footer__links a {
  position: relative;
  opacity: 0.9;
  transition: opacity var(--duration-fast), color var(--duration-normal);
}
.footer__contacts a:hover,
.footer__links a:hover {
  opacity: 1;
  color: var(--color-gold-light);
}
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.footer__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ========== Анимации при прокрутке ========== */
.animate-on-scroll {
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}
.animate-on-scroll.in-view { opacity: 1; }

[data-animate="fade-up"] { transform: translateY(50px); }
[data-animate="fade-up"].in-view { transform: translateY(0); }

[data-animate="fade-in"] { transform: none; }
[data-animate="fade-in"].in-view { transform: none; }

[data-animate="slide-right"] { transform: translateX(-60px); }
[data-animate="slide-right"].in-view { transform: translateX(0); }

[data-animate="slide-left"] { transform: translateX(60px); }
[data-animate="slide-left"].in-view { transform: translateX(0); }

[data-animate="zoom"] { transform: scale(0.92); }
[data-animate="zoom"].in-view { transform: scale(1); }

[data-animate="count-up"] { transform: translateY(30px); opacity: 0; }
[data-animate="count-up"].in-view { transform: translateY(0); opacity: 1; }

/* Задержки по очереди */
.services__grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.services__grid .animate-on-scroll:nth-child(2) { transition-delay: 0.06s; }
.services__grid .animate-on-scroll:nth-child(3) { transition-delay: 0.12s; }
.services__grid .animate-on-scroll:nth-child(4) { transition-delay: 0.18s; }
.services__grid .animate-on-scroll:nth-child(5) { transition-delay: 0.24s; }
.services__grid .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }
.advantages__grid .animate-on-scroll:nth-child(odd) { transition-delay: 0s; }
.advantages__grid .animate-on-scroll:nth-child(even) { transition-delay: 0.08s; }
.diagnostics__cards .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.diagnostics__cards .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stats__grid .stat-item:nth-child(1) { transition-delay: 0s; }
.stats__grid .stat-item:nth-child(2) { transition-delay: 0.1s; }
.stats__grid .stat-item:nth-child(3) { transition-delay: 0.2s; }
.stats__grid .stat-item:nth-child(4) { transition-delay: 0.3s; }

/* ========== Внутренние страницы: hero ========== */
.page-hero {
  position: relative;
  color: #fff;
  padding: var(--space-4xl) 0;
  text-align: center;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--color-green-900);
  background-image: url("/images/hero.jpg");
  background-size: cover;
  background-position: center;
}
.page-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}
.page-hero__inner { position: relative; z-index: 1; width: 100%; }
.page-hero__label {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 var(--space-md);
}
.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 var(--space-lg);
  letter-spacing: 0.02em;
}
.page-hero__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  opacity: 0.9;
  line-height: 1.6;
}
.page-hero .btn { margin-top: var(--space-sm); }

/* Контент внутренних страниц */
.content-section { padding: var(--space-4xl) 0; background: var(--color-bg); }
.content-block {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl) 0;
}
.content-block__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  color: var(--color-text-muted);
}
.trim-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
.trim-card {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  transition: transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal),
    border-color var(--duration-normal);
}
.trim-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-green-200);
}
.trim-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-green-800);
  margin: 0 0 var(--space-md);
}
.trim-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.trim-card__text {
  margin: 0 0 var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.tips-list {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 1.25rem;
}
.tips-list li {
  margin-bottom: var(--space-md);
  line-height: 1.6;
  color: var(--color-text-muted);
}
.tips-list strong { color: var(--color-green-800); }

/* Карточки с ценой / CTA на внутренних страницах */
.price-card {
  background: var(--color-surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  text-align: center;
  transition: transform var(--duration-normal), box-shadow var(--duration-normal);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.price-card__value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-sm);
}
.price-card__label { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: var(--space-lg); }
.vacancy-card {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  margin-bottom: var(--space-lg);
  transition: transform var(--duration-normal), box-shadow var(--duration-normal);
}
.vacancy-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}
.vacancy-card__title { font-family: var(--font-heading); font-size: 1.25rem; margin: 0 0 var(--space-md); color: var(--color-green-800); }
.vacancy-card__salary { font-weight: 600; color: var(--color-gold-dark); margin-bottom: var(--space-md); }
.vacancy-card ul { padding-left: 1.25rem; }
.vacancy-card li { margin-bottom: var(--space-sm); color: var(--color-text-muted); }

/* ========== Кнопка бургера (скрыта на десктопе) ========== */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: #fff;
  transition: background var(--duration-fast);
}
.header__burger:hover {
  background: rgba(255, 255, 255, 0.18);
}
.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--duration-normal) var(--ease-out-expo),
    opacity var(--duration-normal);
}
.header.header--menu-open .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header.header--menu-open .header__burger-line:nth-child(2) {
  opacity: 0;
}
.header.header--menu-open .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Мобильное меню ========== */
@media (max-width: 768px) {
  .diagnostics.section--bg-placeholder,
  .services.section--bg-placeholder,
  .order-form.section--bg-placeholder {
    background-attachment: scroll;
  }

  .header__burger {
    display: flex;
    order: 2;
    margin-left: auto;
  }
  .header { position: relative; }
  .header__right::before {
    display: none;
  }
  .header__right .header__phone {
    flex: none;
    text-align: center;
  }
  .header__right {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    flex: none;
    max-width: 100vw;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-green-900);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transition: max-height 0.35s var(--ease-out-expo), opacity 0.25s, visibility 0.25s;
    order: 3;
    gap: 0;
    padding: 0 var(--space-lg) var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .header.header--menu-open .header__right {
    max-height: min(85vh, 520px);
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }
  .header__inner {
    position: relative;
  }
  .header__nav {
    width: 100%;
    order: 0;
    padding-top: var(--space-md);
  }
  .header__phone {
    order: 1;
    margin-top: var(--space-lg);
    padding: var(--space-md);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-list > li:last-child { border-bottom: none; }
  .nav-list a {
    display: block;
    padding: var(--space-md) 0;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: var(--space-md);
    margin-top: 0;
    margin-bottom: var(--space-sm);
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    border: none;
    box-shadow: none;
  }
  .nav-dropdown a {
    padding: var(--space-sm) 0;
  }
  .section__bg-placeholder {
    font-size: 0.7rem;
    white-space: normal;
    text-align: center;
    max-width: 90%;
  }
  .hero { min-height: 65vh; padding: var(--space-3xl) 0; }
}

body.body--menu-open {
  overflow: hidden;
}
