/* ============================================================
   SMART WAY — Торгово-логистический оператор
   Дизайн-система: графитовый минимализм + красный акцент
   ============================================================ */

:root {
  /* Палитра */
  --ink:        #2b2b2b;   /* основной графит: шапка, футер, тёмные блоки */
  --ink-2:      #383838;   /* карточки на тёмном */
  --ink-3:      #444444;   /* бордеры на тёмном */
  --red:        #e1251b;   /* акцент */
  --red-2:      #ff3b2f;
  --paper:      #ffffff;
  --paper-2:    #f2f2f2;   /* серая заливка секций */
  --paper-3:    #e8e8e8;
  --line:       #dcdcdc;
  --muted:      #6b6b6b;
  --muted-light:rgba(255,255,255,.62);

  --wrap: 1320px;
  --hdr: 84px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --bs-body-font-family: 'Manrope', system-ui, sans-serif;
}

*,
*::before,
*::after { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;              /* крупнее, как на референсе */
  line-height: 1.62;
  font-weight: 500;
  overflow-x: hidden;
  letter-spacing: -.005em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.08;
  color: var(--ink);
}

a { text-decoration: none; color: inherit; transition: color .3s var(--ease), opacity .3s var(--ease); }
img { max-width: 100%; }
::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: #bdbdbd; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

.container,
.container-fluid { max-width: var(--wrap); padding-left: 32px; padding-right: 32px; margin: 0 auto; width: 100%; }
.container-fluid.px-0 { padding-left: 32px; padding-right: 32px; }

/* ============================================================
   1. ТИПОГРАФИКА И БАЗОВЫЕ ЭЛЕМЕНТЫ
   ============================================================ */

.section     { padding: 110px 0; position: relative; }
.section-sm  { padding: 78px 0; position: relative; }
.section.pt-0, .section-sm.pt-0 { padding-top: 0; }

/* серая заливка */
.band { background: var(--paper-2); }

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -.035em;
}
.section-title.text-white { color: #fff; }

.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
  font-weight: 500;
  line-height: 1.65;
}
.section-lead.mx-auto { margin-left: auto; margin-right: auto; }

