/* ============ KHVYLIA — новий сайт ============ */
/* Палітра: фірмовий синій фон + білий текст (як на оригінальному сайті) */
:root {
  --blue: #5896de;         /* основний фірмовий синій фон */
  --blue-light: #7cb0e8;   /* світліший відтінок */
  --blue-deep: #3d77bf;    /* насиченіший синій */
  --navy: #1c3d68;         /* темно-синій — футер, акценти */
  --white: #ffffff;
  --foam: rgba(255, 255, 255, 0.16); /* напівпрозорі панелі на синьому */
  --card-text: #1c3d68;    /* текст на білих картках */
  --ink: #0a1a26;          /* темний фон секцій — як в айдентиці */
  --teal: #7fd4e6;         /* бірюзові переливи текстури */
  --ice: #d2f2fa;          /* найсвітліший крижаний відтінок патерну */
  --radius: 22px;
  --shadow: 0 14px 44px rgba(4, 16, 26, 0.35);
  /* Monument Extended — фірмовий шрифт айдентики (латиниця + цифри).
     У цій версії немає кирилиці, тому українські літери
     автоматично рендеряться жирним Montserrat — як в інста-айдентиці. */
  --font-display: 'Monument Extended', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

@font-face {
  font-family: 'Monument Extended';
  src: url('fonts/MonumentExtended-Regular.woff2') format('woff2'),
       url('fonts/MonumentExtended-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Monument Extended';
  src: url('fonts/MonumentExtended-Ultrabold.woff2') format('woff2'),
       url('fonts/MonumentExtended-Ultrabold.otf') format('opentype');
  font-weight: 700 900;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

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

h1, h2, h3, .display {
  font-family: var(--font-display); font-weight: 800; line-height: 1.12;
  letter-spacing: 0.01em;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- NAV: лого по центру, лінки зліва, соцмережі справа ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px 4vw;
}
.nav::before { /* крижане скло (найсвітліший відтінок патерну), розчиняється вниз */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 260%;
  z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(210, 242, 250, 0.30), rgba(210, 242, 250, 0));
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
}
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; justify-self: start; }
.nav-links a {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.92; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav .logo { justify-self: center; display: block; }
.nav .logo img { height: 17px; width: auto; } /* −30% */
.nav-socials { justify-self: end; display: flex; gap: 16px; align-items: center; }
.nav-socials a { display: flex; opacity: 0.92; transition: opacity 0.2s, transform 0.2s; }
.nav-socials a:hover { opacity: 1; transform: translateY(-2px); }
.nav-socials svg { width: 22px; height: 22px; fill: var(--white); }
.burger { display: none; background: none; border: none; cursor: pointer; justify-self: start; }
.burger svg { width: 30px; height: 30px; stroke: var(--white); }

/* ---------- Перемикач мови ---------- */
.lang-toggle {
  background: none; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px;
  padding: 5px 13px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.15); }
.nav-socials .lang-toggle { margin-left: 14px; }
.lang-mobile { display: none; }
@media (max-width: 900px) {
  .nav-socials .lang-desktop { display: none; }
  .lang-mobile { display: block; }
}

/* ---------- HERO з відео ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  isolation: isolate; /* щоб відео (z:-2) не провалилось під фіксовану текстуру */
}
.hero h1 .h1-logo {
  display: block; margin: 0 auto 14px;
  height: clamp(19px, 3vw, 42px); width: auto; /* −50% */
  filter: drop-shadow(0 4px 30px rgba(28, 61, 104, 0.45));
}
.hero-videos { position: absolute; inset: 0; z-index: -2; }
.hero-videos video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 2.4s ease-in-out; /* повільне «перебивання» ракурсів */
}
.hero-videos video.active { opacity: 1; }
.hero::after { /* вуаль: зверху світла крига з патерну, донизу все темніше */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(210, 242, 250, 0.38) 0%,
    rgba(127, 212, 230, 0.12) 35%,
    rgba(10, 26, 38, 0.55) 75%,
    rgba(10, 26, 38, 1) 100%);
}
.hero::before { /* liquid glass: розмитий перехід від відео до контенту */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: 1;
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  mask-image: linear-gradient(to top, black 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 45%, transparent 100%);
  pointer-events: none;
}
.hero-inner { padding: 120px 20px 80px; position: relative; z-index: 2; }
.hero .kicker {
  display: inline-block; margin-bottom: 22px;
  padding: 8px 20px; border-radius: 999px;
  background: var(--foam); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  font-weight: 800; text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(28, 61, 104, 0.45);
}
.hero .sub {
  margin: 26px auto 40px; max-width: 640px;
  font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 500;
  text-shadow: 0 2px 16px rgba(28, 61, 104, 0.4);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 15px 34px; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-primary { background: var(--white); color: var(--navy); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-ghost {
  background: var(--foam); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.45); color: var(--white);
}
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.85;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- Біжучий рядок: скляна стрічка, крізь яку видно текстуру ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  padding: 18px 0; color: rgba(255, 255, 255, 0.92);
  background: rgba(127, 212, 230, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee-track { display: inline-block; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.15em;
  margin-right: 60px; opacity: 0.9;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Скляні (liquid glass) панелі — спільний стиль ---------- */
.glass, .stat, .service-card, .info-card, .course {
  background: var(--foam);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--white);
}

/* ---------- Фірмова «шовкова» текстура — ОДИН безшовний фон на всю сторінку ---------- */
/* Фіксований шар за контентом: секції прозорі, тому жодних ліній між блоками */
.page-texture {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  background: var(--ink);
}
.page-texture canvas { /* генеративний живий шовк: реагує на курсор */
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated;
  filter: saturate(1.08);
}
.page-texture .silk { /* фолбек, якщо canvas недоступний */
  position: absolute; inset: -14%;
  background: url('textures/silk.jpg') center / cover no-repeat;
  animation: silk-drift 38s ease-in-out infinite alternate;
  will-change: transform;
  filter: brightness(1.22) saturate(1.05);
}
.page-texture .darken { /* що нижче скролиш — то темніше (керується з JS) */
  position: absolute; inset: 0;
  background: #04090f; opacity: 0;
}
.page-texture .silk.b { /* другий шар пливе у протифазі — ефект живої тканини */
  opacity: 0.55; mix-blend-mode: screen;
  animation: silk-drift-b 55s ease-in-out infinite alternate;
}
@keyframes silk-drift {
  0%   { transform: translate(-2.5%, -2%) scale(1.06) rotate(0.4deg); }
  50%  { transform: translate(2%, 2.5%)   scale(1.14) rotate(-0.8deg); }
  100% { transform: translate(-1.5%, 1.8%) scale(1.08) rotate(0.6deg); }
}
@keyframes silk-drift-b {
  0%   { transform: translate(2%, 2%)    scale(1.18) rotate(180deg); }
  50%  { transform: translate(-2.5%, -1.5%) scale(1.1) rotate(179deg); }
  100% { transform: translate(1.5%, -2.5%)  scale(1.15) rotate(181deg); }
}
.page-texture .grain { /* зернистість, як на постерах */
  position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  background-size: 280px;
}

.section { position: relative; background: transparent; }
.section > .container { position: relative; z-index: 1; }

/* ---------- Секції ---------- */
.section { padding: 110px 0; }
.section-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; opacity: 0.85; margin-bottom: 14px;
}
.section h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 26px; text-transform: uppercase; }
.section .lead { max-width: 720px; font-size: 1.08rem; }

