/* ==== base.css ==== */
/* ============================================================
   BASE — reset, типографика, container, кнопки, утилиты
   Только то, что нужно всем страницам. Без мусора.
   ============================================================ */

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

html {
  scrollbar-color: var(--blue) var(--black);
  scroll-behavior: smooth;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-main);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Сброс UA-стилей <button> у карточек-кнопок (перенесено из main.css старого сайта:
   без этого Chromium рисует buttonface-фон и чёрный текст — баг контраста cert-thumb-label) */
.cert-thumb, .gallery-card {
  width: 100%; padding: 0; border: 0; text-align: left;
  font: inherit; line-height: normal; color: inherit;
  background: none; -webkit-appearance: none; appearance: none;
}

/* WCAG 1.4.1 (link-in-text-block): inline prose links distinguished by more than colour */
main p a[href]:not(.btn),
main .blog-article li a[href],
main .blog-article td a[href] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: currentColor;
}
/* structural links keep their no-underline look */
main .blog-article .blog-toc a[href],
main .tsy-table a[href] {
  text-decoration: none;
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Skip-link — всегда выше всего */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: var(--z-skip);
  padding: 12px 24px; background: var(--blue); color: var(--white);
  font-weight: 600; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none; transition: top .3s ease;
}
.skip-link:focus { top: 0; }

/* Контейнер */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 30px;
}
@media (max-width: 320px) { .container { padding: 0 16px; } }

/* Типографика заголовков */
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.15; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }
p { text-wrap: pretty; }

/* Глобальное правило: заголовки и надзаголовки — по левому краю.
   Исключения: hero (центрирование — фирменный признак) и модальные попапы. */
main .section-title,
main .section-subtitle,
main .calculator-header,
main h2:not(.popup-title),
main h3:not(.popup-title) {
  text-align: left;
}

/* Ссылки в тексте */
p a { color: var(--blue); text-decoration: none; }
p a:hover { color: var(--blue-light); text-decoration: underline; }

/* Кнопки — единые компоненты */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 28px; border-radius: var(--radius-btn);
  font-size: 16px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease-smooth), background-color .25s ease, border-color .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--accent-blue));
  color: var(--white); box-shadow: var(--shadow-action);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--white); border-color: var(--glass-border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue-light); }
/* Кнопка-тень (поиск в футере) — как в исходнике */
.btn-ghost {
  background: transparent; color: var(--white); border-color: rgba(46,123,255,.45);
  position: relative; overflow: hidden;
}
.btn-ghost:hover { background: hsla(0,0%,100%,.08); border-color: var(--blue); }

/* Заголовок секции */
/* Заголовок секции — сверено со старым сайтом (main.css) */
.section-title {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px); font-weight: 700;
  line-height: 1.15; letter-spacing: -1px;
}
.section-subtitle {
  display: inline-block; margin-bottom: 12px; font-size: 14px;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--blue-light);
}
.section-lead { font-size: 16px; line-height: 1.7; color: var(--text-muted); max-width: 760px; margin-top: 16px; }

/* Ритм секций — единственный */
section { padding: var(--section-py) 0; }
@media (max-width: 767px) { section { padding: var(--section-py-mob) 0; } }

/* Утилиты */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.text-accent { color: var(--blue); }

/* Стеклянная карточка — базовый паттерн (faq, карточки типов и др.) */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* Ссылка «Из блога» — внизу контентных страниц, по ширине секций (.container) */
.blog-from-site {
  margin: 0 0 30px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}
.blog-from-site a { color: var(--blue); text-decoration: none; }
.blog-from-site a:hover { color: var(--blue-light); text-decoration: underline; }

/* Таблицы с горизонтальным скроллом на мобильном */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-card); }
.table-scroll table { min-width: 640px; width: 100%; }
/* Таблица, вписанная в контейнер без горизонтальной прокрутки (kpp-iz-blok-konteynerov) */
.table-scroll--fit { overflow-x: visible; }
.table-scroll--fit table { min-width: 0; }