.lead { font-size: 1.15rem; color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.note  { font-size: .92rem; color: var(--muted); }
.accent, .text-orange { color: var(--red) !important; }
.fw-800 { font-weight: 800; }
.text-white { color: #fff !important; }

/* ---------- Фирменный «флажок» — ключевой графический элемент ---------- */
.flag,
.eyebrow::before,
.stat-item::before,
.svc-card::before,
.geo-card::before {
  content: '';
  display: block;
  width: 34px;
  height: 22px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
  flex: 0 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before { width: 22px; height: 14px; background: var(--red); }
.text-white .eyebrow, .cta-wrap .eyebrow, .stats-wrap .eyebrow { color: var(--red-2); }

/* ============================================================
   2. КНОПКИ
   ============================================================ */

.btn {
  --btn-y: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: -.01em;
  padding: var(--btn-y) 30px;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
  z-index: -1;
}
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.btn-orange {                 /* главная — красная */
  background: var(--red);
  color: #fff;
}
/* красный контур на ховере — толщина 2px, как у базовой .btn,
   иначе кнопка «дёргается» на 1px при наведении */
.btn-orange:hover { color: #fff; border-color: var(--red); }

.btn-ghost {                  /* контурная на светлом */
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { color: #fff; }

.btn-ghost-light {            /* контурная на тёмном */
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.btn-ghost-light::after { background: #fff; }
.btn-ghost-light:hover { color: var(--ink); border-color: #fff; }

.btn-sm    { --btn-y: 11px; padding-left: 22px; padding-right: 22px; font-size: .9rem; }
.btn-lg-sw { --btn-y: 19px; padding-left: 40px; padding-right: 40px; font-size: 1.02rem; }
.w-100 { width: 100%; }

/* стрелка внутри кнопки едет вправо */
.btn i { transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(4px); }

/* ============================================================
   3. ШАПКА (залипающая)
   ============================================================ */

.sw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  border-bottom: 3px solid var(--red);
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
}
.sw-header.scrolled { box-shadow: 0 14px 44px rgba(0,0,0,.34); }

/* индикатор прокрутки — тонкая линия поверх красной подложки */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.sw-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  height: var(--hdr);
  transition: height .4s var(--ease);
}
.sw-header.scrolled .sw-nav { height: 68px; }

.sw-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -.045em;
  flex-shrink: 0;
  line-height: 1;
}
.sw-logo::before {
  content: '';
  width: 40px;
  height: 26px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
  transition: transform .4s var(--ease);
}
.sw-logo:hover::before { transform: translateX(5px) skewX(-6deg); }
.sw-logo:hover { color: #fff; }

.sw-logo-mark { display: none; }   /* старая иконка не используется */

/* ---------- Логотип-картинка ---------- */
.sw-logo--img { gap: 0; }
.sw-logo--img::before { display: none; }   /* у логотипа свой знак */
.sw-logo--img img {
  display: block;
  height: 100px;
  width: auto;
  transition: height .4s var(--ease), transform .4s var(--ease);
}
.sw-header.scrolled .sw-logo--img img { height: 70px; }
.sw-logo--img:hover img { transform: translateX(3px); }
.sw-drawer .sw-logo--img img { height: 34px; }
.sw-footer .sw-logo--img img { height: 80px; margin-bottom: 18px; }

.sw-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.sw-menu > a,
.sw-drop-toggle {
  position: relative;
  color: rgba(255,255,255,.88);
  font-weight: 700;
  font-size: .97rem;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.sw-menu > a::after,
.sw-drop-toggle::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease-out);
}
.sw-menu > a:hover,
.sw-drop-toggle:hover,
.sw-drop.open .sw-drop-toggle { color: #fff; }
.sw-menu > a:hover::after,
.sw-drop-toggle:hover::after,
.sw-drop.open .sw-drop-toggle::after { transform: scaleX(1); }
.sw-drop-toggle .bi-chevron-down { font-size: .7rem; transition: transform .35s var(--ease); }
.sw-drop.open .sw-drop-toggle .bi-chevron-down { transform: rotate(180deg); }

/* выпадающее меню */
.sw-drop { position: relative; }
.sw-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  transform: translateY(12px);
  width: min(620px, calc(100vw - 64px));
  background: #fff;
  border-top: 3px solid var(--red);
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .38s var(--ease-out), visibility .3s;
}
.sw-drop.open .sw-drop-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.sw-drop-menu::before {
  content: '';
  position: absolute;
  top: -18px; left: 0; right: 0; height: 18px;
}
.sw-drop-menu a {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 14px;
  color: var(--ink);
  transition: background .28s var(--ease), transform .28s var(--ease);
}
.sw-drop-menu a i { color: var(--red); font-size: 1.15rem; margin-top: 2px; transition: transform .3s var(--ease); }
.sw-drop-menu a span { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.sw-drop-menu a b  { font-size: .96rem; font-weight: 800; }
.sw-drop-menu a em { font-style: normal; font-size: .84rem; color: var(--muted); font-weight: 500; }
.sw-drop-menu a:hover { background: var(--paper-2); }
.sw-drop-menu a:hover i { transform: translateX(3px); }

.sw-header-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.sw-header-contacts > a {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.sw-header-contacts > a:hover { color: var(--red-2); }

/* бургер */
.sw-burger {
  display: none;
  width: 46px;
  height: 46px;
  background: none;
  border: 2px solid rgba(255,255,255,.3);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.sw-burger span { width: 20px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s; }

/* мобильное меню */
.sw-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  background: var(--ink);
  z-index: 1200;
  padding: 26px 26px 46px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .5s var(--ease-out);
  border-left: 3px solid var(--red);
}
.sw-drawer.open { transform: translateX(0); }
.sw-drawer .sw-logo { font-size: 1.25rem; }
.d-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0;
  color: #fff;
  font-weight: 800;
  font-size: 1.08rem;
  border-bottom: 1px solid rgba(255,255,255,.11);
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.d-sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease-out);
}
.d-sub-menu a {
  display: block;
  padding: 11px 0 11px 18px;
  color: rgba(255,255,255,.66);
  font-size: .97rem;
  font-weight: 600;
  border-left: 2px solid rgba(255,255,255,.15);
  margin-left: 2px;
}
.d-sub-menu a:hover { color: var(--red-2); border-left-color: var(--red); }
.d-sub.open .d-sub-toggle .bi { transform: rotate(180deg); }
.d-sub-toggle .bi { transition: transform .3s var(--ease); }

/* ============================================================
   4. ГЕРОЙ — полноэкранное фото + текст справа
   ============================================================ */

.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  overflow: hidden;
  padding: 90px 0 0;
}
.hero > .container { width: 100%; flex: 1 0 auto; display: flex; align-items: center; }
/* без min-width:0 флекс-элемент не сжимается уже min-content
   и длинный заголовок вылезает за контейнер на узких экранах */
.hero > .container > * { min-width: 0; width: 100%; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 112%;               /* запас под параллакс */
  object-fit: cover;
  will-change: transform;
  /* анимируем `scale` отдельным свойством, чтобы не конфликтовать
     с `transform`, которым скрипт двигает фото при параллаксе */
  animation: heroZoom 24s var(--ease) forwards;
}
@keyframes heroZoom {
  from { scale: 1.14; }
  to   { scale: 1; }
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,20,20,.86) 0%, rgba(20,20,20,.55) 42%, rgba(20,20,20,.28) 70%, rgba(20,20,20,.62) 100%),
    linear-gradient(0deg, rgba(20,20,20,.72) 0%, rgba(20,20,20,0) 45%);
}
.hero .container { position: relative; z-index: 2; }

.hero-inner { position: relative; }
.hero-grid-bg {
  position: absolute;
  inset: -20% -10%;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 74px 74px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 72%);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.4vw, 4.7rem); 
  line-height: 1.02;
  letter-spacing: -.042em;
  margin: 0 0 26px;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hero h1 em {
  font-style: normal;
  color: var(--red-2);
  position: relative;
  white-space: nowrap;
}
/* на узких экранах строку нельзя держать неразрывной — она шире вьюпорта */
@media (max-width: 991px) {
  .hero h1 em { white-space: normal; }
}
.hero-lead {
  color: rgba(255,255,255,.8);
  font-size: 1.16rem;
  max-width: 56ch;
  margin-bottom: 34px;
  font-weight: 500;
}
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--red); }

