:root{
  --bg:#F8FAFC;
  --bg-elev:#FFFFFF;
  --text:#0F172A;
  --muted:#6B7280;
  --brand:#6366F1;
  --brand-2:#8B5CF6;
  --card:#FFFFFF;
  --border:#E5E7EB;
  --ok:#0EA5E9;
  --warn:#D97706;
  --danger:#DC2626;
  --bg-gradient:linear-gradient(135deg,#EEF2FF 0%,#E0F2FE 40%,#F5F3FF 100%);
  --footer-gradient:linear-gradient(135deg,#1E293B 0%,#020617 100%);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg-gradient);
}

/* Включение/выключение кастомного VR-курсора */
.has-vr-cursor{
  cursor:none;
}

/* Небольшие анимации по умолчанию */
a, button, .btn, .card, .module-card, .module-download-links .btn{
  transition:
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .15s ease;
}

/* Контейнер */
.container{width:min(1200px,92%);margin-inline:auto}

/* Header */
.site-header{
  position:sticky;
  top:0;
  background:rgba(248,250,252,.92);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(148,163,184,.3);
  z-index:20;
}
.header-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.logo-link{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;cursor:pointer}
.logo-img{height:44px;width:auto;display:block;transition:transform .2s ease,filter .2s ease}
.logo-img:hover{transform:scale(1.04);filter:brightness(1.05)}
.header-title{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  font-size:.98rem;
  line-height:1.35;
  font-weight:600;
  color:var(--text);
  margin:0;
  max-width:calc(100% - 140px - 320px - 24px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
  pointer-events:none;
}
.header-right{display:flex;align-items:center;gap:8px;flex-shrink:0}
.site-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:16px}
.site-nav a{
  color:var(--text);
  text-decoration:none;
  padding:6px 10px;
  border-radius:999px;
  font-size:.9rem;
}
.site-nav a:hover{
  background:rgba(99,102,241,.08);
}
.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--border);
  color:var(--text);
  border-radius:999px;
  padding:6px 10px;
  font-size:.9rem;
}
@media (max-width:820px){
  .logo-img{height:36px}
}
@media (max-width:768px){
  .header-title{display:none}
}
@media (max-width:820px){
  .nav-toggle{display:inline-block}
  .site-nav{position:absolute;inset:60px 0 auto 0;padding:12px 4%;}
  .site-nav ul{
    flex-direction:column;
    background:var(--bg-elev);
    border:1px solid var(--border);
    border-radius:14px;
    padding:8px;
    display:none;
    box-shadow:0 18px 40px rgba(15,23,42,.18);
  }
  .site-nav.open ul{display:flex}
}

/* Hero — современный edtech-лендинг */
.hero{
  position:relative;
  overflow:hidden;
  min-height:42vh;
  display:flex;
  align-items:center;
}
.hero-bg{
  position:absolute;
  inset:0;
  background:transparent;
  opacity:1;
  pointer-events:none;
}
.hero-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.6) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.6) 1px,transparent 1px);
  background-size:48px 48px;
  opacity:.45;
}
.hero-inner{
  position:relative;
  z-index:1;
  padding:72px 0 56px;
  max-width:min(720px,92%);
}
.hero__title{
  font-size:clamp(2rem,5vw,3rem);
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.02em;
  margin:0 0 16px;
  color:var(--text);
}
.hero__lead{
  font-size:clamp(1rem,1.8vw,1.125rem);
  line-height:1.6;
  color:var(--muted);
  margin:0 0 28px;
  max-width:36em;
}
.cta-row{display:flex;gap:12px;flex-wrap:wrap}

