/* =====================================================================
   ЧОП «Выбор» — стили публичной части
   Палитра: тёмно-синий/графит + золотой акцент
   ===================================================================== */

:root {
  --c-dark: #0d1522;        /* основной тёмный фон */
  --c-dark-2: #121c2e;      /* тёмный фон карточек */
  --c-navy: #1a2740;        /* синий средний */
  --c-steel: #8494ad;       /* стальной текст на тёмном */
  --c-accent: #c9a227;      /* золото */
  --c-accent-light: #e3c256;
  --c-bg: #f4f6f9;          /* светлый фон секций */
  --c-white: #ffffff;
  --c-text: #263248;        /* основной текст на светлом */
  --c-muted: #6b7789;
  --c-border: #e2e7ee;
  --c-danger: #c0392b;
  --font-display: 'Russo One', 'Montserrat', 'Segoe UI', sans-serif; /* крупные заголовки */
  --font-head: 'Montserrat', 'Segoe UI', sans-serif;                 /* кнопки, подписи, карточки */
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow: 0 10px 35px rgba(13, 21, 34, .10);
  --shadow-lg: 0 20px 60px rgba(13, 21, 34, .18);
  --header-h: 96px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent-light); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--c-dark);
  font-weight: 700;
}
/* Крупные заголовки — акцидентный Russo One (одно начертание) */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .2px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section { padding: 90px 0; }
.section-dark { background: var(--c-dark); }
.section-gray { background: var(--c-bg); }

.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--c-muted);
  max-width: 640px;
  margin-bottom: 48px;
  font-size: 17px;
}
.section-dark .section-title { color: var(--c-white); }
.section-dark .section-sub { color: var(--c-steel); }
.section-head-center { text-align: center; }
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 32px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-accent {
  background: linear-gradient(135deg, var(--c-accent), #b08d1e);
  color: #16202f;
  box-shadow: 0 8px 24px rgba(201, 162, 39, .35);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 162, 39, .5);
  color: #16202f;
}
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: var(--c-white);
}
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn-dark {
  background: var(--c-dark);
  color: var(--c-white);
}
.btn-dark:hover { background: var(--c-navy); color: var(--c-white); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; }

/* На светлом фоне у outline-кнопки тёмная рамка */
.on-light .btn-outline, .btn-outline.dark {
  border-color: var(--c-dark); color: var(--c-dark);
}
/* …но в тёмной шапке кнопка всегда светлая (правило выше не должно её задевать) */
.site-header .btn-outline {
  border-color: rgba(255, 255, 255, .35);
  color: var(--c-white);
}
.site-header .btn-outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled,
body.no-hero .site-header {
  background: rgba(13, 21, 34, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo img.logo-img { max-height: 88px; width: auto; }
.logo-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-icon { width: 28px; height: 28px; color: #16202f; }
.logo-emblem { width: 36px; height: auto; display: block; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--c-white);
  line-height: 1.15;
  display: flex; flex-direction: column;
  white-space: nowrap;
}
.logo-text small {
  font-weight: 500;
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: .3px;
  color: var(--c-steel);
  text-transform: uppercase;
  white-space: normal;
  max-width: 235px;
}

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all var(--transition);
}
.main-nav a:hover { color: var(--c-white); background: rgba(255, 255, 255, .08); }
.main-nav a.active { color: var(--c-accent); }

.header-contacts { display: flex; align-items: center; gap: 16px; }
.header-phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-white);
  white-space: nowrap;
}
.header-phone:hover { color: var(--c-accent); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 102;
}
.burger span {
  width: 26px; height: 3px;
  background: var(--c-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  /* Фото с сильным затемнением поверх фирменного градиента.
     Картинка задаётся переменной --hero-photo (меняется в админке → Брендинг),
     по умолчанию — /assets/img/hero-bg.jpg */
  background:
    radial-gradient(ellipse 900px 600px at 85% 10%, rgba(201, 162, 39, .12), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 90%, rgba(38, 70, 130, .35), transparent 60%),
    linear-gradient(160deg, rgba(10, 17, 28, .93) 0%, rgba(16, 25, 42, .92) 45%, rgba(22, 35, 60, .90) 100%),
    var(--hero-photo, url('/assets/img/hero-bg.jpg')) center 30% / cover no-repeat #0d1522;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero::before {
  /* тонкая сетка-паттерн */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; max-width: 780px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  background: rgba(201, 162, 39, .12);
  border: 1px solid rgba(201, 162, 39, .35);
  color: var(--c-accent-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge .icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--c-white);
  line-height: 1.18;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--c-accent); }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--c-steel);
  max-width: 600px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-features {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
}
.hero-feature .icon { width: 20px; height: 20px; color: var(--c-accent); flex-shrink: 0; }

