/* ============================================================
   SAITS Group MMC — Corporate site stylesheet
   Hand-crafted, dependency-free. Charcoal-navy + electric blue.
   Includes: day/night themes, trilingual UI-ready component set.
   ============================================================ */

/* ---------- Fonts (self-hosted subsets; latin, latin-ext=AZ, cyrillic=RU) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors */
  --navy-950: #050A16;
  --navy-900: #070C18;
  --navy-800: #0C152A;
  --navy-700: #101B36;
  --blue: #2563EB;
  --blue-2: #3B82F6;
  --sky: #38BDF8;
  --sky-2: #7DD3FC;
  --ink: #0B1220;
  --muted: #55617A;
  --muted-dark: #9AA7C2;
  --paper: #F4F7FC;
  --line: #E6EAF2;
  --line-dark: rgba(154, 167, 194, 0.16);
  --grad: linear-gradient(120deg, #2563EB 0%, #38BDF8 100%);
  --grad-soft: linear-gradient(120deg, rgba(37, 99, 235, 0.10), rgba(56, 189, 248, 0.14));

  /* Semantic surface tokens — day theme */
  --page-bg: #FFFFFF;
  --page-bg-alt: #F4F7FC;
  --surface: #FFFFFF;
  --surface-2: #FBFCFE;
  --text-strong: #0B1220;
  --text-body: #55617A;
  --text-faint: #7C8AAB;
  --border: #E6EAF2;
  --border-strong: #E3E9F4;
  --nav-link: #31405C;
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-border: #E6EAF2;
  --header-shadow: rgba(11, 18, 32, 0.06);
  --card-hover-border: #D8E2F5;
  --card-hover-shadow: 0 22px 44px rgba(15, 30, 60, 0.10);
  --form-shadow: 0 24px 60px rgba(15, 30, 60, 0.08);
  --logo: #9AA6BC;
  --logo-hover: #2563EB;
  --placeholder: #98A6C3;

  /* Type */
  --font-display: 'Space Grotesk', 'Golos Text', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shape & layout */
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --header-h: 74px;
  --shadow-card: 0 22px 44px rgba(15, 30, 60, 0.10);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-strong);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.65);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout utilities ---------- */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.section { padding: clamp(76px, 9vw, 132px) 0; }
#about, #services, #work, #partners, #contact { scroll-margin-top: calc(var(--header-h) + 10px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  flex: none;
}
.hero .eyebrow, .work .eyebrow { color: var(--sky-2); }

.display {
  font-size: clamp(2.05rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  max-width: 640px;
  color: var(--text-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 54px);
}
.section-side {
  max-width: 300px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
}
.work .section-side { color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.42);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.30);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}
.btn-sm { padding: 12px 22px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* Small shared bits */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.35s ease;
}
.site-header.scrolled {
  border-color: var(--header-border);
  box-shadow: 0 6px 24px var(--header-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark { width: 30px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--text-strong);
}
.brand-text small {
  margin-top: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.55rem;
  letter-spacing: 0.44em;
  color: #64748B;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--nav-link);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-list a:hover { color: var(--text-strong); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-panel-cta { display: none; }

/* Header tools: language switch + theme toggle */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--nav-link);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.35s ease;
}
.lang-btn:hover { color: var(--text-strong); border-color: var(--border-strong); }
.lang-btn .lang-globe { width: 16px; height: 16px; }
.lang-btn .lang-caret { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.lang-switch.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 172px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(11, 18, 32, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0.2s;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--nav-link);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-menu button:hover { background: var(--grad-soft); color: var(--text-strong); }
.lang-menu button.is-active { color: var(--text-strong); font-weight: 600; }
.lang-menu button.is-active::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--nav-link);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.35s ease, transform 0.25s var(--ease);
}
.theme-toggle:hover { color: var(--text-strong); border-color: var(--border-strong); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="night"] .theme-toggle .icon-sun { display: block; }
html[data-theme="night"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4.5px auto;
  border-radius: 2px;
  background: var(--text-strong);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

body.nav-open { overflow: hidden; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  color: #EDF2FB;
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(900px 540px at -12% 112%, rgba(37, 99, 235, 0.22), transparent 58%),
    var(--navy-900);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.075) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 26%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse at 50% 26%, #000 18%, transparent 74%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
  min-height: min(88vh, 760px);
  padding: clamp(64px, 8vw, 118px) 0 clamp(84px, 9vw, 132px);
}

