/* Шрифты: Unbounded + Inter (подключены через Google Fonts выше).
   Чтобы использовать свои (GrosVentre, Klaxon, NTMarley, Conthrax), положите .woff2
   в static/fonts/ и раскомментируйте блок @font-face в README в static/fonts/. */

/* 1. ГЛАВНЫЕ ЗАГОЛОВКИ (H1, H2) */
.hero-h1, .sec-h, .cta-h, .nav-logo {
  font-family: 'Unbounded', sans-serif;
  text-transform: uppercase;
}

/* 2. АКЦЕНТНЫЕ ЗАГОЛОВКИ В КАРТОЧКАХ */
.hs-val, .course-title, .form-title, .pop-card-body h4, .pt-l h2 {
  font-family: 'Unbounded', sans-serif;
  letter-spacing: -0.5px;
}

/* 3. ТЕКСТ И ИНТЕРФЕЙС */
body, .hero-desc, .finput, .btn-p, .btn-nav, .nl, .si-txt strong {
  font-family: 'Inter', sans-serif;
}

/* 4. ЦИФРЫ И МЕТРИКИ */
.mx-n, .cd-timer {
  font-family: 'Unbounded', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; overflow-x: hidden; line-height: 1.6; }
img { display: block; max-width: 100%; }
button { font-family: 'Inter', sans-serif; cursor: pointer; border: none; }
a { text-decoration: none; }
ul { list-style: none; }

:root {
  --pu: #8b5cf6;
  --pu-d: #7c3aed;
  --pu-g: rgba(139,92,246,0.3);
  --cy: #06b6d4;
  --gn: #22c55e;
  --lime: #84cc16;
  --or: #f97316;
  --tr: 0.35s cubic-bezier(.4,0,.2,1);
  --side-padding: 18%;
}

[data-theme="dark"] {
  --bg:   #09090f;
  --bg2:  #0e0e18;
  --bg3:  #131320;
  --sur:  #15152a;
  --su2:  #1a1a2e;
  --brd:  rgba(255,255,255,0.08);
  --brd2: rgba(255,255,255,0.15);
  --txt:  #f0f0ff;
  --tx2:  #8888b8;
  --tx3:  #3a3a58;
  --shd:  rgba(0,0,0,0.6);
  --nav:  rgba(9,9,15,0.92);
  --inv:  invert(0);
}

[data-theme="light"] {
  --bg:   #f5f5ff;
  --bg2:  #eeeeff;
  --bg3:  #e8e8fa;
  --sur:  #ffffff;
  --su2:  #f2f2fe;
  --brd:  rgba(0,0,0,0.07);
  --brd2: rgba(0,0,0,0.14);
  --txt:  #0a0a20;
  --tx2:  #55557a;
  --tx3:  #aaaacc;
  --shd:  rgba(100,80,200,0.10);
  --nav:  rgba(245,245,255,0.94);
  --inv:  invert(1) hue-rotate(180deg) brightness(0.6);
}

body { background: var(--bg); color: var(--txt); transition: background var(--tr), color var(--tr); }

/* BLOBS */
.blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); }
.b1 { width:800px;height:800px;background:#8b5cf6;top:-300px;left:-300px;opacity:.06; }
.b2 { width:600px;height:600px;background:#06b6d4;bottom:-200px;right:-200px;opacity:.05; }
.b3 { width:400px;height:400px;background:#22c55e;top:50%;left:55%;opacity:.03; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 9000;
  background: var(--nav); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--brd);
  height: 68px; padding: 0 var(--side-padding);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 1.05rem;
  color: var(--txt); letter-spacing: -.3px;
}
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--pu), var(--cy));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .75rem; font-weight: 900;
}
.nav-logo em { font-style: normal; color: var(--pu); }
.nav-links { display: flex; gap: 2px; }
.nl { color: var(--tx2); font-size: .83rem; font-weight: 500; padding: 8px 15px; border-radius: 50px; transition: all .2s; }
.nl:hover { background: var(--su2); color: var(--txt); }
.nav-right { display: flex; align-items: center; gap: 11px; }
.theme-btn {
  width: 50px; height: 27px; border-radius: 50px;
  background: var(--su2); border: 1px solid var(--brd2);
  position: relative; cursor: pointer; padding: 3px;
  display: flex; align-items: center;
}
.theme-ball {
  width: 21px; height: 21px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pu), var(--cy));
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; transition: transform .35s cubic-bezier(.4,0,.2,1);
}
[data-theme="light"] .theme-ball { transform: translateX(23px); }

/* BURGER */
.nav-burger {
  display: none; flex-direction: column; gap: 4px; 
  width: 32px; padding: 4px; background: transparent; 
}
.nav-burger span {
  width: 100%; height: 2px; background: var(--txt); border-radius: 2px; transition: .3s;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translateY(8.5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translateY(-8.5px); }
.btn-nav {
  background: var(--pu); color: #fff; border-radius: 50px;
  padding: 10px 24px; font-weight: 700; font-size: .82rem;
  transition: all .25s; box-shadow: 0 0 20px var(--pu-g);
  text-decoration: none; border: none; cursor: pointer;
}
.btn-nav:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* Яркий блок: Пройди профтест */
.proftest-cta-block {
  position: relative; z-index: 1;
  margin: 0 var(--side-padding);
  padding: 48px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #22c55e 100%);
  background-size: 200% 200%;
  animation: proftest-cta-shift 8s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.35), 0 0 0 1px rgba(255,255,255,0.15) inset;
  text-align: center;
}
@keyframes proftest-cta-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.proftest-cta-inner { position: relative; z-index: 1; }
.proftest-cta-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.proftest-cta-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.proftest-cta-desc {
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.5;
}
.proftest-cta-btn {
  display: inline-block;
  background: #fff;
  color: #7c3aed;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform .2s, box-shadow .2s;
}
.proftest-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  color: #5b21b6;
}

