/* ============================================================
   iVenturer Foundation — Design System
   Brand: #EB473E (from logo) · Dark premium · Editorial
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* brand */
  --red: #EB473E;
  --red-600: #D63B32;
  --red-700: #B22C24;
  --red-300: #FF8378;
  --red-glow: rgba(235, 71, 62, .30);
  --red-veil: rgba(235, 71, 62, .09);

  --teal: #14B8A6;
  --teal-dim: rgba(20, 184, 166, .16);
  --gold: #C9A227;

  /* surfaces (dark premium) */
  --ink: #08080A;
  --ink-2: #0D0D10;
  --graphite: #121216;
  --carbon: #191920;
  --slate: #23232C;
  --slate-2: #2E2E39;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .14);

  /* text */
  --fg: #F4F3F1;
  --fg-2: rgba(244, 243, 241, .72);
  --fg-3: rgba(244, 243, 241, .48);
  --fg-4: rgba(244, 243, 241, .28);

  /* light section (editorial contrast) */
  --paper: #F7F6F4;
  --paper-2: #FFFFFF;
  --paper-fg: #0A0A0C;
  --paper-fg-2: rgba(10, 10, 12, .66);
  --paper-fg-3: rgba(10, 10, 12, .48);
  --paper-line: rgba(10, 10, 12, .11);

  /* type */
  --ff: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* fluid scale */
  --t-hero: clamp(2.6rem, 7.2vw, 6.4rem);
  --t-h1: clamp(2.1rem, 5.0vw, 4.1rem);
  --t-h2: clamp(1.75rem, 3.6vw, 2.9rem);
  --t-h3: clamp(1.18rem, 1.8vw, 1.5rem);
  --t-lead: clamp(1.02rem, 1.5vw, 1.22rem);
  --t-body: 1rem;
  --t-sm: .875rem;
  --t-xs: .78rem;
  --t-mi: .69rem;

  /* space */
  --gut: clamp(1.15rem, 4vw, 2.6rem);
  --sec: clamp(4.5rem, 10vw, 9rem);
  --maxw: 1280px;

  /* radii */
  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  /* motion */
  --e-out: cubic-bezier(.22, 1, .36, 1);
  --e-io: cubic-bezier(.65, 0, .35, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);
  --d-1: .18s; --d-2: .30s; --d-3: .48s; --d-4: .72s;

  /* elevation */
  --sh-1: 0 2px 10px rgba(0, 0, 0, .32);
  --sh-2: 0 14px 40px rgba(0, 0, 0, .42);
  --sh-3: 0 30px 80px rgba(0, 0, 0, .55);
  --sh-red: 0 14px 44px rgba(235, 71, 62, .30);

  --z-nav: 100; --z-fab: 200; --z-panel: 210; --z-top: 999;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  font-family: var(--ff);
  font-size: var(--t-body);
  line-height: 1.62;
  background: var(--ink);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--red); color: #fff; }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--slate-2) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--slate-2); border-radius: 99px; border: 2px solid var(--ink); }
*::-webkit-scrollbar-thumb:hover { background: var(--red-700); }

/* ---------- 3. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 900px; }
.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

/* eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--t-mi); font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red));
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.h-sec {
  font-size: var(--t-h2);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 1.1rem;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.62;
  color: var(--fg-2);
  font-weight: 400;
  max-width: 62ch;
}
.lead--c { margin-inline: auto; }
.sec-head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.sec-head--c { margin-inline: auto; text-align: center; }

/* gradient text */
.gtext {
  background: linear-gradient(104deg, #fff 8%, var(--red-300) 52%, var(--red) 88%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .82rem 1.6rem;
  background: var(--bg); color: var(--fg);
  font-size: var(--t-sm); font-weight: 700; letter-spacing: -.01em;
  border-radius: var(--r-pill);
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform var(--d-2) var(--e-out), box-shadow var(--d-2) var(--e-out), background var(--d-2);
  box-shadow: var(--sh-red);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 52px rgba(235, 71, 62, .42); }
.btn:active { transform: translateY(0) scale(.985); }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .30) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .68s var(--e-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn svg { flex-shrink: 0; }

.btn--ghost {
  --bg: transparent; --fg: var(--fg);
  border: 1px solid var(--line-2);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red); box-shadow: 0 10px 34px rgba(0, 0, 0, .4); }
.btn--ghost:hover::after { display: none; }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: var(--t-xs); }
.btn--full { width: 100%; }

/* ---------- 5. HEADER ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  transition: transform var(--d-3) var(--e-out), background var(--d-2), border-color var(--d-2);
  border-bottom: 1px solid transparent;
}
.hdr.is-solid {
  background: rgba(8, 8, 10, .78);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--line);
}
.hdr.is-hidden { transform: translateY(-102%); }
.hdr__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; height: 68px;
}

/* logo */
.logo { display: inline-flex; align-items: center; gap: .62rem; }
.logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo__mark canvas { width: 100%; height: 100%; }
.logo__txt {
  font-size: 1.16rem; font-weight: 800; letter-spacing: -.025em;
  line-height: 1;
}
.logo__txt i { font-style: normal; color: var(--red); }
.logo__sub {
  display: block; font-size: .55rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--fg-3); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  position: relative;
  padding: .5rem .8rem;
  font-size: .84rem; font-weight: 600; color: var(--fg-2);
  border-radius: var(--r-xs);
  transition: color var(--d-1), background var(--d-1);
}
.nav a::after {
  content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .28rem;
  height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-2) var(--e-out);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: .5rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-xs);
}
.nav-toggle span {
  display: block; width: 18px; height: 1.6px;
  background: var(--fg); border-radius: 2px;
  transition: transform var(--d-2) var(--e-out), opacity var(--d-1);
}
.nav-toggle span + span { margin-top: 4.5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.1px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.1px) rotate(-45deg); }