/* Prose — ограничение длины строки */
.prose p { max-width: 68ch; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==== components/header.css ==== */
/* ============================================================
   HEADER — шапка с горизонтальным меню (десктоп) / шторкой (моб)
   ============================================================ */

header {
  width: 100%; padding: 3px 0;
  background: rgba(10, 10, 11, .7);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .3);
  position: sticky; top: 0; z-index: var(--z-header);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: var(--z-content);
}

/* Логотип */
.logo { display: flex; align-items: center; line-height: 0; text-decoration: none; }
.logo-img { height: 56px; width: auto; filter: brightness(0) invert(1); transition: filter .3s ease; }
.logo:hover .logo-img { filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(46,123,255,.35)); }
@media (max-width: 1024px) { .logo-img { height: 48px; } }
@media (max-width: 480px) { .logo-img { height: 36px; } }

/* Горизонтальное меню (десктоп) */
.header-nav { display: flex; align-items: center; gap: 8px; margin-left: 32px; margin-right: auto; }
.header-nav-link {
  padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; border-radius: var(--radius-sm); white-space: nowrap;
  transition: color .25s ease, background-color .25s ease, filter .3s ease;
}
/* Hover пунктов меню = hover логотипа: синее свечение */
.header-nav-link:hover {
  color: var(--white); background: hsla(0,0%,100%,.06);
  filter: drop-shadow(0 0 12px rgba(46,123,255,.35));
}
.header-nav-link[aria-current="page"] { color: var(--white); background: rgba(46,123,255,.14); }

/* Выпадающие списки */
.header-nav-item.has-dropdown { position: relative; }
.header-nav-item.has-dropdown > .header-nav-link::after {
  content: ""; display: inline-block; margin-left: 6px; vertical-align: middle;
  width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .25s ease;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 280px; padding: 10px;
  background: rgba(16, 16, 20, .92);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: var(--z-header);
}
.header-nav-item.has-dropdown:hover .nav-dropdown,
.header-nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.header-nav-item.has-dropdown:hover > .header-nav-link::after,
.header-nav-item.has-dropdown:focus-within > .header-nav-link::after { transform: rotate(-135deg) translateY(-1px); }
.nav-dropdown a {
  display: block; padding: 10px 14px; font-size: 15px; color: var(--text-muted);
  text-decoration: none; border-radius: var(--radius-sm); white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.nav-dropdown a:hover { color: var(--white); background: hsla(0,0%,100%,.06); }

@media (max-width: 1024px) { .header-nav { display: none; } }

/* Контакты в шапке */
.header-contacts { display: flex; align-items: center; gap: 24px; margin-left: auto; margin-right: 24px; }
.header-contact-link {
  display: flex; align-items: center; gap: 8px; color: var(--white);
  font-size: 18px; font-weight: 500; text-decoration: none;
  min-height: 44px; /* touch-цель */
  transition: color .3s ease;
}
.header-contact-link:hover { color: var(--blue-light); }
.header-contact-link svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
@media (max-width: 768px) { .header-contacts { display: none; } }

/* Кнопка «Меню» — только мобильная (десктоп: скрыта) */
.contact-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: var(--radius-btn);
  border: 1px solid hsla(0,0%,100%,.22);
  background: linear-gradient(135deg, hsla(0,0%,100%,.16), hsla(0,0%,100%,.06));
  color: hsla(0,0%,100%,.9); font-size: 17px; font-weight: 600; letter-spacing: .5px;
  transition: transform .4s var(--ease-smooth), background .3s ease;
}
.contact-btn:hover { transform: scale(1.04); background: linear-gradient(135deg, hsla(0,0%,100%,.24), hsla(0,0%,100%,.1)); }
@media (min-width: 1025px) { header .contact-btn { display: none; } }

