/* ===========================================================
   ООО «Леон» — редизайн 2026 (v8, Apple-style, mobile-first доработка)
   Философия: лаконично, минималистично, информативно, спокойные
   тона. Монохромная палитра (чёрный/белый/градации серого),
   системная типографика, мягкие скругления, много воздуха вместо
   рамок и разделителей, фото остаются в естественном цвете.
   =========================================================== */

:root {
  --ink: #1D1D1F;         /* основной текст — почти чёрный, не чистый */
  --ink-soft: #3A3A3C;
  --muted: #6E6E73;       /* вторичный текст */
  --muted-2: #86868B;
  --line: #E4E4E7;        /* тонкие разделители */
  --line-soft: #EFEFF2;
  --paper: #FFFFFF;       /* базовый фон */
  --panel: #F5F5F7;       /* мягкая подложка секций (фирменный Apple-серый) */
  --panel-2: #FAFAFA;
  --dark: #1D1D1F;        /* тёмные секции (шапка, футер, полосы) */
  --dark-2: #2C2C2E;
  --white: #FFFFFF;
  --on-dark-muted: #A1A1A6;
  --on-dark-line: rgba(255,255,255,0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --container: 1180px;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.03);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern";
}
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; }
button { font-family: inherit; }

::selection { background: var(--ink); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 500;
  white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  font-family: var(--font-body); letter-spacing: 0;
}
.btn-accent { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-accent:hover { background: #000; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--panel); border-color: var(--muted-2); }
.btn-outline-light { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.16); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; max-width: var(--container); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 22px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
nav.mainnav { display: flex; gap: 28px; font-size: 13.5px; font-family: var(--font-body); }
nav.mainnav a { position: relative; color: var(--muted); padding: 6px 0; font-weight: 400; }
nav.mainnav a:hover { color: var(--ink); }
nav.mainnav a.active { font-weight: 600; color: var(--ink); }
nav.mainnav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -15px; height: 2px; background: var(--ink); border-radius: 2px; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.phone { font-weight: 600; color: var(--ink); font-size: 14px; white-space: nowrap; font-family: var(--font-body); }
.phone-link { display: flex; align-items: center; gap: 7px; }
.burger { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.burger span { width: 15px; height: 1.5px; background: var(--ink); display: block; border-radius: 1px; transition: all .2s ease; }
.mobile-nav { display: none; }

/* ---------- Decorative accents (kept for compat; unused) ---------- */
.blob-field { display: none; }
.blob { display: none; }

/* ---------- Accent text ---------- */
.accent-text { color: var(--ink); font-weight: 600; }

/* ---------- Kicker with line ---------- */
.section-head .kicker { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); }
.section-head .kicker::before { content: ''; width: 20px; height: 1.5px; background: var(--muted-2); display: inline-block; }

/* ---------- Floating call button ---------- */
.float-call {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  border: none; box-shadow: var(--shadow-md); transition: transform .15s ease;
}
.float-call svg { width: 21px; height: 21px; }
.float-call:hover { transform: translateY(-2px) scale(1.03); }

/* ---------- Icon badges (SVG) ---------- */
.isvg { width: 20px; height: 20px; display: block; }

/* ---------- Homepage hero: full-bleed photo, dark overlay, calm serif-free display ---------- */
.hero {
  position: relative; padding: 128px 0 84px; background: var(--dark);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,.82) 10%, rgba(0,0,0,.62) 45%, rgba(0,0,0,.32) 75%, rgba(0,0,0,.18) 100%);
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-split { display: block; }
.hero-inner { max-width: 660px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-pill); font-size: 12px; color: #fff; margin-bottom: 24px;
  font-family: var(--font-body);
}
.badge .dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-family: var(--font-display); }
.eyebrow { color: var(--on-dark-muted); font-size: 13px; margin-bottom: 12px; font-weight: 600; font-family: var(--font-body); }
.hero h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; margin: 0 0 22px; color: #fff; font-weight: 600; letter-spacing: -0.02em; max-width: 680px; }
.hero h1 em { font-style: normal; color: var(--on-dark-muted); }
.hero p.lead { font-size: 18px; color: var(--on-dark-muted); max-width: 540px; margin: 0 0 34px; font-family: var(--font-body); font-weight: 400; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }
.hero-mini-stats { display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid var(--on-dark-line); padding-top: 26px; margin-top: 44px; max-width: 680px; }
.hero-mini-stats div .n { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #fff; }
.hero-mini-stats div .l { font-size: 12.5px; color: var(--on-dark-muted); margin-top: 4px; font-family: var(--font-body); }
.hero-photo { display: none; }
.hero-scroll { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.pagehero {
  position: relative; background: var(--dark); padding: 68px 0 52px; overflow: hidden;
  background-size: cover; background-position: center;
}
.pagehero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,.85) 20%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.32) 100%);
  z-index: 1;
}
.pagehero .wrap { position: relative; z-index: 2; }
.crumb { font-size: 12.5px; color: var(--on-dark-muted); margin-bottom: 18px; font-family: var(--font-body); }
.crumb a { color: #fff; opacity: .8; }
.crumb a:hover { opacity: 1; }
.pagehero h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 14px; color: #fff; font-weight: 600; letter-spacing: -0.015em; max-width: 780px; }
.pagehero p { color: var(--on-dark-muted); max-width: 640px; margin: 0; font-size: 16px; font-family: var(--font-body); }

/* ---------- Stats (compact inline strip, light pages) ---------- */
.stats { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; }
.stat { text-align: left; padding: 28px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-display); font-size: clamp(20px, 2.1vw, 25px); color: var(--ink); font-weight: 600; }
.stat .label { font-size: 12.5px; color: var(--muted); margin-top: 6px; font-family: var(--font-body); }

