@font-face { font-family: "Furore"; src: url("assets/fonts/Furore.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Play"; src: url("assets/fonts/Play-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Play"; src: url("assets/fonts/Play-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #080014;
  --bg-soft: #11051f;
  --card: rgba(32, 19, 51, .76);
  --card-strong: #1a0d2d;
  --line: rgba(213, 198, 242, .16);
  --text: #f5f2fb;
  --muted: #bdb5cc;
  --lavender: #c9d4ff;
  --accent: #bd16dd;
  --accent-2: #8b34ff;
  --cyan: #65dcff;
  --container: 1240px;
  --display: "Furore", sans-serif;
  --subtitle: "Play", sans-serif;
  --body: "Montserrat", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--body);
  background:
    radial-gradient(circle at 8% 6%, rgba(117, 35, 207, .26), transparent 25rem),
    radial-gradient(circle at 92% 33%, rgba(181, 0, 209, .15), transparent 30rem),
    var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.page-shell { overflow: hidden; }
.container { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }

.site-header {
  height: 140px;
  position: relative;
  z-index: 5;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.header-logo { display: block; width: 235px; flex: 0 0 auto; }
.header-logo img { display: block; width: 100%; height: auto; }
.header-partners { display: flex; align-items: center; justify-content: flex-end; gap: 40px; margin: 0; padding: 0; list-style: none; }
.header-partners li { display: flex; align-items: center; justify-content: center; }
.header-partners img { width: auto; height: 51px; max-width: 165px; object-fit: contain; }
.header-partners li:last-child img { width: 46px; }

.hero { padding: 88px 0 108px; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(176,73,255,.5), transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .8fr); align-items: center; gap: 74px; }
h1, h2, h3, p { margin-top: 0; }
.hero-copy { min-width: 0; }
h1 { max-width: 800px; margin-bottom: 28px; color: #fff; font: 400 clamp(40px, 3.25vw, 60px)/1.16 var(--display); letter-spacing: .05em; text-transform: uppercase; }
h1 em { color: #b5c5fc; font-style: normal; }
.hero-copy > p { max-width: 675px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-width: 285px; margin-top: 18px; padding: 19px 28px; border-radius: 8px; background: linear-gradient(105deg, #cb10c9, #8c18ff); font: 700 16px/1.35 var(--subtitle); box-shadow: 0 0 28px rgba(178, 0, 238, .3); }

.hero-visual { position: relative; aspect-ratio: 1 / .94; min-height: 500px; }
.visual-card { position: absolute; border: 1px solid rgba(207,187,247,.2); border-radius: 24px; background: linear-gradient(145deg, rgba(68,43,97,.76), rgba(23,11,43,.88)); box-shadow: 0 30px 80px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(18px); }
.visual-card-main { inset: 6% 5% 7% 10%; overflow: hidden; transform: rotate(2deg); }
.visual-card-main::before { content: ""; position: absolute; width: 350px; height: 350px; left: 50%; top: 45%; translate: -50% -50%; background: radial-gradient(circle, rgba(76,202,255,.24), transparent 65%); }
.visual-topline { display: flex; justify-content: space-between; padding: 30px; color: #c8badd; font-size: 11px; letter-spacing: .18em; }
.visual-card-main p { position: absolute; left: 32px; bottom: 25px; margin: 0; color: #ded7ea; font-size: 13px; line-height: 1.55; letter-spacing: .08em; text-transform: uppercase; }
.neural-core { position: absolute; left: 50%; top: 46%; width: 210px; height: 210px; translate: -50% -50%; }
.core-ring { position: absolute; inset: 0; border: 1px solid rgba(95,223,255,.54); border-radius: 43% 57% 61% 39% / 51% 38% 62% 49%; box-shadow: 0 0 26px rgba(61,213,255,.16); }
.ring-a { animation: spin 16s linear infinite; }
.ring-b { inset: 26px; border-color: rgba(233,48,255,.64); border-radius: 60% 40% 35% 65% / 48% 64% 36% 52%; animation: spin 12s linear infinite reverse; }
.core-center { position: absolute; inset: 58px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7fe6ff, #7c25f0 50%, #24033c 72%); font: 800 33px/1 var(--display); box-shadow: 0 0 50px rgba(123,63,255,.6); }
.visual-card-small { width: 136px; height: 104px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 16px; }
.visual-card-small span { color: #baafc9; font-size: 9px; letter-spacing: .15em; }
.visual-card-small b { font: 800 30px/1 var(--display); color: var(--lavender); }
.small-one { right: -5%; top: 12%; transform: rotate(7deg); }
.small-two { left: 0; bottom: 1%; transform: rotate(-8deg); }
.orbit { position: absolute; border: 1px solid rgba(195,57,255,.23); border-radius: 50%; }
.orbit-one { width: 470px; height: 470px; right: -18%; top: -8%; }
.orbit-two { width: 250px; height: 250px; left: -5%; bottom: -6%; }
@keyframes spin { to { transform: rotate(360deg); } }

.about { padding: 106px 0; background: rgba(255,255,255,.018); }
.about-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
h2 { margin-bottom: 0; color: #fff; font: 400 48px/60px var(--display); letter-spacing: .05em; text-transform: uppercase; }
.about h2 {max-width: 360px;}
.about-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; color: var(--muted); font-size: 17px; line-height: 1.68; }
.about-copy p { margin-bottom: 0; }

.materials { padding: 112px 0 130px; }
.section-heading { margin-bottom: 54px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.module-card { position: relative; min-height: 525px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(22,10,38,.68); overflow: hidden; transition: transform .28s ease, border-color .28s ease; }
.module-card:hover { transform: translateY(-4px); border-color: rgba(192,82,255,.48); }
.module-art { position: relative; height: 240px; overflow: hidden; border-radius: 15px; background-color: #2b1840; }
.module-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.module-card:hover .module-art img { transform: scale(1.035); }
.module-content { padding: 26px 10px 9px; }
.module-content h3 { margin-bottom: 14px; color: #dcdcf0; font: 400 28px/30px var(--display); letter-spacing: .05em; text-transform: uppercase; }
.module-description { min-height: 48px; margin-bottom: 25px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.resource-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.resource-button { min-width: 0; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; padding: 13px 12px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); cursor: pointer; transition: .22s ease; }
.resource-button:hover { background: rgba(159,40,255,.14); border-color: rgba(194,103,255,.45); }
.resource-button small { display: block; margin-bottom: 4px; color: #958ba6; font-size: 9px; letter-spacing: .05em; }
.resource-button span:not(.resource-icon) { min-width: 0; font: 700 12px/1.15 var(--subtitle); }
.resource-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: rgba(173,37,244,.17); color: #e49aff; font-size: 13px; }
.slides-icon { color: #8ee7ff; background: rgba(37,183,244,.13); font-size: 20px; }

.site-footer { padding: 72px 0 30px; background: rgba(26,1,50,.94); backdrop-filter: blur(5px); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 56px; padding-bottom: 44px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font: 400 16px/1.35 var(--subtitle); }
.footer-column h2 { margin: 14px 0 4px; font: 400 22px/1.3 var(--subtitle); letter-spacing: 0; text-transform: uppercase; }
.footer-column a { transition: color .2s ease; }
.footer-column a:hover { color: #c618d9; }
.footer-logo { display: block; width: 250px; margin: 0 0 20px 0; }
.footer-logo img { display: block; width: 100%; }
.contact-row { display: flex; align-items: center; gap: 16px; }
.contact-row img { width: 22px; height: 22px; object-fit: contain; }
.contact-row em { color: #c618d9; font-style: normal; }
.footer-programs { gap: 8px; }
.footer-partners { display: flex; align-items: center; justify-content: center; gap: 50px; min-height: 92px; padding: 28px 0 20px; border-top: 1px solid rgba(255,255,255,.32); }
.footer-partners img { width: auto; height: 44px; max-width: 180px; object-fit: contain; }
.footer-copy { color: #797188; text-align: center; }
.footer-copy p { margin: 0 0 4px; font: 400 18px/1.35 var(--subtitle); }
.footer-copy small { font-size: 12px; line-height: 1.45; }

/* ── Viewer: полная высота браузера, без внешнего скролла ── */
.viewer {
  width: min(1200px, calc(100% - 32px));
  max-height: calc(100dvh - 24px);
  max-width: none;
  padding: 0;
  border: 1px solid rgba(210,186,255,.25);
  border-radius: 20px;
  color: var(--text);
  background: #120821;
  box-shadow: 0 30px 100px rgba(0,0,0,.75);
  overflow: hidden;
}
.viewer::backdrop { background: rgba(3,0,8,.78); backdrop-filter: blur(8px); }

/* Shell — три строки: header (фикс) | stage (растёт) | footer (фикс) */
.viewer-shell {
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.viewer-header, .viewer-footer { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; }
.viewer-header { border-bottom: 1px solid var(--line); }
.viewer-header span { color: #af62f5; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.viewer-header h2 { margin-top: 6px; font-size: 19px; text-transform: none; }
.viewer-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 26px; cursor: pointer; }

/* Stage — растягивается, внутри нет скролла */
.viewer-stage { flex: 1; min-height: 0; display: flex; align-items: stretch; justify-content: stretch; padding: 0; background: #090311; overflow: hidden; }

/* Видео */
.video-preview { width: 100%; aspect-ratio: 16/9; margin: auto; position: relative; overflow: hidden; border-radius: 0; background: #09040e; }
.video-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Slides viewer ── */
/* Занимает весь stage, без переполнения */
.slides-viewer { width: 100%; height: 100%; display: grid; grid-template-columns: 180px 1fr; grid-template-rows: 1fr; overflow: hidden; background: #0d0719; }

/* Панель миниатюр — скроллируется вертикально */
.slide-thumbs-panel { background: #0a0415; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.slide-thumbs-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 10px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; scrollbar-color: rgba(192,82,255,.4) transparent; }
.slide-thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: #1a0d2d; cursor: pointer; overflow: hidden; transition: border-color .18s; flex-shrink: 0; }
.slide-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; pointer-events: none; }
.slide-thumb.active { border-color: #c73bea; }
.slide-thumb:hover:not(.active) { border-color: rgba(194,103,255,.45); }

/* Правая часть — слайд + навигация */
.slide-stage-wrap { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.slide-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: #090311; overflow: hidden; }
.slide-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,.6); object-fit: contain; }
.slide-nav { flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 10px 20px; border-top: 1px solid var(--line); background: #0d0719; }
.slide-nav-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(173,37,244,.12); color: #e49aff; font-size: 18px; cursor: pointer; transition: .2s ease; }
.slide-nav-btn:hover { background: rgba(173,37,244,.28); border-color: rgba(194,103,255,.6); }
.slide-counter { color: var(--muted); font: 700 13px/1 var(--subtitle); min-width: 60px; text-align: center; }
.slides-error { display: flex; align-items: center; justify-content: center; width: 100%; color: var(--muted); font-size: 15px; }

.viewer-footer { border-top: 1px solid var(--line); color: #968ba5; font-size: 12px; }
.viewer-done { padding: 10px 18px; border: 0; border-radius: 8px; background: linear-gradient(105deg,#bd18cf,#7e2cf4); color: #fff; cursor: pointer; }

@media (max-width: 1100px) {
  .container { width: min(calc(100% - 72px), var(--container)); }
  .header-logo { width: 215px; }
  .header-partners { gap: 24px; }
  .header-partners img { height: 44px; max-width: 135px; }
  .hero-grid { grid-template-columns: 1.05fr .8fr; gap: 38px; }
  .hero-visual { min-height: 440px; }
  .small-one { right: -2%; }
  .module-card { min-height: 560px; }
  .resource-actions { grid-template-columns: 1fr; }
  .module-description { min-height: 66px; }
}

@media (max-width: 850px) {
  .site-header { height: 170px; }
  .header-inner { flex-direction: column; justify-content: center; gap: 0; }
  .header-logo { width: 225px; }
  .header-partners { margin-top: -18px; }
  .header-partners img { height: 42px; max-width: 120px; }
  .hero { padding: 64px 0 82px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 680px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 42px; }
  .about-copy { gap: 28px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 0; display: grid; grid-template-columns: 44% 1fr; gap: 18px; }
  .module-art { height: 100%; min-height: 330px; }
  .module-content { padding: 32px 16px 18px 4px; }
  .module-description { min-height: 0; }
  .resource-actions { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; gap: 32px; }
  .footer-logo { margin-left: -38px; }
  .footer-partners { flex-wrap: wrap; }
}

@media (max-width: 660px) {
  h2 { font-size: 40px; line-height: 42px; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .site-header { height: 150px; }
  .header-logo { width: 205px; }
  .header-partners { width: 100%; justify-content: center; gap: 14px; margin-top: -17px; }
  .header-partners img { height: 34px; max-width: 84px; }
  .header-partners li:last-child img { width: 34px; }
  .hero { padding: 48px 0 68px; }
  h1 { font-size: clamp(28px, 7.4vw, 33px); line-height: 1.18; letter-spacing: .04em; }
  .hero-copy > p { font-size: 15px; line-height: 1.58; }
  .primary-button { width: 100%; min-width: 0; margin-top: 12px; }
  .hero-visual { width: 100%; min-height: 365px; }
  .visual-card-main { inset: 5% 1% 7% 5%; }
  .visual-card-small { width: 100px; height: 80px; padding: 13px; }
  .visual-card-small b { font-size: 23px; }
  .small-one { right: -2%; }
  .neural-core { width: 150px; height: 150px; }
  .core-center { inset: 42px; font-size: 23px; }
  .visual-card-main p { left: 22px; bottom: 20px; font-size: 10px; }
  .about { padding: 72px 0; }
  .about-copy { grid-template-columns: 1fr; font-size: 15px; }
  .materials { padding: 76px 0 88px; }
  .section-heading { margin-bottom: 34px; }
  .module-card { display: block; padding: 12px; border-radius: 17px; }
  .module-art { height: 205px; min-height: 0; }
  .module-content { padding: 22px 7px 6px; }
  .module-content h3 { font-size: 22px; }
  .module-description { margin-bottom: 20px; }
  .site-footer { padding-top: 58px; }
  .footer-main { gap: 28px; padding-bottom: 38px; }
  .footer-column { font-size: 15px; }
  .footer-column h2 { font-size: 20px; }
  .footer-logo { width: 225px; margin-left: 0; }
  .footer-partners { gap: 24px; padding-block: 26px; }
  .footer-partners img { height: 36px; max-width: 130px; }
  .footer-copy p { font-size: 15px; }
  .footer-copy small { font-size: 10px; }
  /* Slides на мобиле: только слайд + стрелки, миниатюры скрыты */
  .viewer { max-height: calc(100dvh - 12px); border-radius: 14px; }
  .viewer-shell { height: calc(100dvh - 12px); max-height: calc(100dvh - 12px); }
  .slides-viewer { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .slide-thumbs-panel { display: none; }
  .slide-stage { padding: 10px; touch-action: pan-y; }
  .slide-stage img { border-radius: 4px; user-select: none; -webkit-user-select: none; }
  .slide-nav { padding: 10px 16px; gap: 16px; }
  .slide-nav-btn { width: 44px; height: 44px; font-size: 20px; }
  .viewer-header { padding: 12px 14px; }
  .viewer-header h2 { font-size: 14px; }
  .viewer-footer > span { display: none; }
  .viewer-footer { justify-content: flex-end; padding: 10px 14px; }
}

@media (max-width: 550px) {
  h2 { font-size: 35px; line-height: 37px; }
}

@media (max-width: 400px) {
  h2 { font-size: 30px; line-height: 32px; }
}

@media (max-width: 380px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-partners { gap: 10px; }
  .header-partners img { height: 31px; max-width: 78px; }
  h1 { font-size: 25px; letter-spacing: .035em; }
  .hero-copy > p { font-size: 14px; }
  .hero-visual { min-height: 330px; }
  .visual-card-main { right: 0; }
  .visual-topline { padding: 20px; }
  .module-content h3 { font-size: 20px; }
  .resource-button { padding: 11px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