/* mobile menu */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 68px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gut) 1.6rem;
    background: rgba(8, 8, 10, .96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-118%);
    transition: transform var(--d-3) var(--e-out);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .92rem .4rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex; align-items: center;
  padding-top: 108px; padding-bottom: 4rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 78% at 78% 8%, rgba(235, 71, 62, .13) 0%, transparent 56%),
    radial-gradient(90% 60% at 8% 92%, rgba(20, 184, 166, .09) 0%, transparent 58%),
    linear-gradient(180deg, #0A0A0D 0%, #08080A 55%, #08080A 100%);
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .85; }
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(112% 88% at 50% 34%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(112% 88% at 50% 34%, #000 0%, transparent 76%);
}
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .58rem;
  padding: .42rem .95rem .42rem .68rem;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(10px);
  font-size: var(--t-xs); font-weight: 600; color: var(--fg-2);
  margin-bottom: 1.5rem;
}
.pulse {
  position: relative; width: 7px; height: 7px; flex-shrink: 0;
  border-radius: 50%; background: var(--teal);
}
.pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--teal);
  animation: pulseRing 2.1s var(--e-out) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .75; }
  70%, 100% { transform: scale(3.4); opacity: 0; }
}
.hero h1 {
  font-size: var(--t-hero);
  font-weight: 800;
  line-height: .97;
  letter-spacing: -.042em;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero__sub {
  font-size: var(--t-lead);
  line-height: 1.58;
  color: var(--fg-2);
  max-width: 54ch;
  margin-bottom: 2.2rem;
}
.hero__sub b { color: var(--fg); font-weight: 700; }
.hero__cta {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin-bottom: 2.8rem;
}
.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 560px;
}
.fact {
  background: rgba(255, 255, 255, .022);
  padding: 1.05rem 1.1rem;
  transition: background var(--d-2);
}
.fact:hover { background: rgba(235, 71, 62, .07); }
.fact__n {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.fact__l {
  font-size: var(--t-xs); color: var(--fg-3);
  margin-top: .38rem; line-height: 1.35;
}

/* hero sphere column */
.hero__sphere {
  position: relative;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.hero__sphere canvas {
  width: 100%; height: 100%;
  animation: float 9s var(--e-io) infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.hero__ring {
  position: absolute; inset: 6%;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.hero__ring--2 {
  inset: 15%;
  border-color: rgba(235, 71, 62, .22);
  border-style: dashed;
  animation: spin 34s linear infinite;
}
.hero__ring--3 {
  inset: 24%;
  border-color: rgba(20, 184, 166, .18);
  animation: spin 26s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; text-align: left; }
  .hero__sphere { order: -1; max-width: 380px; margin-inline: auto; width: 100%; }
  .hero { min-height: auto; padding-top: 96px; }
}
@media (max-width: 560px) {
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts .fact:last-child { grid-column: span 2; }
  .hero__sphere { max-width: 280px; }
}

/* ---------- 7. SCROLL / TICKER ---------- */
.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: .95rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex; gap: 2.6rem; width: max-content;
  animation: slide 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker__i {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--fg-4); white-space: nowrap;
}
.ticker__i::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--red); opacity: .6;
}

/* ---------- 8. CARDS (services) ---------- */
.grid { display: grid; gap: clamp(.9rem, 1.6vw, 1.3rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card {
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  background: linear-gradient(168deg, rgba(255, 255, 255, .052) 0%, rgba(255, 255, 255, .016) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden; isolation: isolate;
  transform-style: preserve-3d;
  transition: transform var(--d-2) var(--e-out), border-color var(--d-2), box-shadow var(--d-3);
  will-change: transform;
}
.card:hover { border-color: rgba(235, 71, 62, .40); box-shadow: var(--sh-2); }
.card__glare {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0; transition: opacity var(--d-3);
  pointer-events: none;
}
.card:hover .card__glare { opacity: 1; }
.card__glow {
  position: absolute; z-index: -1;
  width: 260px; height: 260px; right: -80px; top: -100px;
  background: radial-gradient(circle, var(--red-veil), transparent 70%);
  opacity: 0; transition: opacity var(--d-3);
}
.card:hover .card__glow { opacity: 1; }
.card__n {
  position: absolute; top: 1.1rem; right: 1.3rem;
  font-family: var(--ff-mono); font-size: var(--t-mi); font-weight: 500;
  color: var(--fg-4); letter-spacing: .1em;
}
.card__ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--red-veil);
  border: 1px solid rgba(235, 71, 62, .26);
  color: var(--red);
  margin-bottom: 1.25rem;
  transition: transform var(--d-3) var(--e-spring), background var(--d-2), color var(--d-2);
}
.card:hover .card__ico { transform: scale(1.08) rotate(-4deg); background: var(--red); color: #fff; }
.card__ico svg { width: 22px; height: 22px; }
.card h3 {
  font-size: var(--t-h3); font-weight: 700;
  line-height: 1.24; letter-spacing: -.022em;
  margin-bottom: .6rem;
}
.card p { font-size: var(--t-sm); line-height: 1.6; color: var(--fg-3); }
.card__tags { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: 1.15rem; }
.tag {
  font-size: .68rem; font-weight: 600;
  padding: .28rem .6rem;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  color: var(--fg-3);
  white-space: nowrap;
}

/* direction cards (numbered rows) */
.dirs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dir {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem);
  padding: clamp(1.3rem, 2.4vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background var(--d-2);
}
.dir::before {
  content: ''; position: absolute; inset: 0 -1rem;
  background: linear-gradient(90deg, var(--red-veil), transparent 62%);
  opacity: 0; transition: opacity var(--d-2);
  pointer-events: none;
}
.dir:hover::before { opacity: 1; }
.dir__n {
  font-family: var(--ff-mono); font-size: .82rem; font-weight: 500;
  color: var(--red); letter-spacing: .06em;
  transition: transform var(--d-2) var(--e-out);
}
.dir:hover .dir__n { transform: translateX(5px); }
.dir h3 { font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: .3rem; }
.dir p { font-size: var(--t-sm); color: var(--fg-3); max-width: 62ch; }
.dir__a {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--fg-3);
  transition: all var(--d-2) var(--e-out);
}
.dir:hover .dir__a { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }
@media (max-width: 720px) {
  .dir { grid-template-columns: 40px minmax(0, 1fr); }
  .dir__a { display: none; }
}

/* ---------- 9. TOOLS (investor) ---------- */
.tools { display: grid; gap: clamp(.8rem, 1.4vw, 1.1rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 262px), 1fr)); }
.tool {
  position: relative;
  padding: 1.5rem 1.35rem 1.4rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(255, 255, 255, .022);
  overflow: hidden;
  transition: transform var(--d-2) var(--e-out), border-color var(--d-2), background var(--d-2);
}
.tool::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--red), var(--teal));
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--d-3) var(--e-out);
}
.tool:hover { transform: translateY(-4px); border-color: var(--line-2); background: rgba(255, 255, 255, .042); }
.tool:hover::before { transform: scaleY(1); }
.tool__i {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; margin-bottom: 1rem;
  background: rgba(235, 71, 62, .12); color: var(--red);
}
.tool__i svg { width: 18px; height: 18px; }
.tool h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .42rem; }
.tool p { font-size: var(--t-xs); line-height: 1.56; color: var(--fg-3); }