.hero-copy h1 {
  margin: 6px 0 22px;
  font-size: clamp(2.65rem, 5.6vw, 4.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: #F7FAFF;
}
.hero-copy .lead {
  max-width: 540px;
  color: #A9B6CF;
  font-size: 1.0625rem;
  line-height: 1.68;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: #7E8DA9;
  font-size: 0.875rem;
}
.note-line {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  flex: none;
}

.hero-visual { display: flex; justify-content: center; }
.hero-orb {
  position: relative;
  width: min(430px, 84%);
  aspect-ratio: 483 / 559;
}
.hero-glow {
  position: absolute;
  inset: 4% 0 8% 0;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.52), rgba(56, 189, 248, 0.22) 55%, transparent 74%);
  filter: blur(34px);
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-ring-a {
  inset: -5% -4%;
  border: 1px solid rgba(125, 211, 252, 0.20);
}
.hero-ring-b {
  inset: -12% -10%;
  border: 1px dashed rgba(125, 211, 252, 0.26);
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-mark {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 60px rgba(37, 99, 235, 0.35));
}

.hero-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(12, 21, 42, 0.74);
  border: 1px solid rgba(125, 211, 252, 0.24);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(3, 8, 20, 0.5);
  color: #DCE7FA;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip-a { top: 5%; right: -5%; }
.chip-b { bottom: 9%; left: -7%; animation-delay: -3.5s; }
.hero-chip strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes float {
  50% { transform: translateY(-9px); }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  position: relative;
  z-index: 2;
  width: 104%;
  margin: -12px -2% 0;
  padding: 19px 0;
  background: var(--grad);
  transform: rotate(-1.3deg);
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.28);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-list { display: flex; align-items: center; }
.marquee-list li {
  margin-right: 36px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-list li.sep { display: flex; align-items: center; }
.spark {
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   About
   ============================================================ */
.about { background: var(--page-bg); }
.about .display { margin: 4px 0 22px; max-width: 720px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: clamp(44px, 6vw, 64px);
}
.stat {
  position: relative;
  padding-top: 22px;
  border-top: 2px solid var(--border);
}
.stat::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--grad);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--text-body);
  font-size: 0.9rem;
}

/* ============================================================
   Services
   ============================================================ */
.services { background: var(--page-bg-alt); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease), background-color 0.35s ease, color 0.35s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
}
.service-card:hover::after { transform: scaleX(1); }

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--blue);
}
.service-icon svg { width: 22px; height: 22px; }
.service-num {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #A9B4C9;
}
.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--text-body);
  font-size: 0.925rem;
  line-height: 1.62;
}
.service-tags {
  margin-top: 18px !important;
  font-size: 0.7rem !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint) !important;
}

/* ============================================================
   Work
   ============================================================ */
.work {
  color: #E8EEFA;
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(37, 99, 235, 0.16), transparent 60%),
    var(--navy-900);
}
.work .display { color: #F4F8FF; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 26px 60px rgba(2, 8, 22, 0.55);
}

.project-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(0.9) contrast(1.03) brightness(0.98);
  transition: transform 0.6s var(--ease);
}
.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(155deg, rgba(37, 99, 235, 0.38), rgba(56, 189, 248, 0.10) 48%, rgba(7, 12, 24, 0.52));
  transition: opacity 0.5s ease;
}
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0) 40%, rgba(7, 12, 24, 0.78) 100%);
}
.project-card:hover .project-media img { transform: scale(1.07); }
.project-card:hover .project-media::before { opacity: 0.78; }
.project-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 12, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #EAF6FF;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

.project-tag,
.project-result {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.project-tag {
  top: 14px;
  left: 14px;
  color: #BFE0FF;
  background: rgba(9, 16, 32, 0.66);
  border: 1px solid rgba(125, 211, 252, 0.28);
}
.project-result {
  right: 14px;
  bottom: 14px;
  color: #E3F5FF;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.4);
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 22px 22px 24px;
}
.project-body h3 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F2F6FE;
}
.project-body p {
  flex: 1;
  color: #9DA9C4;
  font-size: 0.92rem;
  line-height: 1.62;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--sky-2);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.project-link .arrow { transition: transform 0.3s var(--ease); }
.project-link:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Partners
   ============================================================ */
