:root {
  --bg: #070914;
  --panel: #101426;
  --panel-2: #151b31;
  --text: #f7f8ff;
  --muted: #aeb5ca;
  --line: rgba(255,255,255,.10);
  --blue: #2d7dff;
  --green: #c8ff18;
  --purple: #7b4dff;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background:
    radial-gradient(circle at 80% 30%, rgba(45,125,255,.22), transparent 30%),
    radial-gradient(circle at 15% 15%, rgba(123,77,255,.16), transparent 28%),
    linear-gradient(135deg, #05060c 0%, #080d21 55%, #07142b 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .22;
}
.glow-1 { background: var(--blue); right: -100px; top: 120px; }
.glow-2 { background: var(--purple); left: -160px; bottom: -80px; }

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green);
  color: #101400;
}
.nav-button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  font-size: 14px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
  min-height: 640px;
}
.eyebrow, .section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--green);
}
h1 {
  margin: 14px 0 14px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: .9;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
h1 span { color: var(--green); }
.hero-subtitle {
  max-width: 590px;
  color: #d5daea;
  font-size: 19px;
  line-height: 1.55;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.badges span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #dfe3f1;
  font-size: 12px;
}
.price-card {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  margin: 25px 0 18px;
  padding: 14px 18px;
  border: 1px solid rgba(200,255,24,.3);
  border-radius: 18px;
  background: rgba(200,255,24,.07);
}
.price-card small, .price-card b {
  display: block;
  letter-spacing: .1em;
}
.price-card small { color: #d9dfef; font-weight: 800; }
.price-card strong {
  display: inline-block;
  margin-right: 5px;
  font-size: 48px;
  line-height: .95;
  color: var(--green);
}
.price-card b { color: #e8ebf4; font-size: 12px; }
.price-note {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  color: #c7cede;
  font-size: 12px;
  line-height: 1.45;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 13px;
  background: var(--green);
  color: #0b1002;
  font-weight: 900;
  box-shadow: 0 12px 35px rgba(200,255,24,.14);
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(200,255,24,.22); }

.hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}
.phone {
  position: relative;
  z-index: 2;
  width: min(310px, 72%);
  aspect-ratio: .5 / 1;
  padding: 10px;
  border: 3px solid #777e91;
  border-radius: 42px;
  background: linear-gradient(145deg, #2c3242, #080b12 60%);
  transform: rotate(7deg);
  box-shadow: 25px 30px 70px rgba(0,0,0,.55), 0 0 60px rgba(45,125,255,.18);
}
.phone-camera {
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 50%;
  width: 86px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #05060a;
}
.phone-screen {
  height: 100%;
  overflow: hidden;
  padding: 48px 15px 15px;
  border-radius: 32px;
  background: linear-gradient(180deg, #10162a, #070914);
}
.screen-header {
  padding: 10px;
  border-radius: 8px;
  background: var(--blue);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}
.mini-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.mini-list span {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #dfe3ef;
  font-size: 10px;
}
.screen-count {
  margin-top: 18px;
  padding: 14px 5px;
  border-radius: 10px;
  background: var(--green);
  color: #101500;
  text-align: center;
  font-weight: 1000;
}
.course-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.orbit-a { width: 420px; height: 420px; transform: rotate(20deg); }
.orbit-b { width: 520px; height: 220px; transform: rotate(-25deg); border-color: rgba(200,255,24,.16); }

.intro {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 60px;
  padding: 80px 0 45px;
}
h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  align-self: end;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 0;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 650px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16,20,38,.94);
  backdrop-filter: blur(16px);
}
.search-wrap span { color: var(--muted); font-size: 24px; }
.search-wrap input {
  width: 100%;
  padding: 14px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}
.search-wrap input::placeholder { color: #777f96; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.filter {
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #b8bfd0;
}
.filter.active, .filter:hover {
  background: var(--green);
  color: #101500;
  border-color: var(--green);
  font-weight: 800;
}

.catalog { padding-bottom: 90px; }
.results-line {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin: 30px 0 22px;
}
.results-line h2 { font-size: 34px; }
#resultCount { color: var(--muted); font-size: 14px; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.course-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 96px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,255,24,.35);
  background: rgba(200,255,24,.045);
}
.course-icon {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #17203a;
}
.course-category {
  margin-bottom: 4px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.course-name {
  color: #f3f5fb;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}
.empty-state {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
}
.empty-state div { font-size: 36px; }
.empty-state p { color: var(--muted); }
.hidden { display: none !important; }

.cta {
  padding: 75px 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(45,125,255,.25), transparent 30%),
    linear-gradient(135deg, #0c1330, #10101e);
  border-block: 1px solid var(--line);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta h2 span { color: var(--green); }
.cta p { color: var(--muted); }
.primary-button.light { background: white; color: #10121b; white-space: nowrap; }

footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 28px 0;
  color: #8f96aa;
  font-size: 12px;
}
.footer-inner div { display: grid; gap: 4px; }
.footer-inner strong { color: white; font-size: 15px; }

@media (max-width: 850px) {
  .hero-content { grid-template-columns: 1fr; padding: 55px 0 70px; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 430px; }
  .intro { grid-template-columns: 1fr; gap: 20px; padding-top: 55px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1120px); }
  .nav-button { display: none; }
  h1 { font-size: clamp(45px, 15vw, 68px); }
  .hero-subtitle { font-size: 16px; }
  .badges span { font-size: 11px; }
  .price-card { width: 100%; }
  .price-card strong { font-size: 42px; }
  .price-note { margin-left: auto; }
  .primary-button { width: 100%; }
  .hero-visual { min-height: 370px; }
  .phone { width: 220px; }
  .course-orbit { transform: scale(.75); }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { min-height: auto; }
  .toolbar { padding-top: 12px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .results-line { align-items: center; }
  .results-line h2 { font-size: 27px; }
  .footer-inner { flex-direction: column; }
}
