/* ==========================================================================
   iO — Инноватсияи ояндасоз · концепт главной
   ========================================================================== */

:root {
  --blue: #2EA2FF;          /* цвет знака iO */
  --blue-hi: #7CC6FF;
  --blue-deep: #1679E8;
  --ink: #05080F;
  --ink-2: #0A1120;
  --ink-3: #111A2D;
  --paper: #F3F6FA;
  --white: #FFFFFF;

  --on-dark: #EEF4FF;
  --on-dark-2: rgba(226, 236, 255, .64);
  --on-dark-3: rgba(226, 236, 255, .38);
  --line-dark: rgba(255, 255, 255, .09);

  --on-light: #0A1222;
  --on-light-2: #4E5A6E;
  --line-light: rgba(10, 18, 34, .1);

  --f-display: "Unbounded", "Onest", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 28px;
  --r-md: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.dark { background: var(--ink); color: var(--on-dark); }
.light { background: var(--paper); color: var(--on-light); }

/* ---------- Типографика ---------- */
.h2 {
  font: 600 clamp(30px, 4.6vw, 60px)/1.08 var(--f-display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.dark .lead { color: var(--on-dark-2); }
.light .lead { color: var(--on-light-2); }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 22px;
}
.label::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.label--light { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255,255,255,.03);
  font-size: 14px; color: var(--on-dark-2);
}
.eyebrow .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.eyebrow .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue); animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3.2); opacity: 0; } }

