/* ==========================================================================
   МЛ ТРАНС — одностраничник
   Палитра: графит / сталь / белый. Все движения — на transition с мягким easing.
   ========================================================================== */

:root {
  --bg: #0e1114;
  --bg-2: #14181d;
  --surface: #191e24;
  --surface-2: #20262e;
  --line: #2a313a;
  --line-soft: rgba(255, 255, 255, .08);
  --text: #e8ecf0;
  --muted: #8d97a3;
  --white: #ffffff;
  --accent: #9fb4c7;          /* холодная сталь — единственный «цвет» */
  --accent-strong: #c7d5e2;

  --light-bg: #f2f4f6;
  --light-surface: #ffffff;
  --light-text: #161a1f;
  --light-muted: #5d6772;
  --light-line: #dde2e7;

  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-slow: .9s;
  --t-mid: .55s;
  --t-fast: .35s;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--bg); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Единая композиция transform: параллакс (--py), курсор (--mx/--my),
   появление (--rv), подъём (--lift), наклон (--rx/--ry). Так эффекты
   не перетирают друг друга на одном элементе.
   -------------------------------------------------------------------------- */
.reveal, .tilt, [data-speed], .layer {
  transform:
    perspective(1000px)
    translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--py, 0px) + var(--rv, 0px) + var(--lift, 0px)), 0)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease),
              box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease),
              background-color var(--t-mid) var(--ease);
  will-change: transform;
}
.reveal { --rv: 36px; opacity: 0; }
.reveal.is-in { --rv: 0px; opacity: 1; }
.tilt.is-tilting { transition-duration: .25s, var(--t-slow), var(--t-mid), var(--t-mid), var(--t-mid); }

/* --------------------------------------------------------------------------
   Места под изображения: пока файла нет — подписанная заглушка
   -------------------------------------------------------------------------- */
.img-slot {
  position: relative;
  overflow: hidden;
  background-color: var(--surface-2);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #262d36, #171b20);
  background-size: auto, cover;
  background-position: center;
}
.img-slot::before {
  content: attr(data-label);
  position: absolute;
  left: 14px; bottom: 12px; right: 14px;
  font: 500 11px/1.4 var(--mono);
  color: rgba(255, 255, 255, .45);
  letter-spacing: .02em;
  pointer-events: none;
}
.img-slot.has-img { background-size: cover; background-repeat: no-repeat; }
.img-slot.has-img::before { display: none; }

