/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  /* --- Fonts (Onest — Cyrillic-native grotesque, single family) --- */
  --font-display: 'Onest', system-ui, 'Segoe UI', Arial, sans-serif;
  --font-text:    'Onest', system-ui, 'Segoe UI', Arial, sans-serif;

  /* --- Brand colours (логотипный cyan) --- */
  --blue:         #0E1A2C;
  --blue-mid:     #15243B;
  --blue-deep:    #081224;
  --green:        #3498DB;   /* logo cyan */
  --green-h:      #2980B9;
  --orange:       #3498DB;
  --orange-h:     #2980B9;
  --cyan-soft:    rgba(52, 152, 219, 0.12);
  --cyan-line:    rgba(52, 152, 219, 0.35);

  /* --- Semantic colours --- */
  --color-bg:          #ffffff;
  --color-bg-secondary:#f4f6f8;
  --color-border:      #e3e7ec;
  --color-text:        #0E1A2C;
  --color-text-mid:    #45556b;
  --color-text-light:  #6b7a90;
  --color-white:       #ffffff;

  /* --- Grid --- */
  --grid-max-w: 1440px;
  --pad: clamp(16px, 4vw, 40px);      /* page side padding (monotonic) */
  --gap: clamp(8px, 1.6vw, 24px);     /* single gutter for spaced grids */

  /* --- Spacing scale (one monotonic clamp ladder, each token unique) --- */
  --s0:  0px;
  --s1:  4px;
  --s2:  8px;
  --s3:  12px;
  --s4:  16px;
  --s5:  clamp(16px, calc(12px + 1.2vw), 24px);   /* gap / inline */
  --s6:  clamp(20px, calc(14px + 1.6vw), 32px);   /* card padding / head gap */
  --s7:  clamp(24px, calc(16px + 2.2vw), 40px);   /* block separator */
  --s8:  clamp(32px, calc(20px + 3.4vw), 56px);
  --s9:  clamp(48px, calc(30px + 4vw),   80px);   /* section pad (tight) */
  --s10: clamp(56px, calc(34px + 6vw),   112px);  /* section pad (default) */
  --s11: clamp(72px, calc(40px + 8vw),   136px);  /* hero rhythm */

  /* --- Typography scale (mobile base; LH unitless) --- */
  --text-hero-size:   clamp(26px, calc(13.33px + 3.96vw), 64px);
  --text-hero-lh:     1.08;
  --text-hero-weight: 800;

  --text-t1-size:   clamp(26px, calc(20px + 1.88vw), 44px);
  --text-t1-lh:     1.12;
  --text-t1-weight: 800;

  --text-t2-size:   clamp(22px, calc(18.67px + 1.04vw), 32px);
  --text-t2-lh:     1.15;
  --text-t2-weight: 700;

  --text-t3-size:   18px;
  --text-t3-lh:     1.25;
  --text-t3-weight: 700;

  --text-lead-size:   16px;
  --text-lead-lh:     1.55;
  --text-lead-weight: 400;

  --text-body-size:   15px;
  --text-body-lh:     1.6;
  --text-body-weight: 400;

  --text-caption-size: 13px;
  --text-caption-lh:   1.45;

  /* --- Radius --- */
  --radius-card: 2px;
  --radius-md:   2px;
  --radius-btn:  0px;

  /* --- Shadows (header only) --- */
  --shadow:    0 8px 24px rgba(14, 26, 44, 0.08);
  --shadow-sm: 0 2px 6px  rgba(14, 26, 44, 0.06);

  /* --- Transitions --- */
  --t: .22s ease;
}

/* One desktop step for the small roles (display roles already fluid via clamp) */
@media (min-width: 1024px) {
  :root {
    --text-t3-size:      22px;
    --text-lead-size:    19px;
    --text-body-size:    17px;
    --text-caption-size: 14px;
  }
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
*  { min-width: 0; }                         /* let grid/flex children shrink */

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-text);
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  font-weight: var(--text-body-weight);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg, video { max-width: 100%; }
img { display: block; }