.partners { background: var(--page-bg); }
.partners-head { text-align: center; margin-bottom: clamp(36px, 5vw, 52px); }
.partners-head .display { max-width: 640px; margin-inline: auto; }

.logo-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: center;
}
.logo-item {
  display: grid;
  place-items: center;
  min-height: 64px;
  color: var(--logo);
  opacity: 0.9;
  transition: color 0.3s ease, transform 0.3s var(--ease), opacity 0.3s ease;
}
.logo-item:hover { color: var(--logo-hover); transform: translateY(-2px); opacity: 1; }
.logo-img {
  max-width: 156px;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-caspian {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}
.logo-nordbridge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.logo-helios {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.02rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
}
.logo-helios em {
  display: block;
  margin-top: 3px;
  font-size: 0.5rem;
  font-style: normal;
  letter-spacing: 0.5em;
}
.logo-baku {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo-baku span {
  margin-top: 4px;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.5em;
}
.logo-orbit {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.logo-karat {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  position: relative;
  background: var(--page-bg-alt);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.16), transparent 72%);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.contact-info .display { margin: 4px 0 20px; max-width: 520px; }

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 38px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ci-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--blue);
}
.ci-icon svg { width: 18px; height: 18px; }
.ci-label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact-list a {
  color: var(--text-strong);
  font-weight: 500;
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3.4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--form-shadow);
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nav-link);
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-strong);
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.form-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
}
.form-note a { color: var(--blue); text-decoration: none; }
.form-note a:hover { text-decoration: underline; }
.form-status {
  min-height: 1.25em;
  margin: 0;
  font-size: 0.85rem;
  color: var(--blue);
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 72px 0 28px;
  color: #B7C2DA;
  background: var(--navy-950);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(154, 167, 194, 0.14);
}
.brand-light .brand-text b { color: #F2F6FE; }
.brand-light .brand-text small { color: #7E8DA9; }
.footer-brand p {
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #8794B0;
}
.footer-col h4 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7E8DA9;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col ul.social-list { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-col a {
  color: #C3CDE2;
  font-size: 0.925rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--sky-2); }

.social-list { display: flex; flex-wrap: wrap; gap: 10px; }
.social-list a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(154, 167, 194, 0.22);
  border-radius: 12px;
  color: #C3CDE2;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}
.social-list a:hover {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  transform: translateY(-2px);
}
.social-list svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.83rem;
  color: #75839F;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1120px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    min-height: 0;
    padding-bottom: clamp(72px, 10vw, 110px);
  }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
  .hero-orb { width: min(400px, 88%); }
  .chip-a { right: 0; }
  .chip-b { left: 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 26px 24px 30px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(11, 18, 32, 0.12);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s ease, visibility 0.3s;
  }
  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-list a { display: block; padding: 12px 2px; font-size: 1.05rem; }
  .nav-panel-cta { display: flex; }
  .header-cta { display: none; }
  .header-right { gap: 12px; }
  .nav-toggle { display: block; }
}

@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-row { grid-template-columns: repeat(3, 1fr); gap: 26px 18px; }
}

@media (max-width: 820px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-side { max-width: 520px; }
}

@media (max-width: 660px) {
  .project-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(var(--container), 100% - 40px); }
  .header-inner { gap: 14px; }
  .hero-copy h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .hero-chip { font-size: 0.72rem; padding: 9px 13px; }
  .marquee-list li { font-size: 0.78rem; letter-spacing: 0.18em; margin-right: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .stats { gap: 20px 16px; }
}

/* ============================================================
   Theme transitions (kept light and scoped)
   ============================================================ */