/* ---------- 10. METRICS ---------- */
.metrics {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.metric {
  background: var(--ink-2);
  padding: clamp(1.5rem, 2.6vw, 2.2rem) 1.2rem;
  text-align: center;
  transition: background var(--d-2);
}
.metric:hover { background: var(--carbon); }
.metric__n {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800; line-height: 1; letter-spacing: -.045em;
  background: linear-gradient(170deg, #fff, var(--red-300) 88%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.metric__l { font-size: var(--t-xs); font-weight: 600; color: var(--fg-2); margin-top: .62rem; }
.metric__n2 { font-size: .68rem; color: var(--fg-4); margin-top: .28rem; }

/* ---------- 11. PORTFOLIO ---------- */
.pf-bar { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.7rem; }
.pf-bar button {
  min-height: 38px; padding: .42rem .95rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--t-xs); font-weight: 600; color: var(--fg-3);
  transition: all var(--d-1);
}
.pf-bar button:hover { border-color: var(--line-2); color: var(--fg); }
.pf-bar button.is-on { background: var(--red); border-color: var(--red); color: #fff; }

.pf-grid { display: grid; gap: clamp(.7rem, 1.3vw, 1rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 246px), 1fr)); }
.pf {
  position: relative; padding: 1.25rem 1.15rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(255, 255, 255, .02);
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform var(--d-2) var(--e-out), border-color var(--d-2), background var(--d-2);
  cursor: default;
}
.pf:hover { transform: translateY(-4px); border-color: rgba(235, 71, 62, .38); background: rgba(235, 71, 62, .05); }
.pf.is-hidden { display: none; }
.pf__t {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); opacity: .68;
}
.pf h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; padding-right: 3.4rem; }
.pf p { font-size: var(--t-xs); line-height: 1.55; color: var(--fg-3); flex: 1; }
.pf__f {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--ff-mono); font-size: .64rem;
  color: var(--fg-4); letter-spacing: .05em;
}

/* ---------- 12. COMMUNITY / EVENTS ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(1.5rem, 3.4vw, 3.2rem); align-items: start; }
.ev {
  display: flex; gap: 1.1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--d-2) var(--e-out);
}
.ev:hover { padding-left: .55rem; }
.ev__i {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--red-veil); border: 1px solid rgba(235, 71, 62, .24);
  color: var(--red);
}
.ev h4 { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .28rem; }
.ev p { font-size: var(--t-sm); color: var(--fg-3); line-height: 1.55; }

.edu {
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .014));
  transition: border-color var(--d-2), transform var(--d-2) var(--e-out);
}
.edu:hover { border-color: rgba(235, 71, 62, .34); transform: translateY(-3px); }
.edu__k {
  display: inline-block; margin-bottom: .85rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal);
}
.edu h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -.022em; margin-bottom: .45rem; }
.edu p { font-size: var(--t-sm); color: var(--fg-3); margin-bottom: 1.1rem; }
.edu ul { display: grid; gap: .42rem; }
.edu li {
  display: flex; gap: .55rem; align-items: flex-start;
  font-size: var(--t-xs); color: var(--fg-2);
}
.edu li::before {
  content: ''; width: 5px; height: 5px; flex-shrink: 0; margin-top: .48em;
  border-radius: 50%; background: var(--teal);
}

/* ---------- 13. TESTIMONIALS ---------- */
.quotes { display: grid; gap: clamp(1rem, 1.8vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.quote {
  position: relative;
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .022);
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: border-color var(--d-2);
}
.quote:hover { border-color: rgba(235, 71, 62, .3); }
.quote__m { font-family: Georgia, serif; font-size: 2.6rem; line-height: .6; color: var(--red); opacity: .5; }
.quote p { font-size: var(--t-sm); line-height: 1.68; color: var(--fg-2); flex: 1; }
.quote__a { display: flex; align-items: center; gap: .8rem; }
.quote__av {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--red-veil); border: 1px solid rgba(235, 71, 62, .3);
  font-size: .82rem; font-weight: 800; color: var(--red);
}
.quote__n { font-size: .92rem; font-weight: 700; }
.quote__r { font-size: var(--t-xs); color: var(--fg-4); }

