/* ==========================================================================
   СТС-Авто — публичный сайт
   Концепция «Трасса»: язык инженерной съёмки и полосы отвода.
   Хвойный зелёный, ватман, сигнальный оранжевый (цвет колышков и разметки).
   Кеш привязан к версии кода: файл подключается как /css/site.css?v=<версия>
   ========================================================================== */

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

:root {
  /* Палитра */
  --peat: #12211a;          /* торф — самый тёмный */
  --taiga: #1f4132;         /* хвоя — основной тёмный */
  --moss: #3b6a50;          /* мох — вторичный зелёный */
  --paper: #ebede6;         /* ватман — фон секций */
  --paper-2: #f6f7f2;       /* светлый лист */
  --sand: #cbbf9f;          /* песок площадок */
  --signal: #f26b1d;        /* сигнальный оранжевый */
  --signal-600: #d95a10;
  --signal-100: #fde6d6;
  --ink: #17201b;
  --muted: #4d5a52;
  --subtle: #7b867e;
  --line: #c9cfc4;
  --line-strong: #a8b0a4;
  --ok: #2e7d4f;

  /* Геометрия и движение */
  --r: 2px;
  --shadow: 0 10px 30px rgba(18, 33, 26, .12);
  --shadow-lg: 0 24px 60px rgba(18, 33, 26, .22);
  --t: 180ms ease;
  --header-h: 76px;
  --logo-zoom: 1.62;

  /* Типографика */
  --font-head: 'Fira Sans Extra Condensed', 'Arial Narrow', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  /* Алиасы прежних переменных — на них ссылаются inline-стили из JS/SSR */
  --dark: var(--peat);
  --orange: var(--signal);
  --orange-dark: var(--signal-600);
  --orange-light: #ff9250;
  --text-dark: var(--ink);
  --text-gray: var(--muted);
  --text-light: var(--subtle);
  --bg-light: var(--paper);
  --bg-alt: var(--paper);
  --bg-white: var(--paper-2);
  --border: var(--line);
  --success: var(--ok);
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-2);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: 0; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--peat); color: #fff; padding: 10px 16px; border-radius: var(--r);
  transition: top var(--t);
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(246, 247, 242, .96);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
  transition: box-shadow var(--t);
}
.header.scrolled { box-shadow: 0 6px 24px rgba(18, 33, 26, .1); }

.header-inner {
  display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px);
  height: var(--header-h); max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px);
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: #fff; box-shadow: 0 0 0 1px var(--line-strong);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; transform: translateY(4%) scale(var(--logo-zoom)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; color: var(--taiga); }
.logo-text strong b { color: var(--signal-600); font-weight: 800; }
.logo-text small { font-size: .72rem; color: var(--subtle); margin-top: 3px; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: clamp(2px, .6vw, 8px); margin-left: auto; }
.nav a {
  position: relative; padding: 10px clamp(6px, .7vw, 11px); white-space: nowrap;
  font-size: .92rem; font-weight: 500; color: var(--muted);
  transition: color var(--t);
}
.nav a:hover { color: var(--taiga); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav a.active::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 3px; background: var(--signal);
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--taiga); white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; fill: var(--signal-600); }
.header-phone:hover { color: var(--signal-600); }

.burger {
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: transparent; cursor: pointer; touch-action: manipulation; margin-left: auto;
  transition: background var(--t);
}
.burger:hover { background: var(--paper); }
.burger span { width: 20px; height: 2px; background: var(--taiga); transition: transform var(--t), opacity var(--t); }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: 0; right: 0; width: min(340px, 88vw); height: 100vh; height: 100dvh;
  background: var(--paper-2); z-index: 1001; display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 12px + env(safe-area-inset-top)) 24px 24px;
  transform: translateX(100%); visibility: hidden;
  transition: transform 220ms ease, visibility 0s linear 220ms; box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--signal);
}
.mobile-nav.open { transform: none; visibility: visible; transition: transform 220ms ease; }
.mobile-nav a {
  display: block; padding: 14px 4px; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--ink);
  border-bottom: 1px solid var(--line); transition: color var(--t), padding var(--t);
}
.mobile-nav a:hover { color: var(--signal-600); padding-left: 10px; }
.mobile-nav .mobile-cta { margin-top: auto; border: 0; padding: 0; font-size: 1.1rem; }
.mobile-nav .mobile-cta:hover { padding: 0; }
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(18, 33, 26, .6); z-index: 1000;
  opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.mobile-overlay.active { opacity: 1; visibility: visible; transition: opacity 220ms ease; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--r); border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap; touch-action: manipulation;
  transition: transform var(--t), background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--signal); color: var(--peat); box-shadow: 4px 4px 0 var(--peat); }
