/* Wisory.ru landing — styles */
:root {
  --owl-glow: 0 0 80px rgba(120, 220, 255, 0.25), 0 0 160px rgba(180, 100, 255, 0.18);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #000;
  color: #f0f0fa;
  font-family: 'D-DIN', 'DIN Next', Arial, Verdana, sans-serif;
  scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ==================== STARFIELD ==================== */
.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(60, 30, 90, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(20, 60, 100, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(30, 20, 60, 0.5) 0%, transparent 60%),
    #000;
}
.starfield::before,
.starfield::after {
  content: ''; position: absolute; inset: -50%;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent),
    radial-gradient(1px 1px at 40% 70%, #fff 50%, transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.8) 50%, transparent),
    radial-gradient(1px 1px at 80% 50%, #fff 50%, transparent),
    radial-gradient(1px 1px at 10% 80%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 90% 10%, rgba(220,220,255,0.9) 50%, transparent),
    radial-gradient(1px 1px at 30% 50%, #fff 50%, transparent),
    radial-gradient(1px 1px at 70% 90%, #fff 50%, transparent),
    radial-gradient(2px 2px at 15% 15%, rgba(180,200,255,0.9) 50%, transparent),
    radial-gradient(1px 1px at 85% 35%, #fff 50%, transparent);
  background-size: 400px 400px;
  background-repeat: repeat;
  opacity: 0.55;
  animation: drift 120s linear infinite;
}
.starfield::after {
  background-size: 300px 300px;
  background-position: 50px 80px;
  opacity: 0.3;
  animation-duration: 200s;
  animation-direction: reverse;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-100px, -80px); }
}

/* ==================== SHOOTING ATMOSPHERE ==================== */
.atmosphere {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%,
      rgba(80, 180, 240, 0.06) 0%,
      rgba(140, 80, 240, 0.04) 40%,
      transparent 70%);
  mix-blend-mode: screen;
}

/* ==================== OWL HERO ==================== */
.owl-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  animation: breathe 6s ease-in-out infinite;
}
.owl-wrap img {
  width: 440px; max-width: 42vw;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(80, 180, 240, 0.45))
          drop-shadow(0 0 140px rgba(180, 90, 220, 0.35));
}
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.015); }
}
.owl-aura {
  position: absolute;
  width: 520px; height: 520px; max-width: 50vw; max-height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(120, 220, 255, 0.18) 0%,
    rgba(180, 100, 255, 0.12) 35%,
    transparent 65%);
  filter: blur(20px);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* ==================== ENTRY ANIMATION ==================== */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 900ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== NAV ==================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  transition: background 400ms cubic-bezier(0.4,0,0.2,1), backdrop-filter 400ms;
}
.nav.scrolled {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 18px; letter-spacing: 2.4px;
  text-transform: uppercase;
}
.nav-logo-mark {
  width: 26px; height: 26px;
  display: inline-block;
  background-image: url('assets/owl.png');
  background-size: contain; background-repeat: no-repeat; background-position: center;
  filter: drop-shadow(0 0 8px rgba(120, 200, 255, 0.6));
}
.nav-links {
  display: flex; gap: 34px;
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 1.17px;
}
.nav-links a {
  color: rgba(240,240,250,0.75);
  transition: color 300ms cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover { color: #fff; }

.lang-toggle {
  display: flex; align-items: center; gap: 0;
  border: 1px solid rgba(240,240,250,0.35);
  border-radius: 32px;
  padding: 2px;
  font-size: 11px; letter-spacing: 1.17px;
}
.lang-toggle button {
  background: transparent; border: 0; color: rgba(240,240,250,0.6);
  padding: 7px 14px;
  border-radius: 32px;
  cursor: pointer;
  text-transform: uppercase; letter-spacing: 1.17px;
  font-weight: 700;
  transition: all 300ms cubic-bezier(0.4,0,0.2,1);
}
.lang-toggle button.active {
  background: rgba(240,240,250,0.12);
  color: #fff;
}

/* ==================== GHOST BUTTON ==================== */
.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px;
  background: rgba(240,240,250,0.1);
  border: 1px solid rgba(240,240,250,0.35);
  border-radius: 32px;
  color: #f0f0fa;
  font-weight: 700; font-size: 13px; letter-spacing: 1.17px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.4,0,0.2,1);
}
.ghost-btn:hover {
  background: rgba(240,240,250,0.2);
  border-color: rgba(240,240,250,0.6);
  color: #fff;
}
.ghost-btn:active { transform: scale(0.98); }
.ghost-btn .arrow { transition: transform 300ms cubic-bezier(0.4,0,0.2,1); }
.ghost-btn:hover .arrow { transform: translateX(4px); }