/* ==== components/hero.css ==== */
/* ============================================================
   HERO — первый экран. БЕЗ CTA-кнопок (модель: звонок/письмо).
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 40px 40px;
  margin-top: 0; /* без отрицательного margin — не уходит под header, нет полосы */
}
.hero-bg { position: absolute; inset: 0; z-index: 0; height: 100%; width: 100%; overflow: hidden; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; display: block; }
.hero:before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.6) 35%, rgba(0,0,0,.2) 60%, transparent);
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 800px; margin: auto; padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.hero-content > * { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-head); font-size: var(--fs-h1); font-weight: 800;
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 25px;
  display: flex; flex-direction: column;
}
.hero-line { display: block; }
.hero-line--1 { color: var(--white); text-shadow: 0 2px 8px rgba(0,0,0,.8), 0 6px 30px rgba(0,0,0,.6); }
.hero-line--2 {
  font-size: .6em; letter-spacing: 0;
  background: linear-gradient(135deg, var(--blue), var(--accent-blue), var(--blue-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.55));
}
.hero .hero-accent { background: linear-gradient(135deg, var(--blue), var(--blue-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero p {
  font-size: 18px; line-height: 1.7; color: hsla(0,0%,100%,.92);
  text-shadow: 0 1px 4px rgba(0,0,0,.85), 0 4px 20px rgba(0,0,0,.55);
  max-width: 56ch;
}

/* Цифры — отдельная компактная секция после hero, с разделителями между значениями */
.hero-stats-section {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, hsla(0,0%,100%,.05) 0, var(--black) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--border);
  /* Компактная полоса: без глобального section-отступа, только внутренний паддинг hero-stats */
  padding: 0;
}
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  padding: var(--space-lg) 0;
}
.stat-item {
  flex: 1; min-width: 140px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
/* Визуальный разделитель между цифрами */
.stat-item + .stat-item { border-left: 1px solid var(--glass-border); }
.stat-item strong {
  font-family: var(--font-head); font-weight: 800;
  font-size: 32px; line-height: 1; color: var(--blue); display: block;
  text-shadow: 0 0 20px rgba(46,123,255,.4);
}
.stat-item span {
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  color: hsla(0,0%,100%,.7);
}
@media (max-width: 768px) {
  .hero-stats { gap: var(--space-sm) 0; }
  .stat-item { flex: 1 1 40%; }
  .stat-item + .stat-item { border-left: none; }
}

/* --- Анимация появления (только если нет reduced-motion) --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-line { animation: heroLineUp .75s cubic-bezier(.22,1,.36,1) both; }
  .hero-line--1 { animation-delay: .08s; }
  .hero-line--2 { animation-delay: .22s; }
  .hero-content p { animation: heroLineUp .75s cubic-bezier(.22,1,.36,1) .38s both; }
}
@keyframes heroLineUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* --- Планшет --- */
@media (max-width: 1024px) {
  .hero { padding: 80px 30px 30px; text-align: center; }
  .hero-bg-img { object-position: 40% center; }
  .hero:before { background: rgba(0,0,0,.75); }
  .hero-content { width: 100%; max-width: 500px; margin: auto; padding: 36px 28px; }
}

/* --- Десктоп: hero на весь экран под шапкой, текст по центру --- */
@media (min-width: 1025px) {
  .hero { justify-content: center; padding-top: 0; padding-bottom: 0; margin-top: 0; }
  .hero-bg-img { object-position: center; }
  .hero:before { background: rgba(0,0,0,.55); }
  .hero .hero-content { text-align: center; align-items: center; }
  .hero .hero-content h1 { align-items: center; }
  .hero .hero-content p { text-align: center; margin-left: auto; margin-right: auto; }
}

/* --- Мобильный --- */
@media (max-width: 480px) {
  .hero { padding: 70px 16px 16px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; }
}

/* --- Низкий ландшафт --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 60px 20px 20px; }
  .hero h1 { font-size: 24px; margin-bottom: 12px; }
  .hero p { font-size: 14px; }
}

/* ==== components/footer.css ==== */
/* ============================================================
   FOOTER — подвал сайта
   Мобильный: колонки «Продукция»/«Разделы» = аккордеон (план 12.2)
   ============================================================ */

.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr 1.4fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

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

.footer-tagline {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.65;
  max-width: 320px;
}

.footer-brand .btn {
  margin-top: var(--space-xs);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}

/* Одна строка контакта: иконка + текст */
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
  min-height: 44px; /* touch-цель */
  transition: color 0.25s ease;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--blue);
}