/* компетенции — бегущая строка */
.hero-caps {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 0 0 auto;
  margin-top: 58px;
  background: rgba(20,20,20,.42);
  backdrop-filter: blur(3px);
  display: flex;
  gap: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hero-caps-track {
  display: flex;
  gap: 0;
  flex: 0 0 auto;
  animation: marquee 34s linear infinite;
}
.hero-caps:hover .hero-caps-track { animation-play-state: paused; }
.hero-caps span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 34px;
  color: rgba(255,255,255,.86);
  font-weight: 800;
  font-size: .96rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.hero-caps span::before {
  content: '';
  width: 15px; height: 10px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* скролл-подсказка */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 54px;
  background: rgba(255,255,255,.25);
  overflow: hidden;
}
.hero-scroll::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ---------- полоса направлений ---------- */
.dir-strip { margin-top: 0; position: relative; z-index: 3; }
.dir-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 36px 32px;
  background: var(--paper-2);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: background .45s var(--ease), color .45s var(--ease), transform .45s var(--ease-out);
  isolation: isolate;
}
.dir-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform .55s var(--ease-out);
  z-index: -1;
}
.dir-card:hover::before { transform: translateY(0); }
.dir-card:hover { color: #fff; transform: translateY(-4px); }
.dir-idx {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -.02em;
  padding-top: 3px;
}
.dir-body { display: flex; flex-direction: column; gap: 7px; }
.dir-body b  { font-size: 1.24rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.dir-body em { font-style: normal; font-size: .96rem; color: var(--muted); font-weight: 500; transition: color .45s var(--ease); }
.dir-card:hover .dir-body em { color: rgba(255,255,255,.66); }
.dir-arr {
  margin-left: auto;
  font-size: 1.3rem;
  transition: transform .45s var(--ease-out);
  align-self: center;
}
.dir-card:hover .dir-arr { transform: translate(5px,-5px); color: var(--red-2); }

/* ============================================================
   5. УСЛУГИ
   ============================================================ */

.svc-card {
  background: var(--paper);
  padding: 40px 34px 38px;
  height: 100%;
  position: relative;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.svc-card::before { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--red); clip-path: none; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 58px rgba(0,0,0,.13);
  border-color: transparent;
}
.svc-ico {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  margin-bottom: 26px;
  transition: background .4s var(--ease), transform .5s var(--ease-out);
}
.svc-card:hover .svc-ico { background: var(--red); transform: rotate(-6deg) scale(1.06); }
.svc-card h3 { font-size: 1.32rem; margin: 0 0 12px; letter-spacing: -.032em; }
.svc-card p  { margin: 0; color: var(--muted); font-size: 1rem; }

/* компактная карточка операционной услуги */
.op-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
  padding: 28px 24px 26px;
  background: var(--paper);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
.op-card::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.op-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0,0,0,.12); }
.op-card:hover::after { transform: scaleX(1); }
.op-card > i { font-size: 1.6rem; color: var(--red); margin-bottom: 4px; }
.op-card b { font-size: 1.08rem; font-weight: 800; letter-spacing: -.028em; line-height: 1.25; }
.op-card span { font-size: .94rem; color: var(--muted); line-height: 1.5; }

/* карточка с фото */
.svc-split {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .5s var(--ease), border-color .4s var(--ease), transform .5s var(--ease-out);
}
.svc-split:hover { box-shadow: 0 26px 58px rgba(0,0,0,.14); border-color: transparent; transform: translateY(-6px); }
.svc-split-media { position: relative; overflow: hidden; aspect-ratio: 16/8; }
.svc-split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.svc-split:hover .svc-split-media img { transform: scale(1.07); }
.svc-tag {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .02em;
  padding: 10px 20px;
}
.svc-split-body { padding: 32px 34px 34px; }
.svc-split-body h3 { font-size: 1.45rem; margin: 0 0 12px; letter-spacing: -.033em; }
.svc-split-body p  { color: var(--muted); margin: 0 0 20px; }
.svc-link {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-weight: 800;
  font-size: .96rem;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
}
.svc-link::before {
  content: '';
  position: absolute;
  left: 0; right: 22px; bottom: -5px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.svc-link:hover { color: var(--red); }
.svc-link:hover::before { transform: scaleX(1); }
.svc-link i { transition: transform .35s var(--ease); }
.svc-link:hover i { transform: translateX(5px); }

/* ============================================================
   5b. НАПРАВЛЕНИЯ ИМПОРТА — раскрывающийся список
   ============================================================ */

.dirs { border-top: 2px solid var(--ink); }

.dir-item {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background .4s var(--ease);
}
.dir-item:last-child { border-bottom: 2px solid var(--ink); }
.dir-item.open { background: var(--paper); }

.dir-head-wrap { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: normal; line-height: inherit; }

.dir-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 28px 30px 24px;
  background: none;
  border: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  color: var(--ink);
  transition: padding-left .45s var(--ease-out), color .3s var(--ease);
}
.dir-head::before {                    /* красная полоса слева при наведении/раскрытии */
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease-out);
}
.dir-head:hover { padding-left: 34px; }
.dir-head:hover::before,
.dir-item.open .dir-head::before { transform: scaleY(1); }
.dir-item.open .dir-head { padding-left: 34px; }
.dir-head:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