/* разбивка на слова/строки для анимаций */
.w { display: inline-block; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Кнопки ---------- */
.btn {
  --bg: transparent;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font: 500 16px/1 var(--f-body); white-space: nowrap;
  background: var(--bg); transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease);
  will-change: transform;
}
.btn--primary { --bg: var(--blue); color: #fff; box-shadow: 0 10px 40px -10px rgba(46,162,255,.7), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--primary:hover { --bg: #47AEFF; }
.btn--ghost { border: 1px solid rgba(255,255,255,.18); color: var(--on-dark); background: rgba(10,17,32,.55); }
.btn--ghost:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.btn--white { --bg: #fff; color: var(--ink); }
.btn--white:hover { --bg: var(--ink); color: #fff; }
.btn--dark { --bg: var(--ink); color: #fff; }
.btn--dark:hover { --bg: var(--blue); }
.btn--lg { height: 60px; padding: 0 30px; font-size: 17px; }
.btn--career { height: 42px; padding: 0 18px; font-size: 15px; background: var(--blue); color: #fff; }
.btn--career:hover { background: #fff; color: var(--ink); }
.ico-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover .ico-arrow { transform: translate(2px, -2px); }
.btn:hover .ico-arrow--down { transform: translateY(3px); }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: transform .5s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5, 8, 15, .82); backdrop-filter: blur(10px); border-color: var(--line-dark); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 40px; height: 35px; fill: var(--blue); transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__name { font: 500 11.5px/1.15 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark-2); }
.nav__links { display: flex; gap: 4px; margin: 0 auto; }
.nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--on-dark-2); transition: color .25s, background .25s; }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--blue); }
.nav__right { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; display: flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); }
.lang a { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 32px; border-radius: 999px; font: 600 12.5px/1 var(--f-body); letter-spacing: .04em; color: var(--on-dark-3); transition: color .3s; }
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { color: var(--ink); }
.lang__pill { position: absolute; top: 4px; left: 4px; width: 40px; height: 32px; border-radius: 999px; background: #fff; transition: transform .45s var(--ease); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.burger i:nth-of-type(1) { top: 18px; } .burger i:nth-of-type(2) { top: 25px; }
.burger[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mmenu {
  position: fixed; inset: var(--nav-h) 0 0; background: rgba(5,8,15,.98);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 40px; gap: 4px; overflow-y: auto;
}
.mmenu[hidden] { display: none; }
.mmenu a { font: 500 26px/1.2 var(--f-display); padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.mmenu .mmenu__career { margin-top: 20px; border: 0; align-self: flex-start; padding: 16px 26px; border-radius: 999px; background: var(--blue); font-size: 18px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 40px) 0 120px; }
.hero__routes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
/* линии проявляются целиком (opacity), без перерисовки штрихов в каждом кадре */
.anim .hero__routes { opacity: 0; }
/* «машины»: отдельные маленькие слои, двигаются через transform */
.hero__cars { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.car { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle, #BFE3FF 0 22%, rgba(46,162,255,.9) 36%, rgba(46,162,255,0) 70%); }
.car--s { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
/* «горизонт»: один градиент вместо огромного круга с тенями — та же картинка, в разы дешевле */
.hero__horizon {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 72vh; pointer-events: none;
  background: radial-gradient(95vw 50vh at 50% calc(100% + 28vh),
    var(--ink) 0, var(--ink) 99%, rgba(124,198,255,.95) 99.6%, rgba(46,162,255,.55) 101.5%,
    rgba(46,162,255,.22) 112%, rgba(22,121,232,.08) 135%, transparent 165%);
}
.hero__grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(1200px 600px at 75% 35%, rgba(46,162,255,.12), transparent 60%), radial-gradient(800px 500px at 10% 10%, rgba(124,198,255,.06), transparent 60%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__title { margin: 28px 0 26px; font: 600 clamp(36px, 5.6vw, 84px)/1 var(--f-display); letter-spacing: -.035em; }
.hero__title .line { display: block; overflow-x: visible; overflow-y: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line__in { display: inline-block; }
.accent { background: linear-gradient(100deg, var(--blue-hi), var(--blue) 50%, #9fd6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { max-width: 560px; font-size: clamp(17px, 1.4vw, 19px); color: var(--on-dark-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: end; }
/* знак iO из трёх слоёв: каждый анимируется своим transform на видеокарте */
.mark { position: absolute; inset: 0; display: grid; place-items: center; }
.mark__box { position: relative; width: 90%; aspect-ratio: 1409 / 1236; }
.mark__part { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform, opacity; backface-visibility: hidden; }
.mark__ring { transform-origin: 65.3% 47.2%; }
.mark__stem { transform-origin: 25.6% 89.8%; }
.mark__dot  { transform-origin: 20.7% 13.5%; }
.mark-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(46,162,255,.32), rgba(46,162,255,.08) 45%, transparent 68%); }
.hero__visual, .hero__horizon, .hero__copy { will-change: transform; }
.chip {
  position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 18px;
  background: rgba(17, 26, 45, .88); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); font-size: 13px; color: var(--on-dark-2); white-space: nowrap;
}
.chip b { font: 600 22px/1.1 var(--f-display); color: #fff; letter-spacing: -.02em; }
.chip--a { left: -6%; bottom: 14%; }
.chip--b { right: -2%; top: 6%; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); }
.scroll-cue i { width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.25); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--blue); animation: wheel 1.8s infinite var(--ease); }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Бегущие строки ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee.is-drag { cursor: grabbing; }
.marquee img { pointer-events: none; }
.logos-strip { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 26px 0; }
.logos-strip .marquee__track { gap: 72px; padding-right: 72px; }
.logos-strip img { width: auto; height: 26px; opacity: .7; transition: opacity .3s; -webkit-user-drag: none; user-select: none; }
.logos-strip img[alt="Hamroh"] { height: 33px; }
.logos-strip img[alt="Arzon"] { height: 29px; }
.logos-strip img[alt="0110"] { height: 24px; }
.logos-strip img:hover { opacity: 1; }
.logos-strip__io { display: inline-flex; align-items: center; gap: 8px; font: 600 22px/1 var(--f-display); color: rgba(255,255,255,.55); }
.logos-strip__io svg { width: 34px; height: 30px; fill: currentColor; }

/* ---------- О компании ---------- */
.about { padding: clamp(90px, 12vw, 160px) 0; }
.about__title { max-width: 980px; }
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.about__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.about__photo img { width: 100%; height: 115%; object-fit: cover; }
.about__photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(5,8,15,.75); color: #fff; font-size: 13px; }
.about__text { color: var(--on-light-2); }
.about__text .w { display: inline; }

/* подсветка ключевой фразы в заголовке: «маркер» протягивается слева направо */
.hl { background: linear-gradient(transparent 62%, rgba(46,162,255,.28) 62%, rgba(46,162,255,.28) 92%, transparent 92%) 0 0 / 0% 100% no-repeat; transition: background-size 1.1s var(--ease); }
.is-lit .hl { background-size: 100% 100%; }
.is-lit .wm + .wm .hl { transition-delay: .15s; }

/* наши направления: карточки */
.dirs { margin-top: clamp(64px, 8vw, 110px); }
.dirs__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.dcard { grid-column: span 2; }
.dcard:nth-child(4), .dcard:nth-child(5) { grid-column: span 3; }
.dcard a {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 250px; padding: 26px;
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-light); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.dcard a::before { /* мягкое голубое свечение снизу при наведении */
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; z-index: -1; opacity: 0;
  background: radial-gradient(closest-side, rgba(46,162,255,.16), transparent); transition: opacity .5s var(--ease);
}
.dcard a::after { /* синяя полоса сверху протягивается слева */
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--blue);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.dcard a:hover, .dcard a:focus-visible { transform: translateY(-6px); border-color: transparent; box-shadow: 0 24px 50px -24px rgba(10,18,34,.28); }
.dcard a:hover::before, .dcard a:focus-visible::before { opacity: 1; }
.dcard a:hover::after, .dcard a:focus-visible::after { transform: scaleX(1); }
.dcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.dcard__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(46,162,255,.1); color: var(--blue); transition: background .4s, color .4s, transform .5s var(--ease); }
.dcard__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dcard a:hover .dcard__ico { background: var(--blue); color: #fff; transform: rotate(-6deg) scale(1.05); }
.dcard__n { font: 600 13px/1 var(--f-display); color: var(--on-light-2); opacity: .6; }
.dcard__t { font: 600 clamp(18px, 1.6vw, 21px)/1.25 var(--f-display); letter-spacing: -.01em; margin-bottom: 10px; color: var(--on-light); }
.dcard__s { color: var(--on-light-2); font-size: 15.5px; line-height: 1.55; }
.dcard__go { margin-top: auto; padding-top: 22px; align-self: flex-end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-light); color: var(--on-light); transition: background .4s, border-color .4s, color .4s, transform .5s var(--ease); box-sizing: content-box; padding: 0; margin-top: auto; }
.dcard__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dcard a:hover .dcard__go { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateX(4px); }

/* линии статистики рисуются при появлении */
.stat { position: relative; transition: background .35s; }
.stat::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.stat:hover::after { transform: scaleX(1); }
.stat b { transition: color .35s; }
.stat:hover b { color: var(--blue); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line-light); }
.stat { padding: 32px 24px 32px 0; border-bottom: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 10px; }
.stat:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line-light); }
.stat b { font: 600 clamp(38px, 4.6vw, 64px)/1 var(--f-display); letter-spacing: -.03em; color: var(--on-light); font-variant-numeric: tabular-nums; }
.stat span { color: var(--on-light-2); max-width: 260px; }

