:root {
  --blue: #1d8fd8;
  --blue-hover: #1778b8;
  --blue-soft: #eef6fb;
  --red: #c51c23;
  --red-hover: #a6161c;
  --red-soft: #f6eeee;
  --ink: #0d0d0d;
  --ink-2: #3d3d3d;
  --ink-3: #8a8a8a;
  --bg: #fafafa;
  --surface: #ffffff;
  --muted: #ededed;
  --border: #dcdcdc;
  --radius: 6px;
  --shadow: 0 10px 28px rgba(29, 143, 216, 0.08);
  --header: 68px;
  --max: 1180px;
  --font: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 0.45em; font-weight: 600; }
h1 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
h2 { font-size: clamp(1.12rem, 1.7vw, 1.45rem); }
h3 { font-size: 0.98rem; letter-spacing: -0.01em; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
}
.skip-link:focus { left: 8px; z-index: 80; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: var(--blue);
  -webkit-mask: url("/static/img/mark-hex.svg") center / contain no-repeat;
  mask: url("/static/img/mark-hex.svg") center / contain no-repeat;
}

.lead { font-size: 1.02rem; color: var(--ink-2); max-width: 42rem; }
.muted { color: var(--ink-3); }
.section { padding: 72px 0; }
.section--tight { padding-top: 0; }
.section__title { margin-bottom: 24px; }

.band {
  padding: 64px 0;
  background: var(--blue-soft);
}
.band--soft { background: var(--blue-soft); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
  padding: 9px 16px;
  min-height: 38px;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: none; }