.dir-no {
  flex: 0 0 auto;
  font-size: .95rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.dir-ico {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1.4rem;
  transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease-out);
}
.dir-head:hover .dir-ico,
.dir-item.open .dir-ico { background: var(--ink); color: #fff; }
.dir-item.open .dir-ico { background: var(--red); transform: rotate(-6deg); }

.dir-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dir-name {
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.032em;
  line-height: 1.2;
}
.dir-hint { font-size: .95rem; color: var(--muted); font-weight: 500; }

.dir-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  width: 44px; height: 44px;
  position: relative;
  background: var(--paper-2);
  transition: background .35s var(--ease), transform .5s var(--ease-out);
}
.dir-toggle::before,
.dir-toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 2px;
  background: var(--ink);
  transform: translate(-50%,-50%);
  transition: transform .45s var(--ease-out), background .35s var(--ease);
}
.dir-toggle::after { transform: translate(-50%,-50%) rotate(90deg); }
.dir-head:hover .dir-toggle { background: var(--ink); }
.dir-head:hover .dir-toggle::before,
.dir-head:hover .dir-toggle::after { background: #fff; }
.dir-item.open .dir-toggle { background: var(--red); transform: rotate(180deg); }
.dir-item.open .dir-toggle::before,
.dir-item.open .dir-toggle::after { background: #fff; }
.dir-item.open .dir-toggle::after { transform: translate(-50%,-50%) rotate(0deg); }

/* раскрывающаяся панель */
.dir-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease-out);
}
.dir-panel-in {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  padding: 4px 28px 42px 34px;
}
.dir-col h4 {
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 800;
  margin: 0 0 14px;
}
.dir-col > p { color: var(--muted); margin: 0 0 20px; font-size: 1.02rem; }

.dir-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dir-list li {
  display: flex;
  gap: 14px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
.dir-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 17px; height: 11px;
  margin-top: 8px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
}

.dir-specs { margin: 0 0 26px; display: flex; flex-direction: column; gap: 0; }
.dir-specs > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.dir-specs dt { font-size: .93rem; color: var(--muted); font-weight: 600; flex: 0 0 auto; }
.dir-specs dd { margin: 0; font-size: .98rem; font-weight: 800; letter-spacing: -.02em; text-align: right; }

.dir-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.dir-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: .97rem;
  color: var(--ink);
  position: relative;
  padding: 13px 0;
}
.dir-more::before {
  content: '';
  position: absolute;
  left: 0; right: 20px; bottom: 8px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.dir-more:hover { color: var(--red); }
.dir-more:hover::before { transform: scaleX(1); }
.dir-more i { transition: transform .35s var(--ease); }
.dir-more:hover i { transform: translateX(5px); }

/* тёмный вариант списка преимуществ — для светлых страниц услуг */
.feature-list--dark li { color: var(--ink) !important; }
.feature-list--dark li::before { background: var(--red); }

@media (max-width: 991px) {
  .dir-head { gap: 16px; padding: 24px 18px 24px 18px; }
  .dir-ico { display: none; }
  .dir-panel-in { grid-template-columns: 1fr; gap: 28px; padding: 4px 18px 34px 26px; }
}
@media (max-width: 767px) {
  .sw-header .sw-logo--img img,
  .sw-header.scrolled .sw-logo--img img { height: 32px; }
}
@media (max-width: 575px) {
  .sw-header .sw-logo--img img,
  .sw-header.scrolled .sw-logo--img img { height: 80px; }
  .dir-head { gap: 12px; padding: 20px 14px; }
  .dir-toggle { width: 38px; height: 38px; }
  .dir-hint { display: none; }
  .dir-specs > div { flex-direction: column; gap: 3px; }
  .dir-specs dd { text-align: left; }
}

/* ============================================================
   6. ЦИФРЫ — как на референсе: флажок + крупное число
   ============================================================ */

.stats-wrap {
  background: var(--paper-2);
  padding: 74px 60px 68px;
  position: relative;
}
.stats-wrap .section-title,
.stats-wrap .section-title.text-white { color: var(--ink); }

.stat-item {
  padding: 26px 30px 26px 46px;
  position: relative;
}
.stat-item::before {
  position: absolute;
  top: 34px; left: 0;
  width: 30px; height: 19px;
  background: var(--ink);
}

.stat-num {
  font-size: clamp(2.6rem, 4.4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.42;
  max-width: 24ch;
}

/* ============================================================
   7. ПОЛНОЭКРАННЫЙ БЛОК С ФОТО (преимущества)
   ============================================================ */

.feature-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 660px;
  background: var(--ink);
  overflow: hidden;
}
.feature-split-media { position: relative; overflow: hidden; }
.feature-split-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature-split-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,20,20,.25) 0%, rgba(20,20,20,0) 45%, rgba(43,43,43,.95) 100%);
}
.feature-split-body {
  padding: 84px 70px 84px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.feature-split-body h2 { color: #fff; font-size: clamp(2.1rem, 3.6vw, 3.3rem); margin: 0 0 34px; letter-spacing: -.038em; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.feature-list li {
  display: flex;
  gap: 17px;
  color: rgba(255,255,255,.86);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.45;
}
.feature-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 20px; height: 13px;
  margin-top: 8px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
  transition: transform .4s var(--ease);
}
.feature-list li:hover::before { transform: translateX(4px); }

/* зеркальный вариант: фото справа, текст слева */
.feature-split--rev .feature-split-media { order: 2; }
.feature-split--rev .feature-split-body  { order: 1; padding: 84px 56px 84px 70px; }
.feature-split--rev .feature-split-media::after {
  background: linear-gradient(-90deg, rgba(20,20,20,.25) 0%, rgba(20,20,20,0) 45%, rgba(43,43,43,.95) 100%);
}