/* Long Russian words must wrap, never overflow */
.hero__title, .section__title, .section__sub,
.product-card__title, .industry-card__title, .why__title, .how__step-title,
.catalog-card__name, .contacts__title, .route__title, .contacts__nationwide,
.hero__keywords, .hero__sub, .contacts__detail-val,
.product-card__note, .industry-card__note { overflow-wrap: anywhere; }

/* Tabular figures for numeric UI */
.header__phone, .contacts__detail-val, .why__num,
.section__head::before, .catalog-card__meta {
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* =============================================
   TYPOGRAPHY UTILITIES
   ============================================= */
.t-hero { font-family: var(--font-display); font-size: var(--text-hero-size); line-height: var(--text-hero-lh); font-weight: var(--text-hero-weight); }
.t-t1   { font-family: var(--font-display); font-size: var(--text-t1-size);   line-height: var(--text-t1-lh);   font-weight: var(--text-t1-weight); }
.t-t2   { font-family: var(--font-display); font-size: var(--text-t2-size);   line-height: var(--text-t2-lh);   font-weight: var(--text-t2-weight); }
.t-t3   { font-family: var(--font-display); font-size: var(--text-t3-size);   line-height: var(--text-t3-lh);   font-weight: var(--text-t3-weight); }
.t-lead { font-size: var(--text-lead-size); line-height: var(--text-lead-lh); font-weight: var(--text-lead-weight); }
.t-body { font-size: var(--text-body-size); line-height: var(--text-body-lh); }
.t-caption { font-size: var(--text-caption-size); line-height: var(--text-caption-lh); }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: var(--grid-max-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section { padding-block: var(--s10); }

/* Section head — single block, left edge on the card rail (no grid → no overlap) */
.section__head {
  border-top: 1px solid var(--color-border);
  padding-top: var(--s6);
  margin-bottom: var(--s7);
}
.section__head::before {
  content: attr(data-num);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-caption-size);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-t1-size);
  line-height: var(--text-t1-lh);
  font-weight: var(--text-t1-weight);
  color: var(--blue);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.section__sub {
  font-size: var(--text-lead-size);
  line-height: var(--text-lead-lh);
  color: var(--color-text-mid);
  max-width: 64ch;
  margin-top: var(--s3);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--s7);
  height: 52px;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: var(--text-caption-size);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  white-space: nowrap;
  line-height: 1;
}
@media (min-width: 1024px) { .btn { height: 56px; } }

.btn--primary { background: var(--orange); color: var(--color-white); border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-h); border-color: var(--orange-h); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.8); }

.btn--sm { height: 40px; padding: 0 var(--s6); }
@media (min-width: 1024px) { .btn--sm { height: 44px; } }

.btn--full { width: 100%; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s6);
  height: 90px;
}
@media (min-width: 1024px) { .header__inner { height: 90px; } }

.header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  background: #fff;
  padding: 4px 9px;
  border-radius: 2px;
}
.header__logo-img { height: 80px; width: auto; display: block; }
@media (min-width: 1024px) { .header__logo-img { height: 80px; } }

.header__nav { display: flex; gap: var(--s6); margin-left: auto; }

.header__contacts{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  flex-shrink:0;
}

.header__email{
  font-size:13px;
  line-height:1.2;
  color:var(--color-text-mid);
  white-space:nowrap;
  transition:color var(--t);
}
.header__email:hover{color:var(--green);}
.header__nav a {
  color: #000;
  font-size: var(--text-body-size);
  font-weight: 500;
  transition: color var(--t);
}
.header__nav a:hover { color: #257ad4; }

.header__phone {
  color: #257ad4;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-body-size);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--t);
}
.header__phone:hover { color: var(--orange); }

.header__cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.burger span {
  display: block; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  background: var(--blue-deep);
  padding-top: calc(64px + var(--s9));
  padding-bottom: var(--s9);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/005.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(8,18,36,0.94) 0%, rgba(8,18,36,0.80) 48%, rgba(8,18,36,0.55) 100%);
  z-index: -1;
}
@media (min-width: 1024px) { .hero { padding-top: calc(72px + var(--s10)); padding-bottom: var(--s10); } }

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s9);
  align-items: center;
}