body, .section, .contact-form, .ci-icon, .stat, .stat-label,
.brand-text b, .brand-text small, .field label, .section-lead,
.section-side, .service-card p, .contact-list a, .form-note, .service-tags {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

/* ============================================================
   Night theme
   ============================================================ */
html[data-theme="night"] {
  color-scheme: dark;
  --page-bg: #070C18;
  --page-bg-alt: #0A1122;
  --surface: #0E1730;
  --surface-2: #0B1326;
  --text-strong: #EDF2FB;
  --text-body: #9AA7C2;
  --text-faint: #7E8DA9;
  --border: rgba(154, 167, 194, 0.16);
  --border-strong: rgba(154, 167, 194, 0.28);
  --nav-link: #C3CDE2;
  --header-bg: rgba(7, 12, 24, 0.85);
  --header-border: rgba(154, 167, 194, 0.12);
  --header-shadow: rgba(0, 0, 0, 0.35);
  --card-hover-border: rgba(125, 211, 252, 0.32);
  --card-hover-shadow: 0 26px 60px rgba(2, 8, 22, 0.55);
  --form-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --logo: #7E8DA9;
  --logo-hover: #7DD3FC;
  --placeholder: #6E7C99;
}
html[data-theme="night"] .eyebrow { color: var(--sky-2); }
html[data-theme="night"] .ci-icon { color: var(--sky); }
html[data-theme="night"] .service-icon { color: var(--sky); }
html[data-theme="night"] .form-note a,
html[data-theme="night"] .form-status { color: var(--sky-2); }
html[data-theme="night"] .nav { box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45); }
html[data-theme="night"] .lang-menu { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
html[data-theme="night"] .work {
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
    #0A1224;
}
html[data-theme="night"] .site-footer { background: #04070F; }
html[data-theme="night"] .service-num { color: #6F7D99; }
html[data-theme="night"] .brand-text small { color: #7E8DA9; }

/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ============================================================
   v3 — Header dropdown menus, Why Us, FAQ & Careers pages
   ============================================================ */

/* --- Nav: dropdown triggers --- */
.nav-list > li { display: flex; align-items: center; }
.nav-link,
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--nav-link);
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after,
.nav-drop-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover,
.nav-drop-btn:hover { color: var(--text-strong); }
.nav-link:hover::after,
.nav-drop-btn:hover::after,
.nav-item.open .nav-drop-btn::after { transform: scaleX(1); }
.nav-item.open .nav-drop-btn { color: var(--text-strong); }
.nav-drop-btn .caret { width: 11px; height: 11px; transition: transform 0.25s var(--ease); }
.nav-item.open .nav-drop-btn .caret { transform: rotate(180deg); }
.nav-drop-btn.is-current { color: var(--blue); }
html[data-theme="night"] .nav-drop-btn.is-current { color: var(--sky-2); }

/* --- Nav: dropdown panels --- */
.nav-item { position: relative; }
.nav-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  z-index: 80;
  min-width: 250px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(11, 18, 32, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0.2s;
}
html[data-theme="night"] .nav-drop { box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55); }
.nav-item.open .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nav-link);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-drop a::after { content: none; }
.nav-drop a:hover { background: var(--grad-soft); color: var(--text-strong); }
.nav-drop-wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 480px; }

/* --- Services grid v3 (six cards) --- */
.service-grid { grid-template-columns: repeat(3, 1fr); }
#svc-ai-video, #svc-smm, #svc-software, #svc-tech, #svc-promo, #svc-brand {
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.service-card:target {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), var(--shadow-card);
}