/* лого-локап в тёмном блоке */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.16);
  width: fit-content;
}
.brand-lockup-mark {
  width: 74px; height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -.05em;
  flex-shrink: 0;
  transition: transform .5s var(--ease-out);
}
.brand-lockup:hover .brand-lockup-mark { transform: rotate(-6deg) scale(1.05); }
.brand-lockup-text {
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -.04em;
}

/* ============================================================
   8. О КОМПАНИИ / ЦИТАТА / ФАКТЫ
   ============================================================ */

.pull-quote {
  background: var(--ink);
  color: #fff;
  padding: 48px 48px 40px;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.pull-quote::before {
  content: '“';
  position: absolute;
  top: -34px; right: 24px;
  font-size: 14rem;
  line-height: 1;
  color: rgba(255,255,255,.07);
  font-family: Georgia, serif;
}
.pull-quote p {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.028em;
  margin: 0 0 30px;
  position: relative;
}
.pull-quote footer { display: flex; align-items: center; gap: 16px; }
.pq-avatar {
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.pull-quote footer span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.pull-quote footer b  { font-size: 1.02rem; font-weight: 800; }
.pull-quote footer em { font-style: normal; font-size: .9rem; color: rgba(255,255,255,.55); font-weight: 500; }

.about-media { position: relative; height: 100%; min-height: 340px; overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.about-media:hover img { transform: scale(1.06); }

.fact-card {
  background: var(--paper-2);
  padding: 32px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  overflow: hidden;
  transition: background .45s var(--ease), color .45s var(--ease), transform .45s var(--ease-out);
}
.fact-card::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.fact-card:hover { transform: translateY(-5px); }
.fact-card:hover::after { transform: scaleX(1); }
.fact-card i { font-size: 1.7rem; color: var(--red); margin-bottom: 6px; }
.fact-card b { font-size: 1.12rem; font-weight: 800; letter-spacing: -.028em; }
.fact-card span { font-size: .97rem; color: var(--muted); line-height: 1.5; }

/* ============================================================
   9. ПРОЦЕСС
   ============================================================ */

.steps-line { position: relative; }
.step-card {
  height: 100%;
  padding: 38px 28px 34px;
  background: var(--paper);
  border-top: 3px solid var(--line);
  position: relative;
  transition: border-color .45s var(--ease), transform .5s var(--ease-out), background .45s var(--ease);
}
.step-card:hover { border-top-color: var(--red); transform: translateY(-6px); background: var(--paper-2); }
.step-num {
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--paper-3);
  margin-bottom: 18px;
  transition: color .45s var(--ease);
}
.step-card:hover .step-num { color: var(--red); }
.step-card h4 { font-size: 1.2rem; margin: 0 0 11px; letter-spacing: -.03em; }
.step-card p  { margin: 0; color: var(--muted); font-size: .98rem; }

/* ============================================================
   10. ГЕОГРАФИЯ
   ============================================================ */

.geo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease-out);
}
.geo-card::before { display: none; }
.geo-card:hover { background: var(--ink); color: #fff; transform: translateX(5px); }
.geo-flag {
  width: 46px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  flex-shrink: 0;
  transition: background .4s var(--ease);
}
.geo-card:hover .geo-flag { background: var(--red); }
.geo-name { font-weight: 800; font-size: 1.04rem; letter-spacing: -.025em; }
.geo-days {
  margin-left: auto;
  font-size: .93rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: color .4s var(--ease);
}
.geo-card:hover .geo-days { color: var(--red-2); }

/* ============================================================
   11. FAQ
   ============================================================ */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 26px 0;
  text-align: left;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.028em;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: color .3s var(--ease);
  line-height: 1.32;
}
.faq-q:hover { color: var(--red); }
.faq-q .plus {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  font-size: 1.3rem;
  font-weight: 500;
  transition: transform .45s var(--ease-out), background .35s var(--ease), color .35s var(--ease);
}
.faq-item.active .faq-q { color: var(--red); }
.faq-item.active .plus { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out); }
.faq-a-inner { padding: 0 0 28px; color: var(--muted); font-size: 1.02rem; max-width: 76ch; }

/* ============================================================
   12. CTA + ФОРМЫ
   ============================================================ */

