/* ============================================================
   DESIGN SYSTEM — ПромПредел
   Экспертиза промышленной безопасности
   v2.0 — Premium B2B / Industrial Redesign
   Mobile-first approach | 12-column concept
   ============================================================ */

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  /* Primary — Deep Navy */
  --color-primary:       #0D2137;
  --color-primary-mid:   #183553;
  --color-primary-light: #254E75;

  /* Accent — Industrial Amber */
  --color-accent:        #C8631A;
  --color-accent-hover:  #A8500F;
  --color-accent-light:  #E8914A;
  --color-accent-pale:   #FBF0E6;

  /* Steel & Text */
  --color-graphite:      #1E2D3D;
  --color-body:          #3D4F60;
  --color-muted:         #6B7B8E;
  --color-light:         #A0AFBD;

  /* Backgrounds */
  --color-bg:            #F2F5F8;
  --color-bg-alt:        #E8EEF4;
  --color-white:         #FFFFFF;

  /* Borders */
  --color-border:        #CBD5DF;
  --color-border-light:  #DFE8EF;

  /* Status */
  --color-success:       #1A6B35;
  --color-error:         #B52020;

  /* Typography */
  --font-heading: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Spacing */
  --space-xs:    8px;
  --space-sm:    16px;
  --space-md:    24px;
  --space-lg:    40px;
  --space-xl:    64px;

  /* Layout */
  --container-width: 1240px;
  --section-py:      72px;
  --gap:             24px;

  /* Border radius */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  20px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(13, 33, 55, 0.07);
  --shadow-sm:  0 2px 10px rgba(13, 33, 55, 0.09);
  --shadow-md:  0 6px 24px rgba(13, 33, 55, 0.13);
  --shadow-lg:  0 12px 40px rgba(13, 33, 55, 0.18);
  --shadow-xl:  0 20px 60px rgba(13, 33, 55, 0.22);

  /* Transitions */
  --transition:      0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
svg { flex-shrink: 0; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-graphite);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.875rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: var(--space-sm);
}
h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 12px;
}
h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

p { margin-bottom: var(--space-sm); color: var(--color-body); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.75;
  color: var(--color-muted);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 580px;
  margin: 14px auto 0;
  line-height: 1.7;
  text-align: center;
}

.text-center  { text-align: center; }
.text-accent  { color: var(--color-accent); }
.text-white   { color: var(--color-white); }
.text-muted   { color: var(--color-muted); }

/* ─── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px)  { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 40px; } }

/* ─── Grid ───────────────────────────────────────────────── */
.grid { display: grid; gap: var(--gap); }

/* Mobile-first: single column → progressive enhancement */
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 600px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(200, 99, 26, 0.32);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: 0 6px 22px rgba(200, 99, 26, 0.42);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary-mid);
  border-color: var(--color-primary-mid);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.btn-sm  { padding: 10px 20px; font-size: 0.75rem; }
.btn-lg  { padding: 17px 40px; font-size: 0.88rem; }

/* ─── Scroll Animation ───────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0s);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Sections ───────────────────────────────────────────── */
.section       { padding: var(--section-py) 0; }
.section-alt   { background: var(--color-bg); }
.section-dark  { background: var(--color-primary); color: var(--color-white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-white); }
.section-dark p { color: rgba(255, 255, 255, 0.75); }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 {
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--color-accent);
  margin: 18px auto 0;
  border-radius: 2px;
}
.section-header .section-label { justify-content: center; }
.section-header .section-label::before { display: none; }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--color-white);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* Top bar (desktop only) */
.header-top {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8rem;
  padding: 7px 0;
  display: none;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.header-top-contacts {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
}
.header-top a {
  color: rgba(255, 255, 255, 0.85);
}
.header-top a:hover { color: var(--color-white); }
.header-top-right {
  font-size: 0.78rem;
  opacity: 0.7;
}

/* Main bar */
.header-main { padding: 13px 0; }
.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo img { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.logo-desc {
  font-size: 0.65rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  max-width: 170px;
  line-height: 1.3;
  /* Скрываем на промежуточных размерах чтобы не распирало хедер */
  display: none;
}

/* Nav */
.main-nav {
  /* Mobile: slide-in panel */
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--color-white);
  padding: 80px 24px 40px;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  overflow-y: auto;
  z-index: 998;
}
.main-nav.active {
  transform: translateX(0);
  box-shadow: var(--shadow-xl);
}

/* Mobile nav list */
.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}
.main-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-graphite);
  border-bottom: 1px solid var(--color-border-light);
  border-radius: 0;
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--color-accent); }