/* --- Why Us --- */
.why { background: var(--page-bg); border-top: 1px solid var(--border); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.why-item { border-top: 2px solid var(--border); padding-top: 20px; }
.why-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
}
html[data-theme="night"] .why-num { color: var(--sky-2); }
.why-item h3 { margin: 12px 0 8px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.why-item p { color: var(--text-body); font-size: 0.92rem; line-height: 1.62; }
.why-foot { margin-top: 40px; }

/* --- Page hero (FAQ / Careers) --- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #EDF2FB;
  background:
    radial-gradient(900px 420px at 85% -30%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(700px 380px at -10% 120%, rgba(37, 99, 235, 0.18), transparent 55%),
    var(--navy-900);
  padding: clamp(64px, 8vw, 108px) 0 clamp(48px, 6vw, 76px);
}
.page-hero .eyebrow { color: var(--sky-2); }
.page-hero h1 {
  margin: 4px 0 16px;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
  color: #F7FAFF;
}
.page-hero .section-lead { color: #A9B6CF; }

.container-narrow { width: min(860px, 100% - 48px); margin-inline: auto; }

/* --- FAQ --- */
.faq-section { padding-top: clamp(48px, 6vw, 80px); }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { max-width: 90%; }
.faq-plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
html[data-theme="night"] .faq-plus::before,
html[data-theme="night"] .faq-plus::after { background: var(--sky-2); }
.faq-plus::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-plus::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a {
  padding: 0 2px 22px;
  max-width: 68ch;
  color: var(--text-body);
  font-size: 0.97rem;
  line-height: 1.68;
}

/* --- CTA band --- */
.cta-band {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(56, 189, 248, 0.18), transparent 60%),
    var(--navy-900);
  color: #E8EEFA;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: #F4F8FF; }
.cta-inner p { margin-top: 8px; color: #9DA9C4; }

/* --- Careers --- */
.careers-why { border-top: 1px solid var(--border); }
.plain-list { display: grid; gap: 12px; margin-top: 22px; max-width: 820px; }
.plain-list li { position: relative; padding-left: 24px; color: var(--text-body); }
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--grad);
}
.role-list { margin-top: 30px; border-top: 1px solid var(--border); }
.role-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.role-row:hover { background: var(--grad-soft); }
.role-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text-strong); }
.role-meta { display: block; margin-top: 5px; font-size: 0.82rem; color: var(--text-faint); letter-spacing: 0.03em; }
.role-apply { color: var(--blue); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
html[data-theme="night"] .role-apply { color: var(--sky-2); }
.careers-note { margin-top: 26px; color: var(--text-faint); font-size: 0.9rem; }

/* --- Footer: socials under the contact column --- */
.footer-col .social-list { margin-top: 16px; }

/* --- Responsive v3 --- */
@media (max-width: 1220px) {
  .nav-list { gap: 22px; }
  .header-right { gap: 14px; }
}
@media (max-width: 1120px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
}
@media (max-width: 980px) {
  .nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-list > li { display: block; }
  .nav-link,
  .nav-drop-btn {
    display: flex;
    width: 100%;
    padding: 12px 2px;
    font-size: 1.05rem;
  }
  .nav-drop-btn { justify-content: space-between; }
  .nav-drop {
    position: static;
    min-width: 0;
    width: auto;
    padding: 2px 0 8px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-item.open .nav-drop { display: block; }
  .nav-drop-wide { display: none; grid-template-columns: 1fr; min-width: 0; }
  .nav-item.open .nav-drop-wide { display: block; }
  .nav-drop a { padding: 9px 10px; font-size: 0.95rem; white-space: normal; }
  html[data-theme="night"] .nav-drop { box-shadow: none; }
}
@media (max-width: 660px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v4 — Legal bar, floating WhatsApp, back-to-top, legal pages
   ============================================================ */
.legal-bar { padding: 22px 0 26px; border-top: 1px solid rgba(154, 167, 194, 0.14); }
.legal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: #75839F;
}
.legal-inner p { margin: 0; }
.legal-links { display: flex; gap: 20px; }
.legal-links a { color: #9AA7C2; text-decoration: none; transition: color 0.2s ease; }
.legal-links a:hover { color: var(--sky-2); }

.legal-section { padding-top: clamp(48px, 6vw, 80px); }
.legal-body h2 {
  margin: 34px 0 10px;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p {
  margin: 0 0 14px;
  max-width: 72ch;
  color: var(--text-body);
  font-size: 0.97rem;
  line-height: 1.68;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
}
.whatsapp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #25D366, #4ADE80, #25D366 38%, rgba(37, 211, 102, 0.18) 56%, #25D366 72%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: wa-spin 3.4s linear infinite;
}
.whatsapp-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(140deg, #25D366, #1DA851);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 140, 70, 0.45);
  transition: transform 0.25s var(--ease);
}
.whatsapp-core svg { width: 24px; height: 24px; }
.whatsapp-float:hover .whatsapp-core { transform: scale(1.08); }
@keyframes wa-spin { to { transform: rotate(360deg); } }

/* Back to top */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--nav-link);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.18);
  transition: transform 0.25s var(--ease), color 0.2s ease, border-color 0.2s ease;
}
.back-top:hover { transform: translateY(-3px); color: var(--text-strong); border-color: var(--border-strong); }
.back-top svg { width: 18px; height: 18px; }
html[data-theme="night"] .back-top { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }

@media (max-width: 560px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-core { width: 43px; height: 43px; }
  .whatsapp-core svg { width: 22px; height: 22px; }
  .back-top { right: 16px; bottom: 80px; width: 42px; height: 42px; }
}
.careers-apply .contact-form { margin-top: 8px; }
.careers-apply h2 { margin-bottom: 22px; }
.audio-hidden { display: none !important; }
.field select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-strong);
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.role-summary {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--text-faint);
  line-height: 1.55;
  max-width: 64ch;
}
.hero-coin {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 483 / 559;
  transform-style: preserve-3d;
  animation: coin-flip 10s linear infinite;
}
.coin-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.coin-face .hero-mark { width: 100%; height: auto; }
.coin-back { transform: rotateY(180deg); }
@keyframes coin-flip {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.audio-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--nav-link);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.35s ease, transform 0.25s var(--ease);
}
.audio-toggle:hover { color: var(--text-strong); border-color: var(--border-strong); transform: translateY(-1px); }
.audio-toggle svg { width: 17px; height: 17px; }
.audio-toggle .icon-muted { display: none; }
.audio-toggle.is-muted .icon-sound { display: none; }
.audio-toggle.is-muted .icon-muted { display: block; }

.audio-pill {
  display: inline-flex;
  width: auto;
  height: 38px;
  margin-top: 18px;
  padding: 0 14px;
  gap: 8px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.audio-pill svg { width: 16px; height: 16px; }

@media (max-width: 560px) {
  .header-tools { gap: 6px; }
  .lang-btn { height: 36px; padding: 0 9px; font-size: 0.72rem; gap: 6px; }
  .theme-toggle, .audio-toggle:not(.audio-pill) { width: 36px; height: 36px; }
  .theme-toggle svg, .audio-toggle svg { width: 16px; height: 16px; }
  .nav-toggle { width: 40px; height: 40px; }
  .brand-mark { width: 26px; }
  .brand-text b { font-size: 0.95rem; }
  .brand-text small { font-size: 0.5rem; letter-spacing: 0.38em; }
  .audio-pill { width: auto; height: 38px; padding: 0 12px; }
  .audio-footer { gap: 10px 12px; }
  .footer-volume { flex: 1 1 120px; width: auto; min-width: 110px; }
  .hero-copy .eyebrow { font-size: 0.62rem; letter-spacing: 0.15em; }
}
@media (max-width: 380px) {
  .header-tools { gap: 4px; }
  .brand { gap: 8px; }
  .brand-text { display: none; }
  .lang-btn { padding: 0 7px; }
  .nav-toggle { width: 38px; height: 38px; }
  .hero-copy .eyebrow { font-size: 0.56rem; letter-spacing: 0.09em; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-coin { animation: none; }
}

/* ============================================================
   v6 — Fixed header, volume sliders
   ============================================================ */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
}
body { padding-top: var(--header-h); }

.audio-wrap { display: inline-flex; align-items: center; gap: 8px; position: relative; }
.audio-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38BDF8, #2563EB);
  accent-color: #38BDF8;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
/* vertical hover popover around the header music button */
.volume-pop {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 34px;
  height: 122px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 20px 44px rgba(2, 8, 22, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 80;
}
.volume-pop::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.audio-wrap:hover .volume-pop,
.audio-wrap:focus-within .volume-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.header-volume {
  position: absolute;
  width: 88px;
  height: 4px;
  transform: rotate(-90deg);
  opacity: 1;
  visibility: visible;
}
.audio-footer .audio-vol {
  opacity: 1;
  visibility: visible;
}
.audio-footer:hover .audio-vol,
.audio-footer:focus-within .audio-vol {
  opacity: 1;
  visibility: visible;
}
@media (hover: none) {
  .volume-pop { display: none; }
}
.audio-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #EAF6FF;
  border: 2px solid #38BDF8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.audio-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #EAF6FF;
  border: 2px solid #38BDF8;
}
.audio-footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.footer-volume { width: 120px; }
.audio-pill { margin-top: 0; }
@media (max-width: 1180px) {
  .header-volume, .volume-pop { display: none; }
}

/* --- Footer language switcher --- */
.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
}
.footer-lang-btn {
  background: none;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  font-family: inherit;
}
.footer-lang-btn:hover {
  color: var(--text-heading, #ffffff);
  background: rgba(255, 255, 255, 0.05);
}
.footer-lang-btn.is-active {
  color: var(--accent, #38bdf8);
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
}
.footer-lang-sep {
  color: var(--border, rgba(255, 255, 255, 0.15));
  user-select: none;
}

/* --- Live Preview Floating Banner --- */
.preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: linear-gradient(90deg, #0284c7, #2563eb);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.preview-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.preview-banner-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
.preview-banner-close {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.preview-banner-close:hover {
  background: rgba(255, 255, 255, 0.35);
}
body.is-preview-mode {
  padding-top: 38px;
}