/* ==================== SECTIONS ==================== */
section { position: relative; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  padding-bottom: 60px;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  padding: 120px 60px 60px;
  max-width: 1600px;
  width: 100%;
}
.hero-left {
  text-align: right;
}
.hero-right {
  text-align: left;
}
.hero-kicker {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(240,240,250,0.6);
  margin-bottom: 18px;
}
.hero-title {
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(240,240,250,0.75);
  max-width: 320px;
  margin: 0 0 28px;
}
.hero-right .hero-sub { margin-left: 0; }
.hero-left .hero-sub { margin-left: auto; }

.hero-cta-row {
  display: flex; gap: 14px;
}
.hero-left .hero-cta-row { justify-content: flex-end; }

/* Hero stats strip — in-flow under the grid */
.hero-stats {
  position: relative; z-index: 3;
  width: 100%;
  display: flex; justify-content: center; gap: 80px;
  padding: 20px 60px 60px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-weight: 700; font-size: 30px;
  letter-spacing: 0.96px;
  line-height: 1;
  background: linear-gradient(180deg, #f0f0fa 0%, rgba(180, 200, 255, 0.7) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-lbl {
  margin-top: 8px;
  font-size: 10px; letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(240,240,250,0.55);
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 10px; letter-spacing: 2px;
  color: rgba(240,240,250,0.4);
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(240,240,250,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ==================== COMPARISON SECTION ==================== */
.compare {
  position: relative;
  padding: 140px 60px;
  overflow: hidden;
}
.compare-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(30, 20, 60, 0.6) 0%, #000 70%);
}
.compare-header {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto 80px;
  text-align: center;
}
.compare-kicker {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(240,240,250,0.55);
  margin-bottom: 20px;
}
.compare-title {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  margin: 0;
}
.compare-grid {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}
.compare-col {
  padding: 48px 40px;
}
.compare-col.classic {
  color: rgba(240,240,250,0.45);
}
.compare-col.new {
  color: #f0f0fa;
}
.compare-col-head {
  font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(240,240,250,0.1);
  display: flex; align-items: center; gap: 10px;
}
.compare-col.new .compare-col-head {
  color: #fff;
}
.compare-col.new .compare-col-head::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #78dcff;
  box-shadow: 0 0 12px #78dcff;
}
.compare-col-title {
  font-weight: 700; font-size: 22px;
  letter-spacing: 0.96px; text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 36px;
}
.compare-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(240,240,250,0.05);
  font-size: 13px;
  line-height: 1.5;
}
.compare-row:first-child { border-top: 0; }
.compare-row-icon {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
}
.compare-divider {
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(240,240,250,0.2) 20%,
    rgba(120, 200, 255, 0.4) 50%,
    rgba(240,240,250,0.2) 80%,
    transparent 100%);
}

/* ==================== COURSES ==================== */
.courses {
  position: relative;
  padding: 140px 60px;
}
.courses-header {
  max-width: 1400px; margin: 0 auto 60px;
}
.courses-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.courses-title {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  margin: 0;
}
.courses-sub {
  font-size: 14px;
  color: rgba(240,240,250,0.65);
  max-width: 520px;
}

