/* ==================================================================
   Professor Cyka — Global Styles (v1.0)
   One stylesheet for index.html, lessons.html, socials.html
   ================================================================== */

/* ---------- CSS Variables (Theme) ---------- */
:root{
  --pink: #ff2ea6;
  --pink-dark: #d61e86;
  --text: #f5f7fa;
  --muted: #cdd4df;
  --bg: #0b0e14;
  --overlay: rgba(0,0,0,.55);
  --card: rgba(255,255,255,.06);
  --card-border: rgba(255,255,255,.12);
  --maxw: 1100px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ---------- CSS Reset / Base ---------- */
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color:var(--text);
  background: var(--bg);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ---------- Utilities ---------- */
.container{
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:20px;
}
.center{display:grid; place-items:center}
.mt-24{margin-top:24px}
.mt-40{margin-top:40px}
.mb-40 {margin-bottom:40px}
.muted{color:var(--muted)}

a{color:inherit; text-decoration:none}
a.underline{text-decoration:underline}
a:hover{opacity:.92}

/* ---------- Background helpers ---------- */
.hero-bg {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  --hero-bg: url("background.webp"); /* ← ставим прямо тут, без data-bg */
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.65));
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(.9) contrast(1.05) brightness(.8);
}


/* ---------- Header / Nav ---------- */
header{
  position:sticky; top:0; z-index:50;
  background: rgba(10,12,18,.65);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.navbar{
  height:64px; display:flex; align-items:center; gap:18px;
  justify-content:space-between;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700; letter-spacing:.3px;
}
.brand .logo{
  width:36px; height:36px; border-radius:50%;
  display:grid; place-items:center;
  background: radial-gradient(120% 120% at 30% 30%, var(--pink), var(--pink-dark));
  box-shadow:0 6px 18px rgba(214,30,134,.45), inset 0 0 12px rgba(255,255,255,.12);
  color:white; font-weight:800;
}
.nav-links{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
}
.nav-links a{
  padding:8px 12px; border-radius:10px;
  border:1px solid transparent;
}
.nav-links a.active,
.nav-links a:hover{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}

/* ---------- Burger + Drawer (mobile, fullscreen) ---------- */
.burger{
  display: none;                /* скрыт на десктопе */
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  padding: 0;

  /* под полоски */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* розовые полоски */
.burger span{
  display: block;
  width: 22px;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
}

/* только на мобилках показываем бургер и прячем горизонтальное меню */
@media (max-width: 860px){
  .nav-links{ display:none; } /* ← прячем горизонтальное меню */
  .burger{ display:flex; }    /* ← показываем бургер только тут */
}

/* чтобы ничего не перекрывало */
header .burger{ z-index: 10; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.drawer.show { display: block; }

/* затемняющий фон */
.drawer .backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);          /* rgba(0,0,0,.55) */
  backdrop-filter: blur(4px);
}

/* панель на весь экран */
.drawer .panel {
  position: absolute;
  inset: 0;
  background: #101218;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 60px 20px;
  transform: scale(1.05);
  opacity: 0;
  transition: all .25s ease-out;
}

.drawer.show .panel {
  transform: scale(1);
  opacity: 1;
}

/* ссылки в меню */
.drawer .panel a {
  font-size: 1.6rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
}

.drawer .panel a:hover {
  background: rgba(255,255,255,.08);
}

/* кнопка закрытия */
.drawer .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--text);
  cursor: pointer;
}
.drawer .close-btn:hover {
  background: rgba(255,255,255,.15);
}



/* ---------- Hero / Headline ---------- */
.hero{
  padding-block: min(14vh, 140px) min(12vh, 120px);
  text-align:center;
}
h1{
  margin:0 0 12px; font-size: clamp(28px, 5vw, 56px);
}
.lead{
  font-size: clamp(16px, 2.1vw, 20px);
  color:var(--muted);
  max-width: 780px; margin-inline:auto;
}

/* ---------- Buttons ---------- */
.btn, .cta{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 18px; border-radius:12px; font-weight:700;
  border:1px solid transparent; cursor:pointer;
  transition: transform .06s ease, box-shadow .2s ease;
}
.btn-primary, .cta{
  background: linear-gradient(180deg, var(--pink), var(--pink-dark));
  color:white; box-shadow: 0 8px 20px rgba(214,30,134,.35);
}
.btn-primary:hover, .cta:hover{ transform: translateY(-1px) }
.btn-ghost{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12) }
.btn-ghost:hover{ background: rgba(255,255,255,.1) }

/* ---------- Cards / Grids ---------- */
.grid{
  display:grid; gap:18px;
}
.grid.cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)) }
.grid.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)) }
@media (max-width: 860px){
  .grid.cols-2, .grid.cols-3{ grid-template-columns: 1fr }
  
}

.card{
  background: var(--card);
  border:1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.card > .title{ font-weight:700; margin-bottom:6px }
.card > .desc{ color:var(--muted) }

/* ---------- Socials Grid ---------- */
.social-grid{
  display:grid; gap:16px;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
  margin-top:16px;
}
.social a{
  display:flex; align-items:center; gap:12px;
  padding:14px; border-radius:14px;
  border:1px solid var(--card-border);
  background: rgba(255,255,255,.04);
}
.social a:hover{ background: rgba(255,255,255,.08) }
.social .icon{
  width:32px; height:32px; display:grid; place-items:center;
  border-radius:8px;
  background: radial-gradient(100% 100% at 30% 30%, var(--pink), var(--pink-dark));
  color:white; font-weight:800;
}

/* ---------- Footer ---------- */
footer{
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(10,12,18,.6);
  backdrop-filter:saturate(140%) blur(8px);
  margin-top: 60px;
}
.footer-inner{
  height:68px; display:flex; align-items:center; justify-content:space-between;
  gap:12px;
}
.small{font-size:13px; color:var(--muted)}



/* ---------- Helpers for images/videos (if needed) ---------- */
img, video{max-width:100%; height:auto; border-radius:12px}
.hide{display:none !important}

/* === Drawer fix (fullscreen overlay) === */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 9999 !important; /* поверх всего */
  display: none;
}

.drawer.show { display: block; }

.drawer .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85) !important;
}

.drawer .panel {
  position: absolute;
  inset: 0;
  background: #0b0e14 !important;  /* сплошной фон */
  z-index: 10000 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 60px 20px;
}

@media (max-width: 600px) {
  .hero-bg.center {
    display: block;   /* вместо grid */
    place-items: unset;
  }
  .hero {
    padding-top: 60px;   /* можно уменьшить паддинг */
    padding-bottom: 60px;
  }
}

.burger span{ background:#ff2ea6; }
