/* =========================================
   ФОК «Спарта» — Modern redesign
   Design system + animations
   ========================================= */

:root {
  --primary: #0067FF;
  --primary-600: #0052d6;
  --primary-700: #004BBA;
  --primary-05: rgba(0, 103, 255, 0.05);
  --primary-08: rgba(0, 103, 255, 0.08);
  --primary-10: rgba(0, 103, 255, 0.10);
  --primary-12: rgba(0, 103, 255, 0.12);
  --primary-20: rgba(0, 103, 255, 0.20);
  --primary-50: rgba(0, 103, 255, 0.50);

  --ink: #0A1020;
  --ink-2: #252525;
  --ink-muted: #5B6472;
  --ink-soft: #8C93A0;

  --bg: #EEF2F6;
  --bg-soft: #F2F4F8;
  --bg-white: #FFFFFF;
  --bg-dark: #0B1220;
  --bg-footer: #0A1020;

  --border: rgba(10, 16, 32, 0.08);
  --border-strong: rgba(10, 16, 32, 0.14);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --shadow-sm: 0 2px 6px rgba(10, 16, 32, 0.04), 0 1px 2px rgba(10, 16, 32, 0.04);
  --shadow: 0 12px 32px -12px rgba(10, 16, 32, 0.14), 0 2px 8px rgba(10, 16, 32, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(10, 16, 32, 0.22);
  --shadow-primary: 0 12px 28px -10px rgba(0, 103, 255, 0.5);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --container: 1440px;
  --side: 40px;

  --font: "Inter", -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Manrope", "Inter", sans-serif;
}

* { box-sizing: border-box; }
*, *::before, *::after { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }

/* ============ Typography ============ */
.h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}
.h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.4vw, 24px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 28px; height: 1px; background: currentColor; opacity: .5;
}
.kicker--light { color: rgba(255,255,255,.8); }

.gradient-text {
  background: linear-gradient(90deg, var(--primary) 0%, #6AA6FF 60%, var(--primary) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 8s linear infinite;
}
.gradient-text--light {
  background: linear-gradient(90deg, #fff 0%, #BAD2FF 60%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 8s linear infinite;
}
@keyframes gradShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--side);
}
.section {
  padding: clamp(56px, 7vw, 112px) 0;
}
.section--tight { padding: clamp(32px, 4vw, 60px) 0 clamp(40px, 5vw, 80px); }
.section--muted { background: var(--bg-soft); }
.section--white { background: #fff; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 4vw, 56px);
  flex-wrap: wrap;
}
.section__title-wrap { max-width: 720px; }
.section__foot { margin-top: 48px; display: flex; justify-content: center; }