/* Про нас */
.about { background: transparent; }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-media { position: relative; }

/* ---------- Колода фото (стопка карток зі зміщенням + стрілки) ---------- */
.deck { position: relative; width: 100%; aspect-ratio: 4 / 5; }
.deck img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.25, 0.7, 0.25, 1), opacity 0.6s;
}
.deck img.d0 { opacity: 1; transform: none; z-index: 5; }
.deck img.d1 { opacity: 1; transform: translate(4.5%, 2.5%) rotate(2.2deg) scale(0.97); z-index: 4; }
.deck img.d2 { opacity: 1; transform: translate(-4.5%, 4.5%) rotate(-2.4deg) scale(0.94); z-index: 3; }
.deck img.dh { opacity: 0; transform: translateY(6%) scale(0.9); z-index: 1; }
.deck-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer;
  opacity: 0.65; transition: opacity 0.2s, background 0.2s;
}
.deck-arrow:hover { opacity: 1; background: rgba(255, 255, 255, 0.3); }
.deck-arrow.prev { left: -14px; }
.deck-arrow.next { right: -14px; }

/* ---------- Автослайдшоу (без контролів) ---------- */
.autoslide { position: relative; width: 100%; height: 100%; min-height: inherit; }
.autoslide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.autoslide img.active { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.stat {
  border-radius: var(--radius); padding: 30px 22px;
  text-align: center; box-shadow: var(--shadow);
}
.stat .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--white); }
.stat .cap { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Сервіси (інформативний блок, стиль Marsea) ---------- */
.services { background: transparent; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 50px; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.service-media {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow); min-height: 340px;
}
.service-card .card-sub { font-size: 0.92rem; opacity: 0.85; margin-top: -8px; }
.service-media img, .service-media video { width: 100%; height: 100%; object-fit: cover; }
.media-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; }
.media-collage img { height: 100%; }
.service-card {
  position: relative; border-radius: var(--radius);
  padding: 38px 34px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.25s;
}
.service-card:hover { transform: translateY(-6px); }
.service-card .index {
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  color: var(--white); opacity: 0.75; letter-spacing: 0.2em;
}
.service-card h3 { font-size: 1.45rem; text-transform: uppercase; }
.service-card ul { list-style: none; display: grid; gap: 9px; }
.service-card li { padding-left: 26px; position: relative; font-size: 0.97rem; }
.service-card li::before {
  content: '~'; position: absolute; left: 0; top: 0;
  color: var(--white); font-weight: 800;
}
.service-card .card-link {
  margin-top: auto; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--white);
}
.service-card .card-link::after { content: ' →'; }
.service-card:hover .card-link { text-decoration: underline; }

