/* ============================================
   PROMMONTAZH — Main CSS
   Converted from Figma Make React/TSX project
   ============================================ */

/* Шрифты подключаются локально через /assets/fonts/fonts.css (см. includes/head.php) */

/* ============ CSS VARIABLES ============ */
:root {
  --brand-blue: #5B9DD1;
  --blue-hover: #4A8BC0;
  --brand-blue-light: #62AEDC;
  --page-bg: #0A0C12;
  --surface-1: #0F1117;
  --surface-2: #16181F;
  --surface-hover: #1D2129;
  --border-color: #1E2230;
  --border-subtle: rgba(255,255,255,0.06);
  --text-primary: #FFFFFF;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --text-disabled: #64748B;
  --input-bg: #1A1E28;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ============ UTILITIES ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

.font-mono { font-family: 'JetBrains Mono', monospace; }

.gradient-text {
  background: linear-gradient(135deg, #5B9DD1, #8B7EC8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-bg {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.badge-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(98,174,220,0.08);
  border: 1px solid rgba(98,174,220,0.15);
  color: #62AEDC;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes partnersStrip {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
@keyframes certMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-in-up    { animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-fade-in-left  { animation: fadeInLeft 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-fade-in-right { animation: fadeInRight 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-scale-in      { animation: scaleIn 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-spin          { animation: spin 1s linear infinite; }

.animate-partners-strip {
  animation: partnersStrip 60s linear infinite;
  width: fit-content;
  display: flex;
}
.animate-cert-marquee {
  animation: certMarquee 45s linear infinite;
  width: fit-content;
  display: flex;
}
/* Pause on hover/touch + manual swipe (JS toggles .paused) */
.animate-cert-marquee.paused { animation-play-state: paused; }
.animate-partners-strip.paused { animation-play-state: paused; }
.cert-marquee-wrap { overflow: hidden; }

/* Mobile: сертификаты — нативный горизонтальный скролл с свайпом.
   Отзывчивость: touch-action: pan-x, overscroll-behavior,
   scroll-snap proximity (не липкий), snap-align: start для быстрых свайпов.
   Партнёры оставляем с автопрокруткой. */
@media (max-width: 768px) {
  .cert-marquee-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;   /* плавный momentum-скролл в iOS */
    touch-action: pan-x;                 /* явно даём горизонтальные жесты */
    overscroll-behavior-x: contain;      /* свайп не тянет страницу */
    scrollbar-width: none;
    scroll-snap-type: x proximity;       /* мягкий snap — не держит палец, flick работает */
    scroll-padding-left: 20px;
    scroll-behavior: smooth;
    padding-bottom: 8px;
  }
  .cert-marquee-wrap::-webkit-scrollbar { display: none; }
  .animate-cert-marquee {
    animation: none !important;
    width: max-content !important;
    padding: 4px 16px;                    /* краевые отступы чтобы не обрезало первую/последнюю */
    display: flex;
    gap: 14px;
  }
  .animate-cert-marquee .cert-card {
    scroll-snap-align: start;             /* быстрый flick пропускает несколько карт */
    /* убрали scroll-snap-stop: always — оно тормозит быстрые свайпы */
    width: 200px;                         /* крупнее на мобильной для удобства */
    flex-shrink: 0;
    margin-right: 0;                      /* gap на контейнере заменяет margin */
  }
}
/* Планшеты — промежуточный размер */
@media (min-width: 601px) and (max-width: 768px) {
  .animate-cert-marquee .cert-card { width: 200px; }
}

/* Scroll reveal — JS adds .visible */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
/* На мобилке анимацию появления отключаем — иначе при медленном
   IntersectionObserver контент может «пропасть» до триггера */
@media (max-width: 768px) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10,12,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.site-header nav .header-logo { justify-self: start; }
.site-header nav .header-nav-desktop { justify-self: center; }
.site-header nav .header-cta-desktop { justify-self: end; }
.site-header nav .hamburger { justify-self: end; }
@media (max-width: 1024px) {
  .site-header nav {
    display: flex;
    justify-content: space-between;
  }
  .header-cta-desktop { display: none; }
}
@media (min-width: 1025px) { .site-header nav { height: 72px; } }
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header-nav-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-nav-desktop a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  color: rgba(148,163,184,0.9);
  transition: color 0.2s;
}
.header-nav-desktop a:hover { color: #fff; }
.header-nav-desktop a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.header-cta {
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.header-cta:hover {
  background: var(--blue-hover);
  box-shadow: 0 8px 24px rgba(91,157,209,0.3);
  transform: translateY(-1px);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  color: rgba(148,163,184,0.9);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  line-height: 1;
}
.nav-dropdown-toggle:hover { color: #fff; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: translateY(8px);
  width: 192px;
  background: #13161E;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 6px 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #E2E8F0;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-dropdown-menu a.active-link { color: #62AEDC; }

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  /* Тап-таргет ≥44px (WCAG) — иконка прежняя, увеличена область нажатия */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,12,18,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 20px;
  margin-bottom: 32px;
}
.mobile-menu nav a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.mobile-menu nav a:hover { color: #fff; }

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  /* Затемнённый синий: белый текст проходит WCAG AA (контраст ~5.2:1).
     Светлый --brand-blue (#5B9DD1) давал только ~2.8:1 — провал для CTA. */
  background: #2F6FA8;
  color: #fff;
}
.btn-primary:hover {
  background: #285F8F;
  box-shadow: 0 16px 48px rgba(91,157,209,0.35);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}
.btn-ghost:hover { border-color: var(--brand-blue); color: #fff; background: rgba(91,157,209,0.05); }
.btn-danger {
  background: rgba(239,68,68,0.15);
  color: #EF4444;
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 32px; font-size: 15px; border-radius: 12px; }
/* Hero CTA — текст крупнее обычного btn-lg (paddings те же — кнопка размером не меняется) */
.hero-actions > .btn-primary.btn-lg { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
@media (max-width: 540px) {
  .hero-actions > .btn-primary.btn-lg { font-size: 16px; }
}
.btn-icon {
  width: 32px; height: 32px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.btn-icon:hover { color: #fff; background: rgba(255,255,255,0.05); }
.btn-icon.danger:hover { color: #EF4444; background: rgba(239,68,68,0.1); }

/* ============ FORM ELEMENTS ============ */
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(91,157,209,0.15);
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(148,163,184,0.5); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-input.with-icon { padding-left: 40px; }
.form-input-wrap { position: relative; }
.form-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}
.form-group { margin-bottom: 16px; }

/* Upload zone */
.upload-zone {
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: rgba(91,157,209,0.4);
  background: rgba(91,157,209,0.04);
}
.upload-zone p { font-size: 14px; color: rgba(255,255,255,0.4); margin-top: 8px; }

/* ============ CARDS ============ */
.card {
  background: var(--surface-1);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(255,255,255,0.1); }
.card-glass {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px;
}

/* ============ BADGES ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
}
.badge-success  { background: rgba(34,197,94,0.1);  color: #22C55E; border-color: rgba(34,197,94,0.2); }
.badge-warning  { background: rgba(245,158,11,0.1); color: #F59E0B; border-color: rgba(245,158,11,0.2); }
.badge-error    { background: rgba(239,68,68,0.1);  color: #EF4444; border-color: rgba(239,68,68,0.2); }
.badge-info     { background: rgba(91,157,209,0.1); color: #5B9DD1; border-color: rgba(91,157,209,0.2); }
.badge-neutral  { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.1); }

/* ============ TABLES ============ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.data-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.1s;
}
.data-table tbody tr:hover { background: rgba(91,157,209,0.03); }
.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  vertical-align: middle;
}
.data-table .row-actions { opacity: 0; transition: opacity 0.15s; }
.data-table tr:hover .row-actions { opacity: 1; }

/* ============ MODALS ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  background: #13161E;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px 32px 32px;
  max-width: 448px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.modal-backdrop.open .modal { transform: scale(1); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title { font-size: 20px; font-weight: 700; color: #fff; }
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  transition: all 0.15s;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ============ TOASTS ============ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(13,15,20,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  min-width: 280px;
  font-size: 14px;
  color: #E2E8F0;
  animation: slideInRight 0.3s cubic-bezier(0.16,1,0.3,1);
  border-left: 4px solid;
}
.toast-success { border-left-color: #22C55E; }
.toast-error   { border-left-color: #EF4444; }
.toast-info    { border-left-color: #5B9DD1; }
.toast-warning { border-left-color: #F59E0B; }

/* ============ LOADING SPINNER ============ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--page-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 32px;
  padding: 64px 0 48px;
}
.site-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.site-footer .footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}
/* Фиксируем разумный диапазон ширин колонок футера — только на ПК */
@media (min-width: 1025px) {
  .site-footer .footer-grid > * { flex: 0 1 auto; min-width: 0; }
  .site-footer .footer-grid > *:nth-child(1) { max-width: 300px; }
  /* Колонка «Навигация» — шире, чтобы влезли две колонки ссылок */
  .site-footer .footer-grid > *:nth-child(2) { min-width: 220px; }
  .site-footer .footer-grid > *:nth-child(3) { min-width: 220px; }
  .site-footer .footer-grid > *:nth-child(4) { min-width: 200px; }
  /* Список ссылок навигации в 2 столбца на ПК */
  .site-footer .footer-col > ul {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: 20px;
    row-gap: 12px;
  }
  .site-footer .footer-col > ul li + li { margin-top: 0; }
}
/* Footer-аккордеон: <details> = одна колонка. На ПК всегда раскрыто, маркера нет.
   На мобилке (≤640px) сворачивается по тапу, появляется шеврон.                */
.footer-col { display: block; }
.footer-col > summary {
  list-style: none;
  cursor: default;
  display: block;
}
.footer-col > summary::-webkit-details-marker { display: none; }
.footer-col > summary::marker { content: ''; }
.footer-col[open] > summary { margin-bottom: 0; }
.footer-col > summary > h4 { display: inline-block; margin: 0 0 16px; }
.site-footer h4, .site-footer h3 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.site-footer .footer-hours-label { color: #E2E8F0; font-weight: 600; margin-top: 10px; }
.site-footer .footer-phone,
.site-footer .footer-email { font-size: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li + li { margin-top: 10px; }
.site-footer ul a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.site-footer ul a:hover { color: #fff; }
.site-footer .footer-contact { font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.site-footer .footer-phone, .site-footer .footer-email {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: color 0.2s;
}
.site-footer .footer-phone:hover,
.site-footer .footer-email:hover { color: var(--brand-blue-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  color: var(--text-disabled);
}

/* Cookie-баннер — 152-ФЗ согласие на использование cookies.
   Показывается один раз при первом заходе, сохранение в localStorage на 12 месяцев. */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9990;
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1), transform 0.4s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner-inner {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 124px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(15,17,23,0.97) 0%, rgba(10,12,18,0.98) 100%);
  border: 1px solid rgba(91,157,209,0.28);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.cookie-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(91,157,209,0.12);
  border: 1px solid rgba(91,157,209,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-banner-body { flex: 1; min-width: 0; }
.cookie-banner-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.cookie-banner-text {
  max-width: 100%;
  font-size: 14px;
  color: rgba(226,232,240,0.72);
  line-height: 1.45;
  margin: 0;
}
.cookie-banner-text a {
  color: #62AEDC;
  text-decoration: none;
  border-bottom: 1px dashed rgba(98,174,220,0.4);
}
.cookie-banner-text a:hover { color: #8CC0E3; border-bottom-color: rgba(140,192,227,0.7); }
.cookie-details-link {
  display: inline-flex;
  margin-top: 8px;
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s;
}
.cookie-details-link:hover { color: #fff; }
.cookie-banner-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  padding-top: 0;
}
.cookie-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.cookie-btn-secondary {
  order: 2;
  min-width: 0;
  color: rgba(226,232,240,0.86);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}
.cookie-btn-secondary:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
.cookie-btn-primary {
  order: 1;
  min-width: 0;
  background: linear-gradient(135deg, #5B9DD1 0%, #4A8BC0 100%);
  color: #fff; border: none;
  box-shadow: 0 6px 18px -4px rgba(91,157,209,0.4);
}
.cookie-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -6px rgba(91,157,209,0.55);
}
.cookie-btn-primary:active { transform: translateY(0); }

@media (max-width: 720px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .cookie-banner-inner {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px 12px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 14px;
  }
  .cookie-banner-icon {
    width: 36px;
    height: 36px;
  }
  .cookie-banner-title {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .cookie-banner-text {
    max-width: none;
    font-size: 13px;
  }
  .cookie-banner-actions {
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 0;
  }
  .cookie-btn {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
  }
  .cookie-details-link { margin-top: 8px; }
}

/* Подпись «Разработка сайта» — редактируется в админке → Подвал. */
.footer-credit {
  padding: 14px 0 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(100,116,139,0.8);
  letter-spacing: 0.01em;
}
.footer-credit a {
  color: rgba(148,163,184,0.85);
  text-decoration: none;
  border-bottom: 1px dashed rgba(148,163,184,0.25);
  transition: color 0.2s, border-color 0.2s;
}
.footer-credit a:hover {
  color: #62AEDC;
  border-bottom-color: rgba(98,174,220,0.5);
}

/* Соцсети в подвале и на странице контактов */
.social-btn {
  --brand: #62AEDC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 3px;                   /* иконка занимает квадрат целиком, 3px воздуха */
  border-radius: 10px;
  background: rgba(98,174,220,0.08);
  border: 1px solid rgba(98,174,220,0.18);
  color: #62AEDC;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.social-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px var(--brand);
}
/* Любая иконка (svg или img) занимает всё внутреннее пространство квадрата. */
.social-btn svg,
.social-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Большой формат для страницы контактов */
.social-btn-lg {
  width: 56px; height: 56px;
  padding: 3px;
  border-radius: 14px;
}
.scroll-top-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(98,174,220,0.1);
  color: #62AEDC;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.scroll-top-btn:hover { background: #62AEDC; color: #fff; }
@media (max-width: 1024px) {
  .site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    justify-content: stretch;
  }
}
@media (max-width: 640px) {
  .site-footer .container { padding: 0 20px; }
  .site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    justify-content: stretch;
  }
  .site-footer .footer-logo { justify-content: center; }
  .site-footer .footer-desc { max-width: 360px; margin: 0 auto 8px; font-size: 13px; line-height: 1.6; }
  /* Все колонки футера на мобилке — с разделителем сверху и одинаковым внутренним отступом */
  .site-footer .footer-grid > * + * {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
    margin-top: 18px;
  }
  .site-footer .footer-grid > div > h4 { margin-top: 0; margin-bottom: 6px; text-align: center; }
  /* Второй h4 в одной колонке (например, "Юр.инфо" под "Офис") — отступ сверху меньше */
  .site-footer .footer-grid > div > h4[style*="margin-top"] { margin-top: 14px !important; }
  /* Аккордеон-колонка (Навигация) — без двойного бордера, заголовок+шеврон по центру */
  .footer-col { padding: 0; }
  .footer-col > summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;     /* h4 и шеврон вместе по центру */
    gap: 12px;
    padding: 4px 0;
    text-align: center;
  }
  .footer-col > summary > h4 {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .footer-col > summary::after {
    content: '';
    width: 10px; height: 10px;
    border-right: 2px solid rgba(255,255,255,0.5);
    border-bottom: 2px solid rgba(255,255,255,0.5);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.25s;
  }
  .footer-col[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .footer-col[open] { padding-bottom: 18px; }
  .footer-col > ul,
  .footer-col > .footer-contact { padding-top: 12px; }
  .site-footer ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .site-footer ul li + li { margin-top: 10px; }
  .site-footer ul a { font-size: 14px; display: inline-block; padding: 7px 0; }
  .site-footer .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.65;
    font-size: 13px;
    text-align: center;
  }
  .site-footer .footer-contact br { display: none; }
  .site-footer .footer-contact p { margin-top: 4px; }
  .site-footer .footer-phone,
  .site-footer .footer-email { font-size: 16px; margin-top: 10px; text-align: center; }
  .footer-socials { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding: 24px 0 16px; border-top: 1px solid rgba(255,255,255,0.08); }
  .footer-bottom p { font-size: 12px; }
}

/* ============ HERO SECTION ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,18,0.4) 0%, rgba(10,12,18,0.75) 50%, rgba(10,12,18,1) 100%);
}
.hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  border-radius: 50%;
  opacity: 0.15;
  background: radial-gradient(ellipse, #5B9DD1 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 10;
  padding: 80px 0;
  max-width: 900px;
}
.hero h1 {
  font-size: clamp(40px, 6.8vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 24px;
}
.hero p {
  font-size: clamp(15px, 1.8vw, 19px);
  color: rgba(226,232,240,0.8);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.hero-cta-note { margin-top: 14px; font-size: 13px; color: rgba(226,232,240,0.55); letter-spacing: 0.02em; }
@media (max-width: 540px) { .hero-cta-note { font-size: 12px; margin-top: 12px; } }
.hero-actions > .btn-lg { flex: 1 1 0; min-width: 220px; max-width: 260px; justify-content: center; }
@media (max-width: 540px) {
  .hero-actions > .btn-lg { flex: 1 1 100%; min-width: 0; max-width: none; }
}
.hero-bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 128px;
  background: linear-gradient(to top, #0A0C12, transparent);
  pointer-events: none;
}

/* ============ STATS BAR ============ */
.stats-bar {
  background: var(--page-bg);
  padding: 16px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
@media (max-width: 1024px) { .stats-bar { padding: 12px 0 36px; } }
@media (max-width: 640px) { .stats-bar { padding: 8px 0 28px; } }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.stat-card {
  text-align: center;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}
.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: #62AEDC;
  margin-bottom: 4px;
  white-space: nowrap;
}
.stat-label { font-size: 13px; color: var(--text-muted); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2,1fr); gap: 16px; } }
@media (max-width: 540px) {
  .stats-grid { gap: 12px; }
  .stat-card { padding: 20px 12px; }
  .stat-number { font-size: clamp(24px, 7vw, 34px); }
  .stat-label { font-size: 12px; }
}
@media (max-width: 380px) {
  .stat-number { font-size: clamp(22px, 6.4vw, 28px); }
}

/* ============ PARTNERS MARQUEE ============ */
.partners-section {
  background: #0D0F14;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  position: relative;
}
.partner-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 56px;
  border-right: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: color 0.25s;
  position: relative;
  z-index: 2;
}
.partner-item.is-center { color: #62AEDC; }
.partner-item img {
  max-height: 48px;
  max-width: 140px;
  width: auto;
  filter: grayscale(1) brightness(2);
  opacity: 0.5;
  transition: filter 0.18s ease, opacity 0.18s ease, transform 0.18s cubic-bezier(0.16,1,0.3,1);
}
/* Авто-подсветка элемента, проходящего через центр (без drop-shadow — свечение
   делает фиксированный ::before на секции; так подсветка всегда визуально по центру). */
.partner-item.is-center img {
  filter: grayscale(0) brightness(1.05);
  opacity: 1;
  transform: scale(1.06);
}
/* PC hover (по запросу) — пауза + подсветка ИМЕННО того логотипа, что под курсором.
   Включается только на устройствах с указателем (мышь/трекпад), не для touch. */
@media (hover: hover) and (pointer: fine) {
  .animate-partners-strip:hover { animation-play-state: paused; }
  /* Когда какой-то лого под мышью — отключаем авто-центр-подсветку */
  .animate-partners-strip.has-hover .partner-item.is-center {
    color: rgba(255,255,255,0.35);
  }
  .animate-partners-strip.has-hover .partner-item.is-center img {
    filter: grayscale(1) brightness(2);
    opacity: 0.5;
    transform: none;
  }
  .partner-item.is-hover { color: #62AEDC; }
  .partner-item.is-hover img {
    filter: grayscale(0) drop-shadow(0 0 16px rgba(98,174,220,0.9));
    opacity: 1;
    transform: scale(1.1);
  }
}
@media (max-width: 768px) { .partner-item img { max-height: 34px; max-width: 110px; } }

/* ============ SECTIONS ============ */
.section { padding: 64px 0; }
.section-dark { background: var(--page-bg); }
.section-surface { background: #0D0F14; }

.section-header { margin-bottom: 40px; }
.section-header.center { text-align: center; }

/* Унифицированные отступы секций по брейкпоинтам */
@media (max-width: 1024px) {
  .section { padding: 52px 0; }
  .section-header { margin-bottom: 32px; }
}
@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 24px; }
  .section-header .badge-label { margin-bottom: 12px !important; }
  /* На мобилке все заголовки секций главной — по центру (на ПК остаются как были) */
  .section-header,
  .section-header.center { text-align: center; }
  .section-header .section-title,
  .section-header .section-subtitle { text-align: center; }
  .section-header .section-subtitle { margin-left: auto; margin-right: auto; }
  /* Блок «О предприятии» — текстовая колонка целиком по центру (badge-label inline-block центрируется через text-align на родителе) */
  .about-scale-grid > .reveal:first-child { text-align: center; }
  /* «Связаться / Обсудим проект» — то же */
  .contact-grid > .reveal:first-child { text-align: center; }
  /* Контакт-строки (иконка + текст в flex) — оставляем по центру всей колонки */
  .contact-grid .contact-info-item { justify-content: center; }
  /* Шапка «Реализованные проекты» — заголовок и ссылка ВСЕ ПРОЕКТЫ обе по центру */
  .projects-header-row { justify-content: center; align-items: center; }
  .projects-header-row .section-title { text-align: center; width: 100%; }
}

.section-title {
  font-size: clamp(28px,4vw,52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.section-header.center .section-subtitle { margin: 0 auto; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  cursor: pointer;
}
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.service-card:hover img { transform: scale(1.05); }

/* Декоративный фон для карточек без обложки —
   тёмный градиент + мягкое ambient-свечение (голубое сверху слева, фиолетовое снизу справа). */
.service-card-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 15% 15%, rgba(91,157,209,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 95%, rgba(168,130,220,0.14) 0%, transparent 55%),
    linear-gradient(135deg, #1a1d28 0%, #13161E 50%, #0D0F14 100%);
  z-index: 1;
  overflow: hidden;
}
.service-card-placeholder::before {
  /* Тонкий паттерн из точек — едва заметный, добавляет текстуру */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,18,0.92) 0%, rgba(10,12,18,0.75) 55%, rgba(10,12,18,0.4) 100%);
}
.service-card-border {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s, box-shadow 0.3s;
  pointer-events: none;
}
.service-card:hover .service-card-border {
  border-color: rgba(98,174,220,0.3);
  box-shadow: 0 20px 60px rgba(98,174,220,0.1);
}
.service-card-content {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  z-index: 10;
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(98,174,220,0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: rgba(98,174,220,0.55);
}
.service-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: rgba(226,232,240,0.7); line-height: 1.6; }

@media (max-width: 1024px) and (min-width: 769px) { .services-grid { grid-template-columns: 1fr 1fr; } }

/* Projects grid */
.projects-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
/* Шапка секции «Реализованные проекты»: заголовок + ссылка «ВСЕ ПРОЕКТЫ» */
.projects-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.projects-all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 700;
  color: #62AEDC;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s, transform 0.2s;
}
.projects-all-link:hover { color: #8FC9EE; transform: translateX(4px); }
.projects-all-link i { width: 1.1em; height: 1.1em; stroke-width: 2; }
@media (max-width: 640px) {
  .projects-header-row { align-items: flex-start; }
  .projects-all-link { font-size: 13px; }
}

.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: clamp(220px,30vw,380px);
  cursor: pointer;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,18,0.92) 0%, rgba(10,12,18,0.6) 55%, rgba(10,12,18,0.3) 100%);
  z-index: 2;                 /* поверх картинки и CSS-плейсхолдера */
}
.project-card-info {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 28px;
  z-index: 3;                 /* текст всегда сверху */
}
.project-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.project-card p { font-size: 14px; color: var(--text-muted); }

/* Certificates marquee */
.cert-card {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 210/297;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  transition: transform 0.3s;
}
.cert-card:hover { transform: scale(1.05); }

/* Contact section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(98,174,220,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
/* На узких экранах принудительный <br /> в «ОБСУДИМ ПРОЕКТ» убираем — помещается в одну строку */
@media (max-width: 640px) {
  .contact-title br { display: none; }
}

/* About page */
.about-content { max-width: 900px; margin: 0 auto; padding: 120px 20px 80px; }

/* Унифицированные отступы внутренних страниц (контакты, новости, продукция,
   проекты, тендеры, вакансии, политика, cookies, consent, история).
   На пейджах используется inline-стиль `padding-top:120px;padding-bottom:80px`
   на корневом <div> + inline `margin-bottom:48px/64px` на .page-hero — переопределяем. */
@media (max-width: 768px) {
  .about-content { padding: 96px 20px 48px; }
  .about-content .page-hero { margin-bottom: 24px !important; }
  div[style*="padding-top:120px"][style*="padding-bottom:80px"] {
    padding: 96px 20px 48px !important;
  }
  .container .page-hero[style*="padding-top:0"] { margin-bottom: 24px !important; }
}
@media (max-width: 540px) {
  .about-content { padding: 88px 16px 36px; }
  div[style*="padding-top:120px"][style*="padding-bottom:80px"] {
    padding: 88px 16px 36px !important;
  }
}
.about-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 40px 48px;
  margin-bottom: 32px;
}
.about-block-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}
/* На мобилке h1 («О компании») и h2 («ООО Проммонтаж») одного размера */
@media (max-width: 768px) {
  .about-content .page-hero h1,
  .about-block-title { font-size: clamp(26px, 6vw, 32px); line-height: 1.15; }
}
.about-text { color: rgba(226,232,240,0.85); line-height: 1.8; font-size: 15px; }
.about-text p + p { margin-top: 20px; }
.director-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 32px 0; align-items: start; }
.director-photo {
  width: 112px; height: 112px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ========== CONSENT CHECKBOX (round, styled) ========== */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  flex-shrink: 0;
  margin: 1px 0 0 0;
  position: relative;
  transition: all 0.2s;
}
.consent-row input[type="checkbox"]:hover {
  border-color: rgba(98,174,220,0.55);
  background: rgba(98,174,220,0.06);
}
.consent-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(98,174,220,0.25);
}
.consent-row input[type="checkbox"]:checked {
  background: #62AEDC;
  border-color: #62AEDC;
}
.consent-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-text {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.55;
  flex: 1;
  min-width: 0;
}
.consent-text a {
  color: #62AEDC;
  text-decoration: none;
  border-bottom: 1px solid rgba(98,174,220,0.3);
  transition: all 0.2s;
}
.consent-text a:hover {
  color: #8CC0E3;
  border-bottom-color: #8CC0E3;
}
.consent-row {
  flex-wrap: wrap;
}
.consent-error {
  display: none;
  flex: 1 1 100%;
  margin: 10px 0 0 0;
  padding: 9px 14px 9px 38px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.35);
  border-radius: 10px;
  font-size: 12.5px;
  color: #FCA5A5;
  position: relative;
  animation: consentErrIn 0.22s cubic-bezier(0.16,1,0.3,1);
}
.consent-error::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23EF4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>") center/contain no-repeat;
}
.consent-row.invalid input[type="checkbox"] {
  border-color: #EF4444;
  background: rgba(239,68,68,0.08);
  animation: consentShake 0.4s cubic-bezier(0.36,0.07,0.19,0.97);
}
.consent-row.invalid .consent-error {
  display: block;
}
@keyframes consentShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
@keyframes consentErrIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== FILTER TABS (segmented control) ========== */
.filter-tabs {
  display: flex;
  justify-content: center;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  margin: 0 auto 48px;
  max-width: 100%;
}
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #94A3B8;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-tab em {
  display: none;   /* счётчики скрыты по запросу */
}
.filter-tab:hover { color: #E2E8F0; }
.filter-tab.active {
  background: #5B9DD1;
  color: #fff;
  box-shadow: 0 4px 14px rgba(91,157,209,0.25);
}
.filter-tab.active em { opacity: 0.85; }
@media (max-width: 560px) {
  .filter-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    width: 100%;
    gap: 4px;
    padding: 4px;
  }
  .filter-tab {
    justify-content: center;
    padding: 10px 6px;
    font-size: 13px;
    gap: 4px;
  }
  .filter-tab em { font-size: 11px; }
}

/* About / Production Scale — 2 cols desktop, 1 col mobile */
.about-scale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;   /* фото-колонка растягивается до высоты текста */
}
/* Запрещаем grid-ячейкам разрастаться больше колонки из-за неразрывных
   текстов (NBSP-цепочек после типографики). */
.about-scale-grid > * { min-width: 0; }
.about-scale-grid p,
.about-scale-grid h2,
.about-scale-grid .cap-card { overflow-wrap: break-word; word-wrap: break-word; }
@media (max-width: 900px) {
  .about-scale-grid { grid-template-columns: 1fr; gap: 40px; }
}
/* About: фото-слайдшоу растягивается во всю высоту колонки (выровнено с текстом) */
.about-photo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.about-slideshow {
  position: relative;
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 480px;
}

/* «Возможности» в блоке О предприятии — точка-маркер слева на ПК, без точки и по центру на мобилке */
.cap-card { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.cap-card__dot { width: 8px; height: 8px; border-radius: 50%; background: #62AEDC; margin-top: 6px; flex-shrink: 0; }
.cap-card__body h4, .cap-card__body h3 { font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 2px; }
.cap-card__body p { font-size: 14px; color: #94A3B8; }

/* На мобилке фото производства + бейджи прячем — текст и так длинный */
@media (max-width: 640px) {
  .about-photo-wrap { display: none; }
  .about-scale-grid { gap: 24px; }
  .cap-card { display: block; text-align: center; }
  .cap-card__dot { display: none; }
}

/* About badges — внутри фото, по углам */
.about-badge {
  position: absolute;
  width: 138px;
  min-height: 104px;
  padding: 16px 12px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(98,174,220,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  z-index: 2;
}
.about-badge--tl { top: 16px; left: 16px; }
.about-badge--br { bottom: 16px; right: 16px; }
.about-badge__value { font-size: clamp(30px, 2.8vw, 40px); font-weight: 700; color: #fff; line-height: 1; }
.about-badge__label { margin-top: 7px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.92); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.25; }
@media (max-width: 540px) {
  .about-badge { width: 124px; min-height: 96px; padding: 12px 10px; border-radius: 14px; }
  .about-badge--tl { top: 12px; left: 12px; }
  .about-badge--br { bottom: 12px; right: 12px; }
  .about-badge__value { font-size: clamp(26px, 6.8vw, 34px); }
  .about-badge__label { font-size: 11px; margin-top: 5px; }
}

/* Director — text wraps around photo card (float layout) */
.director-wrap {
  margin: 32px 0;
}
.director-wrap::after { content: ''; display: table; clear: both; }
.director-float {
  float: left;
  width: 260px;
  margin: 4px 32px 20px 0;
  padding: 18px;
  background: rgba(98,174,220,0.04);
  border: 1px solid rgba(98,174,220,0.08);
  border-radius: 14px;
  shape-outside: margin-box;
}
.director-float .director-photo-sq { margin-bottom: 12px; }
.director-photo-sq {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 16px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.director-photo-sq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.director-initials {
  font-size: 48px;
  font-weight: 700;
  color: rgba(98,174,220,0.35);
  letter-spacing: -0.02em;
}
.director-float .director-role {
  font-size: 13px;
  color: #94A3B8;
  margin: 0 0 6px;
  line-height: 1.5;
}
.director-float .director-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.director-narrative {
  color: #94A3B8;
  line-height: 1.7;
  font-size: 15px;
  text-align: left;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 8 3 3;
  overflow-wrap: break-word;
  word-break: normal;
  orphans: 3;
  widows: 3;
}
/* Первый параграф плотно прижат к верху карточки — не оставляет висячих строк после обтекания */
.director-narrative p { margin: 0 0 14px; }
.director-narrative p:last-child { margin-bottom: 0; }
/* Если одиночная короткая строка "вываливается" после карточки — минимизируем эффект */
.director-narrative p:first-of-type { min-height: 1em; }
@media (max-width: 768px) {
  .director-float {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 24px;
  }
  .director-narrative { text-align: left; }
}
.advantages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.advantage-item { display: flex; align-items: flex-start; gap: 12px; }
.advantage-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #62AEDC;
  margin-top: 8px;
  flex-shrink: 0;
}
/* Десктоп: показываем единый параграф, мобильные чанки скрыты */
.director-narrative .narrative-desktop { display: block; }
.director-narrative .narrative-mobile { display: none; }
@media (max-width: 768px) {
  .about-block { padding: 24px; }
  .director-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .advantages-title { text-align: center; }
  /* На мобилке — наоборот: единый абзац скрыт, видим разбитые чанки */
  .director-narrative .narrative-desktop { display: none; }
  .director-narrative .narrative-mobile { display: block; }
}

/* Contacts page */
.contacts-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 40px; }
@media (max-width: 1100px) { .contacts-cards { grid-template-columns: repeat(2,1fr); } }
.contact-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.contact-card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(98,174,220,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.contact-card h3 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.contact-card a { font-size: 16px; color: #62AEDC; font-weight: 600; }
@media (max-width: 768px) { .contacts-cards { grid-template-columns: 1fr; } }

/* Соцсети в карточке «Телефон» — Вариант 3. Авто-центровка: flex + justify-content:center.
   Количество иконок не задаётся жёстко — центруются сами, при 6+ переносится на следующую строку.
   Hover красит фон брендовым цветом (--brand) платформы. */
.contact-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.contact-social-btn {
  --brand: #5B9DD1;
  width: 44px;
  height: 44px;
  padding: 4px;                             /* минимальный отступ от края квадрата */
  border-radius: 10px;
  background: rgba(91,157,209,0.08);
  border: 1px solid rgba(91,157,209,0.14);
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
/* Иконка растягивается на всё внутреннее пространство квадрата (44 - 4*2 = 36px). */
.contact-social-btn svg,
.contact-social-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.contact-social-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px var(--brand);
}
/* При 6+ иконках ужимаем сам квадрат, иконка всё равно занимает его целиком */
.contact-socials:has(> :nth-child(6)) .contact-social-btn { width: 40px; height: 40px; }
.contact-socials:has(> :nth-child(8)) .contact-social-btn { width: 36px; height: 36px; }

/* Page hero (inner pages) */
.page-hero {
  padding-top: 120px;
  padding-bottom: 48px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px,5vw,64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
  word-break: break-word;
  hyphens: auto;
}
.page-hero p { font-size: 17px; color: var(--text-muted); max-width: 520px; margin: 0 auto; }
@media (max-width: 480px) {
  .page-hero h1 { font-size: 26px; letter-spacing: -0.02em; }
  .page-hero p { font-size: 15px; }
}

/* Scroll bar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--page-bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============ FIXES & MISSING STYLES ============ */

/* Partners & cert marquees keep spinning on hover — only логотипы подсвечиваются */

/* Hero children hidden before JS animates */
.hero-content h1,
.hero-content p,
.hero-content .hero-actions { will-change: opacity, transform; }

/* Hamburger — hide spans, use Lucide icons */
.hamburger span { display: none; }
.hamburger { background: none; border: none; cursor: pointer; padding: 6px; align-items: center; justify-content: center; display: none; }
@media (max-width: 1024px) { .hamburger { display: flex; } }

/* Mobile menu link item hover */
.mobile-menu nav a:hover { color: #62AEDC !important; }

/* Mobile CTA in menu */
.mobile-menu .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
}

/* Upload button in modal */
.upload-btn:hover {
  border-color: #62AEDC !important;
  color: #62AEDC !important;
}

/* Spinner in submit button */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Modal success animation */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Arrow in CTA on hover */
.btn-primary i[data-lucide="arrow-right"] {
  transition: transform 0.2s ease;
  display: inline-block;
}

/* Responsive fixes */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  /* services-grid + projects-grid → horizontal carousel on mobile */
  .services-grid,
  .projects-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding: 0 16px;
    gap: 14px !important;
    padding: 4px 16px 16px;
    margin: 0 -16px;
  }
  .services-grid::-webkit-scrollbar,
  .projects-grid::-webkit-scrollbar { display: none; }
  .services-grid > *,
  .projects-grid > * {
    flex: 0 0 82% !important;
    min-width: 82% !important;
    scroll-snap-align: start;
  }
  .director-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  div[style*="repeat(2,1fr)"] { grid-template-columns: 1fr !important; }
  div[style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  div[style*="repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
}

/* ── PM Dropzone ─────────────────────────────────────── */
.pm-dropzone { position: relative; }

.pm-dz-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  border: 1.5px dashed rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.pm-dz-zone:hover,
.pm-dz-zone.pm-dz-dragover {
  border-color: rgba(91,157,209,0.55);
  background: rgba(91,157,209,0.05);
}
.pm-dz-icon {
  width: 24px;
  height: 24px;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.pm-dz-zone-text {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  line-height: 1.4;
}
.pm-dz-zone-text u { color: #5B9DD1; text-underline-offset: 2px; }

.pm-dz-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
  text-align: center;
  line-height: 1.4;
}

.pm-dz-error {
  font-size: 12px;
  color: #EF4444;
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(239,68,68,0.08);
  border-radius: 6px;
}

.pm-dz-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }

.pm-dz-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(91,157,209,0.06);
  border: 1px solid rgba(91,157,209,0.18);
  border-radius: 8px;
}
.pm-dz-item-ext {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(91,157,209,0.15);
  color: #5B9DD1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pm-dz-item-info { flex: 1; min-width: 0; }
.pm-dz-item-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-dz-item-size { font-size: 11px; color: rgba(255,255,255,0.40); margin-top: 2px; }

.pm-dz-item-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}
.pm-dz-item-remove:hover { color: #EF4444; }
/* ── /PM Dropzone ────────────────────────────────────── */