/* Кнопки */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  color:var(--text);
  text-decoration:none;
  background:#F9FAFB;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(15,23,42,.08);
}
.btn:hover{
  border-color:#CBD5F5;
  background:#EEF2FF;
  transform:translateY(-1px) scale(1.01);
  box-shadow:0 10px 30px rgba(15,23,42,.12);
}
.btn-primary{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  border-color:transparent;
  color:#FFFFFF;
  font-weight:600;
}
.hero__cta{
  padding:14px 24px;
  font-size:1rem;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(99,102,241,.4);
}
.hero__cta:hover{
  transform:translateY(-1px) scale(1.02);
  box-shadow:0 14px 40px rgba(79,70,229,.45);
}
.hero__cta:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:2px;
}
.btn-ghost{
  background:transparent;
  border-color:transparent;
  color:var(--muted);
}

/* Sections */
.video-overview{padding:56px 0}
.video-overview h2{
  margin:0 0 24px;
  font-size:clamp(1.5rem,3vw,1.9rem);
}
.video-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}
.video-wrapper{
  position:relative;
  width:100%;
  padding-bottom:56.25%;
  height:0;
  overflow:hidden;
  border-radius:14px;
  background:#000;
  box-shadow:0 10px 30px rgba(15,23,42,.25);
}
.video-wrapper:not(:last-child){margin-bottom:32px}
.video-wrapper video,
.video-wrapper iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:contain;
  border:0;
}
@media (max-width:900px){
  .video-grid{
    grid-template-columns:1fr;
  }
  .video-wrapper:not(:last-child){
    margin-bottom:24px;
  }
}

/* About / вспомогательные блоки (если используются) */
.about{padding:0}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.about__grid{max-width:min(900px,92%);margin-inline:auto}
.about__block{max-width:38em}
.about__heading{
  font-size:1.25rem;
  font-weight:600;
  margin:0 0 12px;
  color:var(--text);
}
.about__text{
  font-size:.9375rem;
  line-height:1.6;
  margin:0;
  color:var(--text);
}
@media (max-width:900px){
  .grid-2{grid-template-columns:1fr}
  .about__block{max-width:100%}
}
.feature-list{
  margin:0;
  padding-left:20px;
  color:var(--muted);
  line-height:1.6;
  font-size:.9375rem;
}

/* Общий ряд: "Где брать примеры VR‑сцен" + заявка */
.info-row{
  padding:48px 0 56px;
}
.info-row__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:48px;
  align-items:stretch;
}
@media (max-width:900px){
  .info-row__grid{
    grid-template-columns:1fr;
  }
}

/* Коммерческая секция: заявка на услуги */
.contact-cta{
  padding:0;
}
.contact-cta__inner{
  background:var(--bg-elev);
  border-radius:16px;
  border:1px solid var(--border);
  box-shadow:0 10px 30px rgba(15,23,42,.08);
  padding:24px;
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:32px;
  height:100%;
}
.contact-cta__text{
  flex:2 1 0;
  min-width:0;
}
.contact-cta__title{
  margin:0 0 10px;
  font-size:clamp(1.4rem,2.6vw,1.8rem);
  font-weight:600;
  letter-spacing:-0.02em;
  color:var(--text);
}
.contact-cta__subtitle{
  margin:0 0 14px;
  font-size:.95rem;
  line-height:1.6;
  color:var(--muted);
}
.contact-cta__list{
  margin:0;
  padding-left:20px;
  font-size:.92rem;
  line-height:1.6;
  color:var(--text);
}
.contact-cta__list li+li{
  margin-top:4px;
}
.contact-cta__actions{
  flex:1 1 0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  min-width:0;
}
.contact-cta__btn{
  width:100%;
  justify-content:center;
}
.contact-cta__note{
  margin:6px 0 0;
  font-size:.85rem;
  color:var(--muted);
}
.contact-cta__note a{
  color:var(--brand);
  text-decoration:none;
}
.contact-cta__note a:hover{
  text-decoration:underline;
}

/* Универсальная карточка для информационных блоков */
.info-card{
  background:var(--bg-elev);
  border-radius:16px;
  border:1px solid var(--border);
  box-shadow:0 10px 30px rgba(15,23,42,.08);
  padding:24px;
  height:100%;
}
.info-card__actions{
  margin-top:16px;
}

