:root {
  --bg: #021417;
  --bg-2: #051e24;
  --surface: rgba(14, 43, 48, .76);
  --surface-2: rgba(33, 59, 67, .72);
  --surface-3: #2d494d;
  --gold: #c9a24e;
  --gold-bright: #f1ca72;
  --gold-deep: #a88f5f;
  --text: #eaf1f2;
  --text-muted: #a9b4b7;
  --line: rgba(201, 162, 78, .22);
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: Poppins, Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}

body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--gold-bright);
  color: #071719;
  border-radius: 10px;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 10;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(2, 20, 23, .78);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  min-width: 0;
}
.brand-animated {
  min-width: 248px;
}
/* ── SVG IREPN logo symbol ── */
.irepn-symbol {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  display: block;
  overflow: visible;
}
/* Globe pulsating glow */
.sym-globe {
  animation: symGlobePulse 3.6s ease-in-out infinite;
}
/* Outer aura pulse */
.sym-aura {
  animation: symAuraPulse 3.6s ease-in-out infinite;
}
/* Orbital balls glow */
.sym-ball {
  animation: symBallGlow 2.8s ease-in-out infinite alternate;
}
/* Orbital rotation — transform-box:view-box makes 50%/50% = centre of viewBox (70,70) */
.sym-r1b, .sym-r1f, .sym-b1 {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: symRing1Rot 8s linear infinite;
}
.sym-r2b, .sym-r2f, .sym-b2 {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: symRing2Rot 11s linear infinite;
}
/* Keep glow pulses stacked on top of rotation */
.sym-r1f { animation: symRing1Rot 8s linear infinite, symRingPulse 4s ease-in-out infinite alternate; }
.sym-r2f { animation: symRing2Rot 11s linear infinite, symRingPulse 5s ease-in-out infinite alternate; animation-delay: 0s, -2s; }
.brand-word {
  display: grid;
  gap: 1px;
  line-height: 1;
}
.brand-word strong {
  font-family: var(--font-heading);
  font-size: 42px;
  letter-spacing: .02em;
  color: #f5fbfb;
  text-shadow: 0 0 18px rgba(255, 255, 255, .1);
}
.brand-word small {
  max-width: 220px;
  color: rgba(234, 241, 242, .78);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}
.site-nav a { color: rgba(234, 241, 242, .9); }
.site-nav a:hover { color: var(--gold-bright); }
.nav-toggle { display: none; }