/* ---------- 14. LIGHT SECTION (editorial) ---------- */
.light {
  background: var(--paper);
  color: var(--paper-fg);
  position: relative;
}
.light .h-sec { color: var(--paper-fg); }
.light .lead { color: var(--paper-fg-2); }
.light .eyebrow { color: var(--red-600); }
.light .eyebrow::before { background: linear-gradient(90deg, transparent, var(--red-600)); }
.light .eyebrow::after { background: linear-gradient(90deg, var(--red-600), transparent); }
.light .card {
  background: var(--paper-2);
  border-color: var(--paper-line);
  box-shadow: 0 1px 2px rgba(10, 10, 12, .04);
}
.light .card:hover { border-color: rgba(214, 59, 50, .35); box-shadow: 0 16px 44px rgba(10, 10, 12, .09); }
.light .card p { color: var(--paper-fg-3); }
.light .tag { border-color: var(--paper-line); color: var(--paper-fg-3); }
.light .card__glow { background: radial-gradient(circle, rgba(235, 71, 62, .07), transparent 70%); }
.light .tool { background: var(--paper-2); border-color: var(--paper-line); }
.light .tool p { color: var(--paper-fg-3); }
.light .tool:hover { background: #fff; }
.light .pf { background: var(--paper-2); border-color: var(--paper-line); }
.light .pf:hover { background: #fff; border-color: rgba(214, 59, 50, .32); }
.light .pf p { color: var(--paper-fg-3); }
.light .pf__f { color: rgba(10, 10, 12, .34); }
.light .pf-bar button { border-color: var(--paper-line); color: var(--paper-fg-3); }
.light .pf-bar button.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.light .pf-bar button:hover { color: var(--paper-fg); border-color: rgba(10, 10, 12, .24); }
.light .dirs, .light .dir { border-color: var(--paper-line); }
.light .dir p { color: var(--paper-fg-3); }
.light .dir__a { border-color: var(--paper-line); color: var(--paper-fg-3); }
.light .metrics { background: var(--paper-line); border-color: var(--paper-line); }
.light .metric { background: var(--paper-2); }
.light .metric__n { background: linear-gradient(170deg, var(--paper-fg), var(--red-600) 92%); -webkit-background-clip: text; background-clip: text; }
.light .metric__l { color: var(--paper-fg-2); }
.light .metric__n2 { color: rgba(10, 10, 12, .36); }
.light .ev { border-color: var(--paper-line); }
.light .ev p { color: var(--paper-fg-3); }
.light .edu { background: var(--paper-2); border-color: var(--paper-line); }
.light .edu p { color: var(--paper-fg-3); }
.light .edu li { color: var(--paper-fg-2); }
.light .ev__i { background: rgba(235, 71, 62, .1); }
.light .card__ico { background: rgba(235, 71, 62, .1); border-color: rgba(235, 71, 62, .22); color: var(--red-600); }
.light .card:hover .card__ico { background: var(--red); color: #fff; }

@keyframes pfIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- 15. CTA ---------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(4.5rem, 9vw, 8rem); text-align: center; }
.cta__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .6; }
.cta__card {
  position: relative;
  padding: clamp(2.2rem, 5vw, 4.4rem) clamp(1.4rem, 4vw, 3.4rem);
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background: linear-gradient(155deg, rgba(235, 71, 62, .13) 0%, rgba(20, 184, 166, .06) 100%);
  overflow: hidden;
  max-width: 900px; margin-inline: auto;
}
.cta__card::before {
  content: ''; position: absolute; inset: -60% -20% auto; height: 180%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .12), transparent 62%);
  pointer-events: none;
}
.cta h2 { font-size: var(--t-h1); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 1rem; }
.cta p { font-size: var(--t-lead); color: var(--fg-2); max-width: 52ch; margin: 0 auto 2.2rem; }
.cta__row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- 16. FOOTER ---------- */
/* нижний отступ задан с запасом: плавающая кнопка чата (.ia-launcher,
   position: fixed, высота 56px + 1.9rem от низа) не должна закрывать строку
   копирайта при прокрутке в самый низ страницы */
.ftr { border-top: 1px solid var(--line); background: var(--ink-2); padding-block: clamp(2.6rem, 5vw, 4rem) clamp(5.5rem, 7vw, 6.5rem); }
/* Четыре блока: бренд + три колонки. Раньше здесь стояло
   minmax(0, 1.35fr) repeat(auto-fit, minmax(140px, 1fr)) — на узких экранах
   auto-fit забирал по 140px, а первая колонка сжималась до 16px и текст
   в подвале рвался на 21 строку. Поэтому треки явные и minmax(0,1fr). */
.ftr__top { display: grid; gap: clamp(1.8rem, 3.5vw, 3rem); grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; max-width: 52ch; }
}
@media (max-width: 560px) {
  .ftr__top { grid-template-columns: minmax(0, 1fr); }
}
.ftr__brand { max-width: 340px; }
.ftr__brand p { font-size: var(--t-sm); color: var(--fg-3); margin-top: 1rem; line-height: 1.6; }
.ftr h5 {
  font-size: var(--t-mi); font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--fg-4);
  margin-bottom: 1rem;
}
.ftr li + li { margin-top: .3rem; }
.ftr li a {
  display: inline-block;
  padding-block: 5px;
  font-size: var(--t-sm); color: var(--fg-2);
  transition: color var(--d-1);
}
.ftr li a:hover { color: var(--red); }
.ftr__bot {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs); color: var(--fg-4);
}
.ftr__upd {
  font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--fg-4);
}
.ftr__upd::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: .5rem; vertical-align: 1px; }
.ftr__soc { display: flex; flex-wrap: wrap; gap: .5rem; }
.ftr__soc a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--fg-3);
  transition: all var(--d-2) var(--e-out);
}
.ftr__soc a:hover { border-color: var(--red); color: var(--red); transform: translateY(-3px); }
.ftr__soc svg { width: 17px; height: 17px; }
.copied { color: var(--teal) !important; }

/* ---------- 17. CHAT WIDGET (iA) ---------- */
.ia-launcher {
  position: fixed; right: clamp(1rem, 2.6vw, 1.9rem); bottom: clamp(1rem, 2.6vw, 1.9rem);
  z-index: var(--z-fab);
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 56px; padding: .7rem 1.25rem .7rem .78rem;
  background: var(--red); color: #fff;
  border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 700;
  box-shadow: 0 14px 40px rgba(235, 71, 62, .42), 0 3px 10px rgba(0, 0, 0, .3);
  transition: transform var(--d-2) var(--e-out), box-shadow var(--d-2);
  animation: fabIn .6s var(--e-spring) both;
}
@keyframes fabIn { from { opacity: 0; transform: translateY(22px) scale(.9); } to { opacity: 1; transform: none; } }
.ia-launcher:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 52px rgba(235, 71, 62, .5); }
.ia-launcher__ic {
  position: relative;
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .18);
}
.ia-launcher__ic::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .6);
  animation: pulseRing 2.4s var(--e-out) infinite;
}
.ia-launcher__ic svg { width: 19px; height: 19px; }
.ia-launcher__t { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.ia-launcher__t b { font-size: .9rem; }
.ia-launcher__t span { font-size: .68rem; font-weight: 500; opacity: .82; }
@media (max-width: 520px) {
  .ia-launcher { min-height: 52px; padding: .6rem; }
  .ia-launcher__t { display: none; }
}

/* panel */
.ia-panel {
  position: fixed; right: clamp(1rem, 2.6vw, 1.9rem); bottom: clamp(1rem, 2.6vw, 1.9rem);
  z-index: var(--z-panel);
  width: min(408px, calc(100vw - 2rem));
  height: min(660px, calc(100dvh - 2rem));
  display: flex; flex-direction: column;
  background: #0C0C10;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .68), 0 0 0 1px rgba(235, 71, 62, .12);
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(.965);
  transform-origin: bottom right;
  transition: opacity var(--d-2) var(--e-out), transform var(--d-3) var(--e-spring), visibility var(--d-2);
}
.ia-panel.is-open { opacity: 1; visibility: visible; transform: none; }

/* head */
.ia-head {
  display: flex; align-items: center; gap: .8rem;
  padding: .95rem 1rem .95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(235, 71, 62, .14), transparent 62%);
  flex-shrink: 0;
}
.ia-head__av {
  position: relative;
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--red), var(--red-700));
  color: #fff;
  box-shadow: 0 6px 18px rgba(235, 71, 62, .4);
}
.ia-head__av canvas { width: 30px; height: 30px; }
.ia-head__tx { flex: 1; min-width: 0; }
.ia-head__tx b { display: block; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.ia-head__tx span { display: flex; align-items: center; gap: .38rem; font-size: .7rem; color: var(--fg-3); }
.ia-head__tx span::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, .18);
}
.ia-hbtn {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--fg-3);
  transition: all var(--d-1);
}
.ia-hbtn:hover { border-color: var(--red); color: var(--red); background: var(--red-veil); }
.ia-hbtn svg { width: 16px; height: 16px; }