/* ---------- Релізи: 3D-фліп картки 3×2 з обкладинками з Bandcamp ---------- */
.releases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.release {
  position: relative; perspective: 1400px; cursor: pointer;
}
.release .flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.25, 0.7, 0.25, 1);
}
.release:hover .flip-inner,
.release:focus-visible .flip-inner,
.release.flipped .flip-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow);
}
.flip-front {
  display: flex; flex-direction: column;
  background: var(--foam);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.flip-front img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.release .release-info { padding: 16px 22px 20px; }
.release .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.release h3 { margin: 6px 0 0; font-size: 1.05rem; }

.flip-back { /* зворотний бік: прев'ю-плеєр і лінк */
  position: absolute; inset: 0;
  transform: rotateY(180deg);
  background: rgba(8, 20, 32, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px;
}
.flip-back .tag { opacity: 0.7; }
.flip-back h3 { font-size: 1.1rem; }
.flip-back iframe {
  width: 100%; height: 120px; border: 0; border-radius: 12px;
  margin-top: auto;
}
.flip-back .platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.flip-back .platforms a {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 5px 11px; border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.flip-back .platforms a:hover { background: var(--teal); color: var(--ink); border-color: var(--teal); }

/* ---------- Освіта ---------- */
.edu { background: transparent; }
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 50px; }
.course {
  border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.course .badge {
  align-self: flex-start; background: var(--white); color: var(--navy);
  border-radius: 999px; padding: 6px 16px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
}
.course h3 { font-size: 1.3rem; }
.course .meta { font-size: 0.85rem; font-weight: 700; opacity: 0.9; }
.course p { font-size: 0.95rem; }
.course .btn { align-self: flex-start; margin-top: auto; padding: 12px 26px; }

/* ---------- Онлайн-курси: фліп-картка з формою покупки ---------- */
.course-flip { position: relative; perspective: 1400px; background: none; border: none; box-shadow: none; backdrop-filter: none; padding: 0; }
.course-flip .cflip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.25, 0.7, 0.25, 1);
}
.course-flip.flipped .cflip-inner { transform: rotateY(180deg); }
.cflip-front, .cflip-back {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--foam);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.cflip-front { position: relative; min-height: 100%; }
.cflip-back {
  position: absolute; inset: 0;
  transform: rotateY(180deg);
  background: rgba(8, 20, 32, 0.9);
  overflow: auto;
}
.course-actions { margin-top: auto; display: flex; align-items: center; gap: 22px; }
.text-link { /* текстова кнопка з підкресленням, як лінки в шапці */
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--white);
  text-decoration: underline; text-underline-offset: 5px;
  opacity: 0.9; transition: opacity 0.2s;
}
.text-link:hover { opacity: 1; }

/* Бейдж «час-ти-ни» у правому верхньому куті */
.mono-badge {
  position: absolute; top: 14px; right: 14px;
  width: 66px; height: 66px;
}
.mono-badge svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s;
}
.course-flip:hover .mono-badge svg { transform: rotate(-8deg); }

/* Форма покупки */
.buy-form { display: flex; flex-direction: column; gap: 10px; }
.buy-form input {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1); color: #fff;
  font-family: var(--font-body); font-size: 0.95rem; outline: none;
  transition: border-color 0.2s;
}
.buy-form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.buy-form input:focus { border-color: var(--teal); }
.buy-form .form-note { font-size: 0.8rem; opacity: 0.85; min-height: 1.2em; }
.cflip-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18); color: #fff;
  font-size: 1rem; font-weight: 700; cursor: pointer;
}