/* --------------------------------------------------------------------------
   Типографика и кнопки
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--dark { color: var(--light-muted); }
.h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 22px; }
.accent { color: var(--accent-strong); }

.btn {
  --lift: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--font);
  cursor: pointer;
  transform: translateY(var(--lift));
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease),
              background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
}
.btn:hover { --lift: -3px; }
.btn:active { --lift: 0px; transition-duration: .15s; }
.btn--primary { background: var(--white); color: var(--bg); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn--primary:hover { background: var(--accent-strong); box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.btn--ghost { border-color: rgba(255,255,255,.22); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.section--light .btn--primary { background: var(--light-text); color: var(--white); }
.section--light .btn--primary:hover { background: #2c343d; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 18px 0;
  transition: background-color var(--t-mid) var(--ease), padding var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease), backdrop-filter var(--t-mid) var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  padding: 10px 0;
  background: rgba(14, 17, 20, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.header__inner { display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .04em; }
.logo__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  font: 500 14px/1 var(--mono);
  transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.logo:hover .logo__mark { background: var(--white); color: var(--bg); transform: rotate(-6deg); }
.logo--sm .logo__mark { width: 34px; height: 34px; font-size: 12px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { position: relative; padding: 6px 0; transition: color var(--t-fast) var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--white); transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-mid) var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__photo { position: absolute; inset: -18% 0; }
.hero__photo::before { bottom: auto; top: calc(18% + 96px); left: auto; right: 24px; text-align: right; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at var(--cx, 70%) var(--cy, 40%), rgba(159,180,199,.10), transparent 60%),
    linear-gradient(90deg, rgba(14,17,20,.96) 0%, rgba(14,17,20,.78) 45%, rgba(14,17,20,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__grid {
  position: absolute; inset: -40px;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(159,180,199,.18); }
.hero__ring--1 { width: 520px; height: 520px; right: -80px; top: 12%; }
.hero__ring--2 { width: 300px; height: 300px; right: 120px; top: 30%; border-style: dashed; border-color: rgba(159,180,199,.25); }
.hero__route { position: absolute; right: 2%; top: 22%; width: min(760px, 70vw); color: rgba(199,213,226,.35); }
.hero__route path { stroke-dashoffset: 0; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -320; } }

.hero__content { position: relative; }
.hero__title { font-size: clamp(42px, 7vw, 92px); font-weight: 800; letter-spacing: -.035em; max-width: 12ch; margin-bottom: 26px; }
.hero__lead { max-width: 560px; font-size: 19px; color: #b4bdc7; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }
.hero__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 56px; }
.stat { display: grid; grid-template-columns: auto 1fr; align-items: baseline; }
.stat__num { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.stat__unit { font-size: 18px; color: var(--muted); font-weight: 600; }
.stat__label { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.3); border-radius: 14px;
  transition: border-color var(--t-mid) var(--ease);
}
.hero__scroll:hover { border-color: var(--white); }
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--white); animation: wheel 2.4s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* --------------------------------------------------------------------------
   Секции
   -------------------------------------------------------------------------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--light { background: var(--light-bg); color: var(--light-text); }
.section--light p { color: var(--light-muted); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__lead { color: var(--muted); font-size: 18px; }

/* About */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--light-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat;
}
.about__media { position: relative; }
.about__img { aspect-ratio: 9 / 11; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(20,26,32,.18); }
.about__badge {
  position: absolute; left: -36px; bottom: 48px;
  display: grid; gap: 4px;
  padding: 20px 24px;
  background: var(--light-surface); border: 1px solid var(--light-line); border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px rgba(20,26,32,.14);
}
.about__badge-k { font-weight: 800; font-size: 20px; }
.about__badge-v { font: 500 12px/1.4 var(--mono); color: var(--light-muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  --lift: 0px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.card:hover { --lift: -10px; border-color: #3a434e; box-shadow: 0 30px 50px rgba(0,0,0,.4); }
.card__img { aspect-ratio: 16 / 10; }
.card__img.has-img { transition: transform 1.2s var(--ease), filter var(--t-mid) var(--ease); filter: grayscale(.35) contrast(1.05); }
.card:hover .card__img.has-img { transform: scale(1.06); filter: none; }
.card__body { padding: 26px 26px 30px; }
.card__body p { color: var(--muted); font-size: 15px; margin: 0; }
.card__code { display: inline-block; margin-bottom: 12px; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--accent); }
.card__title { font-size: 21px; margin-bottom: 12px; }

/* Блик под курсором на наклоняемых элементах */
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.07), transparent 45%);
  opacity: 0; transition: opacity var(--t-mid) var(--ease);
}
.tilt:hover::after { opacity: 1; }
.section--light .tilt::after { background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.6), transparent 45%); }

.wide-card {
  --lift: 0px;
  position: relative;
  margin-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 36px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--surface-2), var(--surface) 60%);
}
.wide-card:hover { --lift: -6px; box-shadow: 0 26px 46px rgba(0,0,0,.35); border-color: #3a434e; }
.wide-card__text { max-width: 760px; }
.wide-card p { color: var(--muted); margin: 0; }

/* Parallax band */
.band { position: relative; height: clamp(380px, 60vh, 560px); overflow: hidden; display: flex; align-items: center; }
.band__img { position: absolute; inset: -25% 0; }
.band__img::before { top: calc(25% + 20px); bottom: auto; }
.band__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,17,20,.85), rgba(14,17,20,.55)); }
.band__content { position: relative; }
.band__quote { max-width: 900px; margin: 0; font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }

/* Warehouse */
.warehouse { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.warehouse__gallery { position: relative; min-height: 560px; }
.warehouse__img { position: absolute; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(20,26,32,.18); }
.warehouse__img--a { left: 0; top: 0; width: 78%; aspect-ratio: 9 / 6.5; }
.warehouse__img--b { right: 0; bottom: 0; width: 52%; aspect-ratio: 7 / 8; border: 6px solid var(--light-bg); }
.specs { margin: 30px 0 0; display: grid; gap: 0; }
.spec { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--light-line); transition: padding-left var(--t-mid) var(--ease); }
.spec:last-child { border-bottom: 1px solid var(--light-line); }
.spec:hover { padding-left: 10px; }
.spec dt { font: 500 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--light-muted); }
.spec dd { margin: 0; font-weight: 600; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step {
  --lift: 0px;
  position: relative;
  padding: 32px 26px;
  border-top: 1px solid var(--line);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.step::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--white);
  transition: width 1.2s var(--ease);
}
.step.is-in::before { width: 100%; }
.step:hover { --lift: -6px; }
.step__n { display: block; margin-bottom: 26px; font: 500 13px/1 var(--mono); color: var(--accent); }
.step h3 { font-size: 22px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* Advantages */
.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv__item {
  --lift: 0px;
  position: relative;
  padding: 30px 26px;
  background: var(--light-surface);
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
}
.adv__item:hover { --lift: -8px; box-shadow: 0 24px 44px rgba(20,26,32,.12); }
.adv__icon { width: 34px; height: 34px; margin-bottom: 22px; color: var(--light-text); transition: transform var(--t-mid) var(--ease); }
.adv__item:hover .adv__icon { transform: rotate(-8deg) scale(1.08); }
.adv__item h3 { font-size: 19px; margin-bottom: 10px; }
.adv__item p { font-size: 15px; margin: 0; }

/* Requisites */
.req { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.req__list { margin: 12px 0 0; }
.req__list div { padding: 16px 0; border-top: 1px solid var(--line); }
.req__list div:last-child { border-bottom: 1px solid var(--line); }
.req__list dt { font: 500 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.req__list dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.req__okved { padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.req__okved-title { font-size: 18px; margin-bottom: 18px; }
.okved { list-style: none; margin: 0; padding: 0; }
.okved li {
  display: grid; grid-template-columns: 76px 1fr; gap: 14px;
  padding: 12px 10px; margin: 0 -10px;
  border-radius: 8px;
  font-size: 15px; color: #b4bdc7;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.okved li:hover { background: var(--surface-2); color: var(--white); }
.okved span { font: 500 13px/1.7 var(--mono); color: var(--accent); }
.okved em { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--white); color: var(--bg); font: 500 10px/1.6 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; vertical-align: middle; }
.okved__main { color: var(--white) !important; }

/* Contacts */
.contacts__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contacts__list { list-style: none; margin: 30px 0 0; padding: 0; }
.contacts__list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--light-line); }
.contacts__list li > span:first-child { font: 500 12px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--light-muted); }
.contacts__list a { font-weight: 600; transition: color var(--t-fast) var(--ease); }
.contacts__list a:hover { color: #47515c; }

.form {
  position: relative;
  display: grid; gap: 18px;
  padding: clamp(26px, 4vw, 44px);
  background: var(--light-surface);
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(20,26,32,.08);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%;
  padding: 24px 16px 10px;
  border: 1px solid var(--light-line); border-radius: var(--radius-sm);
  background: var(--light-bg);
  font: 500 16px/1.4 var(--font); color: var(--light-text);
  resize: vertical;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--light-text); background: var(--light-surface); box-shadow: 0 0 0 4px rgba(22,26,31,.06); }
.field span {
  position: absolute; left: 17px; top: 17px;
  font-size: 15px; color: var(--light-muted); pointer-events: none;
  transform-origin: left top;
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.75); }
.field.is-error input { border-color: #b4545a; }
.form__note { margin: 0; font-size: 12px; text-align: center; transition: color var(--t-fast) var(--ease); }
.form__note.is-error { color: #b4545a; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Отправка: спиннер на кнопке */
.form__submit { position: relative; }
.form__submit-text { transition: opacity var(--t-fast) var(--ease); }
.spinner {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: var(--white); border-radius: 50%;
  opacity: 0; transition: opacity var(--t-fast) var(--ease);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form.is-sending .form__submit { pointer-events: none; --lift: 0px; }
.form.is-sending .form__submit-text { opacity: 0; }
.form.is-sending .spinner { opacity: 1; }
.form.is-sending .field { opacity: .6; transition: opacity var(--t-mid) var(--ease); }

/* Успех: экран поверх формы */
.form__done {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 32px; text-align: center;
  background: var(--light-surface); border-radius: inherit;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), visibility 0s linear var(--t-mid);
}
.form.is-done .form__done { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.form__done h3 { font-size: 24px; margin-top: 10px; }
.form__done p { margin: 0 0 18px; }
.form__check { width: 64px; height: 64px; fill: none; stroke: var(--light-text); stroke-width: 2; }
.form__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.form__check path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.form.is-done .form__check circle { stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease) .15s; }
.form.is-done .form__check path { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease) .8s; }
.btn--ghost-dark { border-color: var(--light-line); color: var(--light-text); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--light-text); }