/* progress */
.ia-stepbar {
  display: flex; align-items: center; gap: .28rem;
  padding: .6rem 1.1rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
  flex-shrink: 0;
}
.ia-stepbar::-webkit-scrollbar { display: none; }
.ia-pill {
  display: inline-flex; align-items: center; gap: .34rem;
  padding: .24rem .58rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: .66rem; font-weight: 600; color: var(--fg-4);
  white-space: nowrap; flex-shrink: 0;
  transition: all var(--d-2) var(--e-out);
}
.ia-pill i {
  display: grid; place-items: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--slate); color: var(--fg-3);
  font-size: .58rem; font-style: normal; font-weight: 700;
}
.ia-pill.is-now { border-color: var(--red); color: var(--red); background: var(--red-veil); }
.ia-pill.is-now i { background: var(--red); color: #fff; }
.ia-pill.is-done { border-color: transparent; color: var(--fg-3); }
.ia-pill.is-done i { background: var(--teal-dim); color: var(--teal); }
.ia-pill__sep { flex: 1; min-width: 8px; height: 1px; background: var(--line); }

/* log */
.ia-log {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 1.1rem 1.1rem .4rem;
  display: flex; flex-direction: column; gap: .8rem;
  scroll-behavior: smooth;
  background:
    radial-gradient(80% 40% at 100% 0%, rgba(235, 71, 62, .06), transparent 60%),
    radial-gradient(60% 34% at 0% 100%, rgba(20, 184, 166, .05), transparent 60%);
}

.ia-msg { display: flex; gap: .55rem; max-width: 100%; animation: iaIn .34s var(--e-out) both; }
@keyframes iaIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.ia-msg--user { flex-direction: row-reverse; }
.ia-av {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--red), var(--red-700));
  color: #fff;
  margin-top: 2px;
}
.ia-bubble {
  position: relative;
  max-width: 84%;
  padding: .7rem .88rem 1.15rem;
  border-radius: 15px;
  font-size: .865rem; line-height: 1.58;
  word-wrap: break-word; overflow-wrap: anywhere;
}
.ia-bubble--bot {
  background: #16161C;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.ia-bubble--user {
  background: var(--red); color: #fff;
  border-bottom-right-radius: 5px;
}
.ia-bubble p { margin-bottom: .5rem; }
.ia-bubble p:last-of-type { margin-bottom: 0; }
.ia-bubble b { font-weight: 700; }
.ia-lead { font-weight: 600; }
.ia-t {
  position: absolute; bottom: .28rem; right: .7rem;
  font-size: .6rem; color: var(--fg-4);
  font-variant-numeric: tabular-nums;
}
.ia-bubble--user .ia-t { color: rgba(255, 255, 255, .62); }
.ia-ul { display: grid; gap: .3rem; margin: .5rem 0 0; }
.ia-ul li { position: relative; padding-left: 1rem; }
.ia-ul li::before { content: '→'; position: absolute; left: 0; color: var(--red); }