/* Mobile dropdown: always visible */
.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0 0 8px 16px;
}
.main-nav .dropdown a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 9px 0;
  color: var(--color-body);
  border-bottom: none;
}
.main-nav .dropdown a:hover { color: var(--color-accent); }

/* Mobile nav extras */
.mobile-nav-extras {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav-phone-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-phone {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  margin-bottom: 4px;
}
.mobile-nav-phone--secondary {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0;
}

/* Backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 33, 55, 0.55);
  z-index: 997;
  backdrop-filter: blur(3px);
}
.nav-backdrop.active { display: block; }

/* Mobile close button */
.nav-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-muted);
  transition: all var(--transition);
}
.nav-close:hover { background: var(--color-bg); color: var(--color-graphite); }

/* Header CTA */
.header-cta {
  display: none;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-phone {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.header-phone:hover { color: var(--color-accent); }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--radius-xs);
  transition: background var(--transition);
}
.burger:hover { background: var(--color-bg); }
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Desktop nav */
@media (min-width: 1024px) {
  .header-top { display: block; }
  .burger { display: none; }
  .header-cta { display: flex; }

  .main-nav {
    position: static;
    transform: none;
    padding: 0;
    width: auto;
    flex: 1;                   /* занимает всё пространство между лого и CTA */
    background: transparent;
    overflow: visible;
    box-shadow: none !important;
    transition: none;
    display: flex;
    justify-content: center;   /* nav по центру */
  }
  .main-nav ul {
    flex-direction: row;
    gap: 0;
    align-items: center;
  }
  .main-nav a {
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: none;
    border-radius: var(--radius-xs);
    color: var(--color-body);
  }
.main-nav a:hover, .main-nav a.active {
    color: var(--color-primary);
    background: var(--color-bg);
  }
  .main-nav .has-dropdown { position: relative; }
  .main-nav .dropdown {
    display: block;            /* сброс flex-row от родительского ul */
    position: absolute;
    top: calc(100% + 6px);
    left: auto;
    right: 0;
    min-width: 280px;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-light);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 100;
  }
  .main-nav .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .main-nav .dropdown a {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: none;
    color: var(--color-body);
    border-radius: 0;
  }
  .main-nav .dropdown a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
  }
  .mobile-nav-extras { display: none; }
  .nav-close { display: none; }
}

.main-nav li:has(> a[href$="documents.html"]),
.main-nav li:has(> a[href$="news.html"]),
.site-footer li:has(> a[href$="documents.html"]),
.site-footer li:has(> a[href$="news.html"]) {
  display: none;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-primary);
  overflow: hidden;
  padding-top: 70px; /* mobile header */
}

/* Grid overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Diagonal accent overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: -300px;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(200, 99, 26, 0.055) 100%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 56px 0 40px;
}

.hero-inner {
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Hero badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(200, 99, 26, 0.14);
  border: 1px solid rgba(200, 99, 26, 0.32);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.75); }
}

/* H1 */
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 680px;
}
.hero h1 .accent { color: var(--color-accent-light); }

/* Lead */
.hero-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
}

/* CTAs */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero visual — desktop only */
.hero-visual {
  display: none;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
}
.hero-visual-inner {
  position: relative;
  width: 420px;
  height: 420px;
}