.btn-primary:hover { background: #ff7a2c; box-shadow: 6px 6px 0 var(--peat); transform: translate(-1px, -1px); }
.btn-primary:active { box-shadow: 2px 2px 0 var(--peat); transform: translate(2px, 2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .95rem; }

/* ==========================================================================
   Hero — трасса, штамп чертежа
   ========================================================================== */
.hero {
  position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: min(100vh, 900px); min-height: min(100dvh, 900px);
  padding: calc(var(--header-h) + clamp(32px, 5vw, 64px)) 0 clamp(80px, 8vw, 110px);
  background: var(--peat);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 33, 26, .96) 0%, rgba(18, 33, 26, .84) 48%, rgba(18, 33, 26, .5) 100%),
    url('/img/contours.svg') right center / cover no-repeat;
}
.hero-bg::after { opacity: 1; }
.hero > .container { position: relative; z-index: 2; width: 100%; }

.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); column-gap: clamp(32px, 5vw, 72px); align-items: end;
}
.hero-content > * { grid-column: 1; max-width: 760px; }
.hero-content > .hero-stats { grid-column: 2; grid-row: 1 / span 6; align-self: end; max-width: none; }

.hero-badge {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 7px 14px; border: 1.5px solid var(--signal); color: #ffd2b4;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
}
.hero-badge svg { color: var(--signal); }

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem); font-weight: 800; line-height: .98;
  color: #fff; margin-bottom: 24px; text-wrap: balance; max-width: 18ch;
}
.hero h1::first-letter { text-transform: uppercase; }
.hero-subtitle { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255, 255, 255, .8); max-width: 60ch; margin-bottom: 34px; line-height: 1.7; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }

.hero-contacts { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.hero-contact-item { display: flex; align-items: flex-start; gap: 10px; color: rgba(255, 255, 255, .9); font-size: .95rem; line-height: 1.5; }
.hero-contact-item svg { width: 18px; height: 18px; fill: var(--signal); flex-shrink: 0; margin-top: 3px; }
.hero-contact-item a { color: inherit; }
.hero-contact-item a:hover { color: #ffb58a; }

/* Штамп чертежа: рамка, ячейки, шапка */
.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid rgba(255, 255, 255, .85); background: rgba(18, 33, 26, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-stats::before {
  content: 'Паспорт компании'; grid-column: 1 / -1; padding: 9px 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--peat); background: rgba(255, 255, 255, .9);
}
.hero-stat { padding: clamp(14px, 2vw, 22px) clamp(14px, 1.8vw, 20px); border-top: 1px solid rgba(255, 255, 255, .35); }
.hero-stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .35); }
.hero-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .35); }
.hero-stat-number { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stat-label { margin-top: 6px; font-size: .86rem; color: rgba(255, 255, 255, .7); line-height: 1.35; }

/* Единственный «выход» страницы: труба прокладывается по низу первого экрана */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 28px; height: 16px; z-index: 3;
  background:
    repeating-linear-gradient(90deg, transparent 0 318px, rgba(0, 0, 0, .45) 318px 321px, transparent 321px 322px),
    linear-gradient(180deg, #8a968d 0%, #c3cbc4 28%, #6a766e 58%, #3b463f 100%);
  box-shadow: 0 6px 0 -2px rgba(0, 0, 0, .25);
  transform-origin: left center; transform: scaleX(0);
  animation: lay-pipe 1.5s cubic-bezier(.3, .6, .2, 1) .25s forwards;
}
.hero::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 10px; z-index: 3;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 2px, transparent 2px 80px);
  opacity: 0; animation: pickets .6s ease 1.5s forwards;
}
@keyframes lay-pipe { to { transform: scaleX(1); } }
@keyframes pickets { to { opacity: 1; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-alt { background: var(--paper); }
.section-white { background: var(--paper-2); }

.section-header, .section-header.center {
  display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); text-align: left;
}
/* Заголовок — «труба»: линия уходит вправо и заканчивается заглушкой */
.section-title {
  overflow: hidden; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1; color: var(--taiga);
}
.section-title::after {
  content: ''; display: inline-block; vertical-align: middle; width: 100%; height: 10px; margin: 0 -100% 0 22px;
  background: linear-gradient(180deg, var(--line-strong) 0 2px, transparent 2px 8px, var(--line-strong) 8px 10px);
}
.section-title span { color: inherit; }
.section-subtitle { font-size: 1.08rem; color: var(--muted); line-height: 1.7; max-width: 64ch; }
.section-subtitle:empty { display: none; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-image { position: relative; padding: 0 0 14px 14px; }
.about-image::before { content: ''; position: absolute; left: 0; bottom: 0; right: 14px; top: 14px; border: 2px solid var(--signal); }
.about-image img { position: relative; width: 100%; height: clamp(300px, 44vw, 540px); object-fit: cover; }
.about-text h3 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 18px; color: var(--ink); font-weight: 700; }
.about-text p { color: var(--muted); margin-bottom: 14px; font-size: 1.04rem; line-height: 1.8; max-width: 62ch; }
.about-features { display: grid; grid-template-columns: 1fr; margin-top: 28px; border-top: 2px solid var(--ink); }
.about-feature {
  display: flex; align-items: flex-start; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--line-strong);
  transition: background var(--t), padding var(--t);
}
.about-feature:hover { background: rgba(255, 255, 255, .6); padding-left: 12px; }
.about-feature-icon, .service-icon, .license-icon, .contact-info-icon, .activity-card-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1.5px solid var(--taiga); color: var(--taiga); transition: background var(--t), border-color var(--t);
}
.about-feature-icon { width: 44px; height: 44px; }
.about-feature-icon svg, .service-icon svg, .license-icon svg, .contact-info-icon svg, .activity-card-icon svg { fill: var(--taiga); transition: fill var(--t); }
.about-feature-icon svg { width: 22px; height: 22px; }
.about-feature:hover .about-feature-icon { background: var(--signal); border-color: var(--signal); }
.about-feature:hover .about-feature-icon svg { fill: var(--peat); }
.about-feature-text { font-size: .94rem; color: var(--muted); line-height: 1.5; }
.about-feature-text strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 2px; line-height: 1.15; }

/* ==========================================================================
   Services & schemes
   ========================================================================== */
.services-grid { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 24px); }
.service-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  flex: 1 1 min(320px, 100%); min-width: 0; container-type: inline-size;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: clamp(24px, 3vw, 36px);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
/* «Уголки» листа */
.service-card::before, .service-card::after {
  content: ''; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border: 0 solid var(--signal); transition: width var(--t), height var(--t);
}
.service-card::before { left: -1px; top: -1px; border-top-width: 4px; border-left-width: 4px; }
.service-card::after { right: -1px; bottom: -1px; border-bottom-width: 4px; border-right-width: 4px; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--taiga); }
.service-card:hover::before, .service-card:hover::after { width: 34px; height: 34px; }