.hero__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  max-width: 100%;
  color: var(--green);
  font-size: var(--text-caption-size);
  font-weight: 600;
  margin-bottom: var(--s4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hero__tag::before { content: ''; width: 28px; height: 1px; background: var(--green); display: inline-block; flex-shrink: 0; }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero-size);
  line-height: var(--text-hero-lh);
  font-weight: var(--text-hero-weight);
  color: var(--color-white);
  margin-bottom: var(--s4);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__keywords {
  font-family: var(--font-display);
  font-size: var(--text-caption-size);
  line-height: 1.6;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--s5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: var(--s3);
}

.hero__sub {
  font-size: var(--text-lead-size);
  line-height: var(--text-lead-lh);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--s5);
  max-width: 60ch;
}

.hero__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s6);
  max-width: 60ch;
}
.hero__bullets li {
  position: relative;
  padding-left: 26px;
  color: rgba(255,255,255,0.92);
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
}
.hero__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 1px;
  background: var(--green);
}

.hero__actions { display: flex; gap: var(--s4); flex-wrap: wrap; }

.hero__visual {
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero__card {
  background: rgba(8,18,36,0.55);
  padding: var(--s5) var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s5);
}
.hero__card-icon {
  flex-shrink: 0;
  color: var(--green);
  width: clamp(34px, 9vw, 40px);
  height: clamp(34px, 9vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cyan-line);
}
.hero__card-icon svg { width: 56%; height: 56%; }
.hero__card-text {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-body-size);
  line-height: 1.4;
}
.hero__card-text strong { color: var(--color-white); font-weight: 700; }

/* =============================================
   CARD GRIDS — single 12-col blueprint model
   ============================================= */
.products__grid,
.industries__grid,
.catalogs__grid,
.why__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}
.why__grid { border-top-color: rgba(255,255,255,0.12); border-left-color: rgba(255,255,255,0.12); }

.product-card, .industry-card, .why__item, .catalog-card { grid-column: span 12; }
@media (min-width: 600px) {
  .product-card, .industry-card, .why__item, .catalog-card { grid-column: span 6; }
}
@media (min-width: 1100px) {
  .product-card, .why__item { grid-column: span 4; }   /* 4+4+4 */
  .industry-card, .catalog-card { grid-column: span 6; } /* 6+6 */
  .catalog-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* =============================================
   PRODUCTS
   ============================================= */
.products { background: var(--color-bg); }

.product-card {
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--s6);
  transition: background var(--t);
}
.product-card:hover { background: var(--color-bg-secondary); }
.product-card:hover .product-card__icon { color: var(--green); }

.product-card__icon {
  width: clamp(34px, 9vw, 40px);
  height: clamp(34px, 9vw, 40px);
  color: var(--blue);
  margin-bottom: var(--s4);
  transition: color var(--t);
}
.product-card__icon svg { width: 100%; height: 100%; }

.product-card__title {
  font-family: var(--font-display);
  font-size: var(--text-t3-size);
  line-height: var(--text-t3-lh);
  font-weight: var(--text-t3-weight);
  color: var(--blue);
  margin-bottom: var(--s3);
}

.product-card__list { margin-bottom: var(--s4); }
.product-card__list li {
  font-size: var(--text-body-size);
  color: var(--color-text-mid);
  padding: var(--s1) 0 var(--s1) 16px;
  position: relative;
}
.product-card__list li::before {
  content: '';
  position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 1px;
  background: var(--green);
}

.product-card__note {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-lh);
  color: var(--color-text-light);
  margin-top: var(--s6);
}

/* =============================================
   INDUSTRIES (photo-bg cards)
   ============================================= */
.industries { background: var(--color-bg-secondary); }

.industry-card {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--s6);
  display: flex;
  flex-direction: column;
  background-color: var(--blue-deep);
  background-image:
    linear-gradient(180deg, rgba(8,18,36,0.46) 0%, rgba(8,18,36,0.68) 45%, rgba(8,18,36,0.90) 100%),
    var(--card-bg, none);
  background-size: cover;
  background-position: center;
}