/* Rings */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-ring-1 { inset: 0; }
.hero-ring-2 { inset: 14%; border-color: rgba(255, 255, 255, 0.05); }
.hero-ring-3 { inset: 28%; border-color: rgba(200, 99, 26, 0.22); }

/* Shield */
.hero-shield {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 156px; height: 156px;
  background: linear-gradient(145deg, rgba(200, 99, 26, 0.22) 0%, rgba(200, 99, 26, 0.08) 100%);
  border: 2px solid rgba(200, 99, 26, 0.38);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-shield svg { width: 68px; height: 68px; color: var(--color-accent-light); }

/* Floating cards */
.hero-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  min-width: 130px;
}
.hero-float-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}
.hero-float-value {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-white);
}
.hero-float-accent { color: var(--color-accent-light); }

.hero-float--tr { top: 56px; right: -16px; animation: floatA 4s ease-in-out infinite; }
.hero-float--bl { bottom: 80px; left: -16px; animation: floatB 4.6s ease-in-out infinite; }
.hero-float--br { bottom: 24px; right: 20px; animation: floatC 5.2s ease-in-out infinite; }

@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
@keyframes floatC { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Hero stats bar */
.hero-stats-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 0;
  background: rgba(13, 33, 55, 0.45);
  backdrop-filter: blur(4px);
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.hero-stat-item {
  text-align: left;
  padding-left: 16px;
  border-left: 2px solid rgba(200, 99, 26, 0.45);
}
.hero-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-accent-light);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.02em;
}

/* ─── Trust Bar ──────────────────────────────────────────── */
.trust-bar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  padding: 22px 0;
}
.trust-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-item-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}
.trust-item-icon svg { width: 20px; height: 20px; }
.trust-item-label {
  font-size: 0.68rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 3px;
}
.trust-item-value {
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-graphite);
  line-height: 1.25;
}

/* ─── Service Cards ──────────────────────────────────────── */
.service-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
  border-radius: 0 2px 2px 0;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 99, 26, 0.35);
  transform: translateY(-5px);
}
.service-card:hover::before { transform: scaleY(1); }

.service-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #D6E1EB;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  transition: color var(--transition);
}
.service-card:hover .service-num { color: var(--color-accent-pale); }

.service-card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-white);
}
.service-card-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.05rem;
  color: var(--color-graphite);
  margin-bottom: 12px;
  line-height: 1.35;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--color-body);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: auto;
  transition: gap var(--transition), color var(--transition);
}
.card-link:hover { color: var(--color-accent-hover); gap: 12px; }
.card-link svg { width: 15px; height: 15px; }

/* Generic card */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--color-border-light);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--color-bg);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
  border: 1px solid var(--color-border-light);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.1rem; }
.card p { font-size: 0.9rem; }

/* ─── Advantage Cards ────────────────────────────────────── */
.advantage-card {
  padding: 28px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
}
.advantage-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.advantage-icon {
  width: 54px; height: 54px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.advantage-icon svg { width: 26px; height: 26px; }
.advantage-card:hover .advantage-icon {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.advantage-card h4 {
  color: var(--color-graphite);
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.advantage-card p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--color-body);
  margin-bottom: 0;
}

/* Legacy advantage-item (inner pages compat) */
.advantage-item { display: flex; gap: 20px; align-items: flex-start; }
.advantage-number {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}
.advantage-content h4 { color: var(--color-graphite); margin-bottom: 6px; }
.advantage-content p  { font-size: 0.875rem; margin-bottom: 0; }

/* ─── Statistics Section ─────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.stats-section-header {
  text-align: center;
  margin-bottom: 52px;
}
.stats-section-header h2 { color: var(--color-white); }
.stats-section-header .section-label {
  color: var(--color-accent-light);
  justify-content: center;
}
.stats-section-header .section-label::before { display: none; }
.stats-section-header p {
  color: rgba(255, 255, 255, 0.62);
  max-width: 480px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: 1 col */
  gap: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  background: rgba(13, 33, 55, 0.55);
  padding: 36px 28px;
  text-align: center;
  transition: background var(--transition);
}
.stat-item:hover { background: rgba(200, 99, 26, 0.13); }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-accent { color: var(--color-accent-light); }
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ─── Process Steps ──────────────────────────────────────── */
.process-list {
  max-width: 740px;
  margin: 0 auto;
}
.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.process-step:last-child { border-bottom: none; }
.process-step-num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.process-step-content h4 {
  color: var(--color-graphite);
  margin-bottom: 8px;
  font-size: 1rem;
}
.process-step-content p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-body);
  margin-bottom: 0;
  max-width: 540px;
}