/* Чекбокс согласия */
.consent { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; color: var(--light-muted); line-height: 1.5; }
.consent input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.consent__box {
  flex: none; position: relative; width: 20px; height: 20px; margin-top: 1px;
  border: 1px solid #b9c1ca; border-radius: 6px; background: var(--light-bg);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.consent__box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid var(--white); border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform var(--t-fast) var(--ease);
}
.consent:hover .consent__box { border-color: var(--light-text); }
.consent input:focus-visible + .consent__box { box-shadow: 0 0 0 4px rgba(22,26,31,.1); }
.consent input:checked + .consent__box { background: var(--light-text); border-color: var(--light-text); }
.consent input:checked + .consent__box::after { transform: rotate(45deg) scale(1); }
.consent.is-error .consent__box { border-color: #b4545a; }
.consent a { color: var(--light-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--light-line); transition: text-decoration-color var(--t-fast) var(--ease); }
.consent a:hover { text-decoration-color: var(--light-text); }

/* Окно с текстом согласия */
.dialog {
  width: min(760px, 100% - 32px); max-height: min(86vh, 900px);
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--light-surface); color: var(--light-text);
  box-shadow: 0 40px 80px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease),
              overlay var(--t-mid) allow-discrete, display var(--t-mid) allow-discrete;
}
.dialog[open] { opacity: 1; transform: none; }
@starting-style { .dialog[open] { opacity: 0; transform: translateY(24px) scale(.98); } }
.dialog::backdrop {
  background: rgba(10,12,15,0); backdrop-filter: blur(0);
  transition: background-color var(--t-mid) var(--ease), backdrop-filter var(--t-mid) var(--ease),
              overlay var(--t-mid) allow-discrete, display var(--t-mid) allow-discrete;
}
.dialog[open]::backdrop { background: rgba(10,12,15,.7); backdrop-filter: blur(6px); }
@starting-style { .dialog[open]::backdrop { background: rgba(10,12,15,0); backdrop-filter: blur(0); } }
.dialog__inner { display: flex; flex-direction: column; max-height: inherit; }
.dialog__title { padding: 32px 64px 18px 36px; font-size: 24px; border-bottom: 1px solid var(--light-line); }
.dialog__body { padding: 22px 36px 8px; overflow-y: auto; font-size: 15px; line-height: 1.65; }
.dialog__body p { color: #39424c; }
.dialog__body h3 { margin: 22px 0 8px; font-size: 16px; }
.dialog__note { font-size: 13px; color: var(--light-muted) !important; }
.dialog__foot { padding: 18px 36px 26px; border-top: 1px solid var(--light-line); display: flex; justify-content: flex-end; }
.dialog__close {
  position: absolute; right: 18px; top: 22px; width: 40px; height: 40px;
  border: 1px solid var(--light-line); border-radius: 50%; background: var(--light-surface);
  font-size: 22px; line-height: 1; color: var(--light-text); cursor: pointer;
  transition: transform var(--t-mid) var(--ease), border-color var(--t-fast) var(--ease);
}
.dialog__close:hover { transform: rotate(90deg); border-color: var(--light-text); }
.dialog__body code { font: 500 13px/1 var(--mono); padding: 2px 6px; border-radius: 4px; background: var(--light-bg); }
.dialog__foot { gap: 10px; flex-wrap: wrap; }
body.has-dialog { overflow: hidden; }

/* Cookie-баннер */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 60;
  width: min(520px, 100% - 32px);
  display: grid; gap: 16px;
  padding: 22px 24px;
  background: rgba(25, 30, 36, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.cookie[hidden] { display: none; }
.cookie.is-visible { opacity: 1; transform: none; }
.cookie__text { margin: 0; font-size: 14px; line-height: 1.55; color: #b4bdc7; }
.cookie__text a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); transition: text-decoration-color var(--t-fast) var(--ease); }
.cookie__text a:hover { text-decoration-color: var(--white); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer button.footer__link { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }

@media (max-width: 600px) {
  .cookie { left: 16px; bottom: 16px; padding: 18px; }
  .cookie__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 600px) {
  .dialog__title { padding: 24px 60px 14px 20px; font-size: 20px; }
  .dialog__body { padding: 16px 20px 4px; }
  .dialog__foot { padding: 14px 20px 20px; }
}

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer__up, .footer__link { transition: color var(--t-fast) var(--ease); }
.footer__up:hover, .footer__link:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .adv { grid-template-columns: repeat(2, 1fr); }
  .about__badge { left: 16px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 auto; top: 0;
    flex-direction: column; gap: 0;
    padding: 84px 16px 24px;
    background: rgba(14,17,20,.97);
    transform: translateY(-100%);
    transition: transform var(--t-mid) var(--ease);
    font-size: 20px; color: var(--text);
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav.is-open { transform: none; }
  .header__cta { display: none; }
  .burger {
    display: grid; gap: 7px; margin-left: auto; position: relative; z-index: 2;
    padding: 12px; background: none; border: 0; cursor: pointer;
  }
  .burger span { width: 24px; height: 1.5px; background: var(--white); transition: transform var(--t-mid) var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .about, .warehouse, .req, .contacts__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  .warehouse__gallery { min-height: 420px; order: 2; }
  .wide-card { flex-direction: column; align-items: flex-start; padding: 28px; }
  .hero__ring--1 { width: 360px; height: 360px; right: -160px; }
  .hero__ring--2 { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .steps, .adv { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: 18px 32px; }
  .stat__num { font-size: 36px; }
  .spec, .contacts__list li { grid-template-columns: 1fr; gap: 2px; }
  .okved li { grid-template-columns: 64px 1fr; }
  .req__okved { padding: 24px; }
}

/* Пользователь просит меньше движения — отключаем параллакс и анимации */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { --rv: 0px; opacity: 1; }
}