.industry-card__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 10vw, 44px);
  height: clamp(36px, 10vw, 44px);
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(52,152,219,0.20);
  margin-bottom: var(--s4);
  line-height: 1;
  color: var(--color-white);
  flex-shrink: 0;
}
.industry-card__emoji svg { width: 56%; height: 56%; }

.industry-card__title {
  font-family: var(--font-display);
  font-size: var(--text-t3-size);
  line-height: var(--text-t3-lh);
  font-weight: var(--text-t3-weight);
  color: var(--color-white);
  margin-bottom: var(--s3);
}

.industry-card__list { margin-bottom: var(--s4); }
.industry-card__list li {
  font-size: var(--text-body-size);
  color: rgba(255,255,255,0.82);
  padding: var(--s1) 0 var(--s1) 16px;
  position: relative;
}
.industry-card__list li::before {
  content: '';
  position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 1px;
  background: var(--green);
}

.industry-card__note {
  margin-top: auto;
  padding-top: var(--s5);
  font-size: var(--text-caption-size);
  color: var(--color-white);
  font-weight: 600;
  line-height: 1.45;
}

/* =============================================
   CATALOGS
   ============================================= */
.catalogs { background: var(--color-bg); }

.catalog-card {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: var(--s4) var(--s6);
  min-height: 64px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: background var(--t);
}
.catalog-card:hover { background: var(--color-bg-secondary); }

.catalog-card__icon {
  width: clamp(30px, 8vw, 34px);
  height: clamp(30px, 8vw, 34px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-soft);
  color: var(--green);
  transition: background var(--t), color var(--t);
}
.catalog-card:hover .catalog-card__icon { background: var(--green); color: var(--color-white); }
.catalog-card__icon svg { width: 55%; height: 55%; }

.catalog-card__body { flex: 1; min-width: 0; }
.catalog-card__name {
  font-family: var(--font-display);
  font-size: var(--text-body-size);
  line-height: 1.25;
  font-weight: 700;
  color: var(--blue);
}
.catalog-card__meta { font-size: var(--text-caption-size); color: var(--color-text-light); margin-top: 2px; }

.catalog-card__dl {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: var(--text-caption-size);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.catalog-card__dl svg { width: 16px; height: 16px; }

@media (max-width: 820px) {
  .catalog-card { flex-wrap: wrap; row-gap: var(--s3); }
  .catalog-card__dl { margin-left: calc(34px + var(--s5)); }
}

/* =============================================
   WHY US
   ============================================= */
.why {
  background:
    linear-gradient(180deg, rgba(14,26,44,0.78) 0%, rgba(8,18,36,0.88) 55%, rgba(8,18,36,0.92) 100%),
    url('../img/001.jpg') center / cover no-repeat;
  background-color: var(--blue);
}
.why .section__head { border-top-color: rgba(255,255,255,0.18); }
.why .section__title { color: var(--color-white); }
.why .section__sub   { color: rgba(255,255,255,0.68); }
.why .section__head::before { color: var(--green); }

.why__item {
  padding: var(--s6);
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  transition: background var(--t);
}
.why__item:hover { background: rgba(52,152,219,0.06); }

.why__num {
  font-family: var(--font-display);
  font-size: var(--text-caption-size);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  line-height: 1;
  margin-bottom: var(--s4);
}
.why__title {
  font-family: var(--font-display);
  font-size: var(--text-t3-size);
  line-height: var(--text-t3-lh);
  font-weight: var(--text-t3-weight);
  color: var(--color-white);
  margin-bottom: var(--s3);
}
.why__text {
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  color: rgba(255,255,255,0.68);
}

/* =============================================
   HOW WE WORK
   ============================================= */
.how { background: var(--color-bg); }

.how__steps {
  display: flex;
  align-items: center;
  gap: var(--s5);
}
.how__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--s6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--green);
  transition: background var(--t);
}
.how__step:hover { background: var(--color-bg-secondary); }