.footer-contact:hover {
  color: var(--white);
}

.footer-contact--muted {
  align-items: flex-start;
  line-height: 1.55;
  max-width: 280px;
}

.footer-contact--muted svg {
  margin-top: 3px;
}

.footer-requisite {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-nav-link {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* touch-цель */
  min-width: 44px; /* touch-цель */
  transition: color 0.25s ease;
}

.footer-nav-link:hover {
  color: var(--white);
}

.footer-nav-link[aria-current="page"] {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.footer-legal-link {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* touch-цель */
  min-width: 44px; /* touch-цель */
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Аккордеон: десктоп — summary ведёт себя как обычный заголовок ===== */
.footer-accordion > summary {
  list-style: none;
}
.footer-accordion > summary::-webkit-details-marker {
  display: none;
}

/* Планшет */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (min-width: 769px) {
  .footer-accordion > summary {
    pointer-events: none; /* на десктопе колонки не сворачиваются */
  }
}

/* Мобильный: аккордеон */
@media (max-width: 768px) {
  .footer {
    padding: var(--space-lg) 0 var(--space-sm);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-brand,
  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-tagline {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
  }

  .footer-accordion {
    width: 100%;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--space-xs);
  }

  .footer-accordion > summary {
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: var(--space-sm) 0;
    margin-bottom: 0;
    transition: color 0.2s ease;
  }

  /* Шеврон аккордеона */
  .footer-accordion > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
  }

  .footer-accordion[open] > summary {
    color: var(--blue-light);
  }

  .footer-accordion[open] > summary::after {
    transform: rotate(-135deg);
  }

  .footer-accordion .footer-nav {
    align-items: center;
    padding: var(--space-xs) 0 var(--space-sm);
  }

  .footer-nav-link {
    padding: 8px 0;
  }

  .footer-bottom {
    padding: var(--space-md) var(--space-sm);
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
  }
}

/* ==== components/drawer-sticky.css ==== */
/* ============================================================
   DRAWER — шторка мобильного меню + sticky-bar
   ============================================================ */

/* Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer */
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100dvh;
  background: rgba(20, 20, 23, 0.98);
  z-index: var(--z-overlay);
  padding: var(--space-lg) var(--space-md);
  transition: right 0.4s var(--ease-smooth);
  overflow-y: auto;
}

/* JS вешает .active на .drawer-overlay (не на сам .drawer) — как на старом сайте:
   .drawer-overlay.active .drawer { transform: translateX(0) } */
.drawer-overlay.active .drawer {
  right: 0;
}

/* Паритет со старым: при открытой шторке прячем sticky-bar */
body.drawer-open .mobile-sticky-bar {
  display: none;
}

.drawer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Кнопка закрытия */
.drawer-close {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease;
}

.drawer-close:hover {
  background: hsla(0, 0%, 100%, 0.08);
}

.drawer-close svg {
  width: 24px;
  height: 24px;
}

/* Навигация в шторке */
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  padding: 0 var(--space-sm);
}

.drawer-nav-item {
  display: block;
  padding: 14px 16px;
  color: var(--white);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, color 0.25s ease;
}

.drawer-nav-item:hover {
  background: hsla(0, 0%, 100%, 0.06);
}

.drawer-nav-item[aria-current="page"] {
  color: var(--blue);
  background: rgba(46, 123, 255, 0.08);
}

/* Мобильная sticky-панель */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-xs) var(--space-sm);
  z-index: var(--z-sticky-bar);
  gap: var(--space-xs);
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-btn);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth);
}

