:root {
  --bg: #0a0e17;
  --bg2: #0e1424;
  --card: #141c30;
  --card2: #1a2440;
  --line: #232f4d;
  --text: #edf1fa;
  --muted: #8e9bb5;
  --accent: #ffd34d;
  --accent-ink: #1c1500;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(41, 66, 122, 0.35) 0%, rgba(41, 66, 122, 0) 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(29, 44, 84, 0.25) 0%, rgba(29, 44, 84, 0) 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand span { color: var(--accent); }

.main-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--accent); }

.hero { padding: 110px 0 90px; }

.hero-kicker {
  display: inline-block;
  border: 1px solid var(--line);
  background: rgba(255, 211, 77, 0.07);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 800px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin-top: 22px;
}

.stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 56px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat span:last-child { color: var(--muted); font-size: 0.95rem; }
.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}

.section { padding: 84px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.dir-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.dir-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.dir-count {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dir-card h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.dir-card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.dir-link { font-weight: 700; font-size: 0.95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }

.card-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.chip-dir { background: rgba(255, 211, 77, 0.12); color: var(--accent); }
.chip-level { background: rgba(96, 165, 250, 0.14); color: #93c5fd; }

.card-title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.card-title a:hover { color: var(--accent); }

.card-school { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.card-school:hover { color: var(--accent); }

.card-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.meta-rating { color: var(--accent); font-weight: 700; }

.card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card-price { display: flex; flex-direction: column; }
.price { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.install { color: var(--muted); font-size: 0.85rem; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 12px;
  text-align: center;
  transition: filter 0.15s ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); color: var(--accent-ink); }

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 10px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.school-row { display: flex; flex-wrap: wrap; gap: 12px; }

.school-chip {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}
.school-chip:hover { border-color: var(--accent); color: var(--accent); }

.page-head {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}

.crumbs {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--accent); }

.page-head h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.page-desc { color: var(--muted); font-size: 1.08rem; max-width: 720px; margin-top: 14px; }
.page-desc a { color: var(--accent); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.toolbar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.toolbar select {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  min-width: 150px;
  cursor: pointer;
}
.toolbar select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.toolbar-count { margin-left: auto; color: var(--muted); font-size: 0.9rem; font-weight: 600; align-self: center; }

.src-note { color: var(--muted); font-size: 0.85rem; margin-top: 26px; }
.src-note a { color: var(--accent); }

.empty {
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  font-size: 1.02rem;
}

.course-head {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.course-side {
  position: sticky;
  top: 92px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-label { color: var(--muted); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.side-price { font-size: 2.1rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; line-height: 1.1; }
.side-install { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }
.side-note { color: var(--muted); font-size: 0.8rem; margin-top: 10px; }

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.spec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec span { color: var(--muted); font-size: 0.85rem; }
.spec b { font-size: 1.05rem; font-weight: 700; }

.prose { max-width: 760px; color: var(--muted); font-size: 1.05rem; display: flex; flex-direction: column; gap: 16px; }
.prose b { color: var(--text); }
.prose a { color: var(--accent); }

.photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.placeholder {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--card2) 0%, #0f172a 100%);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.course-head .card-tags { margin-bottom: 14px; }
.course-head h1 { margin-top: 8px; }
.course-head .photo,
.course-head .placeholder {
  height: 240px;
  margin-bottom: 20px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.spec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spec span { color: var(--muted); font-size: 0.85rem; }
.spec b { font-size: 1.05rem; font-weight: 700; }

.school-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.school-head .placeholder,
.school-head .photo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 0;
}

.school-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.school-big {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.25rem;
  font-weight: 800;
  white-space: nowrap;
}
.school-big .placeholder {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 0;
  font-size: 1.4rem;
}
.school-big .photo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 0;
}

.school-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.school-facts a { color: var(--accent); }
.school-facts b { color: var(--text); font-weight: 700; }

@media (max-width: 900px) {
  .school-block { grid-template-columns: 1fr; gap: 18px; }
  .school-head { flex-wrap: wrap; }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 24px 36px;
  flex-wrap: wrap;
}

.footer-note { color: var(--muted); font-size: 0.92rem; max-width: 320px; margin-top: 12px; }

.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.footer-cols a { color: var(--text); font-size: 0.94rem; }
.footer-cols a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid var(--line); padding: 20px 24px; }
.footer-bottom p { color: var(--muted); font-size: 0.84rem; }

@media (max-width: 900px) {
  .course-head { grid-template-columns: 1fr; }
  .course-side { position: static; }
  .header-inner { flex-direction: column; height: auto; padding: 14px 0; gap: 10px; }
  .main-nav { justify-content: center; gap: 18px; }
  .hero { padding: 70px 0 60px; }
  .stats { gap: 32px; }
  .section { padding: 60px 0; }
}

.card-photo {
  position: relative;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--card2), var(--card));
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-photo span {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.course-photo {
  position: relative;
  height: 150px;
  max-width: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--card2), var(--card));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.course-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-photo span {
  color: var(--accent);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
}

.school-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.prose h2 {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