@media (max-width:900px){
  .contact-cta__inner{
    flex-direction:column;
    align-items:stretch;
    padding:22px 18px;
  }
  .info-card{
    padding:22px 18px;
  }
  .contact-cta__actions{
    align-items:stretch;
  }
}
@media (max-width:640px){
  .contact-cta{
    padding:0;
  }
}

/* Карточки (общие) */
.highlights{padding:40px 0 56px}
.cards-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}
.card{
  display:flex;
  flex-direction:column;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
  box-shadow:0 10px 30px rgba(15,23,42,.08);
}
.card:hover{
  box-shadow:0 14px 40px rgba(15,23,42,.12);
  transform:translateY(-3px);
}
.card__title{
  font-size:1.0625rem;
  font-weight:600;
  margin:0 0 8px;
  line-height:1.35;
  color:var(--text);
}
.card__text{
  font-size:.9375rem;
  line-height:1.5;
  margin:0;
  color:var(--muted);
  flex:1;
}
@media (max-width:900px){.cards-3{grid-template-columns:1fr}}
@media (max-width:767px){
  .highlights{padding:32px 0 48px}
  .card{padding:20px}
  .hero__cta{width:100%;justify-content:center}
}

/* Page header */
.page .page-header{padding:32px 0 18px;border-bottom:1px solid var(--border)}
.page .page-header h1{margin:0 0 6px;font-size:1.7rem}

/* Modules — секция «Модули курса» */
.modules-list{padding:32px 0 56px}
.modules-list__container{max-width:min(1100px,92%);margin-inline:auto}

.module-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:module;
}
.module-cards .module-card{counter-increment:module}
.module-cards .module-card::before{
  content:counter(module);
  display:block;
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  margin-bottom:6px;
}

/* Карточка модуля */
.module-card--centered{
  grid-column:1 / -1;
  justify-self:center;
  width:100%;
  max-width:calc(50% - 14px);
}
.module-card{
  display:flex;
  flex-direction:column;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
  box-shadow:0 10px 30px rgba(15,23,42,.08);
}
.module-card:hover{
  box-shadow:0 14px 40px rgba(15,23,42,.12);
  transform:translateY(-2px);
}
.module-card__header{flex:0 0 auto;min-height:7.5em;margin-bottom:20px}
.module-card__title{
  margin:0 0 8px;
  font-size:1.125rem;
  font-weight:600;
  line-height:1.35;
  color:var(--text);
}
.module-card__desc{
  margin:0;
  font-size:.9375rem;
  line-height:1.5;
  color:var(--muted);
}

.module-download-links{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:auto;
}
.module-download-links .btn{
  width:100%;
  min-height:44px;
  padding:12px 16px;
  font-size:.9375rem;
  font-weight:500;
  text-align:center;
  white-space:normal;
  word-break:break-word;
  border-radius:14px;
}
.module-download-links .btn-primary{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  border:none;
  color:#fff;
}
@media (max-width:900px){
  .module-cards{grid-template-columns:1fr;gap:20px}
  .module-card--centered{max-width:100%;justify-self:stretch}
}
@media (max-width:767px){
  .modules-list{padding:24px 0 40px}
  .module-card{padding:20px}
  .module-card__header{min-height:auto;margin-bottom:16px}
  .module-card__title{font-size:1.0625rem}
}