/* Фірмові кнопки monobank */
.mono-pay { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.mono-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 20px; border-radius: 14px;
  border: none; cursor: pointer;
  background: #000; color: #fff;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  transition: transform 0.15s, opacity 0.2s;
}
.mono-btn:hover { transform: translateY(-2px); }
.mono-btn svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.mono-btn.parts { background: #fff; color: #000; border: 1.5px solid #000; }
.mono-btn.parts svg { fill: #000; }
.mono-btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- CTA-стрічка з відео (края розмиваються в текстуру) ---------- */
.video-cta {
  position: relative; padding: 150px 0; overflow: hidden; text-align: center; color: #fff;
  isolation: isolate;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
}
.video-cta video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.video-cta::after { content: ''; position: absolute; inset: 0; background: rgba(28, 61, 104, 0.5); z-index: -1; }
.video-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; margin-bottom: 30px; }

/* ---------- Футер: напівпрозорий, текстура продовжується ---------- */
.footer {
  background: rgba(6, 14, 24, 0.55); color: #fff; padding: 80px 0 34px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer .logo img { height: 20px; width: auto; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.6; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { text-decoration: underline; }
.footer .copy { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; opacity: 0.7; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Попап з акцією (як у Marsea) ---------- */
.promo-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28, 61, 104, 0.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.promo-overlay.show { opacity: 1; pointer-events: auto; }
.promo { /* liquid glass, як решта панелей */
  position: relative; width: min(520px, 92%);
  background: rgba(255, 255, 255, 0.16); color: var(--white);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 26px; padding: 46px 42px; box-shadow: 0 30px 80px rgba(28,61,104,0.45);
  transform: translateY(24px); transition: transform 0.4s;
}
.promo-overlay.show .promo { transform: translateY(0); }
.promo .kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.85; }
.promo h3 { font-size: 1.7rem; margin: 12px 0 18px; text-transform: uppercase; }
.promo .offer {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px; padding: 20px;
  margin-bottom: 14px;
}
.promo .offer strong { font-size: 1.2rem; }
.promo .offer .old { text-decoration: line-through; opacity: 0.6; margin-left: 8px; }
.promo .btn { width: 100%; text-align: center; margin-top: 10px; background: var(--white); color: var(--navy); }
.promo .btn:hover { background: var(--navy); color: var(--white); }
.promo-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22); color: var(--white); font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
}

/* ---------- Reveal-анімації ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Підсторінки ---------- */
.page-hero {
  position: relative; padding: 200px 0 120px; overflow: hidden; text-align: left;
  isolation: isolate;
}
.page-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(210,242,250,0.32), rgba(10,26,38,1));
}
.page-hero::before { /* liquid glass перехід, як на головній */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 1;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  mask-image: linear-gradient(to top, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); text-transform: uppercase; text-shadow: 0 4px 30px rgba(28,61,104,0.45); }
.page-hero .sub { max-width: 620px; margin-top: 20px; font-size: 1.1rem; font-weight: 500; }

.content-block { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 40px; }
.info-card {
  border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow);
}
.info-card h3 { font-size: 1.2rem; margin-bottom: 12px; text-transform: uppercase; }
.info-card p { font-size: 0.95rem; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  /* рівні бічні колонки → лого завжди точно по центру */
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav .logo { justify-self: center; }
  .burger { justify-self: start; }
  /* Меню ховається ПІД шапку і розкривається вниз горизонтальним рядом.
     Скляний фон шапки (::before має height у %) росте разом з нею автоматично. */
  .nav-links {
    position: static; grid-column: 1 / -1; grid-row: 2;
    width: 100%;
    flex-direction: row; flex-wrap: wrap;
    justify-content: center; align-items: center;
    gap: 10px 20px;
    max-height: 0; opacity: 0; overflow: hidden;
    margin: 0; padding: 0;
    transform: none;
    transition: max-height 0.45s cubic-bezier(0.25, 0.7, 0.25, 1), opacity 0.35s, margin 0.45s;
  }
  .nav-links.open {
    max-height: 120px; opacity: 1;
    margin-top: 16px; margin-bottom: 4px;
  }
  .nav-links a { font-size: 0.78rem; letter-spacing: 0.06em; }
  .burger { display: block; z-index: 110; }
  .about-grid, .services-grid, .edu-grid, .content-block, .service-row { grid-template-columns: 1fr; }
  .service-media { min-height: 260px; }
  .releases-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .releases-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .nav-socials svg { width: 19px; height: 19px; }
}