/* Legacy .step-item compat */
.steps { max-width: 740px; margin: 0 auto; }
.step-item {
  display: flex; gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.step-item:last-child { border-bottom: none; }
.step-number {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  font-family: var(--font-heading);
}
.step-content h4 { margin-bottom: 6px; }
.step-content p  { font-size: 0.875rem; margin-bottom: 0; }

/* ─── Trust / Documents Section ──────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.license-badge-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: var(--color-primary);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
}
.license-badge-icon svg { width: 26px; height: 26px; }
.license-badge-text h4 {
  font-size: 0.92rem;
  color: var(--color-graphite);
  margin-bottom: 3px;
}
.license-badge-text p {
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* Doc items */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.doc-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border);
}
.doc-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--color-bg);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
.doc-icon svg { width: 22px; height: 22px; }
.doc-info { flex: 1; }
.doc-info h4 { font-size: 0.88rem; color: var(--color-graphite); margin-bottom: 3px; }
.doc-info p  { font-size: 0.75rem; color: var(--color-muted); }
.doc-download {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: color var(--transition);
}
.doc-download:hover { color: var(--color-accent-hover); }

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.cta-section .section-label {
  color: var(--color-accent-light);
  justify-content: center;
}
.cta-section .section-label::before { display: none; }
.cta-section h2 { color: var(--color-white); margin-bottom: 16px; }
.cta-section p  { color: rgba(255, 255, 255, 0.68); max-width: 500px; margin: 0 auto 36px; font-size: 1.05rem; }
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Form Section ───────────────────────────────────────── */
.form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
}
.form-grid { display: grid; gap: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }

.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-graphite);
  margin-bottom: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-group label .required { color: var(--color-error); }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-graphite);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-white);
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 33, 55, 0.09);
}
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-group input.error,
.form-group textarea.error,
.form-group select.error { border-color: var(--color-error); }
.form-error { font-size: 0.78rem; color: var(--color-error); margin-top: 5px; display: none; }

.form-consent {
  display: flex; gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.form-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 16px; height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}
.form-consent a { color: var(--color-accent); text-decoration: underline; }

.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0; width: 0;
  overflow: hidden;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 20px;
}
.form-success h3 { color: var(--color-success); margin-bottom: 10px; }

/* ─── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  padding: clamp(100px, 14vw, 140px) 0 clamp(40px, 5vw, 60px);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.page-hero h1 { color: var(--color-white); font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 12px; }
.page-hero p  { color: rgba(255, 255, 255, 0.74); font-size: 1rem; max-width: 580px; }

/* ─── Breadcrumbs ────────────────────────────────────────── */
.breadcrumbs {
  padding: 14px 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
}
.breadcrumbs ol {
  display: flex; flex-wrap: wrap;
  gap: 4px; align-items: center;
  font-size: 0.82rem;
}
.breadcrumbs li::after { content: '/'; margin-left: 8px; color: var(--color-light); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--color-primary); }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs span { color: var(--color-muted); }

/* ─── News ───────────────────────────────────────────────── */
.news-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card-img {
  height: 200px;
  background: var(--color-bg);
  overflow: hidden;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 22px; }