.how__step-num {
  width: clamp(38px, 10vw, 44px);
  height: clamp(38px, 10vw, 44px);
  color: var(--green);
  border: 1px solid var(--green);
  font-family: var(--font-display);
  font-size: var(--text-t3-size);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s4);
  flex-shrink: 0;
}
.how__step-title {
  font-family: var(--font-display);
  font-size: var(--text-t3-size);
  line-height: var(--text-t3-lh);
  font-weight: var(--text-t3-weight);
  color: var(--blue);
  margin-bottom: var(--s3);
}
.how__step-text {
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  color: var(--color-text-mid);
}
.how__arrow {
  font-size: 1.2rem;
  color: var(--green);
  flex-shrink: 0;
  align-self: center;
  opacity: 0.7;
}

/* =============================================
   CASES
   ============================================= */
.cases { background: var(--color-bg); }

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (min-width: 560px) { .cases__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .cases__grid { grid-template-columns: repeat(6, 1fr); } }

.case-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue);
}
.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,18,36,0) 60%, rgba(8,18,36,0.45) 100%);
  pointer-events: none;
}
.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   CONTACTS
   ============================================= */
.contacts { background: var(--color-bg-secondary); }

.contacts__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s9);
  align-items: start;
}

.contacts__title {
  font-family: var(--font-display);
  font-size: var(--text-t2-size);
  line-height: var(--text-t2-lh);
  font-weight: var(--text-t2-weight);
  color: var(--blue);
  margin-bottom: var(--s3);
}
.contacts__sub {
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  color: var(--color-text-mid);
  margin-bottom: var(--s6);
}

.contacts__details {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.contacts__detail { display: flex; align-items: center; gap: var(--s5); }
.contacts__detail > div { min-width: 0; }

.contacts__detail-icon {
  flex-shrink: 0;
  width: clamp(26px, 7vw, 30px);
  height: clamp(26px, 7vw, 30px);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contacts__detail-icon svg { width: 100%; height: 100%; }

.contacts__detail-label {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
  font-weight: 600;
}
.contacts__detail-val {
  font-family: var(--font-display);
  font-size: var(--text-t3-size);
  font-weight: 700;
  color: var(--blue);
  transition: color var(--t);
}
.contacts__detail-val:hover { color: var(--green); }
@media (max-width: 400px) { .contacts__detail-val { font-size: var(--text-body-size); } }

/* Email — защита от ботов: адрес собирается JS-ом, в разметке разбит пробелами */
.contacts__email { cursor: pointer; }
.contacts__email-at { padding: 0 2px; }

.contacts__address {
  margin-top: var(--s7);
  padding-top: var(--s7);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.contacts__addr-label {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  margin-bottom: 4px;
}
.contacts__addr-val {
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  color: var(--color-text-mid);
}
.contacts__addr-val a { color: var(--green); text-decoration: underline; }
.contacts__addr-val a:hover { color: var(--green-h); }

/* «Работаем по всей России» — крупная строка в самом низу */
.contacts__nationwide {
  margin-top: var(--s8);
  padding-top: var(--s7);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-t2-size);
  line-height: var(--text-t2-lh);
  font-weight: 700;
  color: var(--blue);
}
.contacts__nationwide::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--green);
  margin: var(--s5) auto 0;
}

