/* Interactive-Education — общий стиль сайта */
:root {
  --ink: #0b1020;
  --ink-2: #131a33;
  --text: #0f172a;
  --muted: #5b6478;
  --line: #e4e8f1;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --primary: #3b5bfd;
  --primary-2: #2a44d6;
  --accent: #14c3a2;
  --accent-soft: #e3f8f3;
  --primary-soft: #eaeeff;
  --warn: #ff8a3d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --wrap: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(59, 91, 253, .35); }
.btn-primary:hover { background: var(--primary-2); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-light:hover { border-color: var(--primary); color: var(--primary); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: -.01em; }
.logo:hover { color: #fff; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 15px; font-weight: 800; color: #fff;
}
.logo small { display: block; font-weight: 500; font-size: 11px; color: rgba(255, 255, 255, .55); letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.logo span { line-height: 1.15; font-size: 15px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: rgba(255, 255, 255, .78); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--accent); color: var(--ink); padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: 1px;
}
.header .btn { padding: .65em 1.15em; font-size: 14px; }
.burger {
  display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}
.burger svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 960px) {
  .burger { display: grid; place-items: center; }
  .header .btn-cta { display: none; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav .btn { margin-top: 8px; }
}
@media (min-width: 961px) { .nav .btn-mobile { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(59, 91, 253, .45), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(20, 195, 162, .28), transparent 60%),
    var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); margin-bottom: 22px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(20, 195, 162, .25); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin-bottom: 20px; }
.grad { background: linear-gradient(90deg, #8fa4ff, #5ee6cc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .75); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: 13.5px; color: rgba(255, 255, 255, .6); }

.hero-visual { position: relative; height: 480px; }
.hero-visual .ph {
  position: absolute; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero-visual .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .ph-a { width: 62%; height: 78%; right: 0; top: 0; }
.hero-visual .ph-b { width: 50%; height: 56%; left: 0; bottom: 0; }
.float-card {
  position: absolute; left: 6%; top: 8%; background: rgba(255, 255, 255, .96); color: var(--text);
  border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; max-width: 250px;
}
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: #0b8f77; flex: none; }
.float-card .ic svg { width: 22px; height: 22px; }
.float-card b { display: block; font-size: 14px; line-height: 1.25; }
.float-card span { font-size: 12.5px; color: var(--muted); }
.float-card.fc-2 { left: auto; right: -2%; top: auto; bottom: 6%; }
.float-card.fc-2 .ic { background: var(--primary-soft); color: var(--primary); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .hero-visual { height: 380px; }
}
@media (max-width: 520px) {
  .hero-visual { height: 320px; }
  .float-card { display: none; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 24px; }
}

/* ---------- Секции ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; }
.bg-white { background: var(--surface); }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-sm { padding: 48px 0; } }

/* ---------- Промо Kaspersky ---------- */
.promo {
  position: relative; overflow: hidden; border-radius: 24px; padding: 40px 44px; color: #fff;
  background: linear-gradient(120deg, #0f3d36 0%, #0b6b5b 45%, #14c3a2 120%);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; box-shadow: var(--shadow-lg);
}
.promo::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); pointer-events: none;
}
.promo .badge { display: inline-block; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; margin-bottom: 12px; }
.promo h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 8px; }
.promo p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 620px; }
.promo .btn { background: #fff; color: #0b5d4f; position: relative; z-index: 1; }
.promo .btn:hover { background: #eafff9; color: #0b5d4f; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; padding: 30px 24px; } }

/* ---------- Курсы ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px;
  padding: 8px 16px; font: 600 14px/1.2 var(--font); cursor: pointer; transition: .15s;
}
.chip-btn:hover { border-color: var(--primary); color: var(--primary); }
.chip-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
@media (max-width: 400px) { .courses { grid-template-columns: 1fr; } }
.course {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d3daf0; }
.course[hidden] { display: none; }
.course-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.course-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.course-ic svg { width: 26px; height: 26px; }
.course-ic.teal { background: var(--accent-soft); color: #0b8f77; }
.course-ic.orange { background: #fff1e7; color: #e0661b; }
.course-ic.violet { background: #f2ebff; color: #7a3df0; }
.course-ic.pink { background: #ffe9f1; color: #d6336c; }
.course-cat { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.course h3 { font-size: 20px; font-weight: 800; margin: 2px 0 0; }
.course .sub { color: var(--muted); font-size: 14.5px; margin: -4px 0 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.on { color: #2a44d6; background: var(--primary-soft); border-color: transparent; }
.pill.off { color: #0b8f77; background: var(--accent-soft); border-color: transparent; }
.pill.site { color: #c2560f; background: #fff1e7; border-color: transparent; }
.prog { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: 14.5px; }
.prog li { display: flex; gap: 10px; align-items: flex-start; }
.prog li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b5bfd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
details.modules { border-top: 1px solid var(--line); margin: 0 0 20px; }
details.modules summary { cursor: pointer; list-style: none; padding: 14px 0 0; font-weight: 700; font-size: 14.5px; color: var(--primary); display: flex; align-items: center; gap: 6px; }
details.modules summary::-webkit-details-marker { display: none; }
details.modules summary::after { content: "+"; font-size: 18px; line-height: 1; margin-left: auto; transition: transform .2s; }
details.modules[open] summary::after { transform: rotate(45deg); }
.mod { margin-top: 14px; }
.mod h4 { font-size: 14.5px; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.mod h4 b { width: 22px; height: 22px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; flex: none; }
.mod ul { margin: 0; padding-left: 30px; font-size: 14px; color: var(--muted); }
.mod li { margin-bottom: 3px; }
.course-foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.course-foot .btn { padding: .7em 1.15em; font-size: 14px; }
.who { font-size: 14px; background: var(--bg); border-radius: 12px; padding: 10px 12px; margin-bottom: 18px; }

/* ---------- Преимущества ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature .num { font-size: 13px; font-weight: 800; color: var(--primary); background: var(--primary-soft); width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; }
.feature h3 { font-size: 19px; font-weight: 800; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* ---------- Форматы ---------- */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.format { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius-sm); background: var(--bg); }
.format .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.format .ic svg { width: 22px; height: 22px; }
.format b { display: block; margin-bottom: 2px; }
.format span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .formats { grid-template-columns: 1fr; } }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: #dde3ef; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .gallery figure { scroll-snap-align: start; }
}