/* Главная услуга — тёмный лист с торцом трубы */
.service-card.large {
  flex: 2 1 min(664px, 100%); background: var(--taiga); border-color: var(--taiga); color: #fff; padding-bottom: clamp(32px, 4vw, 52px);
}
.service-card.large > * { position: relative; z-index: 1; }
.service-card.large h3 { color: #fff; font-size: clamp(2rem, 3.2vw, 2.8rem); }
.service-card.large p, .service-card.large .service-list li { color: rgba(255, 255, 255, .82); }
.service-card.large .service-icon { border-color: rgba(255, 255, 255, .55); }
.service-card.large .service-icon svg { fill: #ffb58a; }
.service-card.large .service-list li::before { background: #ffb58a; }
.service-card.large:hover { border-color: var(--signal); }
.service-card.large .service-pipe {
  position: absolute; z-index: 0; right: -150px; top: 50%; width: 460px; height: 460px; margin-top: -230px; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle, var(--taiga) 0 41%, transparent 41.4%),
    radial-gradient(circle, #202a25 0 47%, transparent 47.4%),
    radial-gradient(circle at 35% 30%, #cfd6d0, #7f8b83 55%, #4a554e 100%);
  opacity: .28;
}
@container (min-width: 560px) { .service-list { columns: 2; column-gap: 36px; } }
.service-icon { width: 54px; height: 54px; margin-bottom: 24px; }
.service-icon svg { width: 27px; height: 27px; }
.service-card:hover .service-icon { background: var(--signal); border-color: var(--signal); }
.service-card:hover .service-icon svg { fill: var(--peat); }
.service-card h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 12px; color: var(--ink); font-weight: 700; }
.service-card p { color: var(--muted); font-size: .98rem; line-height: 1.7; margin-bottom: 16px; }
.service-list { margin-top: auto; }
.service-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: .94rem; line-height: 1.55; margin-bottom: 10px; break-inside: avoid; }
.service-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 14px; height: 4px; background: var(--signal); }

/* Тип договора в схемах работы */
.contract {
  display: flex; align-items: center; gap: 12px; margin: -6px 0 18px; padding: 10px 14px;
  font-family: var(--font-head); font-size: 1.1rem; line-height: 1.15; font-weight: 600;
}
.contract b { font-weight: 800; font-size: 1.25rem; }
.contract small { font-family: var(--font-body); font-size: .8rem; font-weight: 500; opacity: .8; display: block; margin-top: 2px; }
.contract svg { width: 26px; height: 26px; flex-shrink: 0; }
.contract.income { background: var(--taiga); color: #fff; }
.contract.income svg { fill: #9be0b6; }
.contract.expense { background: var(--signal-100); color: var(--peat); border: 1.5px solid var(--signal); }
.contract.expense svg { fill: var(--signal-600); }

/* ==========================================================================
   Process — станции по пикетажу
   ========================================================================== */
#process { background: var(--peat); color: #fff; overflow: hidden; }
#process::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background: url('/img/contours.svg') center / cover no-repeat;
}
#process .container { position: relative; }
#process .section-title { color: #fff; }
#process .section-title::after { background: linear-gradient(180deg, rgba(255, 255, 255, .35) 0 2px, transparent 2px 8px, rgba(255, 255, 255, .35) 8px 10px); }
#process .section-subtitle { color: rgba(255, 255, 255, .72); }
.process-timeline { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(14px, 2vw, 24px); padding-top: 14px; }
.process-timeline::before {
  content: ''; position: absolute; left: 0; right: 0; top: 64px; height: 6px;
  background: linear-gradient(180deg, #8a968d, #c3cbc4 35%, #4d5a52);
}
.process-step { position: relative; display: flex; flex-direction: column; gap: 22px; }
.process-number {
  position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: baseline; gap: 0;
  height: 40px; padding: 0 12px; align-items: center;
  background: var(--signal); color: var(--peat); font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; margin-top: 14px; margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.process-number::before { content: 'ПК\00a0'; font-weight: 700; }
.process-number::after { content: '+00'; font-weight: 700; }
.process-content { flex: 1; padding: 6px 0 0; transition: transform var(--t); }
.process-step:hover .process-content { transform: translateY(-3px); }
.process-content h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 10px; color: #fff; }
.process-content p { color: rgba(255, 255, 255, .74); font-size: .96rem; line-height: 1.7; }

/* ==========================================================================
   Equipment
   ========================================================================== */
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.equipment-card {
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.equipment-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--taiga); }
.equipment-card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); border-bottom: 3px solid var(--signal); }
.equipment-card-image img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 400ms ease, opacity .5s; }
.equipment-card:hover .equipment-card-image img { transform: scale(1.03); }
.equipment-card-image .equip-overlay { position: absolute; top: 0; left: 0; padding: 0; background: none; }
.equipment-card-image .equip-overlay .brand {
  display: inline-block; padding: 6px 14px 6px 12px; background: var(--paper-2); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
}
.equipment-card-image .equip-overlay .brand:empty { display: none; }
.equip-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); color: var(--ink); border: 0; border-radius: var(--r); cursor: pointer;
  font-size: 14px; opacity: 0; transition: opacity var(--t), background var(--t);
}
.equip-nav:hover { background: var(--signal); color: var(--peat); }
.equipment-card-image:hover .equip-nav, .equip-nav:focus-visible { opacity: 1; }
.equip-nav.prev { left: 10px; }
.equip-nav.next { right: 10px; }
.equip-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.equip-dot { width: 10px; height: 4px; background: rgba(255, 255, 255, .7); border: 0; cursor: pointer; padding: 0; transition: width var(--t), background var(--t); }
.equip-dot.active { background: var(--signal); width: 26px; }
.equip-fullview { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; background: rgba(18, 33, 26, .95); cursor: zoom-out; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
.equip-fullview.open { opacity: 1; visibility: visible; transition: opacity 200ms ease; }
.equip-fullview img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.equip-fullview-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: var(--signal); color: var(--peat); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--t); }
.equip-fullview-close:hover { background: #ff7a2c; }
.equipment-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.equipment-card-body h3 { font-size: 1.55rem; line-height: 1.1; margin-bottom: 12px; color: var(--ink); }
.equipment-qty {
  align-self: flex-start; margin-bottom: 16px; padding: 3px 12px 3px 10px; border-left: 4px solid var(--signal);
  background: var(--paper); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.equipment-specs { margin-top: auto; border-top: 2px solid var(--ink); }
.equipment-spec {
  display: flex; align-items: baseline; gap: 8px; padding: 9px 0 8px; font-size: .88rem;
  background: linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat;
}
.equipment-spec-label { color: var(--muted); }
.equipment-spec-value { margin-left: auto; color: var(--ink); font-weight: 600; text-align: right; }

/* ==========================================================================
   Geography
   ========================================================================== */
.geo-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.geo-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-left: 1px solid var(--line-strong); }
.geo-region {
  display: flex; align-items: center; gap: 8px; padding: 18px 14px;
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  transition: background var(--t);
}
.geo-region:hover { background: var(--signal-100); }
.geo-region svg { width: 16px; height: 16px; fill: var(--signal-600); flex-shrink: 0; }
.geo-region span { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1; }
.geo-hard {
  position: relative; overflow: hidden; margin-top: 24px; padding: 26px 28px; background: var(--taiga); color: #fff;
}
.geo-hard::before { content: ''; position: absolute; inset: 0; opacity: .16; background: url('/img/contours.svg') 80% 40% / 150% auto no-repeat; }
.geo-hard::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--signal); }
.geo-hard > * { position: relative; }
.geo-hard h4 { font-size: 1.8rem; color: #fff; margin-bottom: 8px; }
.geo-hard p { color: rgba(255, 255, 255, .84); line-height: 1.7; font-size: .98rem; max-width: 56ch; }
.geo-map { overflow: hidden; border: 1px solid var(--line-strong); background: #fff; padding: 10px; }
.geo-map img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }

/* ==========================================================================
   Licenses & galleries
   ========================================================================== */
.licenses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-left: 1px solid var(--line-strong); }
.license-card {
  display: flex; align-items: flex-start; gap: 18px; padding: 24px 22px;
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  transition: background var(--t);
}
.license-card:hover { background: #fff; }
.license-icon { width: 50px; height: 50px; border-radius: 50%; }
.license-icon svg { width: 24px; height: 24px; }
.license-card:hover .license-icon { background: var(--signal); border-color: var(--signal); }
.license-card:hover .license-icon svg { fill: var(--peat); }
.license-card h4 { font-size: 1.35rem; margin-bottom: 6px; color: var(--ink); line-height: 1.12; }
.license-card p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

.license-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 36px; }
.license-gallery-item {
  overflow: hidden; background: #fff; border: 1px solid var(--line-strong); cursor: zoom-in;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.license-gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--taiga); }
.license-gallery-thumb { position: relative; height: clamp(190px, 24vw, 250px); overflow: hidden; background: var(--paper); border-bottom: 3px solid var(--signal); }
.license-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 400ms ease; }
.license-gallery-item:hover .license-gallery-thumb img { transform: scale(1.03); }
.license-gallery-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(18, 33, 26, 0); transition: background var(--t); }
.license-gallery-item:hover .license-gallery-thumb::after { background: rgba(18, 33, 26, .3); }
.license-gallery-zoom {
  position: absolute; top: 50%; left: 50%; z-index: 2; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; background: var(--signal);
  transform: translate(-50%, -50%) scale(.85); opacity: 0; transition: opacity var(--t), transform var(--t);
}
.license-gallery-zoom svg { width: 22px; height: 22px; fill: var(--peat); }
.license-gallery-item:hover .license-gallery-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.license-gallery-body { padding: 16px 20px 20px; }
.license-gallery-body h4 { font-size: 1.3rem; margin-bottom: 4px; color: var(--ink); }
.license-gallery-body p { font-size: .88rem; color: var(--muted); line-height: 1.55; }

