:root {
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.45);
  --secondary: #8b5cf6;
  --secondary-glow: rgba(139, 92, 246, 0.45);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(30, 41, 59, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(15, 23, 42, 0.7);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, var(--primary-glow), transparent 30%),
    radial-gradient(circle at 85% 30%, var(--secondary-glow), transparent 30%);
  z-index: -2;
  pointer-events: none;
}

.glass-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links a,
.nav-links .dropbtn {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-links a::after,
.nav-links .dropbtn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .dropbtn:hover,
.nav-links li:hover > .dropbtn {
  color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links li:hover > .dropbtn::after {
  width: 80%;
}

.dropbtn .chevron {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

.nav-links li:hover > .dropbtn .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: rgba(2, 6, 23, 0.97);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 999;
  animation: dropFade 0.18s ease;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

@keyframes dropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-links li:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}

.dropdown-menu a::after { display: none !important; }

.dropdown-menu a:hover {
  color: var(--text-main);
  background: rgba(59, 130, 246, 0.15);
  padding-left: 1.6rem;
}

.page-wrapper {
  padding-top: 74px;
  min-height: 100vh;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 3rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 30px;
  font-size: 0.82rem;
  color: var(--primary);
  margin-bottom: 1.4rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #fff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 660px;
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 44px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

.info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.info-card p {
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.85;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}

.team-card:nth-child(1) { grid-column: 1 / 3; }
.team-card:nth-child(2) { grid-column: 3 / 5; }
.team-card:nth-child(3) { grid-column: 5 / 7; }

.team-card:nth-child(4) { grid-column: 2 / 4; }
.team-card:nth-child(5) { grid-column: 4 / 6; }

.team-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}

.team-card .role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.team-card .name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.team-card .desc {
  font-size: 0.87rem;
  color: var(--text-muted);
}

.page-header {
  text-align: center;
  padding: 3.5rem 2rem 1.5rem;
}

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

details {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

details:hover { border-color: rgba(59, 130, 246, 0.35); }

details[open] {
  border-color: var(--primary);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.1);
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.2s ease;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '＋';
  font-size: 1.15rem;
  color: var(--primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--primary); }

.accordion-body {
  padding: 1rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.85;
  border-top: 1px solid var(--glass-border);
  animation: slideDown 0.22s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.accordion-body h3 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 1rem 0 0.3rem;
}

.accordion-body h3:first-child { margin-top: 0.5rem; }

.accordion-body ul {
  list-style: none;
  padding-left: 0;
}

.accordion-body ul li {
  padding: 0.22rem 0 0.22rem 1.3rem;
  position: relative;
}

.accordion-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.accordion-body p { margin-top: 0.6rem; }

.razdel-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 1.4rem 0 0.6rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 1rem;
}

.razdel-label:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.placeholder {
  font-style: italic;
  color: rgba(148, 163, 184, 0.5);
}


.summary-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  flex: 1;
  min-width: 0;
}

.lesson-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-size: 0.73rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.25));
  color: #93c5fd;
  flex-shrink: 0;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.lesson-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  white-space: nowrap;
  letter-spacing: 0.3px;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.accordion-body .lesson-kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 1.3rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  display: block;
}

.accordion-body .lesson-kicker:first-child { margin-top: 0.4rem; }

.accordion-body .lesson-p {
  margin-top: 0.45rem;
  padding-left: 0.6rem;
  border-left: 2px solid rgba(148, 163, 184, 0.15);
}

.accordion-body .lesson-bio {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 0.6rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  position: relative;
  overflow: hidden;
}

.accordion-body .lesson-bio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 2px;
}

.accordion-body .lesson-bio strong {
  display: block;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.accordion-body .lesson-quote {
  border-left: 3px solid #ec4899;
  padding: 0.65rem 1rem;
  margin: 0.8rem 0;
  font-style: italic;
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.08);
  border-radius: 0 10px 10px 0;
  font-size: 0.93rem;
  line-height: 1.6;
}

.accordion-body .callout {
  border-radius: 0 10px 10px 0;
  padding: 0.75rem 1.1rem;
  margin: 0.75rem 0;
  font-size: 0.88rem;
  line-height: 1.6;
  position: relative;
}

.accordion-body .callout-ok {
  border-left: 3px solid #22c55e;
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}

.accordion-body .callout-warn {
  border-left: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.07);
  color: #fca5a5;
}

.accordion-body .callout-ex {
  border-left: 3px solid #64748b;
  background: rgba(100, 116, 139, 0.1);
  color: #cbd5e1;
  white-space: pre-line;
  font-size: 0.86rem;
  font-family: 'Outfit', sans-serif;
}

.lesson-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.accordion-body .lesson-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.accordion-body .lesson-table th,
.accordion-body .lesson-table td {
  padding: 0.55rem 0.8rem;
  text-align: left;
  border: 1px solid var(--glass-border);
  vertical-align: top;
}

.accordion-body .lesson-table th {
  background: rgba(59, 130, 246, 0.1);
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.accordion-body .lesson-table tr:hover td {
  background: rgba(59, 130, 246, 0.04);
}

.lesson-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0.65rem 0;
}

@media (max-width: 640px) {
  .lesson-grid-2 { grid-template-columns: 1fr; }
}

.lesson-card {
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.55;
  background: rgba(15, 23, 42, 0.5);
  transition: var(--transition);
}

.lesson-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(15, 23, 42, 0.8);
}

.lesson-card strong {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
}

.page-header .page-sub {
  max-width: 520px;
  margin: 0.35rem auto 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.tests-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.tests-hero .icon-big { font-size: 4rem; margin-bottom: 1.2rem; }

.tests-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.tests-hero p {
  max-width: 500px;
  color: var(--text-muted);
  font-size: 1.03rem;
  margin-bottom: 2rem;
}

.badge-soon {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--secondary);
  border-radius: 30px;
  color: var(--secondary);
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
  background: rgba(2, 6, 23, 0.6);
}

footer p + p { margin-top: 0.3rem; }

.nav-toggle, .hamburger {
  display: none;
}
.hamburger {
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.9rem 1rem;
    position: relative;
    flex-wrap: wrap;
  }
  .nav-logo span { font-size: 1.1rem; }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid var(--glass-border);
  }
  
  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    position: relative;
  }

  .nav-links a, 
  .nav-links .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.8rem 1rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    border: none;
    border-radius: 0;
    margin-top: 0;
  }
  
  .nav-links li:hover .dropdown-menu,
  .nav-links li:focus-within .dropdown-menu {
    display: block; 
  }

  .hero { padding: 5rem 1.5rem 2rem; }
  .container { padding: 2rem 1rem; }
  .info-card { padding: 1.4rem; }

  .team-grid { grid-template-columns: 1fr; }
  .team-card:nth-child(n) { grid-column: auto; }
  summary { font-size: 0.95rem; padding: 0.95rem 1.1rem; }
  .accordion-body { padding: 0.8rem 1.1rem 1.2rem; }
}