.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.language-switcher button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  min-height: 32px;
  padding: 4px 7px;
  border-radius: 999px;
  cursor: pointer;
}
.language-switcher button.is-active {
  color: var(--gold-bright);
  border-color: var(--line);
  background: rgba(201, 162, 78, .1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button::after { content: "->"; }
[dir="rtl"] .button::after { transform: scaleX(-1); }
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #071719;
  box-shadow: 0 0 30px rgba(241, 202, 114, .32);
}
.button-ghost {
  background: rgba(2, 20, 23, .24);
  color: var(--text);
}
.button-small {
  min-height: 42px;
  padding: 10px 16px;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: 120px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .94;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 42%, rgba(241, 202, 114, .18), transparent 24%),
    linear-gradient(90deg, rgba(2, 20, 23, .28), rgba(2, 20, 23, .54) 42%, rgba(2, 20, 23, .06));
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 560px);
  justify-content: end;
}
.hero-copy { padding-block-start: 40px; }
.kicker {
  margin: 0 0 12px;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 900;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(40px, 6vw, 68px);
  max-width: 620px;
}
h1 span {
  color: var(--gold-bright);
  background: linear-gradient(90deg, var(--gold), #fff2bc, var(--gold));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 21px; }
.lead { max-width: 560px; font-size: 18px; color: rgba(234, 241, 242, .9); }
.gold-rule {
  width: 72px;
  height: 3px;
  margin: 22px 0;
  background: var(--gold-bright);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-block-start: 28px; }

.section {
  position: relative;
  padding-block: 88px;
  border-block-start: 1px solid rgba(201, 162, 78, .09);
  overflow: hidden;
}
.section-dark {
  background:
    radial-gradient(circle at 82% 40%, rgba(32, 137, 119, .14), transparent 32%),
    linear-gradient(180deg, #021417, #05262a);
}
.split {
  display: grid;
  grid-template-columns: .95fr 1.25fr;
  gap: 64px;
  align-items: center;
}
.section-copy p:not(.kicker), .section-heading p:not(.kicker) { color: var(--text-muted); }
.section-heading { text-align: center; margin-block-end: 38px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(3, 32, 35, .5);
}
.feature-card, .mission-card, .partner-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover, .mission-card:hover, .partner-card:hover {
  transform: translateY(-6px);
  border-color: rgba(241, 202, 114, .6);
  background: var(--surface-2);
}
.icon, .line-icon {
  display: inline-grid;
  place-items: center;
  color: var(--gold-bright);
  font-size: 40px;
  margin-block-end: 14px;
}
.feature-card p, .mission-card p, .partner-card p, .step p { color: var(--text-muted); margin-block-end: 0; }

.card-grid { display: grid; gap: 22px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mission-card, .partner-card { text-align: center; min-height: 230px; }
.partner-card strong { display: block; font-size: 30px; margin-block-end: 16px; }
.partner-card span {
  display: block;
  color: var(--gold-bright);
  margin-block-end: 14px;
  font-weight: 800;
}
.partner-card small {
  display: block;
  margin-block-start: 18px;
  color: var(--text);
}
.partner-logo {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  max-width: 250px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 12px;
  padding: 14px;
  background: rgba(2, 20, 23, .5);
  border: 1px solid rgba(241, 202, 114, .22);
}
.partner-logo-kvartal span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  color: #e31f2b;
  background: rgba(255, 255, 255, .96);
  border: 5px solid #173c6b;
  border-inline-start-color: #e31f2b;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.partner-logo strong {
  margin: 0;
  color: var(--text);
  font-size: 27px;
  letter-spacing: .02em;
}
.partner-logo em {
  color: var(--gold-bright);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.partner-logo-kvartal {
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 13px;
  color: var(--text) !important;
}
.partner-logo-kvartal span { grid-row: 1 / 3; }
.partner-logo-kvartal strong {
  align-self: end;
  color: #f5fbfb;
}
.partner-logo-kvartal em { align-self: start; }
.partner-logo-apart i {
  position: relative;
  width: 58px;
  height: 46px;
  display: block;
}
.partner-logo-apart i::before,
.partner-logo-apart i::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 18px;
  border: 5px solid var(--gold-bright);
  border-bottom: 0;
}
.partner-logo-apart i::before { height: 38px; left: 8px; }
.partner-logo-apart i::after { height: 28px; right: 5px; }
.partner-logo-apart strong {
  font-size: 32px;
  font-weight: 500;
}
.partner-logo-apart strong span {
  display: inline;
  color: var(--gold-bright);
  margin: 0;
}
.partner-logo-aurum i {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  color: var(--gold-bright);
  font-style: normal;
  font-weight: 900;
}
.partner-logo-aurum strong {
  font-size: 26px;
  letter-spacing: .16em;
}

.process { background: linear-gradient(180deg, #05262a, #021417); }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.steps::before {
  content: "";
  position: absolute;
  inset-block-start: 32px;
  inset-inline: 10%;
  height: 1px;
  background: var(--gold-deep);
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step span {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid var(--gold-bright);
  background: #06262a;
  color: var(--gold-bright);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(241, 202, 114, .25);
}
.step h3 { margin-block-start: 20px; color: var(--gold-bright); }

.reach-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 44px;
  align-items: center;
}
.location-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  color: var(--text);
}
.location-list li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-inline-end: 10px;
  border-radius: 999px;
  background: var(--gold-bright);
  box-shadow: 0 0 16px var(--gold-bright);
}
.map-panel svg { width: 100%; filter: drop-shadow(0 28px 70px rgba(0, 0, 0, .25)); }
.continent { fill: rgba(69, 118, 111, .34); }
.routes path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-dasharray: 9 9;
  animation: dash 5s linear infinite;
}
.hubs circle { fill: var(--gold-bright); filter: drop-shadow(0 0 9px var(--gold-bright)); }
.labels text {
  fill: var(--text);
  font-size: 14px;
  paint-order: stroke;
  stroke: #06262a;
  stroke-width: 7px;
}

.join-band {
  padding-block: 54px;
  background:
    radial-gradient(circle at 18% 50%, rgba(241, 202, 114, .28), transparent 28%),
    linear-gradient(90deg, #073a39, #746f4b 70%, #113232);
  border-block: 1px solid var(--line);
}
.join-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.join-actions { text-align: center; }
.join-actions p { color: rgba(255, 255, 255, .82); }
.partnership-hint {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(201, 162, 78, .65);
  text-decoration: none;
  border-bottom: 1px dashed rgba(201, 162, 78, .3);
  transition: color .2s, border-color .2s;
}
.partnership-hint:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

.site-footer {
  background: #03181b;
  border-block-start: 1px solid var(--line);
  padding-block: 48px 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1fr;
  gap: 34px;
}
.footer-brand { margin-block-end: 16px; }
.site-footer h2 { font-size: 16px; color: var(--gold-bright); margin-block-end: 10px; }
.site-footer p, .site-footer a { color: var(--text-muted); display: block; margin-block: 6px; }
.footer-bottom {
  margin-block-start: 34px;
  padding-block-start: 18px;
  border-block-start: 1px solid rgba(201, 162, 78, .12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #05262a;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
}
form { display: grid; gap: 14px; }
label span { display: block; margin-block-end: 6px; color: var(--text-muted); font-size: 14px; }
input, textarea {
  width: 100%;
  color: var(--text);
  background: rgba(2, 20, 23, .75);
  border: 1px solid rgba(201, 162, 78, .25);
  border-radius: 10px;
  padding: 12px 14px;
}
textarea { resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { width: 18px; margin-block-start: 4px; }
.honeypot { position: absolute; opacity: 0; pointer-events: none; }
.form-status { min-height: 22px; margin: 0; color: var(--gold-bright); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shimmer { to { background-position: 400px 0; } }
@keyframes dash { to { stroke-dashoffset: -120; } }
@keyframes symGlobePulse {
  0%, 100% { filter: brightness(1)   drop-shadow(0 0 6px  rgba(201,162,78,.30)); }
  50%      { filter: brightness(1.08) drop-shadow(0 0 14px rgba(201,162,78,.65)); }
}
@keyframes symAuraPulse {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}
@keyframes symBallGlow {
  from { filter: drop-shadow(0 0 3px rgba(241,202,114,.70)); }
  to   { filter: drop-shadow(0 0 8px rgba(241,202,114,1.00)); }
}
@keyframes symRing1Rot { to { transform: rotate(360deg); } }
@keyframes symRing2Rot { to { transform: rotate(-360deg); } }
@keyframes symRingPulse {
  from { opacity: .72; }
  to   { opacity: 1; }
}

@media (max-width: 1040px) {
  .site-nav {
    position: fixed;
    inset-block-start: 84px;
    inset-inline: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    background: rgba(2, 20, 23, .94);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(2, 20, 23, .36);
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
  }
  .card-grid.four, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .split, .reach-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 32px, 1200px); }
  .brand-animated { min-width: 0; }
  .irepn-symbol { width: 56px; height: 56px; }
  .brand-word strong { font-size: 30px; }
  .brand-word small { font-size: 8px; max-width: 150px; }
  .header-inner { min-height: 76px; }
  .hero { min-height: 690px; padding-block-start: 108px; }
  .hero-bg img { object-position: center; }
  .hero-grid { justify-content: start; }
  .hero-copy {
    background: linear-gradient(90deg, rgba(2, 20, 23, .78), rgba(2, 20, 23, .25));
    padding: 20px;
    border-radius: 16px;
  }
  .card-grid.four, .card-grid.three, .steps, .feature-grid, .location-list, .join-grid { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .feature-grid { padding: 20px; }
  .hero-actions, .button { width: 100%; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