/* FORM */
.form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--green);
  padding: var(--s7);
  position: relative;
}
.form__group { margin-bottom: var(--s5); position: relative; }
.form__label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-mid);
  margin-bottom: var(--s2);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.form__input {
  width: 100%;
  padding: var(--s4) var(--s5);
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  font-family: var(--font-text);
  transition: border-color var(--t), box-shadow var(--t);
}
.form__input:focus { border-color: var(--green); box-shadow: 0 0 0 2px var(--cyan-soft); }
.form__input.error { border-color: #e53e3e; }
.form__textarea { resize: vertical; min-height: 100px; }

.form__error { display: none; font-size: var(--text-caption-size); color: #e53e3e; margin-top: var(--s1); }
.form__group.has-error .form__error { display: block; }

.form__agree {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-lh);
  color: var(--color-text-light);
  text-align: center;
  margin-top: var(--s4);
}
.form__agree a { color: var(--blue); text-decoration: underline; }

.form__success {
  display: none;
  position: absolute; inset: 0;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s8);
  gap: var(--s6);
}
.form__success.visible { display: flex; }
.form__success-icon {
  width: clamp(48px, 13vw, 60px);
  height: clamp(48px, 13vw, 60px);
  background: var(--green);
  color: var(--color-white);
  border-radius: 50%;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form__success p { font-size: var(--text-body-size); line-height: var(--text-body-lh); color: var(--color-text); }

/* =============================================
   CONTACTS — адрес склада + схема проезда
   ============================================= */
.route {
  margin-top: var(--s8);
  padding-top: var(--s7);
  border-top: 1px solid var(--color-border);
}
.route__title {
  font-family: var(--font-display);
  font-size: var(--text-t2-size);
  line-height: var(--text-t2-lh);
  font-weight: var(--text-t2-weight);
  color: var(--blue);
  margin-bottom: var(--s6);
}
.route__schemes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 760px) { .route__schemes { grid-template-columns: 1fr; } }

.route__scheme { display: block; cursor: zoom-in; }
.route__scheme img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--color-border);
  transition: border-color var(--t), transform var(--t);
  background: var(--color-bg);
}
.route__scheme:hover img { border-color: var(--green); }
.route__scheme figcaption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-lh);
  color: var(--color-text-mid);
  margin-top: var(--s3);
  padding-left: 16px;
  position: relative;
}
.route__scheme figcaption::before {
  content: '';
  position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 1px;
  background: var(--green);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--blue-deep);
  padding: var(--s7) 0;
  border-top: 1px solid rgba(52,152,219,0.18);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  background: #fff;
  padding: 6px 12px;
  border-radius: 2px;
}
.footer__logo-img { height: 50px; width: auto; display: block; }
.footer__copy { font-size: var(--text-caption-size); color: rgba(255,255,255,0.5); }
.footer__privacy {
  font-size: var(--text-caption-size);
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  padding: var(--s2) 0;
  transition: color var(--t);
}
.footer__privacy:hover { color: var(--color-white); }

/* =============================================
   LIGHTBOX (поп-ап схем проезда)
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 16, 30, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--s5);
  padding: var(--s7);
  opacity: 0;
  transition: opacity .2s ease;
}
.lightbox.open { display: flex; opacity: 1; }

.lightbox__figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
  max-width: 92vw;
  max-height: 90vh;
}
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #0a101e;
}
.lightbox__counter {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-caption-size);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.lightbox__close {
  position: absolute;
  top: var(--s5);
  right: var(--s5);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.18); transform: rotate(90deg); }
.lightbox__nav {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), transform var(--t);
}
.lightbox__nav:hover { background: var(--green); }
.lightbox__nav svg { width: 28px; height: 28px; }
@media (max-width: 800px) {
  .header__nav,
  .header__cta,
  .header__contacts { display:none; }

  .burger { display:flex; }

  .header__nav.open{
    display:flex;
    flex-direction:column;
    position:fixed;
    top:90px;
    left:0;
    right:0;
    background:#fff;
    padding:var(--s6) var(--pad);
    gap:var(--s3);
    box-shadow:0 8px 24px rgba(0,0,0,.15);
    z-index:1000;
  }

  .header__nav.open a{
    color:#fff;
    padding:10px 0;
  }

  .hero__visual.hero__visual { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .contacts__inner { grid-template-columns: 1fr; gap: var(--s8); }
}

@media (max-width: 800px) {
  .header__nav, .header__cta, .header__contacts { display: none; }
  .burger { display: flex; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 90px; left: 0; right: 0;
    background: var(--blue);
    padding: var(--s6) var(--pad);
    gap: var(--s2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .header__nav.open a { font-size: var(--text-lead-size); padding: var(--s3) 0; }

  .hero__visual { grid-template-columns: 1fr; }

  .how__steps { flex-direction: column; align-items: stretch; }
  .how__arrow { transform: rotate(90deg); margin: 0 auto; align-self: center; }
}

@media (max-width: 600px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__logo-img { height: 46px; }
}