/* ============ Scroll progress ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #6AA6FF);
  z-index: 1000;
  transition: width .1s linear;
}

/* ============ Buttons ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn--primary:hover { background: var(--primary-700); transform: translateY(-1px); box-shadow: 0 18px 36px -12px rgba(0,103,255,.55); }
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-05); }

.btn--outline-light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--outline-light:hover { background: rgba(255,255,255,.18); border-color: #fff; }

.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover { background: #f0f4fa; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 16px;
}
.btn--ghost:hover { color: var(--primary); }

.btn--link {
  padding: 8px 0;
  color: var(--primary);
  font-weight: 600;
}
.btn--link:hover { color: var(--primary-700); }

.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 14px 0;
  background: rgba(238, 242, 246, 0.85);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, padding .3s ease;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  flex-shrink: 0;
}
.logo__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
  transition: transform .4s var(--ease-spring);
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.05); }
.logo__mark svg { width: 22px; height: 22px; }
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--ink);
}
.logo__text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo__text em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text em { color: rgba(255,255,255,.6); }
.logo--light .logo__mark { background: #fff; color: var(--primary); box-shadow: none; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.nav__link:hover { color: var(--primary); background: var(--primary-05); }
.nav__caret { width: 10px; height: 10px; transition: transform .25s ease; }
.nav__item.has-sub:hover .nav__caret { transform: rotate(180deg); }
.nav__item.has-sub:hover .dropdown,
.nav__item.has-sub:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
  z-index: 10;
}
.dropdown a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.dropdown a:hover { background: var(--primary-05); color: var(--primary); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}
.burger span {
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  padding: 16px 0 0;
}
.hero__stage {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: clamp(560px, 70vh, 760px);
  color: #fff;
  isolation: isolate;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s var(--ease-out), transform 8s linear;
  background-color: #0a1b3a;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,16,32,0.3) 0%, rgba(10,16,32,0.55) 60%, rgba(10,16,32,0.85) 100%),
    linear-gradient(100deg, rgba(0,103,255,0.35) 0%, transparent 50%);
  pointer-events: none;
}
.hero__grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: clamp(48px, 8vw, 100px) 0 100px;
  max-width: 900px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero__title .word { display: inline-block; }
.hero__title .accent { color: #6AA6FF; font-style: italic; font-weight: 700; }

.hero__subtitle {
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.55;
  max-width: 620px;
  opacity: .85;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 640px;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__meta-item strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__meta-item span {
  font-size: 13px;
  opacity: .7;
}
.hero__meta-divider {
  width: 1px; height: 32px; background: rgba(255,255,255,0.2);
}

.hero__controls {
  position: absolute;
  bottom: 28px; right: 28px;
  z-index: 5;
  display: flex; align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(10,16,32,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
}
.hero__ctrl {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: #fff;
  transition: background .25s ease, transform .25s ease;
}
.hero__ctrl:hover { background: rgba(255,255,255,0.15); transform: scale(1.08); }
.hero__ctrl svg { width: 18px; height: 18px; }
.hero__dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background .25s ease, width .35s var(--ease);
}
.hero__dot.is-active { background: #fff; width: 24px; }

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 28px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,0));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -10px; left: 0;
  width: 100%; height: 10px;
  background: #fff;
  animation: scrollDown 2s infinite var(--ease);
}
@keyframes scrollDown {
  0% { top: -10px; } 100% { top: 100%; }
}

/* ============ Marquee ============ */
.marquee {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  margin-top: 40px;
  background: var(--bg-soft);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.marquee__track span { flex-shrink: 0; }
.marquee__track .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--primary);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Facilities ============ */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.facility {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  border: 1px solid var(--border);
}
.facility:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.facility__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaeef5;
}
.facility__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.facility:hover .facility__media img { transform: scale(1.06); }
.facility__badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  letter-spacing: 0.02em;
}
.facility__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.facility__body p { color: var(--ink-muted); }
.facility__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.meter {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.meter strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.meter span {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ Publications (sections) ============ */
.publication-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.publication {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  background: var(--primary-05);
  border-radius: var(--radius);
  transition: background .3s var(--ease), transform .3s var(--ease);
  color: var(--primary);
  font-weight: 600;
  overflow: hidden;
}
.publication:hover { background: var(--primary-10); transform: translateY(-2px); }
.publication__img {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-10);
}
.publication__title {
  font-size: 16px;
  line-height: 1.2;
  flex: 1;
}
.publication__arrow {
  width: 16px; height: 16px;
  transition: transform .3s var(--ease);
}
.publication:hover .publication__arrow { transform: translate(3px, -3px); }

/* ============ Promo ============ */
.promo {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  padding: clamp(24px, 3vw, 48px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.promo__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary-05);
}
.promo__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.promo:hover .promo__media img { transform: scale(1.04); }
.promo__badge {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
}
.promo__badge svg { width: 16px; height: 16px; color: var(--primary); }

.promo__body { display: flex; flex-direction: column; gap: 18px; }
.promo__body .h2 { margin-bottom: 4px; }
.promo__body p { color: var(--ink-muted); font-size: 17px; line-height: 1.6; }
.promo__slogan {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.promo__slogan .word {
  display: inline-block;
  color: var(--primary);
}
.promo__separator { color: var(--ink-soft); }

.promo__tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-05);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--primary-10);
}

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #6AA6FF);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.stat:hover::before { transform: scaleX(1); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.3;
  margin-top: 8px;
}