.sticky-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sticky-btn--phone {
  background: linear-gradient(135deg, var(--blue), var(--accent-blue));
  box-shadow: 0 4px 20px rgba(46, 123, 255, 0.35), inset 0 1px 0 hsla(0, 0%, 100%, 0.2);
}

.sticky-btn--phone:active {
  transform: scale(0.96);
}

.sticky-btn--mail {
  background: hsla(0, 0%, 100%, 0.08);
  border: 1px solid hsla(0, 0%, 100%, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sticky-btn--mail:hover {
  background: hsla(0, 0%, 100%, 0.12);
  border-color: var(--blue);
}

.sticky-btn--mail:active {
  transform: scale(0.96);
  background: hsla(0, 0%, 100%, 0.14);
}

/* Показываем sticky-bar на мобильном */
@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
  }
}

/* Планшет и десктоп — шторка скрыта */
@media (min-width: 1025px) {
  .drawer {
    display: none;
  }
}

/* ==== components/calc-popup.css ==== */
/* ============================================================
   CALC-POPUP — плавающая кнопка калькулятора + попап формы
   ============================================================ */

/* Плавающая кнопка (FAB) */
.calc-fab {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--blue), var(--accent-blue));
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--white);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-action);
  cursor: pointer;
  z-index: var(--z-fab);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}

.calc-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(46, 123, 255, 0.4);
}

.calc-fab:active {
  transform: translateY(0);
}

.calc-fab svg {
  width: 20px;
  height: 20px;
}

.calc-fab__text {
  white-space: nowrap;
}

/* Скрыт на мобильном */
@media (max-width: 768px) {
  .calc-fab {
    display: none;
  }
}

/* Попап */
.calc-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.calc-popup.active {
  opacity: 1;
  visibility: visible;
}

.calc-popup__content {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  background: var(--bg-section);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

/* Пока видна cookie-плашка — резервируем под неё место снизу */
body.cookie-visible .calc-popup__content {
  max-height: calc(100dvh - 220px);
}

/* Кнопка закрытия попапа */
.calc-popup__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; /* touch-цель */
  height: 44px;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease;
}

.calc-popup__close:hover {
  background: hsla(0, 0%, 100%, 0.08);
}

.calc-popup__close svg {
  width: 20px;
  height: 20px;
}

/* Заголовок и подзаголовок попапа */
.calc-popup__title {
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.calc-popup__sub {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
  margin-bottom: var(--space-md);
}

/* Форма */
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Поля формы */
.calc-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.calc-field__label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-muted);
}

.calc-field__input {
  padding: 12px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-main);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.calc-field__input::placeholder {
  color: var(--text-muted);
}

.calc-field__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 123, 255, 0.15);
}

.calc-field__error {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
}

/* Загрузка файла */
.calc-file {
  display: block;
  cursor: pointer;
}

/* Нативный инпут скрыт — видна только стилизованная «скрепка» */
.calc-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.calc-file__drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--glass-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--fs-small);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.calc-file:hover .calc-file__drop,
.calc-file__input:focus-visible + .calc-file__drop {
  border-color: var(--blue);
  background: hsla(0, 0%, 100%, 0.08);
}

.calc-file__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.calc-file__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Файл выбран */
.calc-file--attached .calc-file__drop {
  border-style: solid;
  border-color: rgba(46, 123, 255, 0.45);
}

.calc-file--attached .calc-file__name {
  color: var(--white);
}

/* Согласие */
.calc-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.calc-consent__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
  cursor: pointer;
}

.calc-consent__text {
  flex: 1;
}

.calc-consent a {
  color: var(--blue);
  text-decoration: underline;
}

/* Кнопка отправки */
.calc-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--blue), var(--accent-blue));
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-action);
  cursor: pointer;
  transition: transform 0.3s var(--ease-smooth);
}

.calc-submit:hover {
  transform: translateY(-2px);
}

.calc-submit:active {
  transform: translateY(0);
}

.calc-popup__note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Сообщение об успехе */
.calc-popup__success {
  text-align: center;
  padding: var(--space-xl) 0;
}