/* ---------- Контакты ---------- */
.contact {
  border-radius: 28px; padding: 56px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(59, 91, 253, .5), transparent 60%), var(--ink);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.contact h2 { color: #fff; }
.contact p { color: rgba(255, 255, 255, .72); }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: .15s;
}
.contact-item:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.contact-item .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); flex: none; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item small { display: block; color: rgba(255, 255, 255, .55); font-size: 12.5px; }
.contact-item b { font-size: 17px; word-break: break-all; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; padding: 36px 22px; } }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .6); font-size: 14px; padding: 40px 0; margin-top: 96px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.footer a { color: rgba(255, 255, 255, .8); }
.footer a:hover { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer .tm { flex-basis: 100%; font-size: 12.5px; color: rgba(255, 255, 255, .4); border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; }

/* ---------- Страница Kaspersky ---------- */
.page-hero { color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(800px 420px at 90% -20%, rgba(20, 195, 162, .45), transparent 60%),
    radial-gradient(600px 400px at 0% 120%, rgba(59, 91, 253, .35), transparent 60%),
    var(--ink);
}
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 20%, #000 15%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 15%, transparent 70%);
}
.page-hero .wrap { position: relative; padding-top: 72px; padding-bottom: 80px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
.crumbs { font-size: 13.5px; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.75); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; }
.page-hero .lead { color: rgba(255,255,255,.75); font-size: 18px; max-width: 620px; margin-bottom: 28px; }
.price-cards { display: grid; gap: 14px; }
.price-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 22px 24px; }
.price-card .lbl { font-size: 13.5px; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.price-card .val { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price-card .val span { font-size: 20px; }
.price-card .note { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 6px; }
.price-card.hl { background: linear-gradient(135deg, rgba(20,195,162,.25), rgba(59,91,253,.18)); border-color: rgba(94,230,204,.35); }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: 1fr; align-items: start; padding-top: 48px; padding-bottom: 56px; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: st; content: "0" counter(st); font-size: 13px; font-weight: 800; color: var(--accent); display: block; margin-bottom: 14px; letter-spacing: .05em; }
.step h3 { font-size: 17px; font-weight: 800; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.fact { border-radius: var(--radius); padding: 22px 24px; background: var(--primary-soft); }
.fact b { display: block; font-size: 30px; font-weight: 800; color: var(--primary-2); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 4px; }
.fact span { font-size: 14.5px; color: #34407a; }
.fact.teal { background: var(--accent-soft); } .fact.teal b { color: #0b8f77; } .fact.teal span { color: #1d5e52; }
.fact.orange { background: #fff1e7; } .fact.orange b { color: #d4590f; } .fact.orange span { color: #7a4220; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* таблицы */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 280px; max-width: 380px; }
.search input {
  width: 100%; padding: 12px 14px 12px 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font: 500 15px var(--font); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59,91,253,.12); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.data th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: #fafbfe; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: #f8f9fd; }
table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); padding: 3px 8px; border-radius: 7px; white-space: nowrap; }
.grp td { background: #f3f5fb; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 18px; }
.tag-sm { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-left: 8px; vertical-align: 1px; }
.tag-sm.orange { background: #fff1e7; color: #c2560f; }
.tag-sm.blue { background: var(--primary-soft); color: var(--primary-2); }
.empty { padding: 28px; text-align: center; color: var(--muted); display: none; }
.course-price { font-weight: 800; white-space: nowrap; }
td .btn { padding: .5em .95em; font-size: 13.5px; }
td.fmt { white-space: nowrap; }
td.fmt .pill { margin: 2px 0; }

/* таблицы на телефоне — карточками */
@media (max-width: 640px) {
  table.data { min-width: 0; }
  table.data thead { display: none; }
  table.data tr:not(.grp) { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
  table.data tr[hidden] { display: none; }
  table.data td { padding: 0; border: 0; }
  table.data .grp td { display: block; }
  #exam-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  #exam-table td:nth-child(4) { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 13.5px; }
  #exam-table td:nth-child(2) { grid-column: 1 / -1; font-weight: 600; }
  #exam-table td:nth-child(3) { grid-column: 1 / -1; text-align: left; color: var(--muted); font-size: 13.5px; }
  #exam-table td:nth-child(3)::after { content: " вопросов"; }
  #course-table td:nth-child(1) { grid-column: 1 / -1; grid-row: 1; }
  #course-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  #course-table td:nth-child(3) { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 13.5px; }
  #course-table td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; }
  #course-table td:nth-child(4) { grid-column: 1; grid-row: 4; text-align: left; font-size: 18px; }
  #course-table td:nth-child(6) { grid-column: 2; grid-row: 4; }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: border-color .15s; }
.faq details[open] { border-color: #cdd6f5; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 17px; display: flex; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 24px 22px; color: #3b4458; }
.faq .ans p:last-child { margin: 0; }
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.two-col .sticky { position: sticky; top: 100px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; gap: 28px; } .two-col .sticky { position: static; } }

/* ---------- Проверка сертификата ---------- */
.cert-page { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 56px 16px; }
.cert-card { width: 100%; max-width: 480px; background: var(--surface); border-radius: 24px; padding: 40px 36px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); text-align: center; }
.cert-card .ic { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.cert-card .ic svg { width: 32px; height: 32px; }
.cert-card h1 { font-size: 26px; font-weight: 800; }
.cert-card p { color: var(--muted); }
.cert-card label { display: block; text-align: left; font-weight: 700; font-size: 14px; margin: 24px 0 8px; }
.cert-card input[type="text"] {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); font: 600 17px var(--font); letter-spacing: .02em;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.cert-card input[type="text"]:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59,91,253,.12); }
.cert-card .btn { width: 100%; margin-top: 16px; padding: 1em; font-size: 16px; }
@media (max-width: 480px) { .cert-card { padding: 32px 20px; } }

/* ---------- Анимации ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