.cta-wrap {
  background: var(--ink);
  padding: 76px 64px;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--red);
}
.cta-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%);
}
.cta-wrap .section-title { color: #fff; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-row .ico {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  color: var(--red-2);
  flex-shrink: 0;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.contact-row:hover .ico { background: var(--red); color: #fff; }
.contact-row .lbl { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.58); font-weight: 700; margin-bottom: 3px; }
.contact-row .val { color: #fff; font-weight: 800; font-size: 1.08rem; letter-spacing: -.025em; }
a.val:hover { color: var(--red-2); }

/* поля */
.sw-form .form-control,
.sw-form .form-select {
  width: 100%;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 0;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.sw-form .form-control::placeholder { color: #9a9a9a; font-weight: 500; }
.sw-form .form-control:focus,
.sw-form .form-select:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(225,37,27,.16);
}
.sw-form .form-control.is-invalid,
.sw-form .form-select.is-invalid { border-color: var(--red); background: #fff5f4; }
.sw-form textarea.form-control { resize: vertical; min-height: 110px; }

.form-check { display: flex; align-items: flex-start; gap: 11px; }
.form-check-input {
  width: 21px; height: 21px;
  flex-shrink: 0;
  margin-top: 3px;
  border: 2px solid rgba(255,255,255,.4);
  background: transparent;
  border-radius: 0;
  appearance: none;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.form-check-input:checked { background: var(--red); border-color: var(--red); }
.form-check-input:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.form-check-input.is-invalid { border-color: var(--red-2); box-shadow: 0 0 0 3px rgba(225,37,27,.25); }
.form-check-label { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.5; font-weight: 500; }
.form-check-label a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.form-check-label a:hover { color: var(--red-2); }

.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; animation: popIn .55s var(--ease-out); }
.form-success .ok {
  width: 74px; height: 74px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 2rem;
}
.form-success h4 { font-size: 1.5rem; margin-bottom: 10px; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-7px); }
  40%,80% { transform: translateX(7px); }
}
.sw-form.shake { animation: shake .45s; }

/* ---------- Совместимость с Contact Form 7 ----------
   CF7 оборачивает каждое поле в inline-span и добавляет
   свои сообщения — приводим их к виду остальных форм.      */

.sw-form .wpcf7-form-control-wrap { display: block; }

/* поле с ошибкой */
.sw-form .wpcf7-not-valid { border-color: var(--red); background: #fff5f4; }
.sw-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 7px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--red-2);
}

/* согласие на обработку данных */
.sw-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.sw-form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}
.sw-form .wpcf7-acceptance input[type="checkbox"] {
  width: 21px; height: 21px;
  flex-shrink: 0;
  margin-top: 3px;
  border: 2px solid rgba(255,255,255,.4);
  background: transparent;
  border-radius: 0;
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.sw-form .wpcf7-acceptance input[type="checkbox"]:checked { background: var(--red); border-color: var(--red); }
.sw-form .wpcf7-acceptance input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.sw-form .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
  font-weight: 500;
}
.sw-form .wpcf7-acceptance a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* итоговое сообщение формы */
.sw-form .wpcf7-response-output {
  margin: 22px 0 0;
  padding: 16px 20px;
  border: 0;
  border-left: 4px solid var(--red);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
}
.sw-form.sent .wpcf7-response-output { border-left-color: #2ecc71; }

/* индикатор отправки */
.sw-form .wpcf7-spinner { margin: 0 0 0 12px; }
.sw-form .wpcf7-submit[disabled] { opacity: .6; cursor: default; }

/* на светлом фоне (если форма стоит вне тёмного блока) */
.sw-form--light .wpcf7-acceptance input[type="checkbox"] { border-color: var(--line); }
.sw-form--light .wpcf7-acceptance .wpcf7-list-item-label { color: var(--muted); }
.sw-form--light .wpcf7-acceptance a { color: var(--ink); }
.sw-form--light .wpcf7-response-output { background: var(--paper-2); color: var(--ink); }

/* ---------- сетка контактов (как на референсе) ---------- */
.contact-tile { padding: 4px 0 6px; }
.contact-tile b {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.028em;
  margin-bottom: 12px;
  line-height: 1.3;
}
.contact-tile a,
.contact-tile span {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
}
.contact-tile a { position: relative; width: fit-content; }
.contact-tile a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.contact-tile a:hover { color: var(--ink); }
.contact-tile a:hover::after { transform: scaleX(1); }

/* ============================================================
   11b. ТЕНДЕРЫ
   ============================================================ */

.tender {
  display: grid;
  /* minmax(0,…) обязателен: иначе колонка не сжимается уже min-content
     своего содержимого и панель разъезжается на узких экранах */
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  background: var(--paper-2);
  border-left: 6px solid var(--red);
  position: relative;
  overflow: hidden;
}
.tender::before {                       /* лёгкая сетка на фоне панели */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43,43,43,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,43,43,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse at 88% 12%, #000, transparent 70%);
  pointer-events: none;
}

.tender-main {
  padding: 66px 56px 62px;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.tender-title {
  font-size: clamp(2.1rem, 3.7vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0 0 26px;
}
.tender-text {
  font-size: 1.08rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 34px;
}
.tender-btn { width: 100%; max-width: 460px; }

.tender-side {
  padding: 66px 56px 62px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px 30px;
  align-content: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.tender-fact {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.tender-fact b {
  display: block;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -.028em;
  margin-bottom: 8px;
  line-height: 1.25;
}
.tender-fact span {
  display: block;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 991px) {
  .tender { grid-template-columns: minmax(0, 1fr); border-left-width: 5px; }
  .tender-main { padding: 42px 28px 34px; }
  .tender-side { padding: 0 28px 44px; gap: 22px 26px; }
}
@media (max-width: 575px) {
  .tender-side { grid-template-columns: minmax(0, 1fr); }
  /* длинная надпись должна переноситься, иначе кнопка шире экрана */
  .tender-btn {
    max-width: none;
    white-space: normal;
    padding-left: 22px;
    padding-right: 22px;
    text-align: center;
  }
}

/* ---------- Полоса реквизитов ---------- */
.req-strip {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px 34px;
}
.req-item dt {
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 7px;
}
.req-item dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.4;
}
.req-item dd a { color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 1px; }
.req-item dd a:hover { color: var(--red); }
.req-item dd i { font-size: .82rem; }

/* ============================================================
   13. ФУТЕР
   ============================================================ */

.sw-footer {
  background: var(--ink);
  color: #fff;
  padding: 76px 0 34px;
  border-top: 3px solid var(--red);
}
.sw-footer .container-fluid { max-width: var(--wrap); }
.sw-footer h6 {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  font-weight: 800;
  margin-bottom: 20px;
}
.sw-footer a:not(.sw-logo):not(.soc) {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 0;
  width: fit-content;
  position: relative;
}
.sw-footer a:not(.sw-logo):not(.soc):hover { color: #fff; }
.sw-footer a.d-inline { display: inline-block; }
.soc {
  width: 44px; height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.15rem;
  transition: background .35s var(--ease), transform .35s var(--ease-out);
}
.soc:hover { background: var(--red); transform: translateY(-3px); }
.footer-bottom {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.44);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.6;
}
.footer-req { color: rgba(255,255,255,.32); font-size: .84rem; }

/* ============================================================
   14. ПОПАП / COOKIE / FAB
   ============================================================ */

.sw-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,.72);
  backdrop-filter: blur(6px);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.sw-popup-overlay.open { opacity: 1; visibility: visible; }
.sw-popup {
  background: var(--ink);
  width: min(940px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(.97);
  transition: transform .5s var(--ease-out);
  border-top: 3px solid var(--red);
}
.sw-popup-overlay.open .sw-popup { transform: none; }
.sw-popup-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 0;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 4;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.sw-popup-close:hover { background: var(--red); transform: rotate(90deg); }
.sw-popup-close.position-static { position: static; }
.sw-popup-aside {
  background: #232323;
  padding: 46px 40px;
  position: relative;
  overflow: hidden;
}
.sw-popup-aside h4 { color: #fff; font-size: 1.5rem; margin: 0 0 14px; letter-spacing: -.032em; }
.sw-popup-aside p  { color: rgba(255,255,255,.6); font-size: .98rem; margin-bottom: 24px; }
.sw-popup-aside ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.sw-popup-aside li {
  display: flex;
  gap: 12px;
  color: rgba(255,255,255,.84);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
}
.sw-popup-aside li::before {
  content: '';
  flex: 0 0 auto;
  width: 16px; height: 11px;
  margin-top: 6px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
}
.sw-popup-body { padding: 46px 40px; }

.cookie-bar {
  position: fixed;
  left: 22px; right: 22px; bottom: 22px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--ink);
  color: rgba(255,255,255,.8);
  padding: 20px 24px;
  z-index: 1250;
  font-size: .93rem;
  border-left: 3px solid var(--red);
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
  transform: translateY(140%);
  transition: transform .55s var(--ease-out);
}
.cookie-bar.show { transform: none; }
.cookie-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.fab {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 62px; height: 62px;
  background: var(--red);
  color: #fff;
  border: 0;
  z-index: 1100;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(225,37,27,.42);
  transition: transform .4s var(--ease-out), background .3s var(--ease);
}
.fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--red);
  animation: fabPulse 2.6s var(--ease) infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: .8; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.fab:hover { transform: translateY(-4px) scale(1.05); background: var(--ink); }

/* ============================================================
   15. ВНУТРЕННИЕ СТРАНИЦЫ
   ============================================================ */

.page-hero {
  background: var(--ink);
  padding: 92px 0 84px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--red);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse at 75% 30%, #000, transparent 72%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 900px; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  letter-spacing: -.04em;
  margin: 0 0 22px;
}
.page-hero .lead { color: rgba(255,255,255,.74); max-width: 70ch; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255,255,255,.46);
  margin-bottom: 24px;
}
.crumbs a { color: rgba(255,255,255,.72); }
.crumbs a:hover { color: var(--red-2); }
.crumbs .bi { font-size: .68rem; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.page-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.84);
  font-size: .9rem;
  font-weight: 700;
}
.page-hero-meta span::before {
  content: '';
  width: 14px; height: 9px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
}