/* ---------- Numbers band (dark, calm — institutional section) ---------- */
.numbers-band { background: var(--dark); color: #fff; padding: 80px 0; position: relative; }
.numbers-band::after { content: none; }
.numbers-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.numbers-head .kicker { color: var(--on-dark-muted); font-weight: 600; font-size: 12.5px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.numbers-head .kicker::before, .numbers-head .kicker::after { content: ''; width: 20px; height: 1.5px; background: var(--on-dark-line); }
.numbers-head h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); }
.numbers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--on-dark-line); border-radius: var(--radius); overflow: hidden; }
.numbers-grid .ncell { padding: 32px 26px; background: var(--dark-2); text-align: center; }
.numbers-grid .ncell .n { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 40px); color: #fff; font-weight: 600; }
.numbers-grid .ncell .l { font-size: 13px; color: var(--on-dark-muted); margin-top: 10px; font-family: var(--font-body); line-height: 1.5; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 680px; margin: 0 0 48px; display: flex; flex-direction: column; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.section-head .kicker { color: var(--muted); font-weight: 600; font-size: 12.5px; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(25px, 3vw, 36px); color: var(--ink); margin: 0 0 14px; font-weight: 600; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; font-family: var(--font-body); }
.bg-off { background: var(--panel); }
.bg-navy { background: var(--dark); color: #fff; }
.bg-navy .section-head h2 { color: #fff; }
.bg-navy .section-head p { color: var(--on-dark-muted); }
.bg-navy .section-head .kicker { color: var(--on-dark-muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in { transition-delay: .06s; }
.reveal-delay-2.in { transition-delay: .12s; }
.reveal-delay-3.in { transition-delay: .18s; }
.reveal-delay-4.in { transition-delay: .24s; }
.reveal-delay-5.in { transition-delay: .3s; }

/* ---------- Direction rows ---------- */
.dir-grid { border-top: 1px solid var(--line); }
.dir-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 30px; align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.dir-card .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--panel); display: flex; align-items: center; justify-content: center; color: var(--ink); border: 1px solid var(--line); }
.dir-card .ico svg { width: 20px; height: 20px; }
.dir-card .dir-content { max-width: 680px; }
.dir-card h3 { color: var(--ink); font-size: 21px; margin: 0 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.dir-card .tag { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 12px; display: block; font-family: var(--font-body); }
.dir-card ul { padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; columns: 2; column-gap: 26px; }
.dir-card li { margin-bottom: 9px; break-inside: avoid; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--ink); font-family: var(--font-body); }
.card-link .arrow { transition: transform .2s ease; }
.card-link:hover .arrow { transform: translateX(4px); }

/* ---------- Process stepper (полный цикл общестроя) ---------- */
.cycle { display: flex; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cycle-item {
  flex: 1; background: #fff;
  display: flex; flex-direction: column; position: relative;
}
.cycle-item + .cycle-item { border-left: 1px solid var(--line); }
.cycle-item .ph { aspect-ratio: 1/1; overflow: hidden; position: relative; }
.cycle-item .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cycle-item:hover .ph img { transform: scale(1.05); }
.cycle-item .num {
  position: absolute; top: 10px; left: 10px; width: 24px; height: 24px;
  background: rgba(255,255,255,0.92); color: var(--ink); font-weight: 600; font-size: 12px;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); border-radius: 50%;
}
.cycle-item .cap { padding: 14px 12px; background: var(--panel); }
.cycle-item .cap h4 { font-size: 12.5px; color: var(--ink); margin: 0; line-height: 1.3; font-family: var(--font-body); font-weight: 600; }
.cycle-arrow-row { display: none; }

/* ---------- Process (client journey) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.process-item { text-align: center; padding: 0 18px; position: relative; }
.process-item .pnum {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  color: var(--ink); font-family: var(--font-display); font-size: 18px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; background: var(--paper); position: relative; z-index: 2;
}
.process-grid::before {
  content: ''; position: absolute; top: 26px; left: 10%; right: 10%; height: 1px; background: var(--line); z-index: 1;
}
.process-item h4 { font-size: 15.5px; color: var(--ink); margin: 0 0 8px; font-weight: 600; font-family: var(--font-display); }
.process-item p { font-size: 13px; color: var(--muted); margin: 0; font-family: var(--font-body); line-height: 1.55; }

/* ---------- NLMK highlight block ---------- */
.nlmk-banner { background: var(--panel); }
.nlmk-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 54px; align-items: center; padding: 70px 0; }
.nlmk-photo { overflow: hidden; aspect-ratio: 4/3; border-radius: var(--radius); position: relative; box-shadow: var(--shadow-sm); }
.nlmk-photo::after { content: none; }
.nlmk-photo img { width: 100%; height: 100%; object-fit: cover; }
.nlmk-content .badge { align-self: flex-start; background: var(--ink); color: #fff; border-color: var(--ink); }
.nlmk-content h2 { color: var(--ink); font-size: clamp(23px, 2.7vw, 32px); margin: 0 0 16px; font-weight: 600; letter-spacing: -0.015em; }
.nlmk-content p { color: var(--muted); font-size: 16px; margin: 0 0 14px; font-family: var(--font-body); }
.nlmk-stats { display: flex; gap: 36px; margin-top: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.nlmk-stats div .n { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink); }
.nlmk-stats div .l { font-size: 12.5px; color: var(--muted); margin-top: 3px; font-family: var(--font-body); }

/* ---------- Trust list ---------- */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--on-dark-line); background: var(--dark); border-radius: var(--radius); overflow: hidden; }
.trust-item { position: relative; padding: 34px 32px; background: var(--dark-2); }
.trust-item .n { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: #fff; margin-bottom: 10px; }
.trust-item h4 { color: #fff; font-size: 17px; margin: 0 0 10px; font-weight: 600; }
.trust-item p { color: var(--on-dark-muted); font-size: 14.5px; margin: 0; font-family: var(--font-body); }
.bg-navy .trust-grid { background: var(--dark); }
.bg-navy .trust-item { background: var(--dark-2); }
.bg-navy .trust-item h4 { color: #fff; }
.bg-navy .trust-item p { color: var(--on-dark-muted); }
.bg-navy .trust-item .n { color: #fff; }

/* ---------- Guarantees ---------- */
.guarantees-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guarantee-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; }
.guarantee-item .gico { width: 44px; height: 44px; border-radius: 50%; background: var(--panel); color: var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.guarantee-item .gico svg { width: 20px; height: 20px; }
.guarantee-item h4 { font-size: 15.5px; color: var(--ink); margin: 0 0 8px; font-weight: 600; font-family: var(--font-display); }
.guarantee-item p { font-size: 13.5px; color: var(--muted); margin: 0; font-family: var(--font-body); line-height: 1.55; }

/* ---------- Vacancies ---------- */
.vacancies, .vacancies-section { background: var(--paper); }
.vac-card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; margin-bottom: 16px; transition: box-shadow .15s ease, border-color .15s ease; }
.vac-card:hover { box-shadow: var(--shadow-md); border-color: var(--line); }
.vac-card h3 { color: var(--ink); font-size: 19px; margin: 0 0 8px; font-weight: 600; font-family: var(--font-display); }
.vac-card .salary { color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 16px; font-family: var(--font-body); }
.vac-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin: 0 0 11px; font-weight: 600; font-family: var(--font-body); }
.vac-col ul { padding-left: 18px; font-size: 13.5px; color: var(--ink-soft); }
.vac-col li { margin-bottom: 7px; }
.vac-cta { margin-top: 22px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.vac-cta .phone { color: var(--ink); }
.vac-more { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; font-family: var(--font-body); }

/* ---------- Contacts ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info .row { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--panel); display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; }
.contact-info .label { color: var(--muted); font-size: 12.5px; display: block; margin-bottom: 4px; font-family: var(--font-body); }
.contact-info .val { font-size: 16px; font-weight: 600; color: var(--ink); }
.contact-form { background: var(--dark); border-radius: var(--radius); padding: 32px; }
.contact-form h3 { color: #fff; font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.contact-form p.sub { color: var(--on-dark-muted); font-size: 14px; margin: 0 0 20px; font-family: var(--font-body); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 15px; margin-bottom: 12px; border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14.5px; background: rgba(255,255,255,0.06); color: #fff;
  transition: border-color .2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--on-dark-muted); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.map-embed {
  background: var(--panel) url('../img/leon-warehouse-steel.jpg') center/cover; position: relative;
  border-radius: var(--radius); height: 260px; margin-top: 24px; overflow: hidden;
}
.map-embed .map-tag { position: absolute; left: 14px; bottom: 14px; background: rgba(29,29,31,0.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; padding: 9px 16px; font-size: 12.5px; font-family: var(--font-body); border-radius: var(--radius-pill); }

/* ---------- Objects grid ---------- */
.obj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.obj-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .15s ease; }
.obj-card:hover { box-shadow: var(--shadow-md); }
.obj-card .thumb { height: 196px; position: relative; overflow: hidden; }
.obj-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.obj-card:hover .thumb img { transform: scale(1.05); }
.obj-card .thumb .tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.9); color: var(--ink); font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-pill); font-family: var(--font-body); }
.obj-card .body { padding: 20px 22px 24px; }
.obj-card h4 { margin: 0 0 9px; color: var(--ink); font-size: 16.5px; font-weight: 600; font-family: var(--font-display); }
.obj-card p { margin: 0; color: var(--muted); font-size: 13.5px; font-family: var(--font-body); }
.obj-note { background: var(--panel); border-radius: var(--radius-sm); padding: 18px 22px; font-size: 14px; color: var(--ink); margin-top: 30px; font-family: var(--font-body); }