.btn--accent {
  background: var(--red);
  color: #fff;
  box-shadow: none;
}
.btn--accent:hover { background: var(--red-hover); }
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}
.btn--lg { padding: 11px 20px; min-height: 42px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn:focus-visible, .nav__link:focus-visible, .course-row:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.text-link {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(1.2) blur(14px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header__row {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}
.logo img { width: 40px; height: 44px; object-fit: contain; }
.logo__name { display: block; font-weight: 600; font-size: 0.84rem; line-height: 1.15; }
.logo__sub { display: block; color: var(--ink-3); font-size: 0.7rem; }
.nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav__link {
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 0;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__link.is-active {
  background: transparent;
  color: var(--blue);
}
.nav__link:hover { background: transparent; color: var(--blue); }
.nav__item--mega { position: relative; }
.mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-30%);
  width: min(860px, 80vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 30;
}
.nav__item--mega:hover .mega,
.nav__item--mega:focus-within .mega { display: block; }
.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.mega__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
}
.mega__link small { color: var(--ink-3); font-weight: 400; }
.mega__link:hover { background: var(--blue-soft); color: var(--blue); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone {
  font-weight: 500;
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}
.header__phone:hover { color: var(--blue); }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--muted);
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.burger span { width: 18px; height: 2px; background: var(--ink); display: block; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(13,13,13,.35);
}
.mobile-nav__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: #fff;
  padding: 22px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav a, .mobile-nav summary {
  padding: 10px 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; }
.icon-btn { border: 0; background: var(--muted); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero__meta { color: var(--ink-3); font-weight: 500; font-size: 0.84rem; }
.hero__card {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.hero__card::after { display: none; }
.hero__card-kicker { font-weight: 500; color: var(--blue); margin-bottom: 10px; font-size: 0.78rem; }

.hero__deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gear-deco {
  position: absolute;
  right: -80px;
  top: -90px;
  width: 420px;
  height: 420px;
  background: var(--blue);
  opacity: 0.1;
  -webkit-mask: url("/static/img/mark-hex.svg") center / contain no-repeat;
  mask: url("/static/img/mark-hex.svg") center / contain no-repeat;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: var(--muted);
  margin-bottom: 14px;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.chip {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  padding: 16px 14px;
}
.chip strong { display: block; margin-bottom: 6px; font-weight: 600; }
.chip span { color: var(--ink-2); font-size: 0.92rem; }

.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.module {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
}
.module h3 { margin-bottom: 8px; }
.module p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.feature-list li {
  padding-left: 28px;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--blue);
  -webkit-mask: url("/static/img/mark-hex.svg") center / contain no-repeat;
  mask: url("/static/img/mark-hex.svg") center / contain no-repeat;
}

.page-hero { padding: 56px 0 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-3); font-size: 0.9rem; margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }

/* Cards */
.cards { display: grid; gap: 18px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card--link { text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease, box-shadow .15s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__count {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  font-weight: 600;
}

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare__col { border-radius: 8px; padding: 28px; }
.compare__col--mute { background: #fff; border: 1px solid var(--border); }
.compare__col--yes { background: var(--blue); color: #fff; }
.compare__col--yes .btn { margin-top: 18px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist--no li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.checklist--yes li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.compare__col--yes .checklist--yes li::before { color: #fff; }

.form-banner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  padding: 36px 40px;
}
.form-banner .eyebrow { color: rgba(255,255,255,.88); }
.form-banner .eyebrow::before { background: #fff; }
.form-banner .muted { color: rgba(255,255,255,.78); }
.form-banner .btn--accent { flex-shrink: 0; }
.section--form { padding-top: 0; }

.prose p, .prose li { color: var(--ink-2); }
.prose img { border-radius: 8px; margin: 12px 0; }
.cms-body .cards { margin: 24px 0; }
.cms-body .steps { margin: 16px 0 28px; }
.prose p:last-child { margin-bottom: 0; }
.prose--wide { max-width: 52rem; }
.prose--wide.prose--follow { margin-top: 28px; }
.prose a { color: var(--blue); }

.directions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.direction {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  text-decoration: none;
}
.direction:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.direction strong { display: block; margin-bottom: 4px; }
.direction span { color: var(--ink-3); font-size: 0.82rem; }

.theory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.stats { background: var(--blue); color: #fff; padding: 64px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stats__num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin: 0; color: #fff; letter-spacing: -0.04em; }
.stats p:not(.stats__num) { margin: 8px 0 0; color: rgba(255,255,255,.88); font-size: 0.92rem; }

.clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.clients__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 12px;
}
.clients__item img { max-height: 48px; width: auto; filter: grayscale(1); opacity: 0.85; }
.clients__caption { margin-top: 18px; }

.faq-teaser details, .faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px 20px;
  margin-bottom: 10px;
}
.faq-teaser summary, .faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}
.contacts-teaser { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.contacts-teaser__aside { display: grid; gap: 16px; }
.contacts-teaser img, .cert { border-radius: 16px; border: 1px solid var(--border); }

.course-table { display: grid; gap: 8px; margin-bottom: 36px; }
.course-row {
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  text-decoration: none;
}
.course-row:hover { border-color: var(--blue); }
.course-row__code { font-weight: 600; color: var(--blue); }
.course-row__meta, .course-row__go { color: var(--ink-3); font-size: 0.9rem; }
.group-title { margin: 8px 0 14px; font-size: 1.3rem; }

.course-layout { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 32px; align-items: start; }
.side-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  border: 1px solid var(--border);
  position: sticky;
  top: 108px;
}
.meta-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.meta-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--muted); padding-bottom: 10px; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li {
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 16px 64px;
  position: relative;
  border: 1px solid var(--border);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 16px; top: 14px;
  font-weight: 600;
  color: var(--blue);
}

.news-card img, .news-card__placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--muted);
  margin-bottom: 8px;
}
.article { max-width: 820px; }
.article__hero { width: 100%; border-radius: 24px; margin: 18px 0 24px; max-height: 360px; object-fit: cover; }

.empty { text-align: center; padding: 48px 16px; }
.success-mark {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 700;
}

.footer { background: var(--ink); color: #fff; padding: 64px 0 24px; margin-top: 24px; border-top: 3px solid var(--blue); }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__heading { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.footer__list { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer__note { color: var(--ink-3); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, #fff 12%, var(--ink));
  color: var(--ink-3);
  font-size: 0.88rem;
}
.logo--footer { color: #fff; margin-bottom: 16px; }

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal.is-open { display: grid; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,.45);
  animation: fade .2s ease;
}
.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  animation: rise .22s ease;
  max-height: min(92vh, 820px);
  overflow: auto;
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: var(--muted);
  cursor: pointer;
  font-size: 1.4rem;
}
.lead-form { display: grid; gap: 12px; margin-top: 18px; }
.field { display: grid; gap: 6px; font-weight: 500; font-size: 0.85rem; }
.field input, .field textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--bg);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.check a { color: var(--blue); }
.form-error, .field.is-invalid input, .field.is-invalid textarea { }
.form-error { color: var(--red); font-weight: 600; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, white); }
.modal__success { text-align: center; }
.btn[disabled] { opacity: 0.65; cursor: wait; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

body.modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .hero__grid, .split, .compare, .cards--3, .cards--2, .stats__grid,
  .contacts-teaser, .course-layout, .footer__grid, .form-banner, .field-row,
  .chips, .modules, .feature-list {
    grid-template-columns: 1fr;
  }
  .directions, .theory { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .course-row { grid-template-columns: 1fr; gap: 6px; }
  .header__actions .btn--ghost { display: none; }
  .hero { padding-top: 36px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .chips { grid-template-columns: 1fr 1fr; }
  .modules { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .directions, .theory { grid-template-columns: 1fr; }
  .hero__card { padding: 24px; }
  .form-banner, .compare__col { padding: 24px; }
  .logo__sub { display: none; }
  .logo { min-width: 0; }
  .header__actions .btn--accent { display: none; }
}
