:root {
  --ink: #070b18;
  --ink-2: #10182c;
  --paper: #f4f6fb;
  --white: #ffffff;
  --text: #121826;
  --muted: #5d6780;
  --line: rgba(17, 24, 39, 0.08);
  --accent: #5b6cff;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --accent-soft: #eef0ff;
  --ok: #10b981;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
  --radius: 24px;
  --radius-sm: 14px;
  --header-h: 72px;
  --font: "Manrope", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}

.modal { z-index: 1080; }
.modal-backdrop { z-index: 1070; }

.site-header__inner,
.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 28px;
  width: auto;
}

.logo--light {
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(91, 108, 255, 0.28);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-light {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(91, 108, 255, 0.45), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(139, 92, 246, 0.35), transparent 50%),
    linear-gradient(180deg, #070b18 0%, #121a32 100%);
  color: #fff;
  padding: 84px 0 72px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

.lead {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.84);
}

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
}

.hero-panel img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1,
.cta-banner h2 {
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 0;
}

.section-head p,
.muted {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 240px;
  gap: 16px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  min-height: 220px;
  background: #1a2340 center / cover no-repeat;
  isolation: isolate;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,11,24,0.08) 0%, rgba(7,11,24,0.78) 100%);
  z-index: 0;
}

.product-card__body {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card span {
  align-self: flex-start;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
}

.product-card h3 {
  margin: 0 0 6px;
  font-size: 28px;
}

.product-card p {
  margin: 0;
  color: rgba(255,255,255,0.78);
}

.product-card.is-wide { grid-column: 1 / 2; grid-row: 1 / 3; }
.product-card.is-soon { filter: grayscale(0.35); }
.product-card.is-soon::after {
  content: "Скоро";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0,0,0,0.45);
  padding: 6px 10px;
  border-radius: 999px;
}

.product-card:hover { transform: translateY(-3px); transition: 0.2s ease; }

.feature-grid,
.benefit-grid,
.faq-list {
  display: grid;
  gap: 16px;
}

.feature-grid { grid-template-columns: repeat(4, 1fr); }
.benefit-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.page-hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(91,108,255,0.18), transparent 60%),
    #fff;
}

.page-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta-banner p {
  color: rgba(255,255,255,0.82);
  max-width: 560px;
}

.cta-banner .btn { margin-top: 6px; }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

.app-banner,
.cta-banner {
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(7,11,24,0.2), rgba(7,11,24,0.72)),
    url("../img/school/mob_banner.png") right bottom / cover no-repeat,
    #1a2340;
}

.cta-banner {
  background:
    radial-gradient(500px 220px at 90% 10%, rgba(34,211,238,0.28), transparent 55%),
    linear-gradient(135deg, #1c2450, #5b6cff 70%, #8b5cf6);
}

.store-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.store-row a,
.store-row img {
  width: 120px;
  height: auto;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.faq p {
  color: var(--muted);
  margin: 12px 0 0;
}

.legal-doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  margin: 40px auto 72px;
  width: min(900px, calc(100% - 32px));
  color: #334155;
  line-height: 1.7;
}

.legal-doc h1 {
  margin-top: 0;
  color: var(--text);
}

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 48px 0 24px;
}

.site-footer a { text-decoration: none; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer__copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  font-size: 13px;
}

.modal-content {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
}

.form-control {
  border-radius: 14px !important;
  padding: 12px 16px !important;
  background: #f3f4f8 !important;
  border: 1px solid transparent !important;
}

@media (max-width: 980px) {
  .hero__grid,
  .split,
  .feature-grid,
  .benefit-grid,
  .site-footer__grid,
  .product-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .product-card.is-wide { grid-column: auto; }

  .nav-toggle { display: grid; place-items: center; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    z-index: 45;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .nav { display: flex; }

  .header-actions .btn-light { display: none; }

  .hero,
  .section,
  .page-hero { padding: 48px 0; }

  .hero-panel { display: none; }
  .hero__grid { grid-template-columns: 1fr; }

  .app-banner,
  .cta-banner { padding: 24px; }
}
