:root {
  --bg: #ffffff;
  --ink: #1b1c20;
  --ink-soft: rgba(27,28,32,0.6);
  --ink-line: rgba(27,28,32,0.09);
  --red: #e60029;
  --gradient: linear-gradient(135deg, #ff6f00 0%, #ff2200 45%, #e60029 100%);
  --font-main: 'Gilroy', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
::selection { background: var(--red); color: #fff; }

/* Шрифт Gilroy подключается в Tilda глобально (Настройки сайта -> Шрифты).
   Если нужно вручную: залейте .ttf в Менеджер файлов Tilda и верните
   сюда блок @font-face с CDN-ссылками вместо этого комментария. */

body {
  font-family: var(--font-main);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none !important;
}
*, *::before, *::after { cursor: none !important; }
a, button, [role="button"], label, select, input, textarea { cursor: none !important; }
.t-rec, .t-rec * { cursor: none !important; }

#cur { position: fixed; pointer-events: none; z-index: 99999; top: 0; left: 0; }
#cur .c-icon {
  position: absolute; width: 36px; height: 36px;
  transform: translate(-50%, -50%);
  transition: width .35s cubic-bezier(.22,1,.36,1), height .35s cubic-bezier(.22,1,.36,1);
  animation: rotateCursor 1.8s linear infinite;
}
#cur .c-icon img { width: 100%; height: 100%; object-fit: contain; }
body.on-link #cur .c-icon { width: 54px; height: 54px; }
body.dragging-divider #cur .c-icon { width: 70px; height: 70px; opacity: .5; }
@keyframes rotateCursor {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* NAV */
.ez-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  height: 80px; display: flex; align-items: center;
  padding: 0 48px;
  transition: background .4s, box-shadow .4s, height .4s;
}
.ez-nav.scrolled {
  background: rgba(15,15,18,.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  height: 68px;
}
.ez-nav .nav-logo { flex-shrink: 0; margin-right: auto; }
.nav-logo img { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: 28px; margin-right: 32px; }
.nav-link {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,.6); transition: color .25s;
  position: relative; white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1.5px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.nav-portfolio {
  display: flex; align-items: center; gap: 8px; padding: 9px 20px;
  background: var(--gradient); color: #fff; text-decoration: none;
  border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(230,0,41,.3); transition: transform .3s, box-shadow .3s; white-space: nowrap;
}
.nav-portfolio:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(230,0,41,.5); }
.nav-lang {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.7); text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.25); padding: 7px 13px; border-radius: 4px; transition: all .3s; white-space: nowrap;
}
.nav-lang:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ═══ HERO ═══ */
.hero { position: relative; background: #0e0e10; height: 400vh; }
.t-body { overflow-x: hidden !important; }
.t-rec:has(.hero) { overflow: visible !important; }
.hero-stage {
  position: sticky; top: 0; height: 100vh; min-height: 700px;
  width: 100%; overflow: hidden; background: #0e0e10;
  --split: 52; --lean: 14;
}

.hero-left {
  position: absolute; inset: 0; z-index: 2; background: #0e0e10;
  padding: 120px 80px 80px;
  display: flex; flex-direction: column; justify-content: center;
  clip-path: polygon(0 0, calc(var(--split)*1% + var(--lean)*1%) 0, calc(var(--split)*1% - var(--lean)*1%) 100%, 0 100%);
  transition: clip-path .15s linear;
}
body.dragging-divider .hero-left { transition: none; }

.hero-reel { position: absolute; inset: 0; z-index: 0; background: linear-gradient(135deg,#18020a 0%,#0e0e10 70%); }
.hero-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-reel-overlay { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(14,14,16,.3) 0%,rgba(14,14,16,.8) 80%); }

.hero-glow {
  position: absolute; z-index: 1; width: 60vw; height: 70vh; top: -10%; right: -20%;
  background: radial-gradient(ellipse at center, rgba(255,80,0,.22) 0%, transparent 60%);
  pointer-events: none; animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100%{opacity:1} 50%{opacity:.6} }

.hero-left-content { position: relative; z-index: 2; max-width: 540px; }
.hero-logo-big { opacity: 0; animation: fadeUp .8s ease .1s forwards; margin-bottom: 32px; }
.hero-logo-big img { height: clamp(120px,14vw,200px); width: auto; object-fit: contain; display: block; }
.hero-sub {
  font-size: clamp(16px,1.4vw,20px); line-height: 1.65;
  color: rgba(255,255,255,.7); max-width: 460px; font-weight: 400;
  opacity: 0; animation: fadeUp .8s ease .3s forwards;
}
.hero-sub strong { color: #fff; font-weight: 700; }

/* Mobile-only hero content (hidden on desktop, shown ≤1024) */
.hero-mobile, .hero-mobile-title { display: none; }

.hero-right {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg,#1a0507 0%,#0e0e10 60%);
  padding: 120px 80px 80px 120px;
  display: flex; flex-direction: column; justify-content: center;
  clip-path: polygon(calc(var(--split)*1% + var(--lean)*1%) 0, 100% 0, 100% 100%, calc(var(--split)*1% - var(--lean)*1%) 100%);
  transition: clip-path .15s linear;
}
body.dragging-divider .hero-right { transition: none; }

.hero-right-inner {
  position: relative; z-index: 2; width: 100%; max-width: 480px;
  margin-left: auto; opacity: 0; animation: fadeUp .8s ease .5s forwards;
}
.hero-right-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--red); display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.hero-right-tag::before { content:''; width:18px; height:1.5px; background: var(--red); }
.hero-right-title {
  font-size: clamp(26px,2.5vw,38px); line-height: 1.05; letter-spacing: -.5px;
  font-weight: 800; color: #fff; margin-bottom: 28px;
}
.hero-right-title em {
  font-style: italic; font-weight: 300;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Card stack ── */
.hero-stack { position: relative; width: 100%; height: 380px; }

.hero-country-card {
  position: absolute; left: 0; right: 0; top: 0; height: 380px;
  background: linear-gradient(155deg,#1a0610 0%,#0e0e10 75%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px; text-decoration: none; color: #fff; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.03) inset;
  transition: background .4s, border-radius .45s cubic-bezier(.22,1,.36,1), border-color .4s, box-shadow .4s, transform .45s cubic-bezier(.22,1,.36,1);
  will-change: top, height, opacity;
}
.hero-country-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient); opacity: 0; transition: opacity .5s; z-index: 0; pointer-events: none;
}
.hero-country-card::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60%;
  background: linear-gradient(105deg,transparent 0%,rgba(255,255,255,.06) 40%,rgba(255,255,255,.14) 50%,rgba(255,255,255,.06) 60%,transparent 100%);
  left: -70%; z-index: 4; pointer-events: none; transition: none;
}
.hero-country-card:not(.show-pill):hover::after { animation: shimmerPass .7s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes shimmerPass { from{left:-70%} to{left:110%} }

.hero-country-card:not(.show-pill):hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(0,0,0,.55), 0 0 0 1px rgba(255,80,0,.3), 0 0 40px rgba(230,0,41,.2);
  border-color: transparent;
}
.hero-country-card:not(.show-pill):hover::before { opacity: 1; }
.hero-country-card.is-hidden { opacity: 0; pointer-events: none; }
.hero-country-card.show-pill {
  border-radius: 100px; background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12); box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transform: none !important;
}
.hero-country-card.show-pill:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); transform: translateY(-2px) !important; }
.hero-country-card.show-pill::after { display: none; }