.lightbox-overlay {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(18, 33, 26, .95); cursor: zoom-out; opacity: 0; visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; transition: opacity 200ms ease; }
.lightbox-content { position: relative; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; transform: scale(.96); transition: transform 200ms ease; }
.lightbox-overlay.open .lightbox-content { transform: none; }
.lightbox-content img { max-width: 100%; max-height: 78vh; box-shadow: 0 24px 64px rgba(0, 0, 0, .5); }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--signal); border: 2px solid var(--peat); border-radius: var(--r); cursor: pointer;
  transition: background var(--t), transform var(--t);
}
.lightbox-close:hover { background: #ff7a2c; transform: scale(1.06); }
.lightbox-close svg { width: 16px; height: 16px; fill: var(--peat); }
.lightbox-info { margin-top: 12px; max-width: min(700px, 92vw); padding: 12px 18px; background: rgba(255, 255, 255, .08); text-align: center; }
.lightbox-info h4 { font-size: 1.3rem; color: #fff; margin-bottom: 4px; }
.lightbox-info p { font-size: .9rem; color: rgba(255, 255, 255, .75); line-height: 1.5; }

/* ==========================================================================
   Public activity
   ========================================================================== */
.activity-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.activity-card { position: relative; padding: 28px 26px 30px 0; transition: background var(--t); }
.activity-card + .activity-card { padding-left: 26px; border-left: 1px solid var(--line-strong); }
.activity-card-icon { width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; }
.activity-card-icon svg { width: 24px; height: 24px; }
.activity-card:hover .activity-card-icon { background: var(--signal); border-color: var(--signal); }
.activity-card:hover .activity-card-icon svg { fill: var(--peat); }
.activity-card h4 { font-size: 1.5rem; margin-bottom: 8px; color: var(--ink); }
.activity-card p { color: var(--muted); font-size: .94rem; line-height: 1.7; }
.activity-gallery { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 24px; margin-top: 56px; }
.activity-gallery-title { width: 100%; font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--ink); margin-bottom: 0; }
.activity-gallery .license-gallery-item { flex: 0 1 min(340px, 100%); }

/* ==========================================================================
   Contacts & form
   ========================================================================== */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info-list { display: grid; gap: 0; margin-bottom: 24px; border-top: 2px solid var(--ink); }
.contact-info-item { display: flex; align-items: flex-start; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--line-strong); }
.contact-info-icon { width: 46px; height: 46px; border-radius: 50%; }
.contact-info-icon svg { width: 21px; height: 21px; }
.contact-info-item h4 { font-size: 1.05rem; color: var(--signal-600); margin-bottom: 2px; font-weight: 700; letter-spacing: .02em; }
.contact-info-item p, .contact-info-item a { color: var(--ink); font-size: 1.04rem; line-height: 1.55; font-weight: 500; }
.contact-info-item a:hover { color: var(--signal-600); }
.contact-map { overflow: hidden; border: 1px solid var(--line-strong); padding: 8px; background: #fff; }
.contact-map img { width: 100%; height: clamp(180px, 26vw, 260px); object-fit: cover; }

.contact-form {
  position: relative; background: #fff; border: 2px solid var(--ink);
  padding: clamp(24px, 4vw, 40px); box-shadow: 10px 10px 0 var(--taiga);
}
.contact-form h3 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 6px; color: var(--ink); }
.contact-form .form-subtitle { color: var(--muted); font-size: .98rem; margin-bottom: 26px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 6px; }
.form-group input:not([type="checkbox"]), .form-group textarea {
  width: 100%; padding: 13px 14px; background: var(--paper-2); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--r); font-family: var(--font-body); font-size: 1rem; outline: none;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--subtle); }