/* typing */
.ia-typing { display: flex; align-items: center; gap: .3rem; padding: .95rem .95rem; }
.ia-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-300);
  animation: iaTyp 1.3s var(--e-io) infinite;
}
.ia-typing i:nth-child(2) { animation-delay: .18s; }
.ia-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes iaTyp {
  0%, 60%, 100% { transform: translateY(0); opacity: .34; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* summary */
.ia-sum {
  display: grid; gap: .1rem;
  margin: .3rem 0 .7rem;
  border: 1px solid var(--line); border-radius: 11px;
  overflow: hidden;
}
.ia-sum > div {
  display: grid; grid-template-columns: 96px 1fr; gap: .7rem;
  padding: .44rem .68rem;
  background: rgba(255, 255, 255, .022);
}
.ia-sum > div + div { border-top: 1px solid var(--line); }
.ia-sum dt { font-size: .68rem; color: var(--fg-4); font-weight: 600; }
.ia-sum dd { font-size: .8rem; color: var(--fg-2); font-weight: 600; }
.ia-sum__rec {
  font-size: .8rem; color: var(--fg-2);
  padding: .55rem .68rem;
  background: var(--red-veil);
  border: 1px solid rgba(235, 71, 62, .24);
  border-radius: 11px;
  margin-bottom: .6rem;
}
.ia-sum__rec b { color: var(--red); }

/* links + contacts */
.ia-linkwrap { margin-top: .25rem; }
.ia-link {
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .5rem .82rem;
  border: 1px solid rgba(235, 71, 62, .34);
  background: var(--red-veil);
  border-radius: 10px;
  font-size: .8rem; font-weight: 700; color: var(--red-300);
  transition: all var(--d-1);
}
.ia-link:hover { background: var(--red); color: #fff; border-color: var(--red); }
.ia-contacts { display: grid; gap: .32rem; margin: .3rem 0 .6rem; }
.ia-crow {
  display: flex; align-items: center; gap: .55rem;
  padding: .48rem .68rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .8rem; color: var(--fg-2);
  transition: all var(--d-1);
  word-break: break-all;
}
.ia-crow svg { flex-shrink: 0; color: var(--red); }
.ia-crow:hover { border-color: var(--red); color: var(--fg); background: var(--red-veil); }
.ia-addr { font-size: .74rem; color: var(--fg-4); margin-top: .3rem; }

/* quick chips */
.ia-quick {
  display: none;
  gap: .4rem; flex-shrink: 0;
  padding: .7rem 1.1rem;
  border-top: 1px solid var(--line);
  max-height: 210px; overflow-y: auto;
}
.ia-quick.is-on { display: flex; flex-wrap: wrap; animation: iaIn .3s var(--e-out) both; }
.ia-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: .48rem .82rem;
  border: 1px solid var(--line-2); border-radius: 11px;
  background: rgba(255, 255, 255, .03);
  font-size: .8rem; font-weight: 600; color: var(--fg-2);
  text-align: left;
  transition: all var(--d-1) var(--e-out);
}
.ia-chip:hover { border-color: var(--red); color: #fff; background: var(--red); transform: translateY(-2px); }
.ia-chip--rich { flex-direction: column; align-items: flex-start; gap: .12rem; width: 100%; }
.ia-chip__t { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; }
.ia-chip__t svg { width: 15px; height: 15px; flex-shrink: 0; }
.ia-chip__s { font-size: .68rem; font-weight: 500; color: var(--fg-4); line-height: 1.35; }
.ia-chip:hover .ia-chip__s { color: rgba(255, 255, 255, .8); }
.ia-quick--grid .ia-chip { flex: 1 1 46%; }

/* form */
.ia-form {
  padding: .8rem 1.1rem;
  border-top: 1px solid var(--line);
  animation: iaIn .3s var(--e-out) both;
}
.ia-form__lab {
  display: block;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  color: var(--fg-3);
  margin-bottom: .4rem;
}
.ia-form__row { display: flex; gap: .5rem; }
.ia-form__in {
  flex: 1; min-width: 0;
  min-height: 46px; padding: .7rem .9rem;
  background: #16161C;
  border: 1px solid var(--line-2); border-radius: 11px;
  font-size: .875rem; color: var(--fg);
  transition: border-color var(--d-1), box-shadow var(--d-1);
}
.ia-form__in::placeholder { color: var(--fg-4); }
.ia-form__in:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(235, 71, 62, .17);
}
.ia-form__in[aria-invalid="true"] { border-color: #F87171; }
.ia-form__go {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border-radius: 11px;
  transition: transform var(--d-1) var(--e-out), background var(--d-1);
}
.ia-form__go:hover { background: var(--red-600); }
.ia-form__go:active { transform: scale(.94); }
.ia-form__hint { font-size: .66rem; color: var(--fg-4); margin-top: .4rem; line-height: 1.4; }
.ia-form__err { font-size: .68rem; color: #FCA5A5; margin-top: .3rem; min-height: 0; }
.ia-form__err:empty { display: none; }

/* input dock */
.ia-dock {
  display: flex; align-items: flex-end; gap: .5rem;
  padding: .7rem 1.1rem .8rem;
  border-top: 1px solid var(--line);
  background: #0C0C10;
  flex-shrink: 0;
}
.ia-dock__in {
  flex: 1; min-width: 0;
  min-height: 46px; max-height: 110px;
  padding: .72rem .9rem;
  background: #16161C;
  border: 1px solid var(--line-2); border-radius: 13px;
  font-size: .875rem; line-height: 1.4; color: var(--fg);
  resize: none; overflow-y: auto;
  transition: border-color var(--d-1), box-shadow var(--d-1);
}
.ia-dock__in::placeholder { color: var(--fg-4); }
.ia-dock__in:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(235, 71, 62, .17);
}
.ia-send {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border-radius: 13px;
  transition: transform var(--d-1) var(--e-out), background var(--d-1), opacity var(--d-1);
}
.ia-send:hover { background: var(--red-600); }
.ia-send:active { transform: scale(.94); }
.ia-foot {
  padding: .3rem 1.1rem .6rem;
  font-size: .62rem; color: var(--fg-4);
  text-align: center;
  background: #0C0C10;
  flex-shrink: 0;
}

/* inline hero variant */
.ia-hint {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--t-xs); color: var(--fg-3);
  margin-top: .9rem;
}
.ia-hint kbd {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 .3rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 5px;
  font-family: var(--ff-mono); font-size: .62rem; color: var(--fg-2);
}

@media (max-width: 480px) {
  .ia-panel { right: .5rem; left: .5rem; width: auto; height: min(78dvh, 600px); }
  .ia-bubble { max-width: 88%; }
  .ia-sum > div { grid-template-columns: 78px 1fr; }
}

/* ---------- 18. REVEAL ---------- */
[data-rv] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--d-4) var(--e-out), transform var(--d-4) var(--e-out);
  will-change: opacity, transform;
}
[data-rv].is-in { opacity: 1; transform: none; }

/* ---------- 19. A11Y / MOTION ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: -60px; left: var(--gut);
  z-index: var(--z-top);
  padding: .7rem 1.1rem;
  background: var(--red); color: #fff;
  border-radius: 0 0 10px 10px;
  font-size: var(--t-sm); font-weight: 700;
  transition: top var(--d-2) var(--e-out);
}
.skip:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-rv] { opacity: 1 !important; transform: none !important; }
  .hero__ring--2, .hero__ring--3, .ticker__track, .pulse::after, .ia-launcher__ic::after { animation: none !important; }
  .hero__sphere canvas { animation: none !important; }
  .card, .tool, .pf { transition: border-color .2s, background .2s; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(255, 255, 255, .28); --line-2: rgba(255, 255, 255, .42); --fg-2: rgba(255, 255, 255, .88); --fg-3: rgba(255, 255, 255, .74); }
  .light { --paper-line: rgba(10, 10, 12, .34); --paper-fg-2: rgba(10, 10, 12, .86); --paper-fg-3: rgba(10, 10, 12, .74); }
}

@media print {
  .hdr, .ia-launcher, .ia-panel, .ticker, .hero__field, .cta__field, .card__glare { display: none !important; }
  body { background: #fff; color: #000; }
  .sec { padding-block: 1.5rem; }
  [data-rv] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 20. BRAND MARK (CSS striped sphere) ---------- */