/* чипы-фильтры */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  padding: 11px 22px;
  background: var(--paper-2);
  font-weight: 800;
  font-size: .93rem;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.chip:hover { background: var(--paper-3); }
.chip.active { background: var(--ink); color: #fff; }

/* карточки проектов */
.project-card {
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease-out), border-color .4s var(--ease);
}
.project-card:hover { box-shadow: 0 26px 58px rgba(0,0,0,.14); transform: translateY(-6px); border-color: transparent; }
.project-media { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.project-card:hover .project-media img { transform: scale(1.07); }
.project-tag {
  position: absolute;
  top: 0; left: 0;
  background: var(--red);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  padding: 9px 18px;
  letter-spacing: .02em;
}
.project-body { padding: 28px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.project-body h3 { font-size: 1.28rem; margin: 0 0 12px; letter-spacing: -.032em; }
.project-body p  { color: var(--muted); font-size: .98rem; margin: 0 0 18px; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
  font-weight: 700;
}
.project-meta i { color: var(--red); margin-right: 6px; }

/* таймлайн */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
}
.tl-item { position: relative; padding: 0 0 34px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -33px; top: 7px;
  width: 18px; height: 12px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
}
.tl-when { font-size: .84rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 7px; }
.tl-item h4 { font-size: 1.15rem; margin: 0 0 8px; letter-spacing: -.03em; }
.tl-item p  { color: var(--muted); font-size: .98rem; margin: 0; }

/* таблицы */
.sw-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.sw-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.sw-table th {
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 17px 22px;
  text-align: left;
  white-space: nowrap;
}
.sw-table td {
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  font-size: .99rem;
  font-weight: 600;
}
/* второстепенная строка внутри ячейки — с новой строки, а не встык */
.sw-table td .muted {
  display: block;
  margin-top: 5px;
  font-size: .92rem;
  font-weight: 500;
}
.sw-table td a { text-decoration: underline; text-underline-offset: 3px; }
.sw-table td a:hover { color: var(--red); }
.sw-table tbody tr { transition: background .28s var(--ease); }
.sw-table tbody tr:hover { background: var(--paper-2); }
.sw-table tbody tr:last-child td { border-bottom: 0; }

/* документы */
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--paper-2);
  height: 100%;
  font-weight: 700;
  font-size: 1rem;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease-out);
}
.doc-item i { font-size: 1.5rem; color: var(--red); transition: color .35s var(--ease); }
.doc-item:hover { background: var(--ink); color: #fff; transform: translateX(5px); }
.doc-item:hover i { color: var(--red-2); }

/* команда */
.team-card {
  background: var(--paper-2);
  padding: 34px 28px;
  height: 100%;
  text-align: center;
  transition: background .4s var(--ease), transform .45s var(--ease-out);
}
.team-card:hover { transform: translateY(-6px); background: var(--paper-3); }
.team-ava {
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.03em;
  transition: background .4s var(--ease);
}
.team-card:hover .team-ava { background: var(--red); }

/* карта */
.map-frame { overflow: hidden; border: 1px solid var(--line); height: 100%; min-height: 340px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease); }
.map-frame:hover iframe { filter: none; }
.map-placeholder {
  background: var(--paper-2);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  padding: 30px;
}
.map-placeholder i { font-size: 2.4rem; color: var(--red); }

