/* Главная: витрина сайта. Токены — из app.css (--rusline, --ink …). */
main.container-fluid:has(> .home), main.container-fluid:has(.home) { max-width: none; padding: 0 0 0; }
.home { --h-navy: #0f1722; --h-navy-2: #162133; overflow-x: clip; }
.h-wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.h-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rusline); }
.h-eyebrow--light { color: #ff8f94; }
.home h1, .home h2, .home h3 { letter-spacing: -.02em; }

/* ---------- первый экран ---------- */
.h-hero { position: relative; color: #fff; padding: clamp(56px, 9vw, 110px) 0 clamp(84px, 11vw, 130px);
  background: radial-gradient(1200px 520px at 85% 10%, rgba(255,255,255,.14), transparent 60%),
              linear-gradient(120deg, #e8323a 0%, #c4161c 52%, #7d0d12 100%); overflow: hidden; }
.h-hero-sky i { position: absolute; left: -30%; height: 2px; width: 46%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: h-streak 9s linear infinite; opacity: 0; }
.h-hero-sky i:nth-child(1) { top: 22%; animation-delay: 0s; }
.h-hero-sky i:nth-child(2) { top: 41%; animation-delay: 2.6s; width: 34%; }
.h-hero-sky i:nth-child(3) { top: 63%; animation-delay: 5.1s; }
.h-hero-sky i:nth-child(4) { top: 80%; animation-delay: 7s; width: 28%; }
@keyframes h-streak { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translateX(380%); opacity: 0; } }
.h-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 36px; }
.h-hero h1 { color: #fff; margin: 0 0 18px; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; font-weight: 800; }
.h-hero h1 span { display: inline-block; background: linear-gradient(90deg, #fff, #ffd6d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-hero .h-eyebrow { color: rgba(255,255,255,.82); }
.h-lead { max-width: 560px; margin: 0 0 28px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; color: rgba(255,255,255,.92); }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.h-cta--center { justify-content: center; }
.h-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 12px;
  font-weight: 800; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.h-btn:hover { transform: translateY(-2px); }
.h-btn--light { background: #fff; color: #b3141b; box-shadow: 0 10px 26px rgba(70, 5, 10, .35); }
.h-btn--light:hover { color: #8f1015; box-shadow: 0 14px 30px rgba(70, 5, 10, .45); }
.h-btn--ghost { color: #fff; border: 2px solid rgba(255,255,255,.7); }
.h-btn--ghost:hover { color: #fff; background: rgba(255,255,255,.14); }
.h-hero-facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 36px 0 0; padding: 0; list-style: none; }
.h-hero-facts li { display: flex; flex-direction: column; }
.h-hero-facts b { font-size: 24px; font-weight: 800; }
.h-hero-facts span { font-size: 12px; opacity: .8; }

.h-hero-art { position: relative; min-height: 300px; display: flex; align-items: center; }
.h-orbit { position: absolute; inset: 6% 2% 2%; border-radius: 50%; border: 2px dashed rgba(255,255,255,.28); animation: h-spin 40s linear infinite; }
.h-orbit::after { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px 4px rgba(255,255,255,.7); }
@keyframes h-spin { to { transform: rotate(360deg); } }
.h-plane { position: relative; display: block; width: min(100%, 640px); height: auto; margin: 0 auto; transform: rotate(-4deg); overflow: visible;
  filter: drop-shadow(0 26px 22px rgba(60, 4, 8, .45)); animation: h-float 6s ease-in-out infinite; }
@keyframes h-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(-2deg); } }
.h-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #1a2433; background: rgba(255,255,255,.95); box-shadow: 0 10px 24px rgba(60,4,8,.3); animation: h-bob 5s ease-in-out infinite; }
.h-chip i { width: 8px; height: 8px; border-radius: 50%; background: #1fa971; box-shadow: 0 0 0 0 rgba(31,169,113,.6); animation: h-ping 2s infinite; }
.h-chip { z-index: 4; } .h-chip--a { top: 4%; left: 4%; } .h-chip--b { bottom: 16%; left: 0; animation-delay: -1.6s; } .h-chip--c { top: 22%; right: 0; animation-delay: -3s; }
@keyframes h-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes h-ping { 70% { box-shadow: 0 0 0 9px rgba(31,169,113,0); } 100% { box-shadow: 0 0 0 0 rgba(31,169,113,0); } }
.h-scroll { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.75); border-radius: 14px; transform: translateX(-50%); }
.h-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: h-wheel 1.8s ease-in-out infinite; }
@keyframes h-wheel { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- цифры ---------- */
.h-stats { position: relative; z-index: 3; margin-top: -42px; }
.h-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: 18px; box-shadow: 0 24px 50px rgba(16, 24, 40, .16); overflow: hidden; }
.h-stat { padding: 26px 24px; border-right: 1px solid var(--line, #e3e7ec); }
.h-stat:last-child { border-right: 0; }
.h-stat strong { display: block; font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1; color: var(--rusline); font-variant-numeric: tabular-nums; }
.h-stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2, #5c6673); }

/* ---------- сеть ---------- */
.h-network { margin-top: -42px; padding: 120px 0 90px; color: #fff; background: radial-gradient(900px 500px at 10% 0%, #223250 0%, transparent 60%), linear-gradient(180deg, var(--h-navy-2), var(--h-navy)); }
.h-stats + .h-network { margin-top: 28px; padding-top: 110px; }
.h-network-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; align-items: center; }
.h-network h2 { color: #fff; margin: 0 0 16px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.1; }
.h-network p { color: rgba(255,255,255,.8); line-height: 1.65; }
.h-checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.h-checks li { position: relative; padding-left: 30px; color: rgba(255,255,255,.9); font-size: 14px; }
.h-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,59,67,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8f94' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.h-mapcard { padding: 14px; border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
#h-map { display: block; width: 100%; height: auto; }
.h-map-note { margin: 8px 6px 2px; font-size: 11.5px; color: rgba(255,255,255,.55) !important; }
#h-land-g .h-neigh { fill: #182233; stroke: #24344d; stroke-width: .6; vector-effect: non-scaling-stroke; }
#h-land-g .h-ru { fill: url(#h-land); stroke: #3a4d6b; stroke-width: .8; vector-effect: non-scaling-stroke; }
.h-route { fill: none; stroke: #ff4b53; stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .9; }
.h-route-bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.h-dot { fill: #fff; stroke: #ff4b53; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.h-dot--hub { fill: #ff4b53; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.h-ring { fill: none; stroke: #ff4b53; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: h-pulse 2.8s ease-out infinite; }
@keyframes h-pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.h-label { font: 700 11px var(--font, sans-serif); fill: #fff; paint-order: stroke; stroke: rgba(15,23,34,.85); stroke-width: 3px; }
.h-label--hub { font-size: 13px; }
.h-planeico { fill: #fff; filter: url(#h-glow); }

/* ---------- разделы ---------- */
.h-sections, .h-flow { padding: 96px 0 24px; }
.h-flow { padding-bottom: 96px; }
.h-head { max-width: 640px; margin-bottom: 40px; }
.h-head h2, .h-final h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1.1; color: var(--ink); }
.h-head p { color: var(--ink-2); line-height: 1.6; margin: 0; }
.h-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.h-card { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line, #e3e7ec);
  color: var(--ink); text-decoration: none; box-shadow: 0 2px 8px rgba(16,24,40,.04); transition: transform .28s, box-shadow .28s, border-color .28s; overflow: hidden; }
.h-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #e8323a, #ff8f94); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.h-card:hover { transform: translateY(-8px); box-shadow: 0 24px 44px rgba(16,24,40,.14); border-color: rgba(212,32,39,.3); color: var(--ink); }
.h-card:hover::before { transform: scaleX(1); }
.h-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 15px; background: linear-gradient(135deg, #e8323a, #b3141b); box-shadow: 0 10px 20px rgba(212,32,39,.3); transition: transform .3s; }
.h-card:hover .h-ico { transform: rotate(-6deg) scale(1.08); }
.h-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.h-card p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.h-more { font-size: 13px; font-weight: 800; color: var(--rusline); }
.h-more i { display: inline-block; font-style: normal; transition: transform .25s; }
.h-card:hover .h-more i { transform: translateX(6px); }

/* ---------- шаги ---------- */
.h-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.h-steps::before { content: ""; position: absolute; top: 30px; left: 6%; right: 6%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #e8323a, #ff8f94); transform: scaleX(var(--line, 0)); transform-origin: left; transition: transform 1.4s cubic-bezier(.3,.7,.2,1); }
.h-steps.is-in { --line: 1; }
.h-step a { display: block; text-align: center; color: var(--ink); text-decoration: none; padding: 0 6px; }
.h-num { position: relative; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 3px solid var(--rusline);
  color: var(--rusline); font-size: 22px; font-weight: 800; box-shadow: 0 10px 22px rgba(212,32,39,.22); transition: background .25s, color .25s, transform .25s; }
.h-step a:hover .h-num { background: var(--rusline); color: #fff; transform: scale(1.1); }
.h-step h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.h-step p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ---------- финал ---------- */
.h-final { padding: 80px 0 90px; text-align: center; color: #fff; background: linear-gradient(120deg, #c4161c, #7d0d12); }
.h-final h2 { color: #fff; }
.h-final p { margin: 0 0 26px; color: rgba(255,255,255,.88); }

/* ---------- появление при прокрутке ---------- */
.js .h-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.js .h-reveal.is-in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) { .h-cards { grid-template-columns: repeat(2, 1fr); } .h-network-grid, .h-hero-grid { grid-template-columns: 1fr; } .h-hero-art { max-width: 560px; margin: 8px auto 0; }
  .h-steps { grid-template-columns: 1fr; gap: 22px; } .h-steps::before { top: 0; bottom: 0; left: 29px; right: auto; width: 3px; height: auto; transform: scaleY(var(--line, 0)); transform-origin: top; }
  .h-step a { display: grid; grid-template-columns: 60px 1fr; column-gap: 16px; text-align: left; align-items: center; } .h-num { margin: 0; grid-row: span 2; } .h-step h3 { align-self: end; } .h-step p { align-self: start; } }
@media (max-width: 720px) { .h-wrap { width: calc(100% - 32px); } .h-stats-grid { grid-template-columns: repeat(2, 1fr); } .h-stat:nth-child(2) { border-right: 0; } .h-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line, #e3e7ec); }
  .h-cards { grid-template-columns: 1fr; } .h-hero-facts { gap: 12px 24px; } .h-chip { font-size: 11px; padding: 7px 11px; } .h-btn { flex: 1 1 100%; } .h-network { padding: 90px 0 60px; } .h-sections, .h-flow { padding-top: 64px; } }
@media (prefers-reduced-motion: reduce) { .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; } .js .h-reveal { opacity: 1; transform: none; } .h-steps::before { transform: none; } }