.news-card-date {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.news-card-body h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.news-card-body h3 a:hover { color: var(--color-accent); }
.news-card-body p { font-size: 0.875rem; margin-bottom: 12px; }

/* ─── Contacts ───────────────────────────────────────────── */
.contacts-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--color-bg);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  border: 1px solid var(--color-border-light);
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-text h4 {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-heading);
}
.contact-info-text p  { font-size: 0.95rem; margin-bottom: 0; }
.contact-info-text a  { color: var(--color-primary); }
.contact-info-text a:hover { color: var(--color-accent); }

/* Contact form (contacts page) */
.contacts-form-wrapper {
  max-width: none;
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  box-shadow: 0 16px 36px rgba(13, 33, 55, 0.14);
  position: relative;
  overflow: hidden;
}
.contacts-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 45%, rgba(232, 145, 74, 0) 100%);
}

.contacts-form-grid {
  position: relative;
  z-index: 1;
  gap: 16px;
}
.contacts-form-grid .form-group label {
  margin-bottom: 8px;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}
.contacts-form-grid .form-group input,
.contacts-form-grid .form-group select,
.contacts-form-grid .form-group textarea {
  min-height: 50px;
  border: 1px solid #b9c7d5;
  border-radius: 10px;
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.contacts-form-grid .form-group textarea {
  min-height: 148px;
}
.contacts-form-grid .form-group select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%236B7B8E' d='M1.6 1.5 7 6.9l5.4-5.4L14 3.1 7 10 0 3.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 9px;
}
.contacts-form-grid .form-group input:hover,
.contacts-form-grid .form-group select:hover,
.contacts-form-grid .form-group textarea:hover {
  border-color: #9fb1c3;
}
.contacts-form-grid .form-group input:focus,
.contacts-form-grid .form-group select:focus,
.contacts-form-grid .form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200, 99, 26, 0.14), 0 8px 18px rgba(13, 33, 55, 0.1);
  transform: translateY(-1px);
}

.contacts-form-grid .form-consent {
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
}
.contacts-form-grid .form-consent input[type="checkbox"] {
  margin-top: 3px;
}
.contacts-form-grid .form-consent label {
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-body);
}

.contacts-form-grid .form-submit-wrap .btn {
  width: 100%;
  min-height: 54px;
  border-radius: 10px;
}
.contacts-form-grid .form-submit-wrap .btn:hover {
  transform: translateY(-1px);
}

@media (min-width: 760px) {
  .contacts-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .contacts-form-grid .form-group-half {
    grid-column: span 1;
  }
  .contacts-form-grid .form-group-full,
  .contacts-form-grid .form-consent,
  .contacts-form-grid .form-submit-wrap {
    grid-column: 1 / -1;
  }
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.72);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-col h4 {
  color: var(--color-white);
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-about p { font-size: 0.875rem; line-height: 1.65; margin-bottom: 14px; }
.footer-col ul li   { margin-bottom: 10px; }
.footer-col ul a    { font-size: 0.875rem; color: rgba(255, 255, 255, 0.62); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--color-white); }
.footer-contact-item  { font-size: 0.875rem; margin-bottom: 10px; }
.footer-contact-item a { color: rgba(255, 255, 255, 0.62); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--color-white); }
.footer-bottom {
  padding: 20px 0;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.38); transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255, 255, 255, 0.75); }

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 33, 55, 0.72);
  z-index: 2000;
  align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 540px; width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--color-muted);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--color-bg); color: var(--color-graphite); }

/* ─── Utilities ──────────────────────────────────────────── */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── Responsive Breakpoints (mobile-first) ──────────────── */

/* sm: 640px */
@media (min-width: 640px) {
  .hero-stats-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .hero-stat-item {
    padding: 0 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
  }
  .hero-stat-item:first-child { border-left: none; padding-left: 0; }

  .trust-bar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 40px;
  }

  .form-grid-2 { grid-template-columns: 1fr 1fr; }

  .stats-grid { grid-template-columns: repeat(3, 1fr); }  /* ровно 3 — без пустого квадрата */
}