/* Блок кнопок на странице модуля (Модуль 3: шаблон, сценарии, назад) */
.module-actions{padding:24px 0 32px}
.module-actions__links{display:flex;flex-direction:column;gap:12px;max-width:400px}
.module-actions__links .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 16px;text-align:center;text-decoration:none;white-space:normal;word-break:break-word;border-radius:10px;cursor:pointer}
.module-actions__links .btn{border-radius:14px;}
.module-actions__links .btn-primary{background:linear-gradient(135deg,var(--brand),var(--brand-2));border:none;color:#fff;font-weight:500}
.module-actions__links .btn-primary:hover{filter:brightness(1.08)}
.module-actions__links .btn-primary:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (max-width:767px){.module-actions__links{max-width:100%}}

/* Docs */
.docs-section{padding:24px 0 40px}
.panel{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:20px}
.muted{color:var(--muted)}
.small{font-size:12px}
.file-list{margin:10px 0 0;padding-left:18px;color:var(--muted)}
.url-input-row{display:flex;gap:8px;margin:8px 0}
.url-input-row input{flex:1;padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:#101632;color:var(--text)}
.viewer-wrap{margin-top:16px}
.viewer-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.viewer{height:70vh;background:#ffffff;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.viewer{border-radius:16px;}
.viewer iframe{width:100%;height:100%;border:0;background:#ffffff}

/* Footer */
.site-footer{
  margin-top:48px;
  background:var(--footer-gradient);
  color:#E5E7EB;
}
.footer-inner{
  display:flex;
  flex-direction:column;
  gap:8px;
  justify-content:center;
  align-items:center;
  padding:24px 0 8px;
  text-align:center;
}
.footer-links ul{list-style:none;margin:8px 0 0;padding:0}
.footer-links a{color:#E5E7EB;text-decoration:none}
.footer-links a:hover{text-decoration:underline}
.footer-copy{
  padding:4px 0 20px;
  color:#9CA3AF;
  text-align:center;
}

/* Utilities */
.hidden{display:none}

/* === VR custom cursor === */
.vr-cursor{
  position:fixed;
  inset:0 auto auto 0;
  width:40px;
  height:40px;
  pointer-events:none;
  z-index:9999;
  transform:translate3d(-9999px,-9999px,0);
}
.vr-cursor__core,
.vr-cursor__ring{
  position:absolute;
  inset:0;
  margin:auto;
  border-radius:50%;
}
.vr-cursor__core{
  width:6px;
  height:6px;
  background:radial-gradient(circle,#e5f0ff 0%,#60a5fa 40%,#1d4ed8 100%);
  box-shadow:0 0 10px rgba(96,165,250,.9);
}
.vr-cursor__ring{
  width:26px;
  height:26px;
  border:1px solid rgba(129,140,248,.9);
  box-shadow:
    0 0 12px rgba(129,140,248,.55),
    0 0 24px rgba(56,189,248,.35);
  transform-origin:center;
}
.vr-cursor__ticks{
  position:absolute;
  inset:0;
  margin:auto;
  width:30px;
  height:30px;
}
.vr-cursor__tick{
  position:absolute;
  width:10px;
  height:1px;
  background:linear-gradient(90deg,rgba(59,130,246,0) 0%,rgba(59,130,246,.9) 60%,rgba(59,130,246,0) 100%);
  opacity:.8;
}
.vr-cursor__tick--top{top:0;left:50%;transform:translateX(-50%)}
.vr-cursor__tick--right{right:0;top:50%;transform:translateY(-50%) rotate(90deg)}
.vr-cursor__tick--bottom{bottom:0;left:50%;transform:translateX(-50%) rotate(180deg)}
.vr-cursor__tick--left{left:0;top:50%;transform:translateY(-50%) rotate(270deg)}

.vr-cursor--hover .vr-cursor__ring{
  box-shadow:
    0 0 16px rgba(129,140,248,.9),
    0 0 32px rgba(56,189,248,.7);
}

.vr-cursor--click .vr-cursor__ring{
  animation:vr-cursor-pulse .28s ease-out;
}

@keyframes vr-cursor-pulse{
  0%{transform:scale(1);opacity:1}
  60%{transform:scale(1.25);opacity:.5}
  100%{transform:scale(1);opacity:1}
}