.ivmark {
  position: relative;
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: repeating-linear-gradient(-28deg, var(--red) 0 4.5px, transparent 4.5px 9px);
  box-shadow: 0 3px 12px rgba(235, 71, 62, .34);
}
.ivmark::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 74% 78%, rgba(20, 184, 166, .30) 0%, rgba(0, 0, 0, 0) 52%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, .48) 100%);
}
.ivmark--sm { width: 26px; height: 26px; }
.ivmark--lg { width: 46px; height: 46px; }

/* founder avatar */
.ivmark--ava {
  width: 44px; height: 44px;
  background: linear-gradient(150deg, var(--red) 0%, var(--red-700) 100%);
  display: grid; place-items: center;
  font-size: .9rem; font-weight: 800; color: #fff;
  letter-spacing: -.02em;
  box-shadow: 0 6px 18px rgba(235, 71, 62, .3);
}
.ivmark--ava::after { display: none; }

/* founder block */
.founder {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.15rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .014));
}
.light .founder { background: var(--paper-2); border-color: var(--paper-line); }
.founder__tx { flex: 1; min-width: 220px; }
.founder__n { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.founder__r { font-size: var(--t-xs); color: var(--red); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; }
.founder__q { font-size: var(--t-sm); color: var(--fg-2); line-height: 1.62; margin-top: .6rem; font-style: italic; }
.light .founder__q { color: var(--paper-fg-2); }
.founder__soc { display: flex; gap: .42rem; margin-top: .8rem; }
.founder__soc a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px;
  color: var(--fg-3); font-size: .7rem; font-weight: 700;
  transition: all var(--d-1);
}
.founder__soc a:hover { border-color: var(--red); color: var(--red); }
.light .founder__soc a { border-color: var(--paper-line); }

/* form wrapper inside panel */
.ia-form-wrap { flex-shrink: 0; }
.ia-form-wrap:empty { display: none; }