/* ---------- Service detail (uslugi) ---------- */
.service-detail { border-top: 1px solid var(--line); padding: 50px 0; }
.service-detail:first-of-type { border-top: none; }
.service-detail .inner { display: grid; grid-template-columns: 0.85fr 1.3fr; gap: 48px; align-items: center; }
.service-detail .photo { overflow: hidden; aspect-ratio: 4/3; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.service-detail .photo img { width: 100%; height: 100%; object-fit: cover; }
.service-detail.rev .inner { grid-template-columns: 1.3fr 0.85fr; }
.service-detail.rev .photo { order: 2; }
.service-detail h3 { color: var(--ink); font-size: 21px; margin: 0 0 12px; font-weight: 600; letter-spacing: -0.01em; }
.service-detail .tag { color: var(--muted); font-weight: 600; font-size: 12.5px; font-family: var(--font-body); }
.service-detail ul { padding-left: 20px; color: var(--ink-soft); font-size: 14.5px; }
.service-detail li { margin-bottom: 10px; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 50px 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; }
.cta-strip::before { content: none; }
.cta-strip h2 { color: #fff; font-size: 25px; margin: 0 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.cta-strip p { color: var(--on-dark-muted); margin: 0; font-size: 14.5px; font-family: var(--font-body); }
.cta-strip .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { background: var(--paper); color: var(--muted); padding: 56px 0 28px; font-size: 13.5px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 42px; margin-bottom: 42px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 22px; }
.footer-brand span { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 15.5px; }
.footer-about { color: var(--muted); font-size: 13.5px; max-width: 280px; line-height: 1.75; font-family: var(--font-body); }
.footer-col h5 { color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 16px; font-weight: 600; font-family: var(--font-body); }
.footer-col a, .footer-col p { display: block; color: var(--muted); margin-bottom: 11px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--font-body); font-size: 12px; }

/* ---------- Misc icons ---------- */
.icon { width: 22px; height: 22px; display: block; }


/* ===========================================================
   v8 — общий каркас страниц: шапка, мобильное меню, подвал
   =========================================================== */

/* Шапка: логотип слева, меню по центру, действие справа */
.header-inner { gap: 24px; min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
.brand img { width: 24px; height: 24px; }
nav.mainnav { gap: 30px; }

/* Мобильное меню — полноэкранный лист, крупные пункты (как в меню Apple) */
.mobile-nav { display: none; }
.mobile-nav .mn-links { display: flex; flex-direction: column; }
.mobile-nav .mn-links a { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); padding: 11px 0; border: 0; }
.mobile-nav .mn-links a.active { color: var(--muted-2); }
.mobile-nav .mn-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.mobile-nav .mn-contact { margin-top: auto; padding-top: 28px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.mobile-nav .mn-contact a { color: var(--ink); }
.burger.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

/* Кнопка «Личный кабинет» — спокойная, с иконкой замка */
.btn-cabinet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-cabinet:hover { background: var(--panel); border-color: var(--muted-2); }
.btn-cabinet svg { width: 15px; height: 15px; }

/* Подвал */
.footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
.footer-brand img { width: 24px; height: 24px; }
.footer-cabinet { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); }
.footer-cabinet p { margin: 0; color: var(--muted); font-size: 13.5px; }
.footer-col a[href^="mailto"] { color: var(--ink); }

/* Блок «О компании»: текст + фото (раньше было задано прямо в разметке) */
.about-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 46px; align-items: center; }
.about-split p { max-width: 620px; color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }
.about-split .photo { overflow: hidden; aspect-ratio: 3/4; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.about-split .photo img { width: 100%; height: 100%; object-fit: cover; }
.lead-muted { color: var(--muted); font-size: 16px; margin: 0; }

/* Вакансии (карточки собираются из базы) */
.vac-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.vac-facts span { font-size: 12px; color: var(--ink-soft); background: var(--panel); border-radius: var(--radius-pill); padding: 4px 11px; }
.vac-intro { font-size: 14px; color: var(--ink-soft); margin: 0 0 4px; line-height: 1.6; }
.vac-col p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* Полоса «Работа у нас» на главной */
.jobs-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--panel); border-radius: var(--radius); padding: 44px 48px; }
.jobs-band h2 { font-size: clamp(23px, 2.6vw, 30px); margin: 0 0 12px; }
.jobs-band p { color: var(--muted); margin: 0; }
.jobs-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.jobs-band li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--ink-soft); }
.jobs-band li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex-shrink: 0; transform: translateY(-2px); }
.jobs-band .actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ===========================================================
   Адаптив
   =========================================================== */