.calc-popup__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  color: var(--blue-light);
}

.calc-popup__success-text {
  color: var(--text-muted);
  line-height: 1.65;
}

/* Мобильный адаптив */
@media (max-width: 768px) {
  .calc-popup__content {
    max-width: calc(100% - var(--space-md));
    margin: var(--space-md);
    padding: var(--space-md);
  }
}

/* ==== components/contact-cta.css ==== */
/* ============================================================
   CONTACT-CTA — финальный контактный блок (БЕЗ формы)
   ============================================================ */

.contact-cta-grid {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: var(--section-py) 0;
}

.contact-cta-grid .section-subtitle {
  display: block;
  margin-bottom: var(--space-sm);
}

.contact-cta-grid .section-title {
  margin-bottom: var(--space-md);
}

.contact-sub {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 68ch;
  margin-bottom: var(--space-lg);
}

.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* Карточки контактов — точка конверсии: акцентная рамка и подсветка */
.contact-cta-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-xl);
  background: linear-gradient(145deg, rgba(46, 123, 255, 0.14), rgba(46, 123, 255, 0.04) 55%), var(--glass-bg);
  border: 1px solid rgba(46, 123, 255, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(46, 123, 255, 0.14), var(--shadow-card);
  text-decoration: none;
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-cta-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 16px 48px rgba(46, 123, 255, 0.24);
}

.card-label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-value {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--white); /* телефон и почта — белым */
  line-height: 1.2;
}

.card-hint {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.55;
}

.card-hint strong {
  color: var(--white);
  font-weight: 600;
}

/* Trust-блок — под карточками, по центру секции */
.contact-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.contact-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.contact-trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-trust-item strong {
  color: var(--white);
  font-weight: 600;
}

/* Кнопка «Скачать опросный лист» — единый стиль на всех страницах.
   Разметка: <a class="btn btn-outline opros-btn">. Прозрачная, синеватая рамка,
   БЕЗ эффекта перелива (btnSheen со старого сайта не переносим). */
.opros-btn {
  white-space: nowrap;
  border-color: rgba(46, 123, 255, 0.45);
}

.opros-btn:hover {
  background: hsla(0, 0%, 100%, 0.08);
  border-color: var(--blue);
}

.opros-btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--white);
}

/* Планшет */
@media (max-width: 1024px) {
  .contact-cards-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* Мобильный */
@media (max-width: 768px) {
  .contact-cta-grid {
    padding: var(--section-py-mob) 0;
  }

  .contact-cta-grid .section-title {
    font-size: var(--fs-h2);
  }

  .contact-sub {
    font-size: 15px;
  }

  .contact-cta-card {
    padding: var(--space-md);
  }

  .card-value {
    font-size: 20px;
  }

  .contact-trust {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
}

/* Опросный лист: центрирование внутри .container (на старом сайте центрировал флекс-родитель .contact-cta-grid) */
.contact-opros {
  margin-left: auto;
  margin-right: auto;
}

/* ==== components/marquee.css ==== */
﻿/* ============================================================
   MARQUEE — бегущая строка логотипов клиентов
   ============================================================ */

/* Блок логотипов — внутри секции фотогалереи (как в исходнике), компактно */
.clients-section {
  padding: var(--section-py) 0 0;
  overflow: hidden;
}
/* Заголовки/надзаголовки — по левому краю (глобальное правило всех страниц) */
.marquee-container .section-subtitle,
.marquee-container .section-title,
.clients-section .section-subtitle,
.clients-section .section-title {
  display: block;
  text-align: left;
}
.marquee-container .section-title,
.clients-section .section-title { margin-bottom: var(--space-md); }

.marquee-container {
  overflow: hidden;
  /* только вертикальные отступы: горизонтальные даёт .container (padding 0 30px) —
     иначе блок выходит за пределы секций */
  padding-top: var(--space-xl); /* верх — воздух после галереи */
  padding-bottom: var(--space-md); /* низ — компактный перед калькулятором */
}

.marquee-logos {
  overflow: hidden;
}

.marquee-logos-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: var(--space-lg);
  animation: marquee-scroll 60s linear infinite;
}

.client-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease;
}