/* ---------- 21. LINKED CARDS ---------- */
a.dir, a.card, a.tool, a.ev, a.edu, a.relc, a.pf {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.dir { display: grid; }
a.ev { display: flex; }
a.pf { display: flex; cursor: pointer; }

/* явная ссылка-карточка должна читаться как кликабельная */
a.card, a.tool, a.ev, a.edu { cursor: pointer; }
a.card::after, a.tool::after, a.ev::after, a.edu::after, a.dir::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
a.card, a.tool, a.ev, a.edu, a.dir { position: relative; }
a.card:focus-visible, a.tool:focus-visible, a.ev:focus-visible, a.edu:focus-visible, a.dir:focus-visible, a.pf:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
/* индикатор перехода */
a.card .card__n::after, a.dir .dir__a::after { content: none; }
a.ev h4, a.edu h3 { transition: color var(--d-1); }
a.ev:hover h4, a.edu:hover h3 { color: var(--red); }
a.tool:hover h3, a.card:hover h3, a.pf:hover h3 { color: var(--red); }
a.ev:hover .ev__i, a.edu:hover .edu__k { border-color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  a.card, a.tool, a.ev, a.edu, a.dir { transition: border-color .2s, background .2s; }
}

/* ============================================================
   22. TESTIMONIALS CAROUSEL
   ============================================================ */
.quo { position: relative; }
.quo__viewport { overflow: hidden; border-radius: var(--r-lg); }
.quo__track {
  display: flex;
  transition: transform .58s var(--e-out);
  will-change: transform;
}
.quo__track.is-drag { transition: none; cursor: grabbing; }
.quo__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex; flex-direction: column; gap: 1.2rem;
  padding: clamp(1.7rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .014));
  user-select: none;
}
.quo__tx { flex: 1; }
.quo__tx p {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.7; color: var(--fg-2);
}
.quo__slide .quote__a { align-items: flex-start; }
.quo__who { flex: 1; min-width: 0; }
.quo__tag {
  flex-shrink: 0;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: var(--r-pill);
  background: var(--teal-dim); color: var(--teal);
  border: 1px solid rgba(20, 184, 166, .28);
  white-space: nowrap;
}
.quo__tag--x {
  background: rgba(255, 255, 255, .05);
  color: var(--fg-4);
  border-color: var(--line);
}
.ivmark--ava--r {
  background: linear-gradient(150deg, #2A2A32, #1A1A20);
  border: 1px dashed var(--line-2);
  box-shadow: none;
  color: var(--fg-3);
}

/* controls */
.quo__ctrl {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.3rem;
}
.quo__btn {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--fg-2);
  transition: all var(--d-2) var(--e-out);
}
.quo__btn svg { width: 19px; height: 19px; }
.quo__btn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.06); }
.quo__btn:active { transform: scale(.95); }
.quo__dots { display: flex; flex-wrap: wrap; gap: .34rem; flex: 1; }
.quo__dot {
  width: 26px; height: 5px;
  border-radius: 99px;
  background: var(--slate-2);
  transition: all var(--d-2) var(--e-out);
}
.quo__dot:hover { background: var(--fg-4); }
.quo__dot.is-on { background: var(--red); width: 40px; }
.quo__num {
  flex-shrink: 0;
  font-family: var(--ff-mono); font-size: .72rem;
  color: var(--fg-4); letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.quo__dot:focus-visible, .quo__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* light section */
.light .quo__slide { background: var(--paper-2); border-color: var(--paper-line); }
.light .quo__tx p { color: var(--paper-fg-2); }
.light .quo__btn { border-color: var(--paper-line); color: var(--paper-fg-3); }
.light .quo__dot { background: rgba(10, 10, 12, .16); }
.light .quo__tag { background: rgba(20, 184, 166, .1); }
.light .quo__tag--x { background: rgba(10, 10, 12, .05); color: var(--paper-fg-3); }
.light .quo__num { color: rgba(10, 10, 12, .42); }

@media (max-width: 640px) {
  .quo__ctrl { gap: .6rem; }
  .quo__btn { width: 42px; height: 42px; }
  .quo__num { display: none; }
  .quo__dot { width: 18px; }
  .quo__dot.is-on { width: 30px; }
  .quo__slide .quote__a { flex-wrap: wrap; }
  .quo__tag { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .quo__track { transition: none; }
  .quo__btn:hover { transform: none; }
}

/* карусель всегда во всю ширину контейнера */
.quo { grid-column: 1 / -1; width: 100%; }
.quo .quo__slide { min-height: 260px; }

/* ---------- 21. WORLD MAP — география присутствия (секция «Сообщество») ---------- */
.wmap { margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.wmap__top {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
  align-items: baseline; justify-content: space-between;
  margin-bottom: 1rem;
}
.wmap__h { margin: 0; font-size: var(--t-h3); font-weight: 700; letter-spacing: -.025em; color: var(--paper-fg); }
.wmap__legend {
  margin: 0; font-size: var(--t-xs); letter-spacing: .09em;
  text-transform: uppercase; color: var(--paper-fg-3);
}
.wmap__legend b { font-weight: 800; color: var(--red-600); }

.wmap__box {
  position: relative;
  padding: clamp(.8rem, 1.8vw, 1.3rem) clamp(.6rem, 1.4vw, 1.1rem);
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 20px;
}
.wmap__svg { display: block; width: 100%; height: auto; }

.wmap__land path {
  fill: rgba(10, 10, 12, .10);
  stroke: rgba(10, 10, 12, .17);
  stroke-width: .5;
  vector-effect: non-scaling-stroke;
  transition: fill .18s ease, stroke .18s ease;
}
.wmap__land path:hover { fill: rgba(10, 10, 12, .21); }

.wmap__land path.is-pres {
  fill: rgba(235, 71, 62, .8);
  stroke: rgba(178, 44, 36, .85);
  stroke-width: .8;
  cursor: pointer;
}
.wmap__land path.is-pres:hover,
.wmap__land path.is-hot { fill: var(--red); stroke: var(--red-700); }
.wmap__land path.is-pres:focus { outline: none; }
.wmap__land path.is-pres:focus-visible { outline: 2px solid var(--paper-fg); outline-offset: 3px; }

.wmk { cursor: pointer; }
.wmk__dot { fill: var(--paper-2); stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; }
.wmk__ring {
  fill: none; stroke: var(--red); stroke-width: 1; opacity: .4;
  vector-effect: non-scaling-stroke;
  transition: opacity .2s ease;
}
.wmk:hover .wmk__ring, .wmk.is-hot .wmk__ring { opacity: 1; }
.wmk--hq .wmk__ring { animation: wmapPulse 2.6s cubic-bezier(.2, .6, .3, 1) infinite; }
@keyframes wmapPulse {
  0%   { transform: scale(.45); opacity: .9; }
  70%  { transform: scale(2);   opacity: 0; }
  100% { transform: scale(2);   opacity: 0; }
}

.wmap__tip {
  position: absolute; z-index: 5; left: 0; top: 0;
  pointer-events: none; opacity: 0;
  transform: translate(-50%, -150%);
  transition: opacity .14s ease;
  background: var(--ink); color: var(--fg);
  border-radius: 10px; padding: .45rem .72rem;
  font-size: .8rem; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(10, 10, 12, .24);
}
.wmap__tip.is-on { opacity: 1; }
.wmap__tip b { display: block; font-weight: 800; letter-spacing: -.01em; }
.wmap__tip span { display: block; font-size: .7rem; color: var(--fg-3); }

@media (max-width: 640px) {
  .wmap__box { border-radius: 16px; padding: .7rem .45rem; }
  .wmap__legend { text-transform: none; letter-spacing: 0; font-size: var(--t-sm); }
  .wmap__tip { font-size: .74rem; white-space: normal; max-width: 64vw; }
}

@media (prefers-reduced-motion: reduce) {
  .wmk--hq .wmk__ring { animation: none; opacity: .7; }
  .wmap__land path { transition: none; }
}

/* ---------- 21. FAQ (вопросы и ответы) ----------
   Скоупимся под #faq: на детальных страницах свой .faq —
   аккордеон из page.css, ему двухколоночная сетка не нужна. */
#faq .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.faq__i {
  position: relative;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  background: linear-gradient(168deg, rgba(255, 255, 255, .052) 0%, rgba(255, 255, 255, .016) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--d-2), box-shadow var(--d-3);
}
.faq__i:hover { border-color: rgba(235, 71, 62, .40); box-shadow: var(--sh-2); }
.faq__q {
  position: relative; padding-left: 1.45rem;
  font-size: var(--t-h3); font-weight: 700;
  line-height: 1.26; letter-spacing: -.022em;
  margin-bottom: .7rem;
}
.faq__q::before {
  content: '?'; position: absolute; left: 0; top: .06em;
  font-family: var(--ff-mono); font-size: var(--t-body); font-weight: 700;
  color: var(--red);
}
.faq__a { font-size: var(--t-sm); line-height: 1.68; color: var(--fg-3); }
@media (max-width: 860px) {
  #faq .faq { grid-template-columns: 1fr; }
}

/* ---------- 23. ПРЕССА / СМИ (светлая секция) ---------- */
/* под секцией идёт ещё одна светлая («Сообщество») — разводим хайрлайном */
#press { border-bottom: 1px solid var(--paper-line); }
.press { display: grid; gap: clamp(.9rem, 1.8vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.pressc {
  margin: 0; padding: clamp(.9rem, 1.6vw, 1.3rem);
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(10, 10, 12, .05);
  transition: border-color var(--d-2), box-shadow var(--d-2), transform var(--d-2) var(--e-out);
}
.pressc:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 59, 50, .3);
  box-shadow: 0 16px 44px rgba(10, 10, 12, .1);
}
.pressc img {
  display: block; width: 100%; max-width: 430px; height: auto;
  margin: 0 auto; border-radius: var(--r);
}
.pressc figcaption {
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap;
  gap: .45rem; margin-top: .8rem; text-align: center;
  font-size: var(--t-xs); color: var(--paper-fg-3);
}
.pressc figcaption b {
  font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red-600); font-weight: 700;
}
@media (max-width: 560px) {
  .pressc img { max-width: 100%; }
}
