/* relayaero.com, версия 1. Оформление бизнеса ещё не утверждено, а палитру и знак канала «Радар авиакарго» на материалы
   бизнеса не переносим (правило владельца 05.10, shared/ai-clone/feedback/business-brand-separate-from-channel.md).
   Поэтому палитра временная и нейтральная: графит и сдержанный синий. Перекраска под выбранный вариант визиток -
   только этот блок, цвета глобуса тоже здесь. Сетка и приёмы - от образца сайта Aimer. */
:root {
  --dark-950: #0b0e12;
  --dark-900: #11151b;
  --dark-800: #181e26;
  --dark-700: #232b36;
  --cool-800: #243040;
  --cool: #7d91a9;
  --cool-2: #b3c2d4;
  --accent: #4a86d4;
  --accent-2: #6699dd;
  --accent-ink: #06111f;
  --accent-soft: #9cc2f2;
  --light: #e2e8f0;
  --light-2: #eef2f6;
  --paper: #f7f8fa;
  --line: #d9e0e8;
  --ink: #141a22;
  --text: #39424e;
  --muted: #687280;

  --d-text: #c9d1db;
  --d-muted: #8b96a5;
  --d-line: rgb(255 255 255 / .12);

  /* те же цвета тройками RGB для полупрозрачных оттенков: rgb(var(--accent-rgb) / .2) */
  --accent-rgb: 74 134 212;
  --cool-rgb: 125 145 169;
  --cool-2-rgb: 179 194 212;
  --cool-800-rgb: 36 48 64;
  --light-rgb: 226 232 240;
  --dark-900-rgb: 17 21 27;
  --dark-800-rgb: 24 30 38;

  /* глобус первого экрана: globe.js читает эти переменные при запуске */
  --g-land: 226 233 242;
  --g-rim: 156 176 200;
  --g-route: 106 160 232;
  --g-head: #ffffff;
  --g-dest: #6aa0e8;
  --g-sphere-1: #2b3646;
  --g-sphere-2: #19202a;
  --g-sphere-3: #0d1116;

  --radius: 14px;
  --wrap: 1180px;
  --f-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
[hidden] { display: none !important; }   /* иначе display: flex у полей перебивает атрибут hidden */
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.draft {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #ffe08a; color: #3a2a00; text-align: center;
  font: 600 13.5px/1.4 var(--f-sans); padding: 8px 16px; box-shadow: 0 -4px 14px rgba(0, 0, 0, .25);
}

/* ---------- кнопки и чипы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15.5px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { border-color: rgb(var(--light-rgb) / .4); background: transparent; color: #fff; }
.btn--ghost:hover { border-color: var(--accent); }
.btn--dark { background: var(--dark-800); color: #fff; }
.btn--dark:hover { background: var(--dark-700); }
.btn--line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--line:hover { border-color: var(--accent); }
.btn--sm { padding: 10px 16px; font-size: 14.5px; }

.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font: 500 13.5px/1.3 var(--f-mono); color: var(--ink);
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--dark-800); border-color: var(--dark-800); color: #fff; }

/* ---------- шапка ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.top.is-scrolled { background: rgb(var(--dark-900-rgb) / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--d-line); }
.top__row { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand__name { font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: -.015em; }
.brand__name b { font-weight: 500; color: var(--light); }
.brand__name small { display: block; margin-top: 3px; font: 500 11.5px var(--f-mono); color: var(--d-muted); letter-spacing: .02em; }
.nav { display: flex; gap: 2px; }
.nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.top__tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.burger { display: none; width: 42px; height: 42px; border: 1.5px solid var(--d-line); background: none; border-radius: 10px; padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- первый экран ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--d-text);
  background:
    radial-gradient(760px 560px at 74% 42%, rgb(var(--cool-rgb) / .22), transparent 62%),
    radial-gradient(620px 420px at 6% 0%, rgb(var(--cool-800-rgb) / .55), transparent 70%),
    radial-gradient(900px 300px at 50% 112%, rgb(var(--accent-rgb) / .2), transparent 70%),
    linear-gradient(180deg, var(--dark-900), var(--dark-800));
  padding: 132px 0 64px;
}
.hero__stars {
  position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, var(--light) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 46% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 88% 14%, var(--light) 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 6% 58%, #fff 50%, transparent 51%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 32px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--f-mono); letter-spacing: .03em; color: var(--cool-2); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / .2); flex-shrink: 0; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.2vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; max-width: 14ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 24px; font-size: 18px; line-height: 1.62; max-width: 56ch; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
.globe { width: 100%; height: 100%; }

.facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 52px; background: var(--d-line); border: 1px solid var(--d-line); border-radius: var(--radius); overflow: hidden; }
.facts li { background: rgb(var(--dark-900-rgb) / .78); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-size: 21px; font-weight: 800; line-height: 1.25; color: #fff; letter-spacing: -.015em; }
.facts span { font-size: 14px; line-height: 1.45; color: var(--d-muted); }

/* ---------- разделы ---------- */
.sec { padding: 104px 0; position: relative; }
.sec--tight { padding: 80px 0; }
.sec--paper { background: var(--paper); }
.sec--soft { background: var(--light-2); }
.sec--dark { background: var(--dark-900); color: var(--d-text); }
.sec--dark h2, .sec--dark h3 { color: #fff; }

.head { max-width: 760px; margin-bottom: 48px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--f-mono); letter-spacing: .04em; color: var(--accent); margin-bottom: 16px; text-transform: uppercase; }
.kicker span { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1.5px solid currentColor; font-size: 11.5px; }
.sec h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.028em; }
.head__lead { margin-top: 18px; font-size: 17.5px; line-height: 1.65; }
.head--light .head__lead { color: var(--d-text); }
.note { margin-top: 28px; font-size: 15.5px; color: var(--muted); max-width: 70ch; }
.note--light { color: var(--d-muted); border-left: 3px solid var(--accent); padding-left: 16px; }