.hcc-big {
  position: absolute; inset: 0; padding: 28px 30px;
  display: flex; flex-direction: column; z-index: 1; opacity: 1; transition: opacity .3s ease;
}
.hero-country-card.show-pill .hcc-big { opacity: 0; pointer-events: none; }

.hcc-top { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.hcc-num {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,.7);
  padding: 7px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 100px; transition: all .4s;
}
.hero-country-card:not(.show-pill):hover .hcc-num { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.hcc-flag { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; box-shadow: 0 6px 20px rgba(0,0,0,.5); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.hero-country-card:not(.show-pill):hover .hcc-flag { transform: scale(1.08) rotate(-4deg); }

.hcc-center { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 0; min-height: 0; }
.hcc-name {
  font-size: clamp(36px,4vw,54px); font-weight: 900; letter-spacing: -1.5px; line-height: 1;
  margin-bottom: 12px; transition: transform .45s cubic-bezier(.22,1,.36,1);
  position: relative; display: inline-block;
}
.hcc-name::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px;
  background: #fff; transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.22,1,.36,1) .1s;
}
.hero-country-card:not(.show-pill):hover .hcc-name { transform: translateX(8px); }
.hero-country-card:not(.show-pill):hover .hcc-name::after { transform: scaleX(1); }
.hcc-cities { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.65); letter-spacing: .3px; transition: color .4s, transform .45s cubic-bezier(.22,1,.36,1); }
.hero-country-card:not(.show-pill):hover .hcc-cities { color: rgba(255,255,255,.85); transform: translateX(8px); }

