:root { --accent: #C6FF4D; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #111;
  background: #fff;
  overflow-x: hidden;
}

/* ===== Шапка (headroom) ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #000;
  color: #fff;
  transition: transform .4s ease;
}
header.headroom--unpinned { transform: translateY(-100%); }
header.headroom--pinned { transform: translateY(0); }

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 26px; width: auto; display: block; }
.header__nav { display: flex; align-items: center; gap: 28px; }
.header__lang { position: relative; }
.lang-dropdown {
  position: absolute;
  top: 100%; right: -12px;
  margin-top: 16px;
  background: #111;
  border: 1px solid rgba(255,255,255,.15);
  min-width: 150px;
  padding: 6px 0;
  display: none;
  z-index: 300;
}
.lang-dropdown.is-open { display: block; }
.lang-dropdown button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; outline: none;
  color: #ccc; padding: 10px 20px; cursor: pointer; font-size: 14px;
  transition: color .2s ease, background .2s ease;
}
.lang-dropdown button:hover { color: #fff; background: rgba(255,255,255,.06); }
.lang-dropdown button.is-active { color: var(--accent); }
.header__toggle {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; outline: none; color: var(--accent);
  padding: 0; cursor: pointer; font-size: 14px;
  font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  transition: color .2s ease;
}
.header__toggle:hover {
  color: #fff;
}
.header__toggle svg { width: 18px; height: auto; flex-shrink: 0; }
.header__toggle .icon-close { display: none; }
body.oc-navigation .header__toggle .icon-burger { display: none; }
body.oc-navigation .header__toggle .icon-close { display: block; }

/* ===== Off-canvas меню ===== */
.off-canvas {
  position: fixed;
  top: 0; right: 0;
  width: 320px; height: 100%;
  background: #111;
  color: #fff;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 200;
  padding: 80px 40px;
}
body.oc-navigation .off-canvas { transform: translateX(0); }
.mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  z-index: 150;
}
body.oc-navigation .mask { opacity: 1; pointer-events: auto; }
.oc-close { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; margin-bottom: 40px; }
.navigation__level_1 { list-style: none; }
.navigation__level_1 li { margin-bottom: 20px; }
.navigation__level_1 a { color: #fff; text-decoration: none; font-size: 22px; transition: color .2s ease; }
.navigation__level_1 a:hover { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  display: flex;
  min-height: 100vh;
  padding-top: 0;
}
.hero__panel {
  width: 45%;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 60px;
}
.hero__eyebrow {
  letter-spacing: 2px;
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
  padding-left: 16px;
}
.hero__eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__title {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 24px;
  overflow: hidden;
}
.hero__text { color: #ccc; max-width: 420px; line-height: 1.5; }

.hero__media {
  width: 55%;
  overflow: hidden;
  position: relative;
}
.hero__media-inner {
  position: absolute;
  inset: -10% -10% -10% -10%;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-color: #0d0e10;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__slide.is-active { opacity: 1; }

.hero__slide-caption {
  position: absolute;
  left: 30px; bottom: 84px;
  z-index: 4;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  max-width: 60%;
}

.hero__controls {
  position: absolute;
  left: 30px; bottom: 30px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__nav-text {
  flex-shrink: 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  transition: color .2s ease;
}
.hero__nav-text:hover { color: var(--accent); }
.hero__timer {
  width: 140px; height: 1px;
  background: rgba(255,255,255,.35);
  position: relative;
  overflow: hidden;
}
.hero__timer-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: #fff;
}
.hero__timer-bar.is-animating { transition: width linear; }

/* ===== Пин-стек фото (карточки "снимаются" вверх по одной при скролле) ===== */
.stack {
  position: relative;
  height: 300vh;
}
.stack__viewport {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.stack__panel {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #111;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.stack__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,0) 55%);
}
.stack__panel:nth-child(1) { z-index: 3; }
.stack__panel:nth-child(2) { z-index: 2; }
.stack__panel:nth-child(3) { z-index: 1; }
.stack__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 60px;
  max-width: 640px;
}
.stack__content h3 { font-size: 34px; font-weight: 700; margin-bottom: 16px; }
.stack__content p { font-size: 16px; line-height: 1.6; color: #eee; }

/* ===== Split text блок ===== */
.split-block {
  padding: 140px 60px;
  max-width: 900px;
  margin: 0 auto;
}
.split-title {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 40px;
}
.split-subtext {
  font-size: 17px;
  line-height: 1.7;
  color: #444;
  max-width: 760px;
}

/* Общие классы для split-анимации (генерируются JS) */
.split-row { overflow: hidden; display: block; }
.word { display: inline-block; overflow: hidden; margin: 0 6px 0 0; }
.word span { display: inline-block; will-change: transform, opacity; }

/* ===== Направления (горизонтальная карусель) ===== */
.sectors {
  background: #0a0a0a;
  color: #fff;
  padding: 70px 60px 90px;
}
.sectors__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.sectors__head h2 { font-size: 32px; font-weight: 700; }
.sectors__head p { max-width: 480px; color: #aaa; font-size: 15px; line-height: 1.6; }
.sectors__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.sectors__track::-webkit-scrollbar { display: none; }
.sector-card { flex: 0 0 240px; }
.sector-card__media {
  aspect-ratio: 1/1;
  background-color: #222;
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
}
.sector-card__label { font-size: 16px; font-weight: 600; }
.sectors__nav {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 30px;
}
.sectors__arrow {
  background: none; border: none; outline: none;
  color: #fff; cursor: pointer; padding: 4px;
  transition: color .2s ease;
}
.sectors__arrow:hover { color: var(--accent); }
.sectors__arrow svg { width: 22px; height: 22px; }

/* ===== Новости ===== */
.news {
  background: #f0f0f0;
  padding: 70px 60px 90px;
}
.news__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid rgba(0,0,0,.15);
  padding-top: 24px;
  margin-bottom: 40px;
}
.news__head h2 { font-size: 32px; font-weight: 700; }
.news__more { color: #111; text-decoration: none; font-size: 14px; font-weight: 600; }
.news__more:hover { color: var(--accent); }
.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  gap: 30px;
}
.news-card { display: block; text-decoration: none; color: #111; }
.news-card__media {
  aspect-ratio: 4/3;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
}
.news-card__date { font-size: 13px; color: #777; margin-bottom: 8px; }
.news-card h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }

/* ===== Карточки ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 60px;
}
.card { will-change: transform, opacity; }
.card__media {
  aspect-ratio: 4/3;
  background-color: #e5e5e5;
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
}
.card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}
.card p { color: #555; font-size: 15px; line-height: 1.4; }

.contact {
  padding: 100px 60px;
  background: #f2f2f2;
  text-align: center;
}
.contact__title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact__title::after {
  content: "";
  display: block;
  width: 40px; height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
}
.contact p { margin-bottom: 8px; color: #444; }

@media (max-width: 768px) {
  .hero { flex-direction: column; }
  .hero__panel, .hero__media { width: 100%; }
  .hero__media { height: 50vh; }
  .hero__title { font-size: 32px; }
}