/* услуги */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: rgb(var(--accent-rgb) / .55); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgb(var(--dark-800-rgb) / .35); }
.card__ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--light-2); color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.card p { font-size: 15.5px; line-height: 1.6; }
.card--wide { grid-column: 1 / -1; display: flex; gap: 22px; align-items: flex-start; background: var(--dark-800); border-color: var(--dark-800); color: var(--d-text); }
.card--wide h3 { color: #fff; }
.card--wide .card__ico { background: rgb(var(--accent-rgb) / .16); margin-bottom: 0; }
.card--wide p { max-width: 80ch; }

/* сложные маршруты */
.relay { display: flex; align-items: flex-start; gap: 0; margin-bottom: 44px; }
.relay__node { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 8px; }
.relay__pin { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--dark-800); border: 1.5px solid var(--cool); box-shadow: 0 0 0 7px rgb(var(--cool-rgb) / .12); margin-bottom: 8px; color: var(--cool-2); }
.relay__pin svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.relay__node--end .relay__pin { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 7px rgb(var(--accent-rgb) / .14); }
.relay__node b { color: #fff; font-size: 16.5px; }
.relay__node span { color: var(--d-muted); font-size: 14px; line-height: 1.45; max-width: 22ch; }
.relay__leg { flex: 1.1; position: relative; height: 64px; display: grid; place-items: center; }
.relay__leg::before { content: ""; position: absolute; left: -8px; right: -8px; top: 50%; border-top: 2px dashed rgb(var(--cool-2-rgb) / .45); }
.relay__leg svg { position: relative; width: 30px; height: 30px; color: var(--light); background: var(--dark-900); padding: 2px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { border: 1px solid var(--d-line); border-radius: var(--radius); padding: 24px 22px; background: linear-gradient(180deg, rgb(var(--dark-800-rgb) / .9), rgb(var(--dark-800-rgb) / .45)); }
.tile__ico { width: 26px; height: 26px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.tile h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 8px; }
.tile p { font-size: 15px; line-height: 1.6; color: var(--d-text); }

/* цена */
.price { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.price__copy p { font-size: 17px; line-height: 1.68; margin-top: 18px; }
.price__copy h2 { margin-bottom: 4px; }
.price__copy .btn { margin-top: 30px; }

.awb { margin: 0; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; font-family: var(--f-mono); box-shadow: 10px 12px 0 -2px rgb(var(--dark-800-rgb) / .12); transform: rotate(.6deg); }
.awb__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--dark-800); color: #fff; font-size: 13px; }
.awb__brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: .02em; }
.awb__tag { color: var(--light); font-size: 12px; border: 1px solid rgb(var(--light-rgb) / .4); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.awb__grid { display: grid; grid-template-columns: 1fr 1fr; }
.awb__cell { padding: 12px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.awb__cell:nth-child(2n) { border-right: 0; }
.awb__cell--wide { grid-column: 1 / -1; border-right: 0; }
.awb__cell i { font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.awb__cell b { font-size: 15px; font-weight: 600; color: var(--ink); }
.awb__cell small { font-size: 12px; color: var(--muted); }
.awb__list ul { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; margin-top: 4px; }
.awb__list li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink); }
.awb__list svg { width: 15px; height: 15px; fill: none; stroke: var(--cool); stroke-width: 2.6; stroke-linecap: round; flex-shrink: 0; }
.awb__list--no svg { stroke: var(--accent); }
.awb__cell:nth-last-child(1), .awb__cell:nth-last-child(2) { border-bottom: 0; }
.awb__total { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1.5px solid var(--ink); background: var(--light-2); }
.awb__total i { font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-weight: 600; flex: 1; }
.awb__sum { width: 132px; height: 16px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 13px); opacity: .85; }
.awb__total b { font-size: 18px; color: var(--ink); }

/* калькулятор */
.calc { display: grid; grid-template-columns: 1.45fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -36px rgb(var(--dark-800-rgb) / .5); }
.calc__input { padding: 28px 28px 24px; }
.calc__mode { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.calc__head, .calc__row { display: grid; grid-template-columns: 64px repeat(3, 1fr) 1.2fr 34px; gap: 8px; align-items: center; }
.calc__head { font: 500 11.5px/1.3 var(--f-mono); color: var(--muted); margin-bottom: 8px; }
.calc__rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.calc__row input { width: 100%; min-width: 0; border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 10px; font: 500 15px var(--f-mono); color: var(--ink); background: var(--paper); }
.calc__row input:focus { border-color: var(--accent); outline: none; background: #fff; }
.calc__row label { display: contents; }
.calc__row .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.calc__del { width: 34px; height: 34px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.calc__del:hover { color: var(--accent); background: var(--light-2); }
.calc__del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.calc__del:disabled { visibility: hidden; }
.calc__hint { margin-top: 16px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.calc__out { background: var(--dark-800); color: var(--d-text); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.calc__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.calc__nums div { border: 1px solid var(--d-line); border-radius: 10px; padding: 10px 12px; }
.calc__nums dt { font-size: 12px; color: var(--d-muted); line-height: 1.3; }
.calc__nums dd { margin: 4px 0 0; font: 600 15.5px var(--f-mono); color: #fff; white-space: nowrap; }
.calc__main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--d-line); padding-bottom: 14px; }
.calc__main span { font-size: 15px; color: var(--light); font-weight: 600; }
.calc__main b { font: 600 clamp(30px, 3.4vw, 40px)/1 var(--f-mono); color: #fff; letter-spacing: -.02em; }
.gauge__bar { position: relative; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgb(var(--accent-rgb) / .85), rgb(var(--light-rgb) / .55) 33.4%, rgb(var(--cool-rgb) / .9)); }
.gauge__mark { position: absolute; top: -5px; bottom: -5px; width: 2px; background: #fff; left: 33.4%; }
.gauge__ptr { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--dark-800); box-shadow: 0 0 0 2px #fff; transform: translate(-50%, -50%); left: 0; transition: left .35s ease; }
.gauge__legend { display: flex; justify-content: space-between; margin-top: 10px; font: 500 11.5px var(--f-mono); color: var(--d-muted); }
.calc__verdict { font-size: 15px; line-height: 1.6; min-height: 72px; }
.calc__verdict b { color: #fff; }
.calc__out .btn { align-self: flex-start; }

/* как везём */
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 21px; border-top: 2px dashed rgb(var(--cool-2-rgb) / .4); }
.step { position: relative; padding: 0 12px 0 0; }
.step__n { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--dark-800); border: 1.5px solid var(--cool); color: var(--cool-2); font: 600 14px var(--f-mono); margin-bottom: 16px; }
.step:last-child .step__n { border-color: var(--accent); color: var(--accent); }
.step h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--d-text); }

/* обо мне */
.about { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: start; }
.about__copy h2 { margin-bottom: 8px; }
.about__copy p { font-size: 17px; line-height: 1.7; margin-top: 16px; }
.about .sign { font: 500 14.5px var(--f-mono); color: var(--ink); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 26px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 74px; }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.stats b { font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--accent); letter-spacing: -.02em; }
.stats span { font-size: 14px; line-height: 1.45; color: var(--text); }

/* коллегам */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.partners__body p { font-size: 17px; line-height: 1.68; }
.partners__body p + p { margin-top: 14px; }
.partners__body .btn { margin-top: 26px; }

/* запрос */
.sec--request { background:
  radial-gradient(700px 420px at 90% 10%, rgb(var(--cool-rgb) / .16), transparent 65%),
  radial-gradient(600px 380px at 0% 100%, rgb(var(--accent-rgb) / .14), transparent 65%),
  var(--dark-900); }
.request { display: grid; grid-template-columns: .82fr 1.18fr; gap: 52px; align-items: start; }
.five { counter-reset: f; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.five li { counter-increment: f; position: relative; padding-left: 42px; font-size: 16.5px; line-height: 1.5; }
.five li::before { content: counter(f); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgb(var(--accent-rgb) / .16); color: var(--accent); font: 600 13px var(--f-mono); }
.request__sla { margin-top: 22px; font-weight: 700; color: #fff; }
.contacts { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.contacts a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.contacts a:hover { color: var(--light); }
.contacts svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form { background: var(--paper); color: var(--text); border-radius: 18px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--wide { grid-column: 1 / -1; }
.field > span, .field legend { font-size: 13.5px; font-weight: 700; color: var(--ink); padding: 0; }
.field em { font-style: normal; color: var(--accent); }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; font: 400 15.5px/1.45 var(--f-sans); color: var(--ink); background: #fff; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field.is-bad input, .field.is-bad textarea { border-color: #c4372a; background: #fff6f4; }
.checks { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.checks legend { margin-bottom: 8px; }
.checks label { position: relative; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks label span { display: inline-block; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.checks input:checked + span { background: var(--dark-800); border-color: var(--dark-800); color: #fff; }
.checks input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.form__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.form__status { min-height: 22px; margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--cool); }
.form__status.is-bad { color: #c4372a; }
.form__note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form__manual { width: 100%; margin: 4px 0 12px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 400 14px/1.5 var(--f-mono); color: var(--ink); background: #fff; resize: vertical; }

/* подвал */
.foot { background: var(--dark-950); color: var(--d-muted); padding: 64px 0 36px; }
.channel { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px 28px; border: 1px solid var(--d-line); border-radius: 18px; background: linear-gradient(120deg, rgb(var(--cool-800-rgb) / .55), rgb(var(--dark-800-rgb) / .4)); margin-bottom: 52px; }
.channel__ico { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: rgb(var(--cool-rgb) / .2); color: var(--cool-2); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.channel h2 { color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -.015em; }
.channel p { margin-top: 6px; font-size: 15px; color: var(--d-text); }
.foot__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--d-line); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a { color: var(--d-text); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.foot__links a:hover { color: #fff; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 20px; font: 500 12.5px var(--f-mono); }

/* ---------- страница калькулятора терминальной обработки ---------- */
.calc-hero { background: linear-gradient(180deg, var(--dark-900), var(--dark-800)); color: var(--d-text); padding: 128px 0 56px; }
.calc-hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 22ch; }
.calc-hero__lead { margin-top: 18px; font-size: 17.5px; line-height: 1.65; max-width: 68ch; }
.sec--calc { padding-top: 48px; }
.tc { display: grid; grid-template-columns: 1.05fr .95fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -36px rgb(var(--dark-800-rgb) / .5); }
.tc__form { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.field select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; font: 500 15px/1.4 var(--f-sans); color: var(--ink); background: #fff; }
.field select:focus { border-color: var(--accent); outline: none; }
.field__hint { font-size: 12.5px; color: var(--muted); }
.field__hint a { color: var(--accent); }
.seg { display: flex; border: 1.5px solid var(--line); border-radius: 11px; overflow: hidden; }
.seg__btn { flex: 1; border: 0; background: #fff; padding: 11px 10px; font: 600 14px/1.25 var(--f-sans); color: var(--ink); }
.seg__btn + .seg__btn { border-left: 1.5px solid var(--line); }
.seg__btn[aria-pressed="true"] { background: var(--dark-800); color: #fff; }
.seg__btn:disabled { color: var(--muted); background: var(--light-2); cursor: not-allowed; }
.tc__days { font-size: 13.5px; color: var(--muted); margin-top: -6px; }
.tc__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.tc__check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.tc__opts { display: flex; flex-direction: column; gap: 10px; }
.tc__opts:empty { display: none; }
.tc__out { background: var(--dark-800); color: var(--d-text); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.tc__title { font: 500 13px/1.5 var(--f-mono); color: var(--cool-2); }
.tc__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tc__table td { padding: 10px 0; border-bottom: 1px solid var(--d-line); vertical-align: top; }
.tc__table td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; font: 500 14.5px var(--f-mono); color: #fff; }
.tc__table small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--d-muted); }
.tc__empty { color: var(--d-muted); }
.tc__sum { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tc__sum div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.tc__sum dd { margin: 0; font: 500 14.5px var(--f-mono); color: #fff; }
.tc__sum .tc__total { border-top: 1px solid var(--d-line); padding-top: 12px; margin-top: 6px; align-items: baseline; }
.tc__total dt { color: #fff; font-weight: 700; font-size: 16px; }
.tc__total dd { font: 600 clamp(24px, 2.6vw, 32px)/1 var(--f-mono); color: #fff; }
.tc__warn { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: #ffd27a; }
.tc__warn:empty { display: none; }
.tc__src { font-size: 13px; line-height: 1.55; color: var(--d-muted); }
.tc__src a { color: var(--cool-2); }
.tc__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tc__status { min-height: 20px; font-size: 13.5px; color: var(--cool-2); }
.sec--soft { background: var(--light-2); }
.tc-notes { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.tc-notes__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; padding-left: 18px; list-style: disc; }
.tc-notes__list li, .tc-notes__body p { font-size: 15.5px; line-height: 1.6; }
.calc-teaser { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--radius); background: var(--light-2); border: 1px solid var(--line); }
.calc-teaser p { font-size: 15.5px; color: var(--ink); max-width: 62ch; }
@media (max-width: 960px) {
  .tc, .tc-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .calc-hero { padding: 96px 0 40px; }
  .tc__form, .tc__out { padding: 20px 16px; }
  .tc__form { grid-template-columns: minmax(0, 1fr); }
  .seg { flex-direction: column; }
  .seg__btn + .seg__btn { border-left: 0; border-top: 1.5px solid var(--line); }
  .tc__btns .btn { width: 100%; }
}

/* появление при прокрутке: класс anim ставит скрипт в head и снимает, если app.js не отработал за 3 с */
.anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.anim .reveal.is-in { opacity: 1; transform: none; }
/* без JavaScript калькулятор и форма не работают: вместо них строка из <noscript> */
html:not(.js) .calc, html:not(.js) .form, html:not(.js) .tc { display: none; }
.noscript { padding: 18px 20px; border-radius: var(--radius); border: 1px dashed var(--line); font-size: 16px; }
.sec--dark .noscript { border-color: var(--d-line); color: var(--d-text); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 8px 8px; font-size: 14px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px 0; }
  .steps::before { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {   /* меню в бургер раньше, чем перестраивается страница: на 961-1000 px пункты переносились */
  .nav { display: none; position: absolute; left: 0; right: 0; top: 74px; flex-direction: column; gap: 0; padding: 10px 20px 18px; background: rgb(var(--dark-900-rgb) / .97); border-bottom: 1px solid var(--d-line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 6px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--d-line); }
  .burger { display: inline-flex; }
}
@media (max-width: 960px) {
  .hero { padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 440px; margin-top: 8px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .price, .about, .partners, .request { grid-template-columns: 1fr; gap: 36px; }
  .stats { margin-top: 0; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .awb { transform: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top__row { height: 64px; gap: 12px; }
  .nav { top: 64px; }
  .brand__name { font-size: 17px; }
  .top__cta { display: none; }
  .hero { padding: 96px 0 44px; }
  .hero__lead { font-size: 16.5px; }
  .hero__btns .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; margin-top: 36px; }
  .facts li { padding: 16px 18px; }
  .sec { padding: 72px 0; }
  .sec--tight { padding: 60px 0; }
  .head { margin-bottom: 32px; }
  .head__lead { font-size: 16.5px; }
  .cards { grid-template-columns: 1fr; }
  .card--wide { flex-direction: column; gap: 14px; }
  .relay { flex-direction: column; align-items: stretch; gap: 0; }
  .relay__node { flex-direction: row; text-align: left; align-items: center; gap: 14px; padding: 0; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; }
  .relay__pin { width: 56px; height: 56px; margin: 0; grid-row: 1 / 3; }
  .relay__node span { max-width: none; }
  .relay__leg { height: 46px; width: 56px; flex: none; }
  .relay__leg::before { left: 50%; right: auto; top: -2px; bottom: -2px; border-top: 0; border-left: 2px dashed rgb(var(--cool-2-rgb) / .45); }
  .relay__leg svg { transform: rotate(90deg); }
  .tiles { grid-template-columns: 1fr; }
  .awb__grid { grid-template-columns: 1fr; }
  .awb__cell { border-right: 0; }
  .awb__cell:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .awb__list ul { grid-template-columns: 1fr; }
  .awb__top { flex-wrap: wrap; }
  .calc__input, .calc__out { padding: 20px 16px; }
  .calc__head { display: none; }
  .calc__row { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "q w del" "l b h"; padding: 12px; border: 1px solid var(--line); border-radius: 12px; position: relative; }
  .calc__row label { display: flex; flex-direction: column; gap: 4px; font: 500 11px var(--f-mono); color: var(--muted); }
  .calc__row .sr { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .calc__row label:nth-of-type(1) { grid-area: q; }
  .calc__row label:nth-of-type(2) { grid-area: l; }
  .calc__row label:nth-of-type(3) { grid-area: b; }
  .calc__row label:nth-of-type(4) { grid-area: h; }
  .calc__row label:nth-of-type(5) { grid-area: w; }
  .calc__del { grid-area: del; justify-self: end; align-self: start; }
  .calc__nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc__nums dd { font-size: 13.5px; white-space: normal; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; padding: 0; }
  .step__n { grid-row: 1 / 3; margin: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats b { font-size: 23px; }
  .form { padding: 20px 16px; }
  .form__grid { grid-template-columns: 1fr; }
  .form__btns .btn { width: 100%; }
  .channel { grid-template-columns: 1fr; padding: 22px 18px; }
  .channel .btn { justify-self: start; }
}
@media (max-width: 360px) {   /* iPhone SE с крупным экраном и узкие Android: цифры калькулятора и плитки в одну колонку */
  .calc__nums { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
}