/* md: 768px */
@media (min-width: 768px) {
  :root { --section-py: 88px; }

  .trust-grid      { grid-template-columns: 1fr 1fr; }
  .contacts-grid   { grid-template-columns: 1fr 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }

  .form-wrapper    { padding: 48px 44px; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  :root { --section-py: 96px; }

  .hero { padding-top: 108px; } /* top-bar + main-bar */
  .hero-body { padding: 80px 0 60px; }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 80px;
    align-items: center;
  }
  .hero-visual { display: flex; }

  .trust-bar-inner { flex-direction: row; justify-content: space-between; align-items: center; gap: 0; }
  .trust-bar       { padding: 18px 0; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* xl: 1280px */
@media (min-width: 1280px) {
  .hero-inner { grid-template-columns: 1fr 460px; gap: 96px; }

  /* На широких экранах — показываем подпись логотипа */
  .logo-desc { display: block; }

  /* Чуть шире nav-ссылки */
  .main-nav a { padding: 8px 13px; font-size: 0.875rem; }
}

/* Промежуточный desktop: 1024–1279px — компактный CTA */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header-cta .btn-sm { padding: 9px 14px; font-size: 0.72rem; }
  .header-phone { font-size: 0.82rem; }
}

/* ═══════════════════════════════════════════════════════════
   ПОЛНАЯ АДАПТАЦИЯ — все устройства
   ═══════════════════════════════════════════════════════════ */

/* ── Очень маленькие телефоны: < 380px ─────────────────── */
@media (max-width: 379px) {
  :root { --section-py: 52px; }

  .container { padding: 0 16px; }

  /* Логотип — скрываем подпись */
  .logo-desc { display: none !important; }
  .logo-name { font-size: 0.95rem; }
  .logo img  { height: 36px; }

  /* Hero */
  .hero h1 { font-size: 1.65rem; letter-spacing: -0.02em; }
  .hero-lead { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badge { font-size: 0.68rem; padding: 6px 12px; }

  /* Stats bar — 2 col */
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-stat-number { font-size: 1.6rem; }
  .hero-stat-label  { font-size: 0.72rem; }

  /* Sections */
  .section-header { margin-bottom: 32px; }
  .btn-lg { padding: 14px 24px; font-size: 0.82rem; }

  /* CTA */
  .cta-section { padding: 52px 0; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Trust bar */
  .trust-bar-inner { gap: 12px; }
  .trust-item-icon  { width: 34px; height: 34px; }
  .trust-item-icon svg { width: 16px; height: 16px; }
  .trust-item-value { font-size: 0.8rem; }

  /* Cards */
  .service-card { padding: 24px 20px; }
  .advantage-card { padding: 22px 18px; }

  /* Stats section */
  .stat-number { font-size: 2.25rem; }

  /* Process */
  .process-step { gap: 16px; }
  .process-step-num { width: 44px; height: 44px; font-size: 0.95rem; flex-shrink: 0; }

  /* Form */
  .form-wrapper { padding: 24px 16px; }

  /* Footer */
  .footer-grid { gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Modal */
  .modal { padding: 28px 18px; }
}

/* ── Стандартный мобильный: 380–639px ───────────────────── */
@media (min-width: 380px) and (max-width: 639px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { align-self: auto; }

  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 340px; justify-content: center; }

  /* Trust bar — 2 в строку */
  .trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .form-wrapper { padding: 28px 20px; }
}

/* ── Планшет: 640–767px ─────────────────────────────────── */
@media (min-width: 640px) and (max-width: 767px) {
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .hero-stat-item { border-left: 1px solid rgba(255,255,255,0.12); }
  .hero-stat-item:nth-child(1),
  .hero-stat-item:nth-child(3) { border-left: none; padding-left: 0; }

  .trust-bar-inner { flex-direction: row; flex-wrap: wrap; gap: 12px 32px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .advantage-card { padding: 24px 20px; }

  .cta-actions { flex-direction: row; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Планшет средний: 768–1023px ────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Показываем телефон под бургером */
  .header-main .container { gap: 12px; }

  /* Hero — одна колонка, но более просторно */
  .hero-body { padding: 60px 0 40px; }
  .hero h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); max-width: 600px; }
  .hero-lead { max-width: 520px; }

  /* Trust bar — 2×2 */
  .trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 40px;
  }

  /* Сервисные карточки — 2 col до lg */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  /* Преимущества — 2 col */

  /* Process */
  .process-list { max-width: 640px; }

  /* CTA */
  .cta-section h2 { font-size: 1.75rem; }

  /* Form */
  .form-wrapper { padding: 40px 36px; }

  /* Footer */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ── Корректировки hero stats на tablet ─────────────────── */
@media (min-width: 640px) and (max-width: 899px) {
  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hero-stat-item { border-left: none; padding-left: 16px; }
  .hero-stat-item:nth-child(odd) { border-left: none; }
}

/* ── Широкий планшет / узкий десктоп: 900–1023px ────────── */
@media (min-width: 900px) and (max-width: 1023px) {
  .hero-stats-inner { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .hero-stat-item { border-left: 1px solid rgba(255,255,255,0.12); padding: 0 20px; }
  .hero-stat-item:first-child { border-left: none; padding-left: 0; }
}

/* ── Большой десктоп: > 1440px ──────────────────────────── */
@media (min-width: 1440px) {
  :root { --container-width: 1360px; }
  .hero h1 { font-size: 3.75rem; }
}

/* ═══════════════════════════════════════════════════════════
   DESIGN REFINEMENTS v2.1
   Точечные улучшения — строго в рамках цветовой системы
   ═══════════════════════════════════════════════════════════ */

/* ── Section heading underline → gradient ───────────────── */
.section-header h2::after {
  width: 56px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 55%, transparent 100%);
}

/* ── Section label decorative line → gradient ───────────── */
.section-label::before {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
}

/* ── Hero: ambient glow behind shield ───────────────────── */
.hero-shield {
  box-shadow: 0 0 64px rgba(200, 99, 26, 0.28), inset 0 0 40px rgba(200, 99, 26, 0.06);
}

/* ── Hero ring-2: медленное вращение ────────────────────── */
.hero-ring-2 {
  animation: ringRotate 28s linear infinite;
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Service cards: тёплый фон при ховере ───────────────── */
.service-card:hover {
  background: rgba(200, 99, 26, 0.03);
}

/* ── Advantage cards: акцент-бордер сверху при ховере ───── */
.advantage-card {
  border-top: 3px solid transparent;
  transition: box-shadow var(--transition), transform var(--transition),
              border-top-color var(--transition);
}
.advantage-card:hover {
  border-top-color: var(--color-accent);
}

/* ── Process list: вертикальная таймлайн-линия ──────────── */
.process-list {
  position: relative;
}
.process-list::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-border) 10%,
    var(--color-border) 90%,
    transparent 100%
  );
  pointer-events: none;
}
.process-step-num {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 5px var(--color-white);
}

/* ── Stats: акцентный бар слева при ховере ──────────────── */
.stat-item {
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.stat-item:hover::after { transform: scaleY(1); }

/* ── Trust bar: иконка — свечение при ховере ────────────── */
.trust-item-icon {
  transition: box-shadow var(--transition), transform var(--transition);
}
.trust-item:hover .trust-item-icon {
  box-shadow: 0 0 0 4px rgba(200, 99, 26, 0.18);
  transform: scale(1.05);
}

/* ── CTA: радиальный amber glow по центру ───────────────── */

/* ── Footer: градиентная полоса на стыке с контентом ────── */
.site-footer {
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-accent) 25%,
    var(--color-accent-light) 65%,
    transparent 100%
  );
}