.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .4);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: heroScroll 2.2s ease-in-out infinite;
}
@keyframes heroScroll {
  0%, 100% { transform: translate(-50%, 0); opacity: .5; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ---------- Преимущества ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.adv-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all var(--transition);
}
.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.adv-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1a2740, #263a5e);
  border-radius: 14px;
  margin-bottom: 20px;
}
.adv-icon .icon, .adv-icon img { width: 30px; height: 30px; color: var(--c-accent); }
.adv-card h3 { font-size: 19px; margin-bottom: 10px; }
.adv-card p { color: var(--c-muted); font-size: 15px; }

/* ---------- Услуги ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(201, 162, 39, .35);
}
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: rgba(201, 162, 39, .12);
  border: 1px solid rgba(201, 162, 39, .3);
  border-radius: 14px;
  margin-bottom: 22px;
}
.service-icon .icon, .service-icon img { width: 30px; height: 30px; color: var(--c-accent); }
.service-card h3 { font-size: 20px; color: var(--c-white); margin-bottom: 12px; }
.service-card p { color: var(--c-steel); font-size: 15px; flex: 1; }
.service-link {
  margin-top: 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link:hover { gap: 12px; color: var(--c-accent-light); }
.service-card .stretched::before { content: ''; position: absolute; inset: 0; }

/* Светлый вариант карточек услуг (страница /services.php) */
.on-light .service-card { background: var(--c-white); border-color: var(--c-border); }
.on-light .service-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(201,162,39,.5); background: var(--c-white); }
.on-light .service-card h3 { color: var(--c-dark); }
.on-light .service-card p { color: var(--c-muted); }

.sub-services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.sub-services a {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(201, 162, 39, .1);
  border: 1px solid rgba(201, 162, 39, .25);
  color: var(--c-accent);
}
.on-light .sub-services a { background: #faf5e4; }
.sub-services a:hover { background: var(--c-accent); color: #16202f; }

/* ---------- Счётчики ---------- */
.counters-band {
  background:
    radial-gradient(ellipse 700px 400px at 80% 50%, rgba(201, 162, 39, .1), transparent 65%),
    var(--c-dark-2);
  padding: 70px 0;
}
.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}
.counter-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 54px);
  color: var(--c-accent);
  line-height: 1;
}
.counter-label { color: var(--c-steel); margin-top: 10px; font-size: 15px; }

/* ---------- Отзывы ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); }
.review-stars { color: var(--c-accent); font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.review-text { color: var(--c-text); font-size: 15px; flex: 1; }
.review-author { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.review-author strong { font-family: var(--font-head); font-size: 15px; display: block; }
.review-author span { color: var(--c-muted); font-size: 13px; }

/* ---------- Клиенты ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.client-logo {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  min-height: 92px;
  padding: 14px 18px;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.client-logo img {
  max-height: 58px;
  width: auto;
  max-width: 100%;
  filter: grayscale(1);
  opacity: .65;
  transition: all var(--transition);
}
.client-logo:hover { box-shadow: var(--shadow); border-color: transparent; }
.client-logo:hover img { filter: none; opacity: 1; }

/* ---------- Благодарственные письма ---------- */
.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.letter-card {
  margin: 0;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.letter-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.letter-card a { display: block; }
.letter-card img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  background: #f8f9fb;
}
.letter-card figcaption {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  border-top: 1px solid var(--c-border);
}

/* ---------- Галерея лицензий (страница «О группе») ---------- */
.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.license-grid a {
  display: block;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
  transition: all var(--transition);
}
.license-grid a:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.license-grid img { display: block; width: 100%; margin: 0 !important; border-radius: 0 !important; }

/* ---------- Формы ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="password"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-white);
  color: var(--c-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, .15);
}
input.error { border-color: var(--c-danger); }
textarea { resize: vertical; min-height: 110px; }

.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

/* Виджет reCAPTCHA v2 в формах */
.g-recaptcha { margin: 4px 0 6px; }
/* В узкой боковой колонке услуги виджет слегка ужимаем */
.aside-card .g-recaptcha { transform: scale(.9); transform-origin: 0 0; }

