/* -------------------- CSS RESET (минимальный) -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  cursor: pointer;
}

/* -------------------- THEME TOKENS -------------------- */
:root {
  /* Palette from user attachment (RGB values shown as R G B in image) */
  --bg: rgb(39, 37, 31); /* dark charcoal */
  --panel: rgb(136, 123, 115); /* warm grey */
  --ink: rgb(255, 255, 255); /* white text */
  --muted: rgb(173, 169, 165); /* soft muted */
  --brand: rgb(255, 121, 39); /* orange (255,121,39) */
  --brand-2: rgb(236, 102, 8); /* darker orange (236,102,8) */
  --accent: rgb(255, 192, 0); /* yellow accent (255,192,0) */
  --danger: rgb(255, 99, 71); /* subtle red */
  --ok: rgb(54, 211, 153);
  --grid: rgba(255, 255, 255, 0.04);
  --glass: rgba(255, 255, 255, 0.04);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --blur: 14px;
  --outline: 1px solid rgba(255, 255, 255, 0.08);
  --link: var(--brand);
  --link-hover: rgba(255, 121, 39, 0.95);
}
@media (prefers-color-scheme: light) {
  :root {
    /* light-mode adaptations from palette */
    --bg: rgb(216, 222, 224); /* very light grey */
    --panel: #ffffff;
    --ink: rgb(17, 24, 32);
    --muted: rgb(120, 116, 112);
    --brand: rgb(255, 121, 39);
    --brand-2: rgb(236, 102, 8);
    --accent: rgb(255, 192, 0);
    --grid: rgba(0, 0, 0, 0.05);
    --glass: rgba(0, 0, 0, 0.04);
    --outline: 1px solid rgba(0, 0, 0, 0.06);
    --link: var(--brand);
    --link-hover: rgba(236, 102, 8, 0.95);
  }
}
[data-theme="dark"]:root {
  --bg: rgb(39, 37, 31);
  --panel: rgb(68, 66, 64);
  --ink: rgb(255, 255, 255);
  --muted: rgb(173, 169, 165);
  --brand: rgb(255, 121, 39);
  --brand-2: rgb(236, 102, 8);
  --accent: rgb(255, 192, 0);
  --grid: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.04);
  --outline: 1px solid rgba(255, 255, 255, 0.08);
  --link: var(--brand);
  --link-hover: rgba(255, 121, 39, 0.95);
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(
      1200px 800px at 80% -10%,
      rgba(97, 210, 255, 0.15),
      transparent 50%
    ),
    radial-gradient(
      800px 600px at -20% 20%,
      rgba(124, 255, 178, 0.1),
      transparent 60%
    ),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* -------------------- NAV -------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(var(--blur));
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}
[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.85);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  /* header logo should be transparent (use the provided image) */
  background: transparent;
  box-shadow: none;
  outline: none;
}
.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand h1 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.3px;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel);
  outline: var(--outline);
  box-shadow: var(--shadow);
}
.chip button {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-weight: 600;
}
.chip .sep {
  width: 1px;
  height: 18px;
  background: var(--grid);
}

/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  padding: 110px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.title {
  font-size: clamp(28px, 5vw, 60px);
  margin: 0 0 12px;
  line-height: 1.1;
  font-weight: 900;
}
.subtitle {
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 18px);
  margin: 0 0 22px;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  color: #00101a;
  font-weight: 800;
  border: 0;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  outline: var(--outline);
}
.hero-visual {
  position: relative;
  height: clamp(280px, 46vw, 520px);
  border-radius: var(--radius);
  overflow: hidden;
  outline: var(--outline);
  box-shadow: var(--shadow);
}
.hero-visual .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}

/* Placeholder media block */
.ph-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  /* simplified/plain background so embedded video sits flush */
  background: transparent;
}
[data-theme="light"] .ph-media {
  background: linear-gradient(
      to bottom right,
      rgba(0, 87, 184, 0.08),
      rgba(43, 182, 115, 0.05)
    ),
    repeating-linear-gradient(0deg, var(--grid) 0 2px, transparent 2px 60px),
    #f1f5fb;
}
.ph-media span {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Responsive video/embed (16:9) */
.responsive-embed {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  /* remove shadow/outline so video feels flat */
  box-shadow: none;
  outline: none;
}
.responsive-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Compact layout for the media section: reduce vertical footprint */
#media .card {
  padding: 18px; /* less internal padding so cards are shorter */
}
#media .hero-visual {
  /* make the media visual smaller in height inside the media section */
  height: clamp(140px, 28vw, 260px);
  border-radius: 12px;
}
#media .responsive-embed {
  max-width: 680px; /* reduce max width so height is smaller */
}

/* -------------------- SECTION CARD -------------------- */
section {
  padding: 70px 0;
  position: relative;
}
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0)
  );
  border-radius: var(--radius);
  outline: var(--outline);
  padding: 28px;
  box-shadow: var(--shadow);
}
.section-title {
  font-size: clamp(22px, 3.5vw, 36px);
  margin: 0 0 18px;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  background: var(--panel);
  outline: var(--outline);
}
.metric .big {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
}
.metric .muted {
  color: var(--muted);
}

/* -------------------- TIMELINE -------------------- */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--brand), var(--brand-2));
  border-radius: 2px;
}
.tl-item {
  margin: 0 0 22px;
}
.tl-head {
  font-weight: 800;
  margin-bottom: 6px;
}
.tl-body {
  color: var(--muted);
}

/* -------------------- MEDIA GALLERY -------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.g1 {
  grid-column: span 7;
}
.g2 {
  grid-column: span 5;
}
.g3 {
  grid-column: span 4;
}
.g4 {
  grid-column: span 8;
}
.tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  outline: var(--outline);
  min-height: 160px;
}
.tile .label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}
/* Make images inside gallery tiles fill the tile and crop (cover) the area */
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
[data-theme="light"] .tile .label {
  background: rgba(255, 255, 255, 0.65);
  color: #0b0f17;
}

/* -------------------- FOOTER -------------------- */
footer {
  padding: 60px 0 90px;
  color: var(--muted);
}

/* -------------------- PARTICLE BACKGROUND -------------------- */
canvas.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
}

/* -------------------- FX -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .g1,
  .g2,
  .g3,
  .g4 {
    grid-column: span 12;
  }
  .nav-inner {
    padding: 14px 0;
  }
}