/* ── Основная форма: focus → accent (унификация с contacts) */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200, 99, 26, 0.12);
}

/* ═══════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════════════════════════ */

/* Переменных --bg-card / --text-muted / --accent в этой теме нет: баннер
   опирался на них и молча падал на запасные цвета из чужой тёмной палитры —
   синий #0f1520 и сиреневая ссылка #8092f4, к оранжевому акценту сайта
   отношения не имеющие. Ниже используются настоящие переменные темы. */

#cookieBanner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 20px));
  z-index: 9999;
  width: min(760px, calc(100vw - 32px));
  background: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 4px 24px rgba(13, 33, 55, .35);
  border-radius: 12px;
  padding: 16px 20px;
  transition: transform .35s ease, opacity .35s ease;
  opacity: 0;
}

#cookieBanner.cb-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cb-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.cb-text {
  font-size: .8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
  flex: 1 1 260px;
}

.cb-text a {
  color: var(--color-accent-light);
  text-decoration: underline;
}

.cb-text a:hover {
  color: var(--color-white);
}

.cb-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cb-btn {
  font-size: .8125rem;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

/* Отказаться должно быть не сложнее, чем согласиться: те же размеры и то же
   место, отличается только заливка. */
.cb-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .3);
}

.cb-btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, .5);
}