.form-agree { font-size: 12px; color: var(--c-muted); margin-top: 12px; text-align: center; }
.form-result { margin-top: 14px; font-size: 14px; text-align: center; display: none; }
.form-result.ok { display: block; color: #1e8e4e; }
.form-result.err { display: block; color: var(--c-danger); }

/* Тёмная форма (CTA-секция) */
.dark-form input, .dark-form select, .dark-form textarea {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .15);
  color: var(--c-white);
}
/* Выпадающий список рисуется браузером на белом фоне —
   пунктам нужен явный тёмный текст, иначе белое-на-белом */
.dark-form select option {
  background: var(--c-white);
  color: var(--c-text);
}
.dark-form input::placeholder, .dark-form textarea::placeholder { color: var(--c-steel); }
.dark-form .form-agree { color: var(--c-steel); }

.cta-band {
  background:
    radial-gradient(ellipse 800px 500px at 15% 50%, rgba(38, 70, 130, .4), transparent 60%),
    linear-gradient(135deg, #0e1626, #17233a);
  border-radius: 20px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.cta-band h2 { color: var(--c-white); font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 16px; }
.cta-band p { color: var(--c-steel); }
.cta-form { display: grid; gap: 14px; }

/* ---------- Страницы (внутренние) ---------- */
.page-hero {
  background:
    radial-gradient(ellipse 700px 400px at 80% 20%, rgba(201, 162, 39, .1), transparent 60%),
    linear-gradient(160deg, #0a111c, #16233c);
  padding: calc(var(--header-h) + 60px) 0 60px;
}
.page-hero h1 {
  color: var(--c-white);
  font-size: clamp(28px, 4vw, 44px);
}
.breadcrumbs { margin-bottom: 18px; font-size: 13px; color: var(--c-steel); }
.breadcrumbs a { color: var(--c-steel); }
.breadcrumbs a:hover { color: var(--c-accent); }

.content-area { max-width: 820px; }
.content-area h2 { font-size: 28px; margin: 36px 0 16px; }
.content-area h3 { font-size: 21px; margin: 28px 0 12px; }
.content-area p { margin-bottom: 16px; }
.content-area ul, .content-area ol { margin: 0 0 18px 22px; }
.content-area li { margin-bottom: 8px; }
.content-area img { border-radius: var(--radius); margin: 10px 0; }

.service-layout { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.service-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card {
  background: var(--c-dark-2);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--c-white);
}
.aside-card h3 { color: var(--c-white); font-size: 19px; margin-bottom: 8px; }
.aside-card > p { color: var(--c-steel); font-size: 14px; margin-bottom: 18px; }
.aside-card .request-form { display: grid; gap: 12px; }
.aside-nav { margin-top: 24px; background: var(--c-bg); border-radius: var(--radius); padding: 24px; }
.aside-nav h4 { font-size: 15px; margin-bottom: 12px; }
.aside-nav a { display: block; padding: 7px 0; font-size: 14px; color: var(--c-text); border-bottom: 1px solid var(--c-border); }
.aside-nav a:last-child { border-bottom: none; }
.aside-nav a:hover, .aside-nav a.current { color: var(--c-accent); }

/* ---------- Вакансии ---------- */
.vacancy-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition);
}
.vacancy-card:hover { box-shadow: var(--shadow); }
.vacancy-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.vacancy-head h3 { font-size: 21px; }
.vacancy-salary {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--c-accent);
  white-space: nowrap;
}
.vacancy-body { margin-top: 14px; color: var(--c-muted); font-size: 15px; }
.vacancy-body h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 6px; color: var(--c-text); }
.vacancy-actions { margin-top: 20px; }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon-wrap {
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--c-bg);
  border-radius: 12px;
}
.contact-item .icon { width: 24px; height: 24px; color: var(--c-accent); }
.contact-item h4 { font-size: 14px; color: var(--c-muted); font-weight: 500; margin-bottom: 2px; }
.contact-item a, .contact-item p { font-size: 17px; font-weight: 600; color: var(--c-text); font-family: var(--font-head); }
.contact-item a:hover { color: var(--c-accent); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 400px; }
.map-wrap iframe { display: block; width: 100%; }