/* HERO */
#hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(400px, 700px) 420px;
  align-items: flex-start; gap: 16px;
  padding: 52px var(--side-padding) 24px;
  justify-content: center;
}

/* FLOATING TECH ICONS */
/* FLOATING TECH ICONS */
.tech-icons {
  position: absolute;
  top: 0; left: 0;
  width: calc(100% - 480px); /* only over hero-l, not form */
  height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.tech-icon {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; font-size: 1.4rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  animation: floatIcon linear infinite;
  opacity: 0;
}
.tech-icon img { width: 32px; height: 32px; object-fit: contain; }
@keyframes floatIcon {
  0%   { transform: translateY(0px) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-160px) rotate(8deg); opacity: 0; }
}
@keyframes floatIconR {
  0%   { transform: translateY(0px) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-160px) rotate(-8deg); opacity: 0; }
}

/* HERO BADGE STRIP */
.hero-tech-strip {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px;
}
.tech-badge {
  display: flex; align-items: center; gap: 7px;
  background: var(--sur); border: 1px solid var(--brd);
  border-radius: 50px; padding: 6px 14px;
  font-size: .75rem; font-weight: 600; color: var(--tx2);
  transition: all .25s;
}
.tech-badge:hover { border-color: rgba(139,92,246,.4); color: var(--txt); transform: translateY(-2px); box-shadow: 0 8px 20px var(--shd); }
.tech-badge img { width: 18px; height: 18px; object-fit: contain; }
.hero-l { display: flex; flex-direction: column; max-width: 680px; }
.hero-eye { font-size: .8rem; font-weight: 500; color: var(--tx2); margin-bottom: 20px; }
.hero-h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -2px;
  margin-bottom: 22px;
}
.hero-h1 .grd {
  background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 35%, #6366f1 65%, #a78bfa 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: gradShift 4s ease-in-out infinite;
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-desc { font-size: 1rem; color: var(--tx2); line-height: 1.75; max-width: 500px; margin-bottom: 24px; }

/* Hero 3D graphic */
.hero-graphic-wrap { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 40px; }
.hero-3d {
  flex-shrink: 0; width: 160px; height: 160px;
  position: relative; animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hero-3d svg { width: 100%; height: 100%; }

/* Hero stat cards */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hs {
  background: var(--sur); border: 1px solid var(--brd);
  border-radius: 18px; padding: 20px 18px;
  transition: all .25s; position: relative; overflow: hidden;
}
.hs::after {
  content: ''; position: absolute; top: -50%; left: -75%;
  width: 50%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  transform: skewX(-20deg); transition: left .6s;
}
.hs:hover::after { left: 125%; }
.hs:hover { border-color: rgba(132,204,22,.35); transform: translateY(-3px); box-shadow: 0 12px 32px var(--shd); }
.hs-ico {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(132,204,22,.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.hs-ico svg { width: 19px; height: 19px; color: #84cc16; fill: currentColor; }
.hs-val { font-family: 'Unbounded', sans-serif; font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.hs-sub { font-size: .76rem; color: var(--tx2); line-height: 1.45; }
.hs-photo {
  position: absolute; bottom: 0; right: 0; width: 85px; height: 100%;
  object-fit: cover; object-position: top; border-radius: 0 18px 18px 0; opacity: .45;
}

/* Hero right - form */
.hero-r { display: flex; flex-direction: column; }
.cd-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cd-lbl { font-size: .8rem; color: var(--txt); }
.cd-timer {
  background: #84cc16; color: #fff; border-radius: 8px;
  padding: 8px 16px; font-family: 'Unbounded', sans-serif;
  font-size: .85rem; font-weight: 700; min-width: 160px; text-align: center;
}
.form-box {
  background: var(--sur); border-radius: 18px;
  padding: 28px 24px; box-shadow: 0 24px 64px var(--shd);
  border: 1px solid var(--brd);
}
.form-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.form-title { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -.4px; }
.form-disc { background: var(--pu); color: #fff; border-radius: 8px; padding: 4px 12px; font-size: .75rem; font-weight: 700; }
.form-spots { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #f97316; margin-bottom: 22px; }
.spots-dot { width: 6px; height: 6px; background: #f97316; border-radius: 50%; }
.flbl { font-size: .7rem; font-weight: 700; color: var(--tx3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.finput {
  width: 100%; background: var(--bg2); border: 1px solid var(--brd);
  border-radius: 10px; padding: 13px 15px; font-size: .9rem;
  color: var(--txt); outline: none; transition: all .2s; margin-bottom: 13px;
  font-family: 'Inter', sans-serif;
}
.finput::placeholder { color: var(--tx3); }
.finput:focus { border-color: var(--pu); box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.phone-row {
  display: flex; background: var(--bg2); border: 1px solid var(--brd);
  border-radius: 10px; overflow: hidden; margin-bottom: 13px;
}
.phone-row:focus-within { border-color: var(--pu); box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.flag-sel {
  background: transparent; border: none; border-right: 1px solid var(--brd);
  padding: 0 14px; color: var(--tx2); font-size: .82rem;
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.phone-row input {
  flex: 1; background: transparent; border: none;
  padding: 13px 15px; font-size: .9rem; color: var(--txt);
  outline: none; font-family: 'Inter', sans-serif;
}
.phone-row input::placeholder { color: var(--tx3); }
.sub-btn {
  width: 100%; background: var(--pu); color: #fff;
  border-radius: 10px; padding: 15px; font-family: 'Unbounded', sans-serif;
  font-weight: 700; font-size: .88rem; letter-spacing: -.3px;
  transition: all .25s; box-shadow: 0 4px 22px rgba(139,92,246,.4);
  margin-bottom: 14px; cursor: pointer;
  animation: btnPulse 3s ease-in-out infinite;
}
@keyframes btnPulse {
  0%,100% { box-shadow: 0 4px 22px rgba(139,92,246,.4); }
  50% { box-shadow: 0 4px 36px rgba(139,92,246,.7), 0 0 0 4px rgba(139,92,246,.1); }
}
.sub-btn:hover { transform: translateY(-2px); filter: brightness(1.08); animation: none; box-shadow: 0 8px 36px rgba(139,92,246,.6); }
.agree-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.agree-row input { accent-color: var(--pu); margin-top: 3px; flex-shrink: 0; }
.agree-row span { font-size: .71rem; color: var(--tx3); line-height: 1.55; }
.agree-row a { color: #a78bfa; }
.form-link { text-align: center; }
.form-link a { font-size: .71rem; color: var(--tx3); text-decoration: underline; }

/* STRIP */
#strip {
  position: relative; z-index: 1;
  background: var(--bg2); border-top: 1px solid var(--brd); border-bottom: 1px solid var(--brd);
  display: flex; justify-content: center; flex-wrap: wrap;
}
.si {
  display: flex; align-items: center; gap: 13px;
  padding: 24px 38px; border-right: 1px solid var(--brd); transition: background .2s;
}
.si:last-child { border-right: none; }
.si:hover { background: var(--bg3); }
.si-ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--sur); border: 1px solid var(--brd);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
.si-ico svg { width: 22px; height: 22px; stroke-width: 2.2; }
.si-txt strong { display: block; font-size: .9rem; font-weight: 700; }
.si-txt span { font-size: .72rem; color: var(--tx2); }

/* SHARED */
.sec { position: relative; z-index: 1; padding: 100px var(--side-padding); }
.sec.alt { background: var(--bg2); }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.22);
  color: #a78bfa; border-radius: 50px; padding: 6px 16px;
  font-size: .7rem; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  margin-bottom: 16px;
}
.chip-dot { width: 6px; height: 6px; background: var(--pu); border-radius: 50%; animation: ping 2s infinite; }
@keyframes ping { 0%,100%{opacity:1}50%{opacity:.4} }
.sec-h { font-family: 'Unbounded', sans-serif; font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 12px; }
.sec-sub { font-size: .96rem; color: var(--tx2); max-width: 520px; line-height: 1.75; }
.btn-p {
  background: var(--pu); color: #fff; border-radius: 12px;
  padding: 13px 28px; font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: all .25s; box-shadow: 0 4px 20px var(--pu-g);
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; border: none;
}
.btn-p:hover { transform: translateY(-3px); box-shadow: 0 8px 30px var(--pu-g); filter: brightness(1.08); }
.btn-o {
  background: transparent; border: 1px solid var(--brd2); color: var(--tx2);
  border-radius: 12px; padding: 13px 24px; font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: all .2s; display: inline-flex; align-items: center; gap: 7px;
}
.btn-o:hover { border-color: var(--pu); color: var(--txt); background: rgba(139,92,246,.07); }

/* ═══ COURSES CAROUSEL ═══ */
#courses { position: relative; z-index: 1; padding: 100px 32px; overflow: hidden; }
.courses-head { text-align: center; margin-bottom: 56px; }
.courses-head .sec-sub { margin: 0 auto 36px; text-align: center; }
.carousel-wrap { position: relative; }
.carousel-track-outer { overflow: hidden; }
.carousel-track {
  display: flex; gap: 20px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.course-card {
  flex-shrink: 0; width: 240px;
  border-radius: 22px; overflow: hidden;
  position: relative; cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  aspect-ratio: 3/4;
}
.course-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.course-card img { width: 100%; height: 100%; object-fit: cover; }
.course-card-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px;
}
.course-badge {
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 50px;
  padding: 5px 13px; font-size: .72rem; font-weight: 700; color: #fff;
  align-self: flex-start;
}
.course-title { font-family: 'Unbounded', sans-serif; font-size: 1.05rem; font-weight: 900; color: #fff; line-height: 1.25; }
.course-active { transform: translateY(-8px) scale(1.04) !important; box-shadow: 0 0 0 3px var(--pu), 0 24px 64px rgba(139,92,246,.4) !important; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--sur); border: 1px solid var(--brd2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; color: var(--txt);
}
.carousel-btn:hover { background: var(--pu); border-color: var(--pu); color: #fff; }
.carousel-btns { display: flex; gap: 10px; justify-content: center; margin-top: 32px; }

/* ═══ ABOUT / SUPPORT ═══ */
.about-tabs-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; margin-top: 44px;
}
.ab-tab {
  padding: 10px 22px; border-radius: 50px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--brd2); color: var(--tx2);
  transition: all .2s; background: transparent;
}
.ab-tab.act { background: var(--txt); color: var(--bg); border-color: var(--txt); }
.about-panel { display: none; }
.about-panel.act { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.about-panel-l h3 { font-family: 'Unbounded', sans-serif; font-size: 1.5rem; font-weight: 900; line-height: 1.2; letter-spacing: -.7px; margin-bottom: 14px; }
.about-panel-l p { font-size: .9rem; color: var(--tx2); line-height: 1.8; margin-bottom: 26px; }
.about-panel-r {
  background: var(--sur); border: 1px solid var(--brd);
  border-radius: 22px; overflow: hidden; position: relative; min-height: 280px;
}
.about-panel-r img { width: 100%; height: 100%; object-fit: cover; }
.about-panel-r .img-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 12px;
  padding: 10px 16px; font-size: .8rem; color: #fff; font-weight: 600;
}

/* bottom 3 cards — отступы между карточками и внутри, чтобы текст не уходил за край */
.about-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 20px; }
.ab-card {
  background: var(--sur); border: 1px solid var(--brd); border-radius: 16px;
  padding: 22px 24px; transition: all .25s;
  min-width: 0; /* чтобы длинные слова переносились внутри карточки */
  overflow-wrap: break-word;
}
.ab-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.3); box-shadow: 0 12px 32px var(--shd); }
.ab-card-ico { font-size: 2.2rem; margin-bottom: 14px; }
.ab-card h5 { font-size: .95rem; font-weight: 700; margin-bottom: 7px; line-height: 1.3; }
.ab-card p { font-size: .79rem; color: var(--tx2); line-height: 1.6; margin-bottom: 0; }
.ab-card.dark { background: var(--txt); color: var(--bg); border-color: var(--txt); }
.ab-card.dark p { color: rgba(0,0,0,.55); }
.ab-card.dark a { color: var(--pu); font-size: .79rem; }
/* Светлая тема: третья карточка как остальные */
[data-theme="light"] .ab-card.dark { background: var(--sur); color: var(--txt); border-color: var(--brd); }
[data-theme="light"] .ab-card.dark p { color: var(--tx2); }
[data-theme="light"] .ab-card.dark a { color: var(--pu); }
/* Тёмная тема: третья карточка того же цвета, что и соседние (не белая) */
[data-theme="dark"] .ab-card.dark { background: var(--sur); color: var(--txt); border-color: var(--brd); }
[data-theme="dark"] .ab-card.dark p { color: var(--tx2) !important; }
[data-theme="dark"] .ab-card.dark a { color: var(--pu); }

/* METRICS */
.mtx { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 52px; }
.mx {
  background: var(--sur); border: 1px solid var(--brd); border-radius: 14px; padding: 16px;
  transition: all .2s;
}
.mx:hover { border-color: rgba(139,92,246,.3); transform: translateY(-3px); }
.mx-n { font-family: 'Unbounded', sans-serif; font-size: 2rem; font-weight: 900; letter-spacing: -.8px; }
.mx-n em { font-style: normal; color: var(--pu); }
.mx-l { font-size: .73rem; color: var(--tx2); margin-top: 4px; }

/* ═══ POPULAR PROGRAMS ═══ */
#popular { position: relative; z-index: 1; padding: 100px var(--side-padding); }
.pop-tabs-row { display: flex; gap: 0; border-bottom: 1px solid var(--brd); margin-bottom: 36px; }
.pop-tab {
  padding: 12px 24px; font-size: .86rem; font-weight: 600;
  cursor: pointer; color: var(--tx2); border: none; background: transparent;
  border-bottom: 2px solid transparent; transition: all .2s; margin-bottom: -1px;
}
.pop-tab.act { color: var(--txt); border-bottom-color: var(--pu); }
.pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pop-card {
  background: var(--sur); border: 1px solid var(--brd); border-radius: 14px;
  overflow: hidden; transition: all .25s; cursor: pointer;
}
.pop-card:hover { transform: translateY(-5px); border-color: rgba(139,92,246,.3); box-shadow: 0 14px 40px var(--shd); }
.pop-card-img { position: relative; height: 150px; overflow: hidden; }
.pop-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pop-card:hover .pop-card-img img { transform: scale(1.06); }
.pop-disc {
  position: absolute; top: 12px; right: 12px;
  background: var(--pu); color: #fff; border-radius: 6px;
  padding: 3px 10px; font-size: .72rem; font-weight: 700;
}
.pop-card-tags { display: flex; gap: 5px; flex-wrap: wrap; padding: 10px 12px 0; }
.pop-ctag {
  background: var(--bg2); border: 1px solid var(--brd);
  color: var(--tx2); font-size: .65rem; padding: 3px 9px; border-radius: 50px;
}
.pop-card-body { padding: 8px 12px 14px; }
.pop-card-body h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.pop-card-body .pop-meta { font-size: .74rem; color: var(--tx2); }

/* Segments below popular */
.pop-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.seg-card {
  border-radius: 16px; padding: 24px; display: flex;
  justify-content: space-between; align-items: center; gap: 20px;
  overflow: hidden; position: relative; min-height: 160px;
  transition: all .25s;
}
.seg-card:hover { transform: translateY(-3px); }
.seg-card.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.seg-card.teal { background: linear-gradient(135deg, #ccfbf1, #a7f3d0); }
.seg-card-body h4 { font-family: 'Unbounded', sans-serif; font-size: 1.05rem; font-weight: 900; color: #0f172a; line-height: 1.25; margin-bottom: 8px; }
.seg-card-body p { font-size: .78rem; color: rgba(0,0,0,.5); margin-bottom: 14px; line-height: 1.5; }
.seg-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #0f172a; color: #fff; border-radius: 10px;
  padding: 10px 20px; font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: all .2s; border: none;
}
.seg-cta:hover { transform: translateX(3px); }
.seg-cta.green { background: #065f46; }

/* ═══ FREE MATERIALS ═══ */
#free { position: relative; z-index: 1; padding: 100px var(--side-padding); background: var(--bg2); }
.free-head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.free-head-nav { display: flex; gap: 10px; }
.free-nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sur); border: 1px solid var(--brd2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; color: var(--txt); font-size: 1rem;
}
.free-nav-btn:hover { background: var(--pu); color: #fff; border-color: var(--pu); }
.free-scroll-outer { overflow: hidden; }
.free-scroll-track {
  display: flex; gap: 18px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.free-card {
  flex-shrink: 0; width: 300px;
  background: var(--sur); border: 1px solid var(--brd);
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  min-height: 380px; transition: all .25s; cursor: pointer;
  position: relative;
}
.free-card:hover { transform: translateY(-5px); border-color: rgba(139,92,246,.3); box-shadow: 0 14px 40px var(--shd); }
.free-card.featured { border-color: #f97316; background: rgba(249,115,22,.04); }
.free-img { height: 160px; overflow: hidden; position: relative; }
.free-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.free-card:hover .free-img img { transform: scale(1.05); }
.free-body { padding: 24px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.free-cat { font-size: .68rem; font-weight: 700; color: var(--tx3); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 12px; }
.free-cat span { color: #f97316; }
.free-card h4 { font-size: .98rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; flex: 1; }
.free-card p { font-size: .79rem; color: var(--tx2); line-height: 1.6; margin-bottom: 20px; }
.free-type {
  display: inline-block; font-size: .68rem; font-weight: 700;
  color: var(--tx3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px;
}
.free-btn {
  width: 100%; padding: 12px; border-radius: 10px;
  font-weight: 700; font-size: .83rem; cursor: pointer;
  transition: all .2s; background: #0f172a; color: #fff; border: none;
}
[data-theme="light"] .free-btn { background: var(--txt); }
.free-btn:hover { background: var(--pu); transform: translateY(-1px); }
.free-all { font-size: .83rem; color: var(--tx2); text-decoration: underline; display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; cursor: pointer; transition: color .2s; }
.free-all:hover { color: var(--pu); }

/* ═══ PROFTEST ═══ */
.ptw {
  max-width: 880px; margin: 52px auto 0;
  background: var(--sur); border: 1px solid var(--brd);
  border-radius: 26px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.2fr;
  box-shadow: 0 24px 60px var(--shd);
}
.pt-l {
  background: linear-gradient(145deg, #1e1b4b, #312e81);
  padding: 52px 40px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.pt-l::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(139,92,246,.3), transparent 60%);
  pointer-events: none;
}
.pt-l h2 { font-family: 'Unbounded', sans-serif; font-size: 1.7rem; font-weight: 900; color: #fff; line-height: 1.2; letter-spacing: -1px; margin-bottom: 14px; position: relative; z-index: 1; }
.pt-l p { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.7; position: relative; z-index: 1; }
.pt-r { padding: 40px 36px; }
.pt-prog-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .72rem; }
.pt-bar { height: 4px; background: var(--brd); border-radius: 4px; margin-bottom: 26px; }
.pt-fill { height: 100%; background: linear-gradient(90deg, var(--pu), var(--cy)); border-radius: 4px; width: 0%; transition: width .5s; }
.pt-opts { display: flex; flex-direction: column; gap: 9px; }
.pt-o {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border: 1px solid var(--brd); border-radius: 11px;
  cursor: pointer; transition: all .2s; font-size: .86rem;
}
.pt-o:hover { border-color: rgba(139,92,246,.4); background: rgba(139,92,246,.05); }
.pt-o.sel { border-color: var(--pu); background: rgba(139,92,246,.1); color: #a78bfa; font-weight: 600; }
.pt-radio { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--brd2); flex-shrink: 0; transition: all .2s; }
.pt-o.sel .pt-radio { background: var(--pu); border-color: var(--pu); box-shadow: 0 0 8px var(--pu-g); }
.pt-foot { display: flex; justify-content: flex-end; margin-top: 22px; }
.pt-btn { background: var(--pu); color: #fff; border-radius: 10px; padding: 11px 26px; font-weight: 700; font-size: .83rem; cursor: pointer; transition: all .25s; }
.pt-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 52px; }
.fq { background: var(--sur); border: 1px solid var(--brd); border-radius: 14px; overflow: hidden; transition: border-color .2s; }
.fq:hover { border-color: rgba(139,92,246,.3); }
.fq-q { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; cursor: pointer; font-size: .86rem; font-weight: 600; gap: 12px; }
.fq-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--txt); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; transition: transform .3s, background .2s; line-height: 1; }
.fq.open .fq-icon { transform: rotate(45deg); background: var(--pu); color: #fff; }
.fq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .3s; padding: 0 18px; font-size: .81rem; color: var(--tx2); line-height: 1.7; }
.fq.open .fq-a { max-height: 200px; padding: 0 18px 14px; }

/* NEWS */
.news-g { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-top: 52px; }
.nc { background: var(--sur); border: 1px solid var(--brd); border-radius: 16px; overflow: hidden; transition: all .25s; }
.nc:hover { border-color: rgba(139,92,246,.3); transform: translateY(-5px); box-shadow: 0 18px 44px var(--shd); }
.nc-img { position: relative; overflow: hidden; }
.nc-img img { width: 100%; object-fit: cover; transition: transform .4s; }
.nc:first-child .nc-img img { height: 200px; }
.nc:not(:first-child) .nc-img img { height: 150px; }
.nc:hover .nc-img img { transform: scale(1.04); }
.nc-ov { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.65)); }
.nc-cat { position: absolute; top: 12px; left: 12px; background: rgba(139,92,246,.8); backdrop-filter: blur(5px); border-radius: 50px; padding: 4px 12px; font-size: .67rem; font-weight: 700; color: #fff; }
.nc-body { padding: 14px; }
.nc-body h4 { font-size: .92rem; font-weight: 700; margin-bottom: 7px; line-height: 1.4; }
.nc-body p { font-size: .77rem; color: var(--tx2); line-height: 1.55; margin-bottom: 10px; }
.nc-date { font-size: .68rem; color: var(--tx3); }

/* PARTNERS */
#partners { position: relative; z-index: 1; padding: 96px 0; background: var(--bg); overflow: hidden; }
.partners-head { text-align: center; padding: 0 56px; margin-bottom: 48px; }
.marq-outer { overflow: hidden; position: relative; }
.marq-outer::before, .marq-outer::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marq-outer::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marq-outer::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marq-track { display: flex; animation: marquee 30s linear infinite; }
.marq-track:hover { animation-play-state: paused; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.pi {
  flex-shrink: 0; min-width: 180px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 28px; border-right: 1px solid var(--brd);
}
.pi img { max-width: 110px; max-height: 32px; object-fit: contain; transition: opacity .2s; }
/* Тёмная тема: логотипы светлее на тёмном фоне */
[data-theme="dark"] .pi img { filter: invert(1) brightness(0.9); opacity: .7; }
[data-theme="dark"] .pi:hover img { opacity: 1; }
/* Светлая тема: логотипы чётко видны без инверсии */
[data-theme="light"] .pi img { filter: none; opacity: .85; }
[data-theme="light"] .pi:hover img { opacity: 1; }
.pi:hover img { opacity: 1; }

/* LMS */
.lms-tabs-row {
  display: flex; background: var(--su2); border-radius: 50px;
  padding: 5px; width: fit-content; margin-bottom: 40px;
}
.lt { padding: 9px 22px; border-radius: 50px; font-size: .81rem; font-weight: 600; cursor: pointer; color: var(--tx2); transition: all .2s; }
.lt.act { background: var(--txt); color: var(--bg); }
.lms-box {
  background: var(--sur); border: 1px solid var(--brd); border-radius: 22px;
  overflow: hidden; box-shadow: 0 20px 56px var(--shd);
}
.lms-top { background: var(--bg2); padding: 16px 24px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--brd); }
.lms-dots { display: flex; gap: 6px; }
.lms-dot { width: 11px; height: 11px; border-radius: 50%; }
.lms-tabs-b { display: flex; gap: 0; overflow-x: auto; flex: 1; margin-left: 12px; }
.ltb { padding: 11px 20px; font-size: .79rem; font-weight: 600; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; color: var(--tx2); transition: all .2s; }
.ltb.act { border-color: var(--pu); color: #a78bfa; }
.sch-g { display: grid; grid-template-columns: 72px repeat(4, 1fr); }
.sch-time { padding: 10px 12px; font-size: .71rem; color: var(--tx3); border-bottom: 1px solid var(--brd); height: 66px; display: flex; align-items: flex-start; border-right: 1px solid var(--brd); }
.sch-slot { height: 66px; padding: 4px; border-bottom: 1px solid var(--brd); border-right: 1px solid var(--brd); }
.sch-lesson { height: 100%; border-radius: 7px; padding: 5px 9px; font-size: .68rem; font-weight: 600; line-height: 1.3; cursor: pointer; transition: opacity .2s; }
.sch-lesson:hover { opacity: .8; }
.lp { background: rgba(139,92,246,.2); color: #c4b5fd; border: 1px solid rgba(139,92,246,.3); }
.lc { background: rgba(6,182,212,.15); color: #67e8f9; border: 1px solid rgba(6,182,212,.25); }
.lg { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.lo { background: rgba(249,115,22,.15); color: #fdba74; border: 1px solid rgba(249,115,22,.25); }

/* VIDEOS */
.vid-head-lbl { font-size: .72rem; font-weight: 700; color: var(--pu); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.vid-head-h { font-family: 'Unbounded', sans-serif; font-size: clamp(1.5rem,2.5vw,2rem); font-weight: 900; letter-spacing: -1px; margin-bottom: 48px; }
.vid-head-h em { font-style: normal; color: var(--pu); }
.vids-g { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vc {
  background: var(--sur); border: 1px solid var(--brd); border-radius: 20px;
  overflow: hidden; position: relative; cursor: pointer; transition: all .25s; aspect-ratio: 16/9;
}
.vc:hover { border-color: rgba(139,92,246,.4); transform: translateY(-4px); box-shadow: 0 18px 44px var(--shd); }
.vc img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vc:hover img { transform: scale(1.03); }
.vc-ov { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.vc-play { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; margin: auto; transition: transform .25s; }
.vc:hover .vc-play { transform: scale(1.15); }
.vc-title { font-weight: 700; font-size: .9rem; color: #fff; line-height: 1.3; }
.vc-sub { font-size: .73rem; color: rgba(255,255,255,.55); margin-top: 3px; }

/* CTA — пригласительный блок в стиле страницы «Пригласить» */
#cta {
  position: relative; z-index: 1; padding: 112px var(--side-padding);
  background: var(--bg2);
  transition: background var(--tr);
}
#cta[data-cta-theme="invite-light"] {
  background: linear-gradient(160deg, #f0eefc 0%, #e8e6fa 50%, #f5f3ff 100%);
}
#cta[data-cta-theme="invite-light"] .cta-invite-box {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(139,92,246,0.2);
  box-shadow: 0 24px 56px rgba(139,92,246,0.12);
}
#cta[data-cta-theme="invite-light"] .cta-invite-title,
#cta[data-cta-theme="invite-light"] .cta-invite-subtitle { color: #1a1a2e; }
#cta[data-cta-theme="invite-light"] .cta-invite-subtitle { color: #55557a; }
#cta[data-cta-theme="invite-light"] .cta-invite-glow { opacity: 0.35; }

.cta-invite-box {
  background: linear-gradient(145deg, rgba(139,92,246,.18), rgba(6,182,212,.08));
  border: 1px solid rgba(139,92,246,.35);
  border-radius: 28px;
  padding: 80px 64px; text-align: center; position: relative;
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), border-color var(--tr);
}
.cta-invite-box:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(139,92,246,0.2); }
.cta-invite-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(139,92,246,.25), transparent 65%);
  pointer-events: none;
}
.cta-invite-glow {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%);
  pointer-events: none; transform: translate(-50%, -50%);
  transition: opacity 0.25s; will-change: left, top; opacity: 0;
  left: 50%; top: 50%;
}
.cta-invite-content { position: relative; z-index: 2; }
.cta-invite-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: .8rem; font-weight: 600; color: var(--tx2);
}
.cta-invite-chip .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pu); animation: cta-pulse 2s ease-in-out infinite; }
@keyframes cta-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.1); } }
.cta-invite-title {
  font-family: 'Unbounded', sans-serif; font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 900; letter-spacing: -1px; margin-bottom: 14px; color: var(--txt);
  line-height: 1.15;
}
.cta-invite-subtitle {
  font-size: 1.05rem; color: var(--tx2); max-width: 520px; margin: 0 auto 36px;
  line-height: 1.65;
}
.cta-invite-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.cta-invite-btns .btn-invite-prime {
  padding: 16px 36px; font-size: 1rem; font-weight: 600; border-radius: 12px;
  background: linear-gradient(135deg, var(--pu), var(--pu-d)); color: #fff;
  border: none; text-decoration: none; cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr), filter var(--tr);
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}
.cta-invite-btns .btn-invite-prime:hover {
  transform: translateY(-3px); box-shadow: 0 8px 28px rgba(139,92,246,0.5);
}
.cta-invite-btns .btn-invite-prime:active { transform: translateY(-1px); }
.cta-invite-btns .btn-invite-outline {
  padding: 16px 32px; font-size: 1rem; font-weight: 600; border-radius: 12px;
  background: transparent; color: var(--txt); border: 2px solid var(--brd2);
  text-decoration: none; cursor: pointer;
  transition: transform var(--tr), border-color var(--tr), color var(--tr);
}
.cta-invite-btns .btn-invite-outline:hover {
  border-color: var(--pu); color: var(--pu); transform: translateY(-2px);
}
.cta-cta-toggle {
  position: absolute; top: 24px; right: 24px; z-index: 10;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--brd); background: var(--sur);
  color: var(--txt); cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: transform var(--tr), background var(--tr);
}
.cta-cta-toggle:hover { transform: scale(1.08); background: var(--bg2); }
.cta-cta-toggle:active { transform: scale(0.98); }

/* совместимость со старым блоком */
.cta-box {
  background: linear-gradient(145deg, rgba(139,92,246,.15), rgba(6,182,212,.07));
  border: 1px solid rgba(139,92,246,.28); border-radius: 28px;
  padding: 80px 64px; text-align: center; position: relative; overflow: hidden;
}
.cta-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% -10%, rgba(139,92,246,.22), transparent 70%); pointer-events: none; }
.cta-h { font-family: 'Unbounded', sans-serif; font-size: clamp(1.75rem,3.5vw,2.65rem); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 13px; }
.cta-s { font-size: .97rem; color: var(--tx2); margin-bottom: 36px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
footer { background: var(--sur); border-top: 1px solid var(--brd); padding: 68px var(--side-padding) 32px; position: relative; z-index: 1; }
.fg { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }
.fl { font-family: 'Unbounded', sans-serif; font-size: 1rem; font-weight: 900; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.fl em { font-style: normal; color: var(--pu); }
.fd { font-size: .79rem; color: var(--tx2); line-height: 1.75; max-width: 250px; }
.fc h6 { font-size: .7rem; font-weight: 700; margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase; color: var(--tx3); }
.fc a { display: block; font-size: .79rem; color: var(--tx2); margin-bottom: 9px; transition: color .2s; }
.fc a:hover { color: var(--pu); }
.fb { border-top: 1px solid var(--brd); padding-top: 22px; display: flex; justify-content: space-between; font-size: .72rem; color: var(--tx3); flex-wrap: wrap; gap: 8px; }

/* ОТДЕЛЫ — кнопки перехода на страницы */
#otdely { position: relative; z-index: 1; padding: 48px var(--side-padding); }
.otdely-head { text-align: center; margin-bottom: 28px; }
.otdely-head .chip { justify-content: center; }
.otdely-head .sec-h { font-size: 1.35rem; margin-bottom: 8px; }
.otdely-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 920px; margin: 0 auto; }
.otdely-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--sur); border: 1px solid var(--brd); border-radius: 18px;
  padding: 28px 20px; text-decoration: none; color: var(--txt);
  font-weight: 700; font-size: .95rem; transition: all .25s;
  box-shadow: 0 4px 20px var(--shd);
}
.otdely-btn:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.4); box-shadow: 0 12px 32px var(--shd); color: var(--txt); }
.otdely-btn .otdely-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.otdely-btn:nth-child(1) .otdely-ico { background: rgba(139,92,246,.15); }
.otdely-btn:nth-child(2) .otdely-ico { background: rgba(6,182,212,.15); }
.otdely-btn:nth-child(3) .otdely-ico { background: rgba(34,197,94,.15); }
.otdely-btn:nth-child(4) .otdely-ico { background: rgba(249,115,22,.15); }
@media(max-width:768px) { .otdely-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px) { .otdely-grid { grid-template-columns: 1fr; } }

/* REVEAL */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.rv.on { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.1s} .d2{transition-delay:.2s} .d3{transition-delay:.3s} .d4{transition-delay:.4s}

/* RESPONSIVE */
.nav-mobile { display: none; }
@media(max-width:1100px) {
  :root { --side-padding: 32px; }
  #hero { grid-template-columns: 1fr; padding: 48px var(--side-padding) 64px; }
  .hero-r { padding-top: 0; }
  .courses-head { text-align: left; }
  .about-panel.act { grid-template-columns: 1fr; }
  .pop-grid { grid-template-columns: 1fr 1fr; }
  .mtx { grid-template-columns: 1fr 1fr; }
  .fg { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px) {
  :root { --side-padding: 20px; }
  nav { padding: 0 var(--side-padding); height: 64px; } 
  .nav-links { display: none; }
  .nav-burger { display: flex !important; }
  .nav-mobile { 
    position: fixed; top: 64px; left: 0; width: 100%; height: calc(100vh - 64px);
    display: none; flex-direction: column; padding: 2rem; 
    background: var(--nav); backdrop-filter: blur(20px);
    border-top: 1px solid var(--brd); z-index: 8000; overflow-y: auto;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { 
    font-size: 1.25rem; font-weight: 600; color: var(--txt); 
    padding: 12px 0; border-bottom: 1px solid var(--brd);
  }
  .nav-mobile a:last-child { border-bottom: none; }

  .sec, #cta, #partners, #popular, #free { padding: 60px var(--side-padding); }
  .cta-invite-box { padding: 48px 24px; }
  .cta-cta-toggle { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 1.1rem; }
  #courses { padding: 60px 20px; }
  #hero { padding: 40px var(--side-padding) 56px; }
  #strip { flex-direction: column; }
  .si { border-right: none; border-bottom: 1px solid var(--brd); width: 100%; justify-content: center; }
  .faq-grid, .news-g, .vids-g { grid-template-columns: 1fr; }
  .about-bottom { grid-template-columns: 1fr; }
  .pop-grid { grid-template-columns: 1fr; }
  .pop-bottom { grid-template-columns: 1fr; }
  .ptw { grid-template-columns: 1fr; }
  .fg { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .mtx { grid-template-columns: 1fr 1fr; }
}