.hcc-bot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.hcc-cta { font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hcc-arrow {
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: all .45s cubic-bezier(.22,1,.36,1);
}
.hero-country-card:not(.show-pill):hover .hcc-arrow { background: #fff; color: var(--red); transform: rotate(-45deg) scale(1.1); }

.hcc-pill {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 14px;
  padding: 0 22px; z-index: 2; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.hero-country-card.show-pill .hcc-pill { opacity: 1; pointer-events: auto; }
.hcc-pill-num { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: rgba(255,255,255,.45); flex-shrink: 0; }
.hcc-pill-flag { width: 28px; height: 21px; border-radius: 4px; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.hcc-pill-name { font-size: 15px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; color: #fff; }
.hcc-pill-cities { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.5); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.hcc-pill-arrow { font-size: 16px; color: rgba(255,255,255,.55); flex-shrink: 0; transition: transform .3s, color .3s; }
.hero-country-card.show-pill:hover .hcc-pill-arrow { color: #fff; transform: translateX(4px); }

/* Diagonal line */
.hero-divider-svg { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.hero-divider-line {
  stroke: rgba(255,255,255,.22); stroke-width: 1; stroke-dasharray: 3 6;
  transition: stroke .3s, stroke-width .3s; vector-effect: non-scaling-stroke;
}
.hero-stage:hover .hero-divider-line { stroke: rgba(255,255,255,.35); }
body.dragging-divider .hero-divider-line { stroke: rgba(230,0,41,.85); stroke-dasharray: none; stroke-width: 2; }

/* Drag handle */
.hero-divider-handle {
  position: absolute; top: 50%; left: calc(var(--split)*1%);
  transform: translate(-50%,-50%); width: 48px; height: 48px; z-index: 4;
  background: rgba(14,14,16,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto; touch-action: none;
  transition: background .3s, border-color .3s, box-shadow .3s, transform .35s cubic-bezier(.22,1,.36,1);
}
body.dragging-divider .hero-divider-handle { transition: none; }
.hero-divider-handle .handle-symbol {
  width: 26px; height: 26px; object-fit: contain; opacity: .75;
  transition: opacity .3s, transform .35s cubic-bezier(.22,1,.36,1);
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.hero-divider-handle:hover {
  background: rgba(230,0,41,.12); border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(230,0,41,.18), 0 8px 24px rgba(230,0,41,.3);
  transform: translate(-50%,-50%) scale(1.1);
}
.hero-divider-handle:hover .handle-symbol { opacity: 1; transform: rotate(30deg); }
body.dragging-divider .hero-divider-handle {
  background: var(--red); border-color: rgba(255,255,255,.6);
  box-shadow: 0 8px 32px rgba(230,0,41,.55);
  transform: translate(-50%,-50%) scale(.9);
}
body.dragging-divider .hero-divider-handle .handle-symbol {
  opacity: .9; filter: brightness(0) invert(1);
  animation: handleSpin .8s linear infinite;
}
@keyframes handleSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.hero-divider-hint {
  position: absolute; top: calc(50% + 40px); left: calc(var(--split)*1%);
  transform: translateX(-50%); z-index: 4;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.4); white-space: nowrap; pointer-events: none;
  transition: opacity .4s; opacity: 1;
}
body.dragging-divider .hero-divider-hint { opacity: 0; }

.hero-progress {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  z-index: 5; display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.hero-progress-dot { width: 3px; height: 34px; border-radius: 2px; background: rgba(255,255,255,.18); transition: background .5s, height .5s; }
.hero-progress-dot.active { background: var(--red); height: 54px; }
.hero-progress-dot.passed { background: rgba(255,255,255,.4); }

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.45); pointer-events: none;
  animation: bob 2.4s ease-in-out infinite;
}
.hero-scroll-hint::after { content:''; width:1px; height:28px; background: linear-gradient(180deg,rgba(255,255,255,.6),transparent); }
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,6px)} }
@keyframes nudge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

/* ═══ COUNTRIES SECTION — horizontal row list ═══ */
.countries-section { background: #fff; padding: 0; }

.cs-header {
  max-width: 1280px; margin: 0 auto;
  padding: 80px 72px 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.sec-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--red); display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.sec-tag::before { content:''; width:18px; height:1.5px; background: var(--red); }
.sec-h2 {
  font-size: clamp(32px,3.4vw,52px); font-weight: 900;
  letter-spacing: -1px; line-height: 1; overflow: visible;
}
.sec-h2 em {
  font-style: italic; font-weight: 300;
  background: var(--gradient); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
  display: inline-block; padding: 0 0.06em 0.05em 0;
}
.cs-header-hint { font-size: 14px; color: var(--ink-soft); max-width: 260px; line-height: 1.6; text-align: right; }

/* List wrapper */
.cs-list {
  max-width: 1280px; margin: 0 auto;
  padding: 40px 72px 0;
}

/* Each row: number · flag · name+city · tags · stats · arrow */
.cs-row {
  display: grid;
  grid-template-columns: 36px 70px 1fr auto auto 56px;
  align-items: center;
  gap: 0 36px;
  padding: 32px 24px;
  border-top: 1px solid var(--ink-line);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition:
    background .35s,
    box-shadow .35s cubic-bezier(.22,1,.36,1),
    padding-left .35s cubic-bezier(.22,1,.36,1);
}
.cs-row:last-child { border-bottom: 1px solid var(--ink-line); }

/* Red bar grows from bottom on hover */
.cs-row::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; background: var(--gradient); border-radius: 2px;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.cs-row:hover::before { transform: scaleY(1); }
.cs-row:hover {
  background: #fafafa;
  box-shadow: 0 4px 24px rgba(27,28,32,.07), 0 0 0 1px var(--red);
  padding-left: 32px;
  border-top-color: transparent;
}
.cs-row:hover + .cs-row { border-top-color: transparent; }

/* Number */
.cs-row-num {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--red); opacity: .55;
  transition: opacity .3s;
}
.cs-row:hover .cs-row-num { opacity: 1; }

/* Flag */
.cs-row-flag {
  width: 64px; height: 48px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
  display: block;
}
.cs-row:hover .cs-row-flag {
  transform: scale(1.07) rotate(-4deg);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

/* Name + city */
.cs-row-name {
  font-size: clamp(28px, 2.6vw, 40px); font-weight: 900;
  letter-spacing: -1.2px; line-height: 1; margin-bottom: 5px;
  position: relative; display: inline-block;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.cs-row-name::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.22,1,.36,1) .04s;
}
.cs-row:hover .cs-row-name { transform: translateX(5px); }
.cs-row:hover .cs-row-name::after { transform: scaleX(1); }
.cs-row-city {
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  transition: color .3s, transform .4s cubic-bezier(.22,1,.36,1);
}
.cs-row:hover .cs-row-city { color: var(--ink); transform: translateX(5px); }

/* Tags */
.cs-row-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.cs-row-tag {
  font-size: 10px; font-weight: 600; letter-spacing: .4px;
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--ink-line);
  color: var(--ink-soft); white-space: nowrap;
  transition: border-color .3s, color .3s, background .3s;
}
.cs-row:hover .cs-row-tag {
  border-color: rgba(230,0,41,.3);
  color: var(--red);
  background: rgba(230,0,41,.04);
}

/* Stats */
.cs-row-stats { display: flex; gap: 36px; }
.cs-row-stat-n {
  font-size: 30px; font-weight: 900; letter-spacing: -1px; line-height: 1;
  color: var(--ink); transition: color .3s;
}
.cs-row:hover .cs-row-stat-n { color: var(--red); }
.cs-row-stat-l {
  font-size: 10px; font-weight: 600; letter-spacing: .5px;
  color: var(--ink-soft); text-transform: uppercase; margin-top: 3px;
}

/* Arrow */
.cs-row-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink-line); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  transition: all .4s cubic-bezier(.22,1,.36,1);
}
.cs-row:hover .cs-row-arrow {
  background: var(--red); color: #fff;
  transform: rotate(-45deg) scale(1.08);
  box-shadow: 0 6px 20px rgba(230,0,41,.35);
}

/* KZ row special: slightly taller, name bigger */
.cs-row.cs-row-kz .cs-row-name { font-size: clamp(32px, 3vw, 48px); }
.cs-row.cs-row-kz { padding-top: 40px; padding-bottom: 40px; }

/* KZ HQ badge */
.cs-row-badge {
  display: inline-flex; align-items: center;
  font-size: 9px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--red); border: 1px solid rgba(230,0,41,.35);
  background: rgba(230,0,41,.06); padding: 4px 11px; border-radius: 100px;
  margin-bottom: 8px; white-space: nowrap;
  transition: background .3s, border-color .3s;
}
.cs-row:hover .cs-row-badge { background: rgba(230,0,41,.1); border-color: rgba(230,0,41,.6); }