/* ============================================================
   16. АНИМАЦИИ ПОЯВЛЕНИЯ
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   17. АДАПТИВ
   ============================================================ */

@media (max-width: 1400px) {
  .sw-nav { gap: 17px; }
  .sw-menu > a, .sw-drop-toggle { padding: 10px 11px; font-size: .93rem; }
  .sw-menu > a::after, .sw-drop-toggle::after { left: 11px; right: 11px; }
  .sw-header-contacts { gap: 14px; }
  .sw-header-contacts > a { font-size: .94rem; }
  .sw-logo { font-size: 1.3rem; }
  .sw-logo--img img { height: 80px; }
}

/* логотип-картинка широкий, поэтому ниже 1300px в шапке
   остаётся только кнопка заявки, без телефона */
@media (max-width: 1300px) {
  .sw-header-contacts > a { display: none; }
}

/* горизонтальное меню перестаёт помещаться раньше планшетной точки —
   уводим его в бургер уже с 1150px */
@media (max-width: 1150px) {
  .sw-menu, .sw-header-contacts { display: none; }
  .sw-burger { display: flex; }
}

@media (max-width: 1200px) {
  .stats-wrap { padding: 60px 40px 54px; }
  .feature-split-body,
  .feature-split--rev .feature-split-body { padding: 68px 46px; }
}

@media (max-width: 991px) {
  :root { --hdr: 72px; }
  body { font-size: 17px; }
  .section    { padding: 74px 0; }
  .section-sm { padding: 56px 0; }
  .container, .container-fluid, .container-fluid.px-0 { padding-left: 22px; padding-right: 22px; }


  .hero { min-height: auto; padding: 64px 0 54px; }
  .hero-caps { margin-top: 40px; }

  .feature-split { grid-template-columns: 1fr; min-height: 0; }
  .feature-split-media { min-height: 340px; position: relative; }
  .feature-split-media::after { background: linear-gradient(0deg, rgba(43,43,43,.95) 0%, rgba(20,20,20,.15) 60%); }
  .feature-split-body,
  .feature-split--rev .feature-split-body { padding: 48px 26px 60px; order: 2; }
  .feature-split--rev .feature-split-media { order: 1; }
  .feature-split--rev .feature-split-media::after { background: linear-gradient(0deg, rgba(43,43,43,.95) 0%, rgba(20,20,20,.15) 60%); }

  .stats-wrap { padding: 48px 26px 40px; }
  .cta-wrap   { padding: 48px 26px; }
  .pull-quote { padding: 36px 30px 32px; }
  .sw-popup-aside { display: none; }
  .sw-popup-body  { padding: 46px 26px 34px; }
}

@media (max-width: 767px) {
  body { font-size: 16.5px; }
  .section    { padding: 60px 0; }
  .section-sm { padding: 46px 0; }
  .stat-item  { padding: 18px 12px 18px 40px; }
  .stat-item::before { top: 26px; width: 25px; height: 16px; }
  .svc-card       { padding: 32px 26px; }
  .svc-split-body { padding: 28px 24px 30px; }
  .dir-card       { padding: 28px 24px; }
  .btn            { width: auto; }
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; }
  .fab { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .hero-caps span { padding: 14px 22px; font-size: .9rem; }
}

/* ============================================================
   18. BOOTSTRAP-СОВМЕСТИМЫЕ УТИЛИТЫ (на случай отключения CDN)
   ============================================================ */
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline-block; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.text-center { text-align: center; }
.position-relative { position: relative; }


.svc-split-media img{
	filter: brightness(60%);
}

.hero-scroll{
	display: none;
}