.client-logo:hover { transform: scale(1.06); }

/* Логотипы в цвете (как на оригинале) — без инверсии */
.client-logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.client-logo:hover img {
  filter: brightness(1.1);
}

/* Анимация прокрутки */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Reduced motion — отключаем анимацию */
@media (prefers-reduced-motion: reduce) {
  .marquee-logos-track {
    animation: none;
  }

  .marquee-logos {
    flex-wrap: wrap;
    justify-content: center;
  }

  .client-logo {
    height: 60px;
  }
}

/* Мобильный */
@media (max-width: 768px) {
  .marquee-container {
    padding: var(--space-md) 0;
  }

  .marquee-logos-track {
    gap: var(--space-sm);
  }

  .client-logo {
    height: 50px;
    padding: 0 var(--space-xs);
  }

  .client-logo img {
    max-height: 100%;
  }
}

/* ==== components/cta-inline.css ==== */
/* ===== Инлайн CTA-форма (после блоков цен) ===== */
.cta-inline-section {
  padding-top: var(--space-xl);
}

.cta-inline {
  padding: var(--space-md) var(--space-lg);
}

.cta-inline__title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--white);
}

.cta-inline__sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.cta-inline-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-sm);
}

.cta-inline-form__row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cta-inline-form__input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: hsla(0, 0%, 100%, 0.04);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cta-inline-form__input--msg {
  flex-grow: 2;
}

.cta-inline-form__input:focus {
  border-color: var(--blue);
  background: hsla(0, 0%, 100%, 0.06);
}

.cta-inline-form__input.cta-inline-form__input--invalid {
  border-color: #ff6b35;
}

.cta-inline-form__file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 13px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.cta-inline-form__file:hover {
  border-color: var(--blue);
  color: var(--white);
}

.cta-inline-form__file input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.cta-inline-form__file svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cta-inline-form__file-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cta-inline-form__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--blue), var(--accent-blue));
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-action);
  cursor: pointer;
  transition: transform 0.3s var(--ease-smooth);
}

.cta-inline-form__submit:hover {
  transform: translateY(-2px);
}

.cta-inline-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Чекбокс согласия (обязательный, 152-ФЗ) */
.cta-inline-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  cursor: pointer;
  width: 100%;
}

.cta-inline-form__consent-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
  cursor: pointer;
}

.cta-inline-form__consent-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.cta-inline-form__consent-text a {
  color: var(--blue);
  text-decoration: underline;
}

.cta-inline-form__consent-check[aria-invalid="true"] {
  outline: 2px solid var(--error, #ff5252);
  outline-offset: 2px;
}

.cta-inline-form__consent-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--error, #ff5252);
}

.cta-inline-form__consent-error[hidden] {
  display: none;
}

.cta-inline__legal {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;  color: var(--text-muted);
  opacity: 0.7;
}

.cta-inline__legal a {
  color: inherit;
  text-decoration: underline;
}

.cta-inline__success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-sm);
  padding: 14px 18px;
  border: 1px solid rgba(46, 123, 255, 0.45);
  border-radius: var(--radius-btn);
  background: rgba(46, 123, 255, 0.10);
  color: var(--white);
}

.cta-inline__success[hidden] {
  display: none;
}

.cta-inline__success svg {
  flex-shrink: 0;
  color: var(--blue);
}

.cta-inline__success p {
  margin: 0;
  font-size: 15px;
}

@media (max-width: 768px) {
  .cta-inline {
    padding: var(--space-sm) var(--space-md);
  }

  .cta-inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-inline-form__input,
  .cta-inline-form__file,
  .cta-inline-form__submit {
    flex: 1 1 auto;
    width: 100%;
  }

  .cta-inline-form__file {
    justify-content: center;
  }

  .cta-inline-form__file-name {
    max-width: none;
  }
}