@media (max-width: 1080px) {
  nav.mainnav { gap: 20px; }
}

@media (max-width: 980px) {
  .cycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
  .cycle-item + .cycle-item { border-left: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nlmk-inner { grid-template-columns: 1fr; gap: 32px; padding: 52px 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .dir-card { grid-template-columns: 1fr; gap: 16px; }
  .guarantees-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(5, 1fr); gap: 20px 10px; }
  .process-item p { display: none; }
  .about-split { grid-template-columns: 1fr; gap: 28px; }
  .about-split .photo { aspect-ratio: 16/10; }
  .jobs-band { grid-template-columns: 1fr; gap: 24px; padding: 36px 32px; }
}

/* Телефоны и маленькие планшеты */
@media (max-width: 860px) {
  section { padding: 60px 0; }
  .section-tight { padding: 40px 0; }
  .section-head { margin-bottom: 32px; }
  .wrap, .header-inner { padding-left: 20px; padding-right: 20px; }

  /* шапка: логотип + бургер, кнопку заявки прячем в меню */
  nav.mainnav, .header-cta .btn { display: none; }
  .burger { display: flex; width: 40px; height: 40px; border: 0; background: var(--panel); border-radius: 50%; }
  .mobile-nav.open {
    display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; top: 57px;
    background: var(--paper); z-index: 49; padding: 18px 24px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto;
    animation: mnIn .22s ease;
  }
  @keyframes mnIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  /* первый экран */
  .hero { padding: 84px 0 56px; }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.72) 60%, rgba(0,0,0,.82) 100%); }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 16px; margin-bottom: 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; white-space: normal; }
  .hero-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; padding-top: 20px; }
  .hero-mini-stats div .n { font-size: 19px; }
  .hero-mini-stats div .l { font-size: 11.5px; line-height: 1.35; }
  .badge { font-size: 11.5px; margin-bottom: 18px; }
  .pagehero { padding: 48px 0 36px; }
  .pagehero h1 { font-size: 27px; }
  .pagehero p { font-size: 15px; }

  /* сетки в одну колонку */
  .dir-grid, .materials-inner, .contact-inner, .obj-grid { grid-template-columns: 1fr; }
  .contact-inner { gap: 32px; }
  .dir-card { padding: 28px 0; }
  .dir-card ul { columns: 1; }
  .dir-card .ico { width: 42px; height: 42px; }
  .stats .wrap { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .guarantees-grid { grid-template-columns: 1fr; }
  .guarantee-item { padding: 24px 22px; }
  .trust-item { padding: 26px 24px; }

  /* этапы: плитки 2×3 вместо ленты из шести больших фото */
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .cycle-item .ph { aspect-ratio: 4/3; }

  /* порядок работы: вертикальный список с номерами слева */
  .process-grid { grid-template-columns: 1fr; gap: 18px; }
  .process-grid::before { display: none; }
  .process-item { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; text-align: left; padding: 0; }
  .process-item .pnum { grid-row: span 2; width: 44px; height: 44px; font-size: 15px; margin: 0; }
  .process-item h4 { margin: 2px 0 0; }
  .process-item p { display: block; }

  .nlmk-inner { padding: 44px 0; }
  .nlmk-stats { gap: 24px; }
  .vac-card { grid-template-columns: 1fr; gap: 18px; padding: 24px 22px; }
  .vac-cta .btn { flex: 1 1 auto; }
  .service-detail { padding: 36px 0; }
  .service-detail .inner, .service-detail.rev .inner { grid-template-columns: 1fr; gap: 24px; }
  .service-detail.rev .photo { order: 0; }
  .obj-card .thumb { height: 180px; }
  .contact-form { padding: 26px 22px; }
  .map-embed { height: 200px; }
  .cta-strip { padding: 32px 24px; flex-direction: column; align-items: stretch; }
  .cta-strip h2 { font-size: 22px; }
  .cta-strip .actions { flex-direction: column; }
  .cta-strip .actions .btn { width: 100%; }
  .jobs-band { padding: 28px 22px; }
  .jobs-band .actions { flex-direction: column; }
  .jobs-band .actions .btn { width: 100%; }

  /* подвал */
  footer { padding: 44px 0 calc(24px + env(safe-area-inset-bottom)); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-bottom: 28px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer-cabinet { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-cabinet .btn { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  .float-call { width: 48px; height: 48px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .float-call svg { width: 18px; height: 18px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 28px; }
  .cycle { grid-template-columns: 1fr 1fr; }
  .cycle-item .cap { padding: 10px; }
  .numbers-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* Меньше движения — для тех, кто отключил анимации в системе */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* На тёмных плашках основная кнопка — белая, иначе сливается с фоном */
.cta-strip .btn-accent, .contact-form .btn-accent, .bg-navy .btn-accent { background: #fff; color: var(--ink); border-color: #fff; }
.cta-strip .btn-accent:hover, .contact-form .btn-accent:hover, .bg-navy .btn-accent:hover { background: #F2F2F4; }