.course-list {
  max-width: 1400px; margin: 0 auto;
  display: flex; flex-direction: column;
}
.course-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid rgba(240,240,250,0.12);
  transition: padding-left 400ms cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.course-row:last-child {
  border-bottom: 1px solid rgba(240,240,250,0.12);
}
.course-row:hover {
  padding-left: 24px;
}
.course-row::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #78dcff, #b464ff);
  opacity: 0; transform: translate(-12px, -50%);
  transition: opacity 400ms cubic-bezier(0.4,0,0.2,1), transform 400ms cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 14px rgba(120, 200, 255, 0.6);
}
.course-row:hover::before {
  opacity: 1; transform: translate(0, -50%);
}
.course-num {
  font-size: 12px; letter-spacing: 1.8px;
  color: rgba(240,240,250,0.4);
  font-weight: 700;
}
.course-title {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 8px;
}
.course-desc {
  font-size: 13px;
  color: rgba(240,240,250,0.6);
  line-height: 1.5;
  max-width: 640px;
}
.course-badges {
  display: flex; flex-direction: column; gap: 6px;
  text-align: right;
  font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(240,240,250,0.65);
  white-space: nowrap;
}
.course-badges .b-big {
  font-size: 18px; font-weight: 700;
  color: #fff;
  letter-spacing: 0.96px;
  line-height: 1;
}
.course-arrow {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(240,240,250,0.5);
  transition: transform 400ms cubic-bezier(0.4,0,0.2,1), color 400ms;
}
.course-row:hover .course-arrow {
  transform: translateX(6px);
  color: #fff;
}

/* ==================== CONTACT / FOOTER ==================== */
.contact {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  padding: 140px 60px 32px;
}
.contact-grid {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto 100px;
  width: 100%;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-kicker {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(240,240,250,0.55);
  margin-bottom: 24px;
}
.contact-title {
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  margin: 0 0 32px;
}
.contact-body {
  font-size: 16px; line-height: 1.65;
  color: rgba(240,240,250,0.72);
  max-width: 560px;
  margin-bottom: 44px;
}
.contact-email {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  display: inline-flex; align-items: center; gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(240,240,250,0.35);
  transition: border-color 300ms, color 300ms, gap 300ms;
}
.contact-email:hover {
  border-color: #fff; color: #fff;
  gap: 20px;
}

.contact-side {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: 20px;
}
.contact-side-owl {
  width: 200px; max-width: 60%;
  filter: drop-shadow(0 0 40px rgba(80, 180, 240, 0.4))
          drop-shadow(0 0 90px rgba(180, 90, 220, 0.28));
  animation: breathe 8s ease-in-out infinite;
}
.contact-side-cap {
  margin-top: 28px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(240,240,250,0.5);
  text-align: center;
  line-height: 1.9;
}

.footer-bar {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  width: 100%;
  padding: 32px 0 0;
  border-top: 1px solid rgba(240,240,250,0.1);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  font-size: 10px; letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(240,240,250,0.45);
}

/* ==================== RESPONSIVE ==================== */
/* Intermediate viewports: shrink owl before the full stack */
@media (max-width: 1200px) {
  .owl-wrap img { width: 340px; max-width: 32vw; }
  .owl-aura { width: 420px; height: 420px; }
  .hero-grid { gap: 28px; padding: 110px 40px 20px; }
  .hero-title { font-size: clamp(32px, 4.2vw, 56px); }
  .hero-sub { font-size: 14px; }
  .hero-stats { gap: 48px; padding: 10px 40px 50px; }
}

@media (max-width: 1024px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 100px 24px 40px;
    text-align: center;
  }
  .hero-left, .hero-right { text-align: center; }
  .hero-left .hero-sub, .hero-right .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-left .hero-cta-row { justify-content: center; }
  .hero-stats { gap: 24px 40px; padding: 0 20px 40px; }
  .scroll-hint { display: none; }
  .owl-wrap img { width: 280px; }
  .compare, .courses { padding: 80px 24px; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-divider { display: none; }
  .course-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .course-arrow { display: none; }
  .course-badges { text-align: left; flex-direction: row; gap: 20px; }
  .contact { padding: 80px 24px 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 60px; }
  .contact-side { order: -1; padding: 0; }
  .contact-side-owl { width: 140px; }
}