/* ---------- Экосистема ---------- */
.eco { padding: clamp(90px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.eco::before { content: ""; position: absolute; inset: -20% -10% auto; height: 600px; background: radial-gradient(600px 300px at 50% 0, rgba(46,162,255,.16), transparent 70%); pointer-events: none; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); position: relative; }
.sec-head__sub { margin-top: 20px; color: var(--on-dark-2); font-size: 18px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(230px, auto); gap: 16px; position: relative; }
.card {
  --mx: 50%; --my: 50%; --brand: var(--blue);
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line-dark); overflow: hidden; isolation: isolate;
  transition: translate .5s var(--ease), border-color .4s;
}
.card::before { /* прожектор за курсором */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%);
}
.card::after { /* подсветка рамки */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 85%, white), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { translate: 0 -4px !important; } /* важнее inline translate:none от GSAP */
.card--xl { grid-column: span 2; }
.card--wide { grid-column: span 2; }
.card__logo { align-self: flex-start; display: flex; align-items: center; height: 44px; }
/* высоты подобраны так, чтобы надписи в логотипах выглядели одного размера */
.card__logo img { width: auto; height: 30px; max-width: 180px; }
.card__logo img[alt="Arzon"] { height: 33px; }
.card__logo img[alt="Hamroh"] { height: 38px; }
.card__logo img[alt="0110"] { height: 28px; }
.card--xl .card__logo img[alt="0110"] { height: 34px; }
.card__body { display: flex; flex-direction: column; gap: 10px; }
.card__body p { color: var(--on-dark-2); font-size: 16px; }
.card--xl .card__body p { font-size: 19px; color: var(--on-dark); max-width: 480px; }
.tag { align-self: flex-start; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--brand) 70%, white); }
.card__go { margin-top: auto; font-size: 14px; color: var(--on-dark-2); transition: color .3s; }
.card:hover .card__go { color: #fff; }
/* подсветка цветом бренда у каждой карточки: мягкий свет у логотипа и тонкая линия сверху */
.card { background:
    radial-gradient(380px 220px at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.card .card__body::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent); opacity: .85;
  box-shadow: 0 0 14px 1px color-mix(in srgb, var(--brand) 45%, transparent);
  transition: left .5s var(--ease), right .5s var(--ease), opacity .4s; }
.card:hover .card__body::before { left: 0; right: 0; opacity: 1; }
.card__map { position: absolute; right: 22px; bottom: 22px; z-index: -1; width: 42%; max-width: 220px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 6 8; opacity: .45; }
.card__map circle { fill: var(--brand); stroke: none; }

.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.unit {
  --brand: var(--blue);
  position: relative; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line-dark); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(380px 220px at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  transition: translate .5s var(--ease), border-color .4s;
}
.unit::before { /* тонкая светящаяся линия цвета бренда сверху */
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent); opacity: .85;
  box-shadow: 0 0 14px 1px color-mix(in srgb, var(--brand) 45%, transparent);
  transition: left .5s var(--ease), right .5s var(--ease), opacity .4s;
}
.unit:hover { translate: 0 -4px !important; border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.unit:hover::before { left: 0; right: 0; opacity: 1; }
/* логотипы подразделений: одинаковая высота строки, оптически выровненные размеры */
.unit__logo { display: flex; align-items: center; height: 56px; margin-bottom: 18px; }
.unit__logo img { width: auto; height: 34px; max-width: 100%; }
.unit__logo img[alt="Gram Auto"] { height: 30px; }
.unit__logo img[alt^="iO —"] { height: 50px; }
.unit h3 { font: 600 20px/1.2 var(--f-display); margin-bottom: 8px; }
.unit p { color: var(--on-dark-2); font-size: 15.5px; }

/* ---------- История ---------- */
.history { overflow: hidden; }
.history__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(90px, 10vw, 120px) 0; }
.history__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.history__head .label { width: 100%; margin-bottom: 0; }
.history__hint { color: var(--on-light-2); font-size: 15px; margin-left: auto; align-self: center; }
.history__game {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 22px 8px 8px; border-radius: 999px;
  background: var(--ink); color: #fff; box-shadow: 0 14px 34px -16px rgba(5,8,15,.55);
  transition: background .3s, transform .3s var(--ease);
}
.history__game:hover { background: var(--blue); }
.history__game-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); transition: background .3s, transform .4s var(--ease); }
.history__game:hover .history__game-ico { background: #fff; transform: scale(1.06); }
.history__game-ico svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; transition: fill .3s; }
.history__game:hover .history__game-ico svg { fill: var(--blue); }
.history__game-t { display: grid; line-height: 1.25; }
.history__game-t b { font-weight: 600; font-size: 15.5px; }
.history__game-t small { font-size: 13px; color: rgba(255,255,255,.62); }
/* анимации кнопки игры (только transform/opacity) */
.history__game { position: relative; isolation: isolate; }
.history__game::after { /* «дышащее» синее свечение вокруг кнопки */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(46,162,255,.35), 0 12px 36px -6px rgba(46,162,255,.6);
  opacity: 0; animation: gameGlow 3.2s ease-in-out infinite;
}
.history__game-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.history__game-shine::before { /* блик пробегает по кнопке */
  content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent);
  transform: translateX(0) skewX(-20deg); animation: gameShine 4.5s var(--ease) 1.2s infinite;
}
.history__game-ico, .history__game-t { position: relative; z-index: 1; }
.history__game-ico::before, .history__game-ico::after { /* кольца расходятся от иконки */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(46,162,255,.7);
  pointer-events: none; animation: gamePing 2.6s var(--ease) infinite;
}
.history__game-ico::after { animation-delay: 1.3s; }
.history__game-ico svg { animation: gameNudge 2.6s ease-in-out infinite; }
.history__game:hover .history__game-ico::before, .history__game:hover .history__game-ico::after { border-color: rgba(255,255,255,.8); }
@keyframes gameGlow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes gameShine { 0% { transform: translateX(0) skewX(-20deg); } 40%, 100% { transform: translateX(520%) skewX(-20deg); } }
@keyframes gamePing { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes gameNudge { 0%, 60%, 100% { transform: translateX(0); } 75% { transform: translateX(3px); } 88% { transform: translateX(-1px); } }
.history__viewport { position: relative; }
.history__road { position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--line-light); }
.history__progress { position: absolute; left: 0; top: 0; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-hi), var(--blue)); }
.history__car { position: absolute; top: -7px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(46,162,255,.18), 0 0 24px rgba(46,162,255,.8); }
.history__track { display: flex; gap: 24px; width: max-content; padding: 0 var(--gutter); padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.ev { position: relative; width: clamp(280px, 28vw, 360px); padding-top: 72px; }
.ev::before { content: ""; position: absolute; left: 0; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); }
.ev__year { display: block; font: 600 clamp(44px, 5vw, 72px)/1 var(--f-display); letter-spacing: -.04em; color: #CDD6E3; margin-bottom: 18px; transition: color .5s; }
.ev.is-on .ev__year { color: var(--blue); }
.ev h3 { font: 600 22px/1.2 var(--f-display); margin-bottom: 10px; }
.ev p { color: var(--on-light-2); font-size: 16px; }
.ev--now .ev__year { font-size: clamp(34px, 3.6vw, 52px); }

/* ---------- Миссия ---------- */
.mission { padding: clamp(100px, 13vw, 180px) 0 clamp(80px, 10vw, 140px); position: relative; overflow: clip; }
.mission::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 120px; background: linear-gradient(var(--blue), transparent); }
.mission__text { font: 500 clamp(26px, 3.6vw, 50px)/1.22 var(--f-display); letter-spacing: -.02em; max-width: 1100px; text-wrap: pretty; }
.anim .mission__text .w { color: rgba(238,244,255,.16); }
.mission__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(56px, 8vw, 96px); }
.glass { position: relative; overflow: hidden; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); border: 1px solid var(--line-dark); }
.glass__label { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.glass p { font: 500 clamp(20px, 2vw, 26px)/1.35 var(--f-display); letter-spacing: -.01em; position: relative; z-index: 1; }
.glass--goal { background: linear-gradient(150deg, var(--blue-deep), var(--blue) 70%); border-color: transparent; }
.glass--goal .glass__label { color: rgba(255,255,255,.8); }
.glass__year { position: absolute; right: -10px; bottom: -40px; font: 700 160px/1 var(--f-display); letter-spacing: -.06em; color: rgba(255,255,255,.12); }

.values { margin-top: clamp(100px, 12vw, 160px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.values__head { position: sticky; top: calc(var(--nav-h) + 40px); }
.values__stack { display: flex; flex-direction: column; gap: 20px; }
.value {
  position: sticky; top: calc(var(--nav-h) + 40px + var(--i) * 26px);
  min-height: 320px; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--r-lg);
  background: var(--ink-3); border: 1px solid var(--line-dark); overflow: hidden;
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.7);
}
.value:nth-child(2) { background: #14213A; }
.value:nth-child(3) { background: #182A4A; }
.value__n { font: 600 14px/1 var(--f-display); color: var(--blue); }
.value h3 { font: 600 clamp(26px, 3vw, 40px)/1.1 var(--f-display); letter-spacing: -.02em; margin: 60px 0 14px; max-width: 70%; }
.value p { color: var(--on-dark-2); max-width: 62%; font-size: 17px; }
.value__art { position: absolute; right: 24px; top: 24px; width: 34%; max-width: 200px; fill: none; stroke: var(--blue); stroke-width: 2; opacity: .85; }
.value__art circle:not([r="7"]):not(.fill) { stroke-dasharray: 4 6; }
.value__art .fill, .value__art circle[r="7"] { fill: var(--blue); stroke: none; }

/* ---------- Academy ---------- */
.academy { padding: clamp(80px, 10vw, 140px) 0 clamp(100px, 12vw, 160px); }
.academy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.academy__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.academy__media img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 60%; }
.academy__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,8,15,.6)); }
.academy__copy .h2 { margin-bottom: 22px; }
.academy__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0; }
.academy__stats li { padding: 20px; border-radius: var(--r-md); background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 6px; }
.academy__stats b { font: 600 clamp(24px, 2.6vw, 34px)/1 var(--f-display); color: #fff; letter-spacing: -.02em; }
.academy__stats span { font-size: 14px; color: var(--on-dark-2); line-height: 1.35; }

/* ---------- Партнёры ---------- */
.partners { padding: clamp(90px, 11vw, 150px) 0; }
.partners .h2 { margin-bottom: clamp(36px, 5vw, 56px); }
.marquee--partners + .marquee--partners { margin-top: 14px; }
.marquee--partners .marquee__track { gap: 14px; padding-right: 14px; }
.partner {
  display: inline-flex; align-items: center; height: 76px; padding: 0 34px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-light); white-space: nowrap;
  font: 600 20px/1 var(--f-display); letter-spacing: -.01em; color: var(--on-light);
  transition: background .3s, color .3s, border-color .3s;
}
.partner:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- iO Карьера ---------- */
.career { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue-deep), var(--blue) 55%, #63BBFF); color: #fff; padding: clamp(80px, 10vw, 130px) 0; }
.career::before { content: ""; position: absolute; right: -10%; top: -40%; width: 70vw; height: 70vw; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.career::after { content: ""; position: absolute; right: 5%; top: -10%; width: 40vw; height: 40vw; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.career__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.career .lead { color: rgba(255,255,255,.85); margin: 22px 0 26px; }
.career__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.career__tags li { padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 14px; }
.career__photo { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: 0 40px 80px -30px rgba(5,8,15,.6); }
.career__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.career__photo:hover img { transform: scale(1.04); }
.career__badge { position: absolute; right: 18px; bottom: 18px; width: 72px; height: 72px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.career__badge svg { width: 38px; height: 33px; fill: #fff; }

/* ---------- Контакты ---------- */
.contacts { padding: clamp(90px, 11vw, 150px) 0 60px; }
.contacts .h2 { margin-bottom: clamp(36px, 5vw, 56px); }
.contacts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cbox { padding: 26px; border-radius: var(--r-md); border: 1px solid var(--line-dark); background: rgba(255,255,255,.025); display: flex; flex-direction: column; gap: 12px; }
.cbox:nth-child(4) { grid-column: span 2; }
.cbox__l { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); }
.cbox__big { font: 500 clamp(17px, 1.6vw, 20px)/1.4 var(--f-display); letter-spacing: -.01em; }
.cbox a[href^="tel:"] { white-space: nowrap; }
.cbox p, .cbox li { color: var(--on-dark); }
.cbox li + li { margin-top: 6px; }
.cbox a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.cbox a:hover { background-size: 100% 1px; color: var(--blue-hi); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.cbox a.social { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); transition: background .3s, border-color .3s, color .3s, transform .4s var(--ease); }
.cbox a.social:hover, .cbox a.social:focus-visible { background: rgba(46,162,255,.14); border-color: rgba(46,162,255,.5); color: #fff; transform: translateY(-2px); }
.social__ico { flex: none; width: 24px; height: 24px; transition: transform .4s var(--ease); }
.cbox a.social:hover .social__ico { transform: scale(1.12) rotate(-6deg); }

/* адреса открываются на карте Mahal */
.cbox a.addr { background: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; transition: background .3s, color .3s; }
.cbox a.addr:hover, .cbox a.addr:focus-visible { background: rgba(48,186,128,.1); color: #fff; }
.addr__pin { flex: none; width: 18px; height: 18px; transition: transform .5s var(--ease); }
.addr:hover .addr__pin { transform: rotate(90deg) scale(1.15); }
.addr__t { flex: 1; }
.addr__go { color: #30BA80; opacity: 0; transform: translate(-6px, 6px); transition: opacity .3s, transform .35s var(--ease); }
.addr:hover .addr__go, .addr:focus-visible .addr__go { opacity: 1; transform: none; }
.cbox a.addr--big { flex-direction: column; align-items: flex-start; gap: 10px; font: 500 20px/1.4 var(--f-display); letter-spacing: -.01em; }
.addr__map { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--f-body); color: #30BA80; }
.addr__map svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.addr--big:hover .addr__map svg { transform: rotate(90deg); }
.addr-list li + li { margin-top: 2px; }
.addr-hint { margin-top: 6px; font-size: 13px; color: var(--on-dark-3); }

/* ---------- Подвал ---------- */
.footer { padding: 20px 0 32px; overflow: hidden; }
.footer__mark { display: block; width: 120px; height: auto; margin: 8px 0 36px; fill: none; stroke: var(--blue); stroke-width: 16; }
.anim .footer__mark use { stroke-dasharray: 6000; stroke-dashoffset: 6000; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--on-dark-3); position: relative; }
.footer__links { display: flex; gap: 22px; }
.footer__links a:hover { color: #fff; }


/* ==========================================================================
   Блог: блок на главной, список статей, страница статьи
   ========================================================================== */
.blog { padding: clamp(90px, 11vw, 150px) 0; }
.blog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.blog__head .label { margin-bottom: 18px; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.posts--two { grid-template-columns: repeat(2, 1fr); }
.post-card a {
  display: flex; flex-direction: column; height: 100%; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line-light); color: var(--on-light);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.post-card a:hover, .post-card a:focus-visible { transform: translateY(-6px); border-color: transparent; box-shadow: 0 28px 60px -28px rgba(10,18,34,.35); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card a:hover .post-card__img img { transform: scale(1.06); }
.post-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--on-light-2); }
.post-card__tag { padding: 5px 11px; border-radius: 999px; background: rgba(46,162,255,.12); color: var(--blue-deep); font-weight: 600; letter-spacing: .02em; }
.post-card__t { font: 600 clamp(19px, 1.7vw, 22px)/1.25 var(--f-display); letter-spacing: -.01em; }
.post-card__x { color: var(--on-light-2); font-size: 15.5px; line-height: 1.55; }
.post-card__go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--blue-deep); }
.post-card a:hover .ico-arrow { transform: translateX(4px); }
/* первая статья на главной и в списке — крупнее */
.post-card--featured { grid-column: span 2; }
.post-card--featured a { flex-direction: row; }
.post-card--featured .post-card__img { flex: 1.15; aspect-ratio: auto; min-height: 340px; }
.post-card--featured .post-card__body { flex: 1; padding: 32px; justify-content: center; }
.post-card--featured .post-card__t { font-size: clamp(22px, 2.2vw, 30px); }

/* внутренние страницы */
.is-page .nav { background: rgba(5, 8, 15, .82); border-color: var(--line-dark); }
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(56px, 7vw, 90px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 140vw; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(124,198,255,.8), transparent); box-shadow: 0 0 40px 6px rgba(46,162,255,.35); }
.page-hero__t { font: 600 clamp(40px, 6vw, 80px)/1.02 var(--f-display); letter-spacing: -.03em; margin: 20px 0 18px; }
.page-hero__s { max-width: 640px; color: var(--on-dark-2); font-size: clamp(17px, 1.5vw, 20px); }
.page-body { padding: clamp(56px, 7vw, 96px) 0 clamp(80px, 10vw, 130px); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--on-dark-3); }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.crumbs a { color: var(--on-dark-2); transition: color .25s; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--on-dark); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* статья */
.wrap--narrow { max-width: calc(780px + var(--gutter) * 2); }
.post-hero { padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) 0 clamp(120px, 14vw, 200px); }
.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 28px 0 0; font-size: 14px; color: var(--on-dark-2); }
.post-hero__meta .post-card__tag { background: rgba(46,162,255,.16); color: var(--blue-hi); }
.post-hero__t { font: 600 clamp(32px, 4.6vw, 58px)/1.08 var(--f-display); letter-spacing: -.025em; margin: 18px 0 20px; text-wrap: balance; }
.post-hero__x { font-size: clamp(18px, 1.6vw, 21px); color: var(--on-dark-2); }
.post-cover { margin-top: calc(-1 * clamp(80px, 11vw, 160px)); position: relative; z-index: 1; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 40px 80px -40px rgba(5,8,15,.6); }
.post { background: linear-gradient(var(--ink) 0, var(--ink) 1px, var(--paper) 1px); }
.post-body { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 110px); color: var(--on-light); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.75; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--f-display); letter-spacing: -.015em; margin-top: 1.9em; }
.post-body ul { padding: 0; list-style: none; display: grid; gap: 10px; }
.post-body li { position: relative; padding-left: 30px; }
.post-body li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(46,162,255,.18); }
.post-body p { color: #26324a; }
.more { padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--line-light); }
.career--mini { padding: clamp(60px, 8vw, 96px) 0; }
.career__inner--mini { grid-template-columns: 1fr auto; }
.career--mini .lead { margin: 14px 0 0; }