.form-group input:not([type="checkbox"]):hover, .form-group textarea:hover { border-color: var(--taiga); }
.form-group input:not([type="checkbox"]):focus, .form-group textarea:focus { border-color: var(--ink); background: #fff; box-shadow: 4px 4px 0 var(--signal); }
.form-group input.invalid, .form-group textarea.invalid { border-color: #c43a3a; background: #fff6f5; }
.field-error { display: none; margin-top: 6px; font-size: .82rem; color: #b32f2f; }
.field-error.show { display: block; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .78rem; color: var(--subtle); margin-top: 10px; }
.form-consent-label { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: .86rem !important; color: var(--muted) !important; cursor: pointer; line-height: 1.5; }
.form-consent-label input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--taiga); cursor: pointer; }
.form-consent-label a { color: var(--signal-600); text-decoration: underline; text-underline-offset: 2px; }
.form-consent-label a:hover { color: var(--ink); }
.contact-form .btn { width: 100%; padding: 16px; }

.form-success { display: none; text-align: center; padding: 36px 16px; }
.form-success.show { display: block; }
.form-success svg { width: 64px; height: 64px; fill: var(--ok); margin-bottom: 14px; }
.form-success h4 { font-size: 2rem; margin-bottom: 6px; color: var(--ink); }
.form-success p { color: var(--muted); }

/* ==========================================================================
   Partners
   ========================================================================== */
#partners { border-top: 1px solid var(--line-strong); }
.partners-scroll {
  overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track { display: flex; align-items: center; gap: clamp(36px, 6vw, 80px); width: max-content; animation: partners-scroll 32s linear infinite; }
.partners-track:hover { animation-play-state: paused; }
.partners-track img { height: clamp(48px, 7vw, 76px); width: auto; flex-shrink: 0; filter: grayscale(1); opacity: .65; transition: filter var(--t), opacity var(--t); }
.partners-track img:hover { filter: none; opacity: 1; }
@keyframes partners-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; background: var(--peat); color: rgba(255, 255, 255, .72); overflow: hidden; }
.footer::before { content: ''; position: absolute; inset: 0; opacity: .07; background: url('/img/contours.svg') center / cover no-repeat; pointer-events: none; }
.footer > * { position: relative; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 64px); padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 4vw, 48px); }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text strong b { color: var(--signal); }
.footer-brand p { margin-top: 18px; max-width: 42ch; font-size: .94rem; line-height: 1.7; }
.footer h5 { font-family: var(--font-head); font-size: 1.35rem; color: #fff; margin-bottom: 16px; font-weight: 700; }
.footer-col li { margin-bottom: 10px; font-size: .94rem; }
.footer-col a { color: rgba(255, 255, 255, .72); transition: color var(--t); }
.footer-col a:hover { color: var(--signal); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding-top: 22px; padding-bottom: 22px; }
.footer-copy { font-size: .86rem; color: rgba(255, 255, 255, .55); }
.footer-links { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer-links a { font-size: .86rem; color: rgba(255, 255, 255, .65); transition: color var(--t); }
.footer-links a:hover { color: var(--signal); }

/* ==========================================================================
   Рейка трассы — навигация по разделам (только широкие экраны)
   ========================================================================== */
.route { display: none; }
@media (min-width: 1380px) {
  .route {
    position: fixed; left: 14px; top: calc(var(--header-h) + 28px); bottom: 28px; width: 44px; z-index: 900;
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
    pointer-events: none;
  }
  .route::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 4px; background: var(--line-strong); }
  .route-fill { position: absolute; left: 6px; top: 0; width: 4px; height: 0; background: var(--signal); transition: height 120ms linear; }
  .route a { position: relative; pointer-events: auto; display: flex; align-items: center; height: 18px; padding-left: 0; }
  .route a i { width: 16px; height: 4px; background: var(--line-strong); display: block; margin-left: 0; transition: width var(--t), background var(--t); }
  .route a span {
    position: absolute; left: 30px; padding: 3px 9px; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem; white-space: nowrap;
    opacity: 0; transform: translateX(-4px); transition: opacity var(--t), transform var(--t); pointer-events: none;
  }
  .route a:hover i, .route a.active i { width: 28px; background: var(--signal); }
  .route a:hover span, .route a.active span { opacity: 1; transform: none; }
  .route.on-dark::before { background: rgba(255, 255, 255, .3); }
}

/* ==========================================================================
   Cookie, scroll-top, reveal
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 10000;
  max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between;
  padding: 16px 20px; background: var(--peat); color: rgba(255, 255, 255, .88);
  border-left: 5px solid var(--signal); box-shadow: var(--shadow-lg);
}
.cookie-banner p { font-size: .88rem; line-height: 1.55; margin: 0; flex: 1 1 320px; }
.cookie-banner a { color: #ffb58a; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner a:hover { color: #fff; }
.cookie-banner-btn {
  padding: 10px 22px; background: var(--signal); color: var(--peat); border: 0; border-radius: var(--r); cursor: pointer; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; touch-action: manipulation;
  transition: background var(--t), transform var(--t);
}
.cookie-banner-btn:hover { background: #ff7a2c; }
.cookie-banner-btn:active { transform: translateY(1px); }

.scroll-top {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: calc(clamp(16px, 3vw, 28px) + env(safe-area-inset-bottom)); z-index: 999;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--peat); border: 0; border-radius: var(--r); cursor: pointer; box-shadow: 4px 4px 0 var(--signal);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t), visibility 0s linear 180ms, transform var(--t), background var(--t); touch-action: manipulation;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t), transform var(--t), background var(--t); }
.scroll-top:hover { background: var(--taiga); }
.scroll-top svg { width: 20px; height: 20px; fill: #fff; }

/* Появление при прокрутке отключено: контент виден сразу, движение — только в первом экране */
.reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1499px) {
  .header-actions .btn { display: none; }
}
@media (max-width: 1119px) {
  .nav, .header-actions { display: none; }
  .burger { display: flex; }
}
@media (max-width: 1100px) {
  .about-grid, .geo-content, .contacts-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-content > .hero-stats { grid-column: 1; grid-row: auto; margin-top: 40px; max-width: 520px; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .logo-mark { width: 44px; height: 44px; }
  .logo-text strong { font-size: 1.35rem; }
  .logo-text small { display: none; }
  .hero { min-height: 0; }
  .hero-contacts { flex-direction: column; gap: 12px; }
  .geo-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .equip-nav { opacity: 1; }
  .section-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .activity-card, .activity-card + .activity-card { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-strong); }
  .contact-form { box-shadow: 6px 6px 0 var(--taiga); }
  /* Пикетаж: вертикальная линия слева */
  .process-timeline { padding-left: 22px; }
  .process-timeline::before { left: 0; right: auto; top: 20px; bottom: 20px; width: 6px; height: auto; background: linear-gradient(90deg, #8a968d, #c3cbc4 35%, #4d5a52); }
  .process-number { margin-left: -22px; }
}
@media (max-width: 480px) {
  .hero-buttons .btn { width: 100%; }
  .cookie-banner { left: 10px; right: 10px; }
  .cookie-banner-btn { width: 100%; }
}
@media print {
  .header, .cookie-banner, .scroll-top, .mobile-nav, .mobile-overlay, .route { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero::after { transform: none; }
  .hero::before { opacity: 1; }
  .partners-track { animation: none; }
}