/* ── Portfolio band ── */
.port-band {
  max-width: 1280px; margin: 56px auto 0;
  padding: 0 72px 80px;
}
.port-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 32px;
  background: var(--ink); border-radius: 14px; flex-wrap: wrap;
}
.port-band-text { font-size: 14px; color: rgba(255,255,255,.55); font-weight: 500; }
.port-band-text strong { color: #fff; font-weight: 700; }
.port-band-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; background: var(--gradient); color: #fff;
  border-radius: 100px; text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(230,0,41,.35);
  transition: transform .3s, box-shadow .3s; white-space: nowrap;
}
.port-band-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(230,0,41,.5); }
.pbi { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 9px; }

/* FOOTER */
footer { background: var(--ink); color: #fff; padding: 70px 72px 0; }
.f-cta { text-align: center; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 50px; }
.f-super { font-size: clamp(36px,5vw,76px); font-weight: 900; letter-spacing: -1px; line-height: 1; margin-bottom: 30px; overflow: visible; }
.f-super em { font-style: italic; font-weight: 300; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; padding: 0 0.06em 0.05em 0; }
.f-btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; background: var(--gradient); color: #fff; border-radius: 100px; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; box-shadow: 0 8px 24px rgba(230,0,41,.3); transition: transform .3s, box-shadow .3s; }
.f-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(230,0,41,.48); }
.f-bi { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 10px; }
.f-grid { display: grid; grid-template-columns: 1.8fr 1.2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.07); }
.f-logo-wrap { height: 48px; margin-bottom: 14px; }
.f-logo-wrap img { height: 100%; width: auto; max-width: 180px; object-fit: contain; }
.f-tag { font-size: 12px; opacity: .4; letter-spacing: .5px; line-height: 1.6; margin-bottom: 20px; }
.f-col h4 { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--red); margin-bottom: 16px; }
.f-col a { display: block; color: #fff; text-decoration: none; font-size: 14px; padding: 4px 0; opacity: .5; transition: opacity .25s, transform .2s; }
.f-col a:hover { opacity: 1; transform: translateX(4px); }
.f-offices { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.f-office-tag { display: inline-flex; align-items: center; white-space: nowrap; font-size: 11px; font-weight: 600; padding: 7px 16px; border-radius: 100px; border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.7); background: transparent; text-decoration: none; letter-spacing: 0.3px; transition: all .3s; line-height: 1; }
.f-office-tag:hover { background: #E4032E; border-color: #E4032E; color: #fff; }
.f-bot { display: flex; justify-content: space-between; align-items: center; font-size: 10px; opacity: .3; letter-spacing: 1px; text-transform: uppercase; padding: 24px 0; }

.rv { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.rv.on { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════
   TABLET / PHONE — ≤ 1024px
   • Disables sticky hero, diagonal split & scroll card-stack.
   • Hides the hero region-selector (it duplicates the list below)
     and turns the left side into a full branded hero with stats + CTA.
   ═══════════════════════════════════════════════════════ */
@media(max-width: 1024px) {
  /* HERO — single column, fills the screen */
  .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  .t-rec:has(.hero) { overflow: visible !important; }
.hero-stage {
    position: relative; height: auto; min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column;
    padding-top: 0;
  }

  /* Left side becomes the entire hero */
  .hero-left {
    position: relative; inset: auto; clip-path: none;
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding: 110px 36px 56px;
  }
  .hero-left-content { max-width: 600px; width: 100%; }

  /* Region selector also lives in the "Регионы" section — show it once. */
  .hero-right { display: none; }
  .hero-sub { display: none; }                 /* replaced by the mobile hero block */

  /* Showreel CAN play on mobile if you uncomment the  in the markup.
     Keep it muted + playsinline. Comment this rule out to disable on phones. */
  .hero-reel video { display: block; }

  /* Bigger logo so the hero doesn't feel empty */
  .hero-logo-big { margin-bottom: 26px; }
  .hero-logo-big img { height: clamp(110px,22vw,170px); }

  /* Diagonal / scroll-driven desktop parts hidden on touch */
  .hero-divider-svg, .hero-divider-handle, .hero-divider-hint,
  .hero-progress, .hero-scroll-hint { display: none; }

  /* ── Mobile hero block ── */
  .hero-mobile { display: block; max-width: 600px; }
  .hero-mobile-title {
    display: block; color: #fff; font-weight: 900;
    font-size: clamp(34px,9vw,56px); line-height: 1.02; letter-spacing: -1.5px;
    margin-bottom: 18px;
    opacity: 0; animation: fadeUp .8s ease .25s forwards;
  }
  .hero-mobile-title em {
    font-style: italic; font-weight: 300;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .hero-mobile-sub {
    font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.7); font-weight: 500;
    margin-bottom: 34px; max-width: 460px;
    opacity: 0; animation: fadeUp .8s ease .4s forwards;
  }
  .hmc-stats {
    display: flex; border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px; overflow: hidden; margin-bottom: 22px;
    opacity: 0; animation: fadeUp .8s ease .55s forwards;
  }
  .hmc-stat { flex: 1; padding: 20px 10px; text-align: center; }
  .hmc-stat + .hmc-stat { border-left: 1px solid rgba(255,255,255,.12); }
  .hmc-n { display: block; font-size: clamp(24px,7vw,34px); font-weight: 900; color: #fff; letter-spacing: -.5px; line-height: 1; }
  .hmc-l { display: block; font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 7px; }
  .hmc-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 18px; text-decoration: none;
    background: var(--gradient); color: #fff;
    border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(230,0,41,.32);
    transition: transform .3s, box-shadow .3s;
    opacity: 0; animation: fadeUp .8s ease .7s forwards;
  }
  .hmc-btn:active { transform: scale(.98); }
  .hmc-btn span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }

  /* COUNTRIES — slightly tighter padding */
  .cs-header { padding: 64px 40px 0; gap: 24px; }
  .cs-list { padding: 40px 40px 0; }
  .cs-row {
    grid-template-columns: 40px 60px 1fr auto 52px;
    gap: 0 22px;
    padding: 28px 20px;
  }
  .cs-row-tags { display: none; }
  .cs-row-stats { gap: 24px; }
  .cs-row-stat-n { font-size: 24px; }
  .cs-row-name { font-size: 30px; }
  .cs-row.cs-row-kz .cs-row-name { font-size: 36px; }

  .port-band { padding: 0 40px 64px; margin-top: 48px; }
}

/* ═══ PHONE — ≤ 640px ═══ */
@media(max-width: 640px) {
  /* NAV */
  nav { padding: 0 20px; height: 64px; }
  nav.scrolled { height: 56px; }
  .nav-menu, .nav-portfolio { display: none; }
  .nav-logo img { height: 36px; }

  /* HERO — phone */
  .hero-left { padding: 96px 20px 40px; }
  .hero-logo-big { margin-bottom: 22px; }
  .hero-logo-big img { height: clamp(96px,26vw,150px); }
  .hero-mobile-title { font-size: clamp(32px,10vw,46px); margin-bottom: 16px; }
  .hero-mobile-sub { font-size: 14px; margin-bottom: 28px; }
  .hmc-stat { padding: 17px 6px; }
  .hmc-n { font-size: clamp(22px,7.5vw,30px); }
  .hmc-l { font-size: 9px; }
  .hmc-btn { padding: 16px; }

  /* COUNTRIES — vertical card layout per row */
  .cs-header { padding: 56px 20px 0; flex-direction: column; align-items: flex-start; gap: 12px; }
  .cs-header-hint { text-align: left; max-width: 100%; font-size: 13px; }
  .sec-h2 { font-size: 32px; }

  .cs-list { padding: 24px 16px 8px; }

  /* Sticky-stacking cards: each pins under the nav and the next slides
     up over it as you scroll — the touch version of the desktop card-stack. */
  .cs-row {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 16px 14px;
    padding: 26px 20px;
    border: 1px solid var(--ink-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(27,28,32,.08);
    margin-bottom: 18px;
    align-items: center;
    position: sticky;
  }
  .cs-row:nth-child(1) { top: 88px; }
  .cs-row:nth-child(2) { top: 104px; }
  .cs-row:nth-child(3) { top: 120px; }
  .cs-row:last-child { border: 1px solid var(--ink-line); }
  .cs-row::before { top: 18px; bottom: 18px; }
  .cs-row:hover, .cs-row:active { padding-left: 20px; padding-right: 20px; }

  /* Dramatic scroll-in for each card */
  .cs-row.rv { transform: translateY(54px) scale(.94); }
  .cs-row.rv.on { transform: none; }

  /* Row 1: num (left) + arrow (right) */
  .cs-row-num { grid-column: 1; grid-row: 1; }
  .cs-row-arrow {
    grid-column: 3; grid-row: 1;
    width: 38px; height: 38px; font-size: 14px;
    justify-self: end;
  }
  /* Row 2: flag + name+city */
  .cs-row-flag {
    grid-column: 1; grid-row: 2;
    width: 44px; height: 33px;
    border-radius: 8px;
  }
  .cs-row-info { grid-column: 2 / -1; grid-row: 2; }
  .cs-row-tags { display: none; }
  /* Row 3: stats span full */
  .cs-row-stats {
    grid-column: 1 / -1; grid-row: 3;
    gap: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--ink-line);
  }
  .cs-row-stat-n { font-size: 22px; }
  .cs-row-name { font-size: 24px; letter-spacing: -.7px; }
  .cs-row-city { font-size: 12px; }
  .cs-row-badge { font-size: 8px; padding: 3px 9px; margin-bottom: 6px; }
  .cs-row.cs-row-kz .cs-row-name { font-size: 28px; }
  .cs-row.cs-row-kz { padding: 24px 18px; }

  /* PORT BAND — stack */
  .port-band { padding: 0 20px 56px; margin-top: 36px; }
  .port-band-inner { flex-direction: column; align-items: flex-start; padding: 20px 22px; gap: 14px; }
  .port-band-text { font-size: 13px; }

  /* FOOTER */
  footer { padding: 50px 20px 0; }
  .f-super { font-size: 38px; }
  .f-btn { padding: 14px 24px; font-size: 11px; }
  .f-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 28px; }
  .f-bot { flex-direction: column; gap: 8px; text-align: center; padding: 18px 0; }
  .f-cta { padding-bottom: 40px; margin-bottom: 36px; }

  /* Disable the custom rotating cursor on touch screens — it's distracting */
  body { cursor: auto; }
  *, *::before, *::after { cursor: auto !important; }
  a, button, [role="button"], label, select, input, textarea { cursor: pointer !important; }
  #cur { display: none; }
}

/* ═══ БЕГУЩАЯ СТРОКА ═══ */
.mq-section {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: 0;
}
.mq-accent-bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gradient);
}
.mq-inner { overflow: hidden; }
.mq-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.mq-track {
  display: flex; align-items: center;
  white-space: nowrap;
  padding: 28px 0;
  animation: mqScroll 28s linear infinite;
  width: max-content;
}
.mq-track:hover { animation-play-state: paused; }
@keyframes mqScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.mq-item {
  display: inline-flex; align-items: baseline; gap: 10px;
  flex-shrink: 0;
}
.mq-num {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900; letter-spacing: -0.5px;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.mq-lbl {
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 600; letter-spacing: 0.3px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  white-space: nowrap;
}
.mq-shape {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 14px !important; height: 14px !important;
  margin: 0 28px !important;
  padding: 0 !important; line-height: 0 !important; font-size: 0 !important;
}
.mq-shape svg { display: block !important; width: 14px !important; height: 14px !important; }

@media(max-width: 640px) {
  .mq-track { padding: 22px 0; }
  .mq-num { font-size: 20px; }
  .mq-lbl { font-size: 10px; }
  .mq-shape { margin: 0 18px !important; }
}


.ez-nav .nav-link:hover { color: #fff !important; }

/* ═══ TILDA COLOR OVERRIDE ═══
   Tilda sets #allrecords a { color: #ff8562 } — id-selector beats class.
   We match with #allrecords to win the specificity war. */

/* Глобальный сброс webkit-fill */
#allrecords * { -webkit-text-fill-color: unset !important; }

/* Gradient em — прозрачные */
#allrecords .sec-h2 em,
#allrecords .hero-right-title em,
#allrecords .hero-mobile-title em,
#allrecords .f-super em {
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  background: var(--gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Marquee цифры */
#allrecords .mq-num {
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  background: var(--gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  line-height: 1 !important;
}

/* Все ссылки внутри наших блоков — сброс оранжевого */
#allrecords .f-col a { color: #fff !important; }
#allrecords .f-col a:hover { color: #fff !important; opacity: 1; }
#allrecords .f-col h4 { color: var(--red) !important; }
#allrecords .f-tag { color: rgba(255,255,255,.4) !important; }
#allrecords .f-bot span { color: rgba(255,255,255,.3) !important; }
#allrecords .f-office-tag { color: rgba(255,255,255,.7) !important; }
#allrecords .f-office-tag:hover { color: #fff !important; }
#allrecords .f-super { color: #fff !important; }
#allrecords .f-btn span { color: #fff !important; }
#allrecords .f-btn .f-bi { color: #fff !important; }

#allrecords .nav-portfolio { color: #fff !important; }
#allrecords .nav-lang { color: rgba(255,255,255,.7) !important; }
#allrecords .nav-link { color: rgba(255,255,255,.6) !important; }
#allrecords .nav-link:hover { color: #fff !important; }

#allrecords .port-band-btn { color: #fff !important; }
#allrecords .port-band-btn span { color: #fff !important; }
#allrecords .port-band-text { color: rgba(255,255,255,.55) !important; }
#allrecords .port-band-text strong { color: #fff !important; }

#allrecords .cs-row-name { color: var(--ink) !important; }
#allrecords .cs-row-stat-n { color: var(--ink) !important; }
#allrecords .cs-row:hover .cs-row-stat-n { color: var(--red) !important; }
#allrecords .cs-row-num { color: var(--red) !important; }
#allrecords .cs-row-badge { color: var(--red) !important; }
#allrecords .cs-row-tag { color: var(--ink-soft) !important; }
#allrecords .cs-header-hint { color: var(--ink-soft) !important; }
#allrecords .sec-h2 { color: var(--ink) !important; }
#allrecords .sec-tag { color: var(--red) !important; }

#allrecords .hcc-name { color: #fff !important; }
#allrecords .hero-right-title { color: #fff !important; }
#allrecords .hero-right-tag { color: var(--red) !important; }
#allrecords .hmc-btn { color: #fff !important; }

#allrecords .mq-lbl { color: rgba(255,255,255,.55) !important; line-height: 1.1 !important; }
#allrecords .mq-item { display: inline-flex !important; align-items: center !important; gap: 10px !important; }

/* ── Mobile fixes ── */
@media(max-width: 640px) {
  /* Hero title — уменьшаем чтобы не резалось */
  .hero-mobile-title {
    font-size: clamp(22px, 7vw, 36px) !important;
    letter-spacing: -.5px !important;
    line-height: 1.1 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }
  .hero-mobile-title em {
    white-space: nowrap !important;
    display: inline-block !important;
  }

  /* Казахстан: бейдж над именем, не в строку */
  .cs-row-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .cs-row-badge {
    margin-bottom: 6px !important;
    display: inline-flex !important;
  }
  .cs-row-name {
    display: block !important;
    width: 100% !important;
  }
}

/* ── Mobile hero stats: gradient + glow + counter ── */
@media(max-width: 1024px) {
  .hmc-stats {
    border: 1px solid rgba(255,255,255,.10) !important;
    background: linear-gradient(135deg, rgba(255,111,0,.06) 0%, rgba(230,0,41,.04) 100%) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 10px 40px rgba(230,0,41,.08), inset 0 1px 0 rgba(255,255,255,.06) !important;
  }
  /* Subtle glow halo behind the stats block */
  .hmc-stats::before {
    content: '' !important;
    position: absolute !important;
    inset: -40% -10% !important;
    background: radial-gradient(ellipse at center, rgba(255,80,0,.18) 0%, transparent 60%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    animation: hmcGlow 4s ease-in-out infinite !important;
  }
  @keyframes hmcGlow {
    0%, 100% { opacity: .6; }
    50%      { opacity: 1;  }
  }
  .hmc-stat {
    position: relative !important;
    z-index: 1 !important;
    padding: 22px 8px !important;
  }
  .hmc-stat + .hmc-stat {
    border-left: 1px solid rgba(255,255,255,.08) !important;
  }
  .hmc-n {
    background: var(--gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: 0 0 24px rgba(255,80,0,.35) !important;
    font-weight: 900 !important;
    letter-spacing: -.5px !important;
    display: block !important;
    line-height: 1 !important;
    transition: transform .4s cubic-bezier(.22,1,.36,1) !important;
  }
  .hmc-stat:hover .hmc-n,
  .hmc-stat:active .hmc-n {
    transform: scale(1.08) !important;
  }
  .hmc-l {
    color: rgba(255,255,255,.55) !important;
    -webkit-text-fill-color: rgba(255,255,255,.55) !important;
    margin-top: 8px !important;
  }
}