/* ---------- Калькулятор ---------- */
.calc-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 44px;
  max-width: 760px;
  margin: 0 auto;
}
.calc-steps { display: grid; gap: 26px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span {
  display: block;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.radio-card input:checked + span {
  border-color: var(--c-accent);
  background: #fdf9ec;
  color: #8a6d13;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .15);
}
.calc-hint { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.calc-result {
  background: linear-gradient(135deg, #0e1626, #17233a);
  border-radius: 14px;
  padding: 24px 28px;
  text-align: center;
}
.calc-result-label {
  color: var(--c-steel);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.calc-result-price {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--c-accent);
  margin: 6px 0 8px;
}
.calc-result .calc-hint { color: var(--c-steel); }

/* ---------- Модальное окно ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 15, 25, .7);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}
.modal-dialog {
  position: relative;
  background: var(--c-white);
  border-radius: 18px;
  padding: 38px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .3s cubic-bezier(.34, 1.4, .64, 1);
}
.modal-dialog h3 { font-size: 22px; margin-bottom: 8px; }
.modal-sub { color: var(--c-muted); font-size: 14px; margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none;
  font-size: 30px; line-height: 1;
  color: var(--c-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--c-dark); }
@keyframes modalIn { from { transform: translateY(24px) scale(.96); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--c-dark);
  color: var(--c-steel);
  padding: 70px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo { margin-bottom: 18px; }
.footer-note { font-size: 14px; line-height: 1.6; max-width: 300px; }
.footer-col h4 {
  color: var(--c-white);
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-nav { display: grid; gap: 4px; }
.footer-nav a {
  color: var(--c-steel);
  font-size: 14px;
  padding: 4px 0;
}
.footer-nav a:hover { color: var(--c-accent); }
.footer-contacts { display: grid; gap: 8px; font-size: 14px; }
.footer-contacts p { margin: 0; }
.footer-contacts a { color: var(--c-steel); }
.footer-contacts a:hover { color: var(--c-accent); }
.footer-phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--c-white) !important;
}
.footer-phone:hover { color: var(--c-accent) !important; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
}
.footer-bottom a { color: var(--c-steel); }
.footer-bottom a:hover { color: var(--c-accent); }

/* ---------- Плавающие кнопки ---------- */
.float-buttons {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  transition: transform var(--transition);
}
.float-btn:hover { transform: scale(1.1); color: #fff; }
.float-btn svg { width: 26px; height: 26px; }
.float-phone { background: linear-gradient(135deg, var(--c-accent), #a8861a); animation: pulse 2.5s infinite; }
.float-wa { background: #25d366; }
.float-tg { background: #229ed9; }
.float-max { background: linear-gradient(135deg, #8f2bf6, #2e7cf6); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, .5); }
  70% { box-shadow: 0 0 0 16px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

/* ---------- Страница 404 ---------- */
.error-code {
  font-family: var(--font-display);
  font-size: clamp(90px, 16vw, 170px);
  line-height: 1;
  color: var(--c-dark);
  opacity: .12;
  margin-bottom: 8px;
  user-select: none;
}

/* ---------- Анимации при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптивность ---------- */
@media (max-width: 1340px) {
  .site-header .logo-text small { display: none; }
}
@media (max-width: 1180px) {
  .header-contacts .btn { display: none; }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-contacts .btn { display: none; }
  .burger { display: flex; }

  .main-nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: rgba(10, 15, 25, .97);
    z-index: 101;
    /* при сильном зуме пунктов больше, чем влезает — прокручиваем */
    overflow-y: auto;
    padding: 90px 20px 40px;
  }
  .main-nav.open a { font-size: 20px; padding: 12px 24px; flex-shrink: 0; }

  /* Пока меню открыто, у шапки не должно быть backdrop-filter:
     фильтр превращает её в containing block для fixed-оверлея меню,
     и тот обрезается по высоте шапки */
  body.nav-open .site-header {
    backdrop-filter: none;
    background: rgba(10, 15, 25, .97);
  }

  .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { min-height: auto; }
  .hero-actions .btn { width: 100%; }
  .header-phone { font-size: 14px; }
  .header-inner { gap: 10px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-emblem { width: 31px; }
  .logo img.logo-img { max-height: 56px; }
  .logo-text { font-size: 15px; }
  .calc-card { padding: 26px 20px; }
  .calc-row { grid-template-columns: 1fr; }
  .modal-dialog { padding: 28px 22px; }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .float-buttons { right: 14px; bottom: 14px; }
  .float-btn { width: 48px; height: 48px; }
  .site-footer { padding-top: 50px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 34px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 460px) {
  /* На узких экранах телефон в шапке скрываем: есть плавающая кнопка звонка */
  .header-phone { display: none; }
}