/* 404 */
.page-hero--404 { min-height: 80svh; display: flex; align-items: center; }
.page-hero__code { font: 700 clamp(90px, 18vw, 220px)/1 var(--f-display); letter-spacing: -.05em; background: linear-gradient(100deg, var(--blue-hi), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 1000px) {
  .posts { grid-template-columns: 1fr 1fr; }
  .post-card--featured { grid-column: span 2; }
}
@media (max-width: 700px) {
  .posts, .posts--two { grid-template-columns: 1fr; }
  .post-card--featured { grid-column: auto; }
  .post-card--featured a { flex-direction: column; }
  .post-card--featured .post-card__img { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .post-card--featured .post-card__body { padding: 24px; }
  .career__inner--mini { grid-template-columns: 1fr; }
  .crumbs [aria-current] { max-width: 22ch; }
}

/* ---------- Режим проверки фактов: ?review=1 ---------- */
.review [data-verify] { outline: 2px dashed #FFB020; outline-offset: 6px; border-radius: 8px; position: relative; }
.review [data-verify]::after { content: "⚠ " attr(data-verify); position: absolute; z-index: 5; left: 0; top: calc(100% + 10px); width: max-content; max-width: 320px; padding: 8px 12px; border-radius: 10px; background: #FFB020; color: #1a1200; font: 500 12.5px/1.35 var(--f-body); letter-spacing: 0; text-transform: none; white-space: normal; -webkit-text-stroke: 0; }

/* ---------- Адаптив ---------- */
/* ноутбуки: меню целиком не помещается рядом с подписью — ужимаем */
@media (max-width: 1320px) {
  .brand__name { display: none; }
  .nav__inner { gap: 16px; }
  .nav__links a { padding: 8px 10px; font-size: 14.5px; }
}
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { position: absolute; right: -10%; top: 6%; width: 60%; max-width: 480px; opacity: .35; z-index: 0; }
  .hero__visual .chip { display: none; }
  .burger { display: block; }
  .nav__right { margin-left: auto; }
}
@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav.is-scrolled { backdrop-filter: none; background: rgba(5, 8, 15, .94); }
  .footer__mark { width: 96px; }
  .hero { padding-bottom: 110px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { position: absolute; right: -18%; top: 4%; width: 70%; max-width: 420px; opacity: .35; z-index: 0; }
  .hero__visual .chip { display: none; }
  .about__grid, .academy__grid, .career__inner { grid-template-columns: 1fr; }
  .dirs__grid { grid-template-columns: 1fr 1fr; }
  .dcard, .dcard:nth-child(4) { grid-column: span 1; }
  .dcard:nth-child(5) { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-light); }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--xl { grid-column: span 2; }
  .units { grid-template-columns: 1fr; }
  .mission__pair { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .values__head { position: static; }
  .contacts__grid { grid-template-columns: 1fr 1fr; }
  .academy__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__name { display: none; }
  .btn--career { display: none; }
  .lang a { width: 36px; }
  .lang__pill { width: 36px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .hero__visual { right: -30%; width: 90%; opacity: .22; }
  .bento { grid-template-columns: 1fr; }
  .card--xl, .card--wide { grid-column: auto; }
  .card__map { width: 40%; }
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(even) { padding-left: 0; border-left: 0; }
  .academy__stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .academy__stats li { padding: 14px; }
  .value { min-height: 280px; }
  .value h3, .value p { max-width: 100%; }
  .value h3 { margin-top: 90px; }
  .value__art { width: 80px; }
  .contacts__grid { grid-template-columns: 1fr; }
  .cbox:nth-child(4) { grid-column: auto; }
  .partner { height: 60px; padding: 0 24px; font-size: 16px; }
  .dirs__grid { grid-template-columns: 1fr; gap: 12px; }
  .dcard:nth-child(n) { grid-column: auto; }
  .dcard a { min-height: 0; padding: 22px; }
  .dcard__top { margin-bottom: 18px; }
  .glass__year { font-size: 110px; }
}

/* Мобильная история: вертикальная лента (класс ставит JS) */
.history.is-vertical .history__track { flex-direction: column; width: auto; padding: 0 var(--gutter); gap: 8px; }
.history.is-vertical .ev { width: auto; padding: 0 0 28px 36px; }
.history.is-vertical .ev::before { left: 0; top: 14px; }
.history.is-vertical .history__road { left: calc(var(--gutter) + 6px); right: auto; top: 14px; bottom: 0; width: 2px; height: auto; }
.history.is-vertical .history__progress { transform-origin: 50% 0; transform: scaleY(0); }
.history.is-vertical .history__car { display: none; }
.history.is-vertical .history__track { padding-left: calc(var(--gutter)); }
.history.is-vertical .ev__year { font-size: 40px; margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .history__hint { margin-left: 0; width: 100%; }
}