.cb-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cb-panel[hidden] {
  display: none;
}

.cb-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
}

.cb-option strong {
  color: var(--color-white);
  font-weight: 600;
}

.cb-option input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.cb-option-locked {
  cursor: default;
  opacity: .7;
}

.cb-option-locked input[type="checkbox"] {
  cursor: not-allowed;
}

.cb-panel .cb-btn {
  align-self: flex-start;
}

/* На узком экране кнопки растягиваются на всю ширину и идут в столбик:
   иначе «Отклонить необязательные» вылезает за край и появляется
   горизонтальная прокрутка. */
@media (max-width: 560px) {
  #cookieBanner {
    bottom: 12px;
    padding: 14px 16px;
  }

  .cb-actions {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .cb-btn {
    width: 100%;
    text-align: center;
  }

  .cb-panel .cb-btn {
    align-self: stretch;
  }
}

/* ─── Футер: ссылки на юридические документы ───────────────── */

.footer-legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

.footer-legal-links a,
.footer-legal-links .btn-link {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.footer-legal-links a:hover,
.footer-legal-links .btn-link:hover {
  color: rgba(255,255,255,.85);
  text-decoration: underline;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: var(--color-accent);
  text-decoration: underline;
}

/* ─── Юридические страницы (privacy.html, cookies.html) ────── */

.legal-doc {
  max-width: 860px;
}

.legal-doc h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 .6rem;
  color: var(--color-text);
}

.legal-doc h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
  color: var(--color-text);
}

.legal-doc p,
.legal-doc li {
  font-size: .95rem;
  color: var(--color-gray-dark);
  line-height: 1.75;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.4rem;
  margin: .5rem 0 1rem;
}

.legal-doc li {
  margin-bottom: .4rem;
}

.legal-doc a {
  color: var(--color-accent);
}

.legal-date {
  margin-top: 2rem;
  font-size: .875rem;
  color: #6b7280;
  font-style: italic;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: .875rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.legal-table td {
  color: #4b5563;
}

.legal-table--cookies th:last-child,
.legal-table--cookies td:last-child {
  white-space: nowrap;
}

.legal-table--cookies code {
  font-size: .8rem;
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 3px;
}

@media (max-width: 600px) {
  .legal-table--cookies {
    font-size: .75rem;
  }

  /* Правовые таблицы растягивали страницу: у заголовков и последней колонки
     стоит white-space: nowrap, и на 375px таблица разгонялась до 455px, утягивая
     за собой документ и шапку — получалось 84px горизонтальной прокрутки на
     каждой из трёх правовых страниц.

     Теперь прокручивается сама таблица, а не страница. min-width на tbody не
     даёт колонкам схлопнуться в нечитаемую кашу. */
  .legal-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .legal-table thead,
  .legal-table tbody {
    display: table;
    width: 100%;
    min-width: 460px;
  }

  .footer-legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