/* ============ Products ============ */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product.is-featured { border-color: var(--primary-20); background: linear-gradient(180deg, var(--primary-05), #fff); }
.product__ribbon {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--primary-05);
}
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.product:hover .product__media img { transform: scale(1.06); }
.product__body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.product__desc {
  color: var(--ink-muted);
  font-size: 14px;
}
.product__foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product__price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.product--dark {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}
.product--dark .product__media { background: rgba(255,255,255,0.05); }
.product--dark .product__desc { color: rgba(255,255,255,0.65); }
.product--dark .product__price { color: #fff; }

/* ============ Trainers ============ */
.trainers {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.trainers::-webkit-scrollbar { display: none; }
.trainer {
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.trainer:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trainer__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
}
.trainer__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.trainer:hover .trainer__media img { transform: scale(1.06); filter: saturate(1.1); }
.trainer__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trainer__city {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.08em;
}
.trainer__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.trainer__role { color: var(--ink-muted); font-size: 13px; line-height: 1.4; }

.trainer__nav {
  display: flex; gap: 8px;
}
.icon-btn {
  width: 44px; height: 44px;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.icon-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; }

/* ============ Documents ============ */
.docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.doc {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-20); }
.doc__icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--primary-05);
  color: var(--primary);
  transition: background .3s ease;
}
.doc:hover .doc__icon { background: var(--primary); color: #fff; }
.doc__icon svg { width: 24px; height: 24px; }
.doc__body { flex: 1; min-width: 0; }
.doc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.doc__meta { color: var(--ink-soft); font-size: 13px; }
.doc__arrow {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: color .25s ease, transform .3s ease;
  flex-shrink: 0;
}
.doc:hover .doc__arrow { color: var(--primary); transform: translate(3px, -3px); }
.doc__arrow svg { width: 16px; height: 16px; }

/* ============ News ============ */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.tab {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-card {
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  border: 1px solid transparent;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.news-card__date {
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--warn { background: #FF8A3D; }

.news-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.news-card__excerpt {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}
.news-card__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
  margin-top: 4px;
  transition: gap .25s ease;
}
.news-card__more:hover { gap: 10px; }
.news-card__more svg { width: 14px; height: 14px; }

.news-card--accent {
  background: var(--ink);
  color: #fff;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.news-card--accent::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.45;
}
.news-card--accent .news-card__title,
.news-card--accent .news-card__excerpt { position: relative; z-index: 1; color: #fff; }
.news-card--accent .news-card__excerpt { color: rgba(255,255,255,0.75); }

/* ============ Events ============ */
.filter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.filter label {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}
.filter select {
  padding: 8px 32px 8px 12px;
  border: none;
  background: var(--bg-soft);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23252525' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.events {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.event {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex;
  flex-direction: column;
}
.event:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.event__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.event:hover .event__media img { transform: scale(1.08); }
.event__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.event__date {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--primary);
  font-family: var(--font-display);
}
.event__day {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.event__month {
  font-size: 14px;
  font-weight: 600;
  text-transform: lowercase;
}
.event__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.event__meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: auto;
}

/* ============ Orgs ============ */
.orgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.org {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.org:hover { border-color: var(--primary-20); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.org__logo {
  width: 60px; height: 60px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--primary-05);
  color: var(--primary);
}
.org__logo svg { width: 32px; height: 32px; }
.org__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.org__meta { color: var(--primary); font-size: 13px; font-weight: 600; }

/* ============ CTA form ============ */
.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-2xl);
  background: var(--ink);
  color: #fff;
  min-height: 520px;
}
.cta__media { position: relative; }
.cta__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta__media-grad {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--ink) 95%);
}
.cta__body {
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cta__desc { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.6; max-width: 460px; }

.cta__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.field input, .field select {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 15px;
  transition: border-color .25s ease, background .25s ease;
}
.field input::placeholder { color: rgba(255,255,255,0.35); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0,103,255,0.08);
}
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.cta__submit { grid-column: 1 / -1; justify-content: center; }
.cta__privacy {
  grid-column: 1 / -1;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.cta__privacy a { color: rgba(255,255,255,0.8); text-decoration: underline; }

/* ============ Footer ============ */
.footer {
  background: var(--bg-footer);
  color: #fff;
  padding: 72px 0 28px;
  margin-top: 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 300px; }
.footer__slogan { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.55; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.footer__col a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color .2s ease;
}
.footer__col a:hover { color: #fff; }
.footer__addr { color: rgba(255,255,255,0.4); font-size: 13px; margin-top: 8px; }

.footer__bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p { color: rgba(255,255,255,0.45); font-size: 13px; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.footer__socials a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer__socials svg { width: 18px; height: 18px; }

/* ============ Reveal animation ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .hero__slide { transition: opacity .2s linear; }
  .gradient-text, .gradient-text--light { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  :root { --side: 28px; }
  .nav { display: none; }
  .burger { display: inline-flex; }

  .events { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .publication-grid { grid-template-columns: repeat(3, 1fr); }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .orgs { grid-template-columns: 1fr; }

  .promo { grid-template-columns: 1fr; gap: 28px; }
  .cta { grid-template-columns: 1fr; min-height: 0; }
  .cta__media { aspect-ratio: 16/9; position: relative; height: 280px; }
  .cta__media-grad { background: linear-gradient(180deg, transparent 0%, var(--ink) 95%); }

  .footer__top { grid-template-columns: 1fr; gap: 36px; }

  .hide-mobile { display: none; }
}
@media (max-width: 720px) {
  :root { --side: 20px; }
  .header { padding: 10px 0; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__text em { display: none; }

  .hero { padding: 10px 0 0; }
  .hero__stage { border-radius: 20px; min-height: 540px; }
  .hero__content { padding: 40px 0 90px; }
  .hero__meta { gap: 16px; }
  .hero__meta-divider { display: none; }
  .hero__controls { right: 16px; bottom: 16px; padding: 6px; }
  .hero__ctrl { width: 36px; height: 36px; }
  .hero__scroll { display: none; }

  .section__head { align-items: flex-start; }

  .facility-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
  .publication-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .events { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .cta__form { grid-template-columns: 1fr; }

  .trainers { grid-auto-columns: 70%; }
  .trainer__nav { display: none; }

  .tabs { order: 3; width: 100%; overflow-x: auto; padding: 4px; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 100px 28px 40px;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  padding: 18px 4px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:hover { color: #6AA6FF; }
