/* ============ Tokens ============ */
:root {
  --bg: #f7f4ec;
  --bg-elev: #fffdf7;
  --ink: #15202b;
  --ink-2: #2b3744;
  --muted: #5b6876;
  --line: #e3ddcd;
  --line-2: #cfc7b3;
  --brand: #1f3a5f;        /* deep navy */
  --brand-2: #14233a;
  --brand-ink: #f7f4ec;
  --accent: #b5462a;       /* warm rust */
  --accent-2: #d4663a;
  --gold: #a37a2c;
  --ok: #2e6b3a;
  --shadow-1: 0 1px 0 rgba(20,35,58,.06), 0 8px 24px -16px rgba(20,35,58,.18);
  --shadow-2: 0 2px 0 rgba(20,35,58,.04), 0 24px 60px -28px rgba(20,35,58,.28);
  --r-1: 6px;
  --r-2: 12px;
  --r-3: 18px;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.serif { font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif; font-feature-settings: 'ss01'; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p  { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--accent); display: inline-block; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,236,.85);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: white;
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.brand-text { line-height: 1.1; }
.brand-text small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 14px; color: var(--ink-2); }
.nav-links a { padding: 6px 0; border-bottom: 1px solid transparent; transition: border .2s, color .2s; }
.nav-links a:hover { color: var(--brand); border-bottom-color: var(--accent); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: var(--brand-ink);
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .15s, background .15s;
}
.nav-cta:hover { background: var(--brand-2); transform: translateY(-1px); }
.nav-phone { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.nav-phone::before { content: '\260E'; font-size: 14px; color: var(--brand); }

.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-phone { margin-left: auto; margin-right: 12px; font-size: 14px; font-weight: 500; }
  .burger { display: block; margin-left: 0; }
  .mobile-open .nav-links { display: flex; flex-direction: column; gap: 14px; position: absolute; top: 66px; left: 0; right: 0; background: var(--bg-elev); padding: 22px var(--pad); border-bottom: 1px solid var(--line); margin: 0; }
}
@media (max-width: 420px) {
  .nav-phone { font-size: 12.5px; }
  .brand-text small { display: none; }
}

/* ============ Hero ============ */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(46,107,58,.16); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(46,107,58,.16); } 50% { box-shadow: 0 0 0 8px rgba(46,107,58,.04); } }
.hero h1 { margin: 22px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; background: rgba(181,70,42,.16); z-index: -1; border-radius: 2px; }
.hero-sub { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--ink-2); max-width: 56ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 500; font-size: 15px;
  cursor: pointer; border: 0; font-family: inherit; transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-2); }

.hero-meta { display: flex; gap: 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta div { font-size: 13px; color: var(--muted); }
.hero-meta strong { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: 24px; color: var(--brand); font-weight: 600; }

/* Hero visual: stacked official paper */
.hero-visual { position: relative; height: 460px; }
.paper {
  position: absolute; background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  padding: 22px;
  box-shadow: var(--shadow-2);
}
.paper-1 { top: 0; left: 8%; right: 22%; padding: 28px 26px; }
.paper-2 { top: 50px; left: 28%; right: 0; transform: rotate(2deg); }
.paper-3 { top: 230px; left: 0; right: 40%; transform: rotate(-3deg); padding: 18px 20px; }

.stamp {
  position: absolute; top: 24px; right: 24px;
  width: 86px; height: 86px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  display: grid; place-items: center; text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; line-height: 1.2;
  transform: rotate(-12deg);
  opacity: .85;
  padding: 6px;
}
.stamp::before, .stamp::after { content: ''; position: absolute; left: 8px; right: 8px; height: 1px; background: var(--accent); }
.stamp::before { top: 16px; }
.stamp::after { bottom: 16px; }

.paper-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; font-weight: 600; }
.paper-line { height: 8px; background: var(--line); border-radius: 4px; margin: 8px 0; }
.paper-line.s { width: 70%; }
.paper-line.m { width: 90%; }
.paper-line.l { width: 100%; }
.paper-kv { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; }
}

/* ============ Sections ============ */
section { padding: clamp(60px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head h2 { max-width: 22ch; }
.section-head p { color: var(--muted); max-width: 42ch; }

/* ============ Courses ============ */
.courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.course {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
  overflow: hidden;
}
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.course-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.course-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }
.course-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.course-pill { background: rgba(31,58,95,.08); color: var(--brand); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.course-pill.warn { background: rgba(181,70,42,.1); color: var(--accent); }
.course-meta { display: flex; gap: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.course-meta b { color: var(--ink); font-weight: 500; }
.course p { color: var(--ink-2); font-size: 15px; }
.course-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; }
.course-price { font-family: 'Source Serif 4', Georgia, serif; }
.course-price s { color: var(--muted); font-size: 14px; }
.course-price b { font-size: 20px; color: var(--ok); margin-left: 8px; font-weight: 600; }
.course-link { color: var(--brand); font-size: 14px; font-weight: 500; }
.course-link::after { content: ' →'; transition: margin .2s; display: inline-block; }
.course:hover .course-link::after { margin-left: 4px; }

@media (max-width: 720px) { .courses { grid-template-columns: 1fr; } }

/* ============ Main page: directions grid ============ */
.dirs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dir {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 32px 36px;
  display: flex; flex-direction: column; gap: 18px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.dir:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.dir-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dir-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.dir-cat { font-size: 12px; font-weight: 500; padding: 5px 13px; border-radius: 999px; white-space: nowrap; }
.dir-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.dir-lead { color: var(--ink-2); font-size: 15px; }
.dir-programs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.dir-programs li { font-size: 14px; color: var(--ink-2); padding-left: 26px; position: relative; line-height: 1.45; }
.dir-programs li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(31,58,95,.08); color: var(--brand);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.dir-meta { display: flex; gap: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.dir-meta b { color: var(--ink); font-weight: 500; }
.dir-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 6px; }
.dir-doc { font-size: 12.5px; color: var(--muted); max-width: 60%; line-height: 1.3; }
.dir-link { color: var(--brand); font-size: 14px; font-weight: 500; white-space: nowrap; }
.dir-link::after { content: ' →'; display: inline-block; transition: margin .2s; }
.dir:hover .dir-link::after { margin-left: 4px; }
@media (max-width: 760px) { .dirs { grid-template-columns: 1fr; } }

/* ============ Kadry banner ============ */
.kadry-band { padding: clamp(40px, 5vw, 64px) 0 !important; }
.kadry-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: linear-gradient(135deg, var(--brand) 0%, #2c4a6f 60%, var(--brand-2) 100%);
  border-radius: var(--r-3);
  padding: clamp(28px, 4vw, 44px);
  color: var(--brand-ink);
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.kadry-inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 18%, rgba(181,70,42,.4), transparent 52%);
  pointer-events: none;
}
.kadry-inner::after {
  content: ''; position: absolute; top: 0; right: 0; width: 200px; height: 100%;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px);
  mask-image: linear-gradient(to left, black, transparent);
  -webkit-mask-image: linear-gradient(to left, black, transparent);
  pointer-events: none;
}
.kadry-inner:hover { transform: translateY(-2px); box-shadow: 0 28px 56px -28px rgba(20,35,58,.5); }
.kadry-inner > * { position: relative; z-index: 1; }
.kadry-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); display: block; margin-bottom: 14px; }
.kadry-inner h2 { color: var(--brand-ink); font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.kadry-inner p { color: rgba(247,244,236,.82); font-size: 15px; max-width: 60ch; }
.kadry-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; text-align: right; }
.kadry-price { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 600; line-height: 1; color: var(--accent-2); }
.kadry-link { font-size: 15px; font-weight: 500; color: var(--brand-ink); white-space: nowrap; }
.kadry-inner:hover .kadry-link .arr { margin-left: 4px; }
.kadry-link .arr { display: inline-block; transition: margin .2s; }
@media (max-width: 760px) { .kadry-inner { flex-direction: column; align-items: flex-start; } .kadry-cta { flex-direction: row; align-items: center; align-self: stretch; justify-content: space-between; } }

/* ============ Geography (cities) ============ */



/* ============ SEO prose (city pages) ============ */
.seo-prose p { font-size: 16px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }
.seo-prose p:last-child { margin-bottom: 0; }
.seo-near { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.seo-near a { color: var(--brand); border-bottom: 1px solid transparent; transition: border-color .15s; }
.seo-near a:hover { border-bottom-color: var(--accent); }

/* ============ Blog / articles ============ */
.article-wrap { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--pad); }
.article-back { font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; margin-bottom: 28px; }
.article-back:hover { color: var(--brand); }
.article h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 18px; }
.article .meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; }
.article h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 36px 0 14px; }
.article p { font-size: 16.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }
.article ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.article li { margin-bottom: 8px; }
.article .cta-box { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-3); padding: 28px 32px; margin: 40px 0; }
.article .cta-box h3 { font-size: 1.3rem; margin-bottom: 10px; }
.article .cta-box p { font-size: 15px; margin-bottom: 18px; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.blog-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-3); padding: 28px 30px; transition: transform .2s, box-shadow .2s, border-color .2s; display: block; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.blog-card .tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.blog-card h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.35rem; font-weight: 600; line-height: 1.15; margin: 10px 0 10px; color: var(--ink); }
.blog-card p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 720px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============ SVO card variant (same size as others) ============ */
.course-svo-card {
  background:
    linear-gradient(180deg, rgba(31,58,95,.02) 0%, transparent 80px),
    var(--bg-elev);
  border-color: var(--brand);
  border-width: 1px;
  position: relative;
  padding-top: 56px;
}
.course-svo-card::before {
  /* Георгиевская лента: чёрные и оранжевые полосы по верхнему краю */
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 28px;
  background:
    repeating-linear-gradient(
      90deg,
      #d97a2a 0 14%,
      #1c1c1c 14% 18%,
      #d97a2a 18% 32%,
      #1c1c1c 32% 36%,
      #d97a2a 36% 50%,
      #1c1c1c 50% 54%,
      #d97a2a 54% 68%,
      #1c1c1c 68% 72%,
      #d97a2a 72% 86%,
      #1c1c1c 86% 90%,
      #d97a2a 90% 100%
    );
  background-size: 100% 100%;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.svo-badge {
  position: absolute; top: 36px; right: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: var(--brand-ink);
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  box-shadow: 0 4px 12px rgba(31,58,95,.25);
}
.svo-badge-star {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  color: white; font-size: 11px;
}
.course-svo-card .course-num { color: var(--accent); font-weight: 500; }
.course-svo-card .course-title { color: var(--brand); }
.course-svo-card .course-pill {
  background: rgba(181,70,42,.1);
  color: var(--accent);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.svo-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Market stats inside course card */
.course-market {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border-radius: var(--r-2); overflow: hidden;
  border: 1px solid var(--line);
}
.market-cell { background: var(--bg); padding: 14px 16px; }
.market-cell small {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.market-cell b {
  display: block; font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px; font-weight: 600; color: var(--brand); line-height: 1.1;
}
.market-cell em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }

.course-benefits {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.course-benefits li {
  font-size: 13.5px; color: var(--ink-2); padding-left: 22px; position: relative; line-height: 1.45;
}
.course-benefits li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 600; font-size: 13px;
}

/* ============ SVO featured course ============ */
.course-svo {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--brand) 0%, #2c4a6f 60%, var(--brand-2) 100%);
  border: 1px solid var(--brand);
  border-radius: var(--r-3);
  padding: 0;
  cursor: pointer;
  color: var(--brand-ink);
  position: relative;
  overflow: hidden;
  display: block;
  transition: transform .2s, box-shadow .2s;
}
.course-svo::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(181,70,42,.35), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(212,102,58,.18), transparent 50%);
  pointer-events: none;
}
.course-svo::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 220px; height: 100%;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px);
  pointer-events: none;
  mask-image: linear-gradient(to left, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 0%, transparent 100%);
}
.course-svo:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(20,35,58,.55); }

.svo-ribbon {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 14px clamp(24px, 4vw, 36px);
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
}
.svo-star {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  background: rgba(255,255,255,.18); border-radius: 50%;
  font-size: 13px;
}

.svo-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 48px);
  padding: clamp(28px, 4vw, 44px);
  align-items: start;
}
.svo-title {
  color: var(--brand-ink);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin: 8px 0 14px;
}
.svo-lead {
  color: rgba(247,244,236,.85);
  font-size: 1.02rem;
  margin-bottom: 20px;
  max-width: 56ch;
}
.svo-benefits li {
  color: rgba(247,244,236,.92);
  font-size: 14px;
  padding-left: 24px;
}
.svo-benefits li::before {
  color: var(--accent-2);
  content: '✓';
}

.svo-side { display: flex; flex-direction: column; gap: 14px; }
.svo-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(247,244,236,.14);
  border-radius: var(--r-2);
  padding: 16px 18px;
  backdrop-filter: blur(6px);
}
.svo-stat small {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(247,244,236,.55); margin-bottom: 6px;
}
.svo-stat b {
  display: block; font-family: 'Source Serif 4', Georgia, serif;
  font-size: 28px; font-weight: 600; color: var(--brand-ink); line-height: 1;
}
.svo-stat em { display: block; font-style: normal; font-size: 12px; color: rgba(247,244,236,.6); margin-top: 6px; }

.svo-stat-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svo-stat-meta b { font-size: 18px; }
.svo-stat-meta small { margin-bottom: 4px; }

@media (max-width: 760px) {
  .svo-grid { grid-template-columns: 1fr; }
  .course-market { grid-template-columns: 1fr; }
}

/* ============ Categories ============ */
.cats-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.cats-list { display: flex; flex-direction: column; gap: 6px; }
.cat-item {
  text-align: left; cursor: pointer;
  background: transparent; border: 0; padding: 14px 16px;
  border-radius: var(--r-1); font-family: inherit; font-size: 14px;
  color: var(--ink-2); display: flex; align-items: center; gap: 12px;
  transition: background .15s, color .15s;
}
.cat-item:hover { background: var(--bg-elev); color: var(--ink); }
.cat-item.active { background: var(--brand); color: var(--brand-ink); }
.cat-item.active .cat-num { color: rgba(255,255,255,.6); }
.cat-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); min-width: 22px; }
.cat-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: clamp(28px, 4vw, 44px);
  min-height: 360px;
}
.cat-panel h3 { font-size: 1.7rem; margin-bottom: 14px; }
.cat-panel .lead { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 22px; }
.cat-docs { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px dashed var(--line); }
.cat-docs h4 { font-family: inherit; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.cat-docs li { font-size: 14px; color: var(--ink-2); padding-left: 22px; position: relative; }
.cat-docs li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.cat-docs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 880px) {
  .cats-wrap { grid-template-columns: 1fr; }
  .cats-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .cat-item { padding: 10px 14px; background: var(--bg-elev); border: 1px solid var(--line); }
}

/* ============ Advantages ============ */
.advs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
.adv { background: var(--bg-elev); padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.adv-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(31,58,95,.08); color: var(--brand);
  display: grid; place-items: center;
  font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; font-weight: 600;
}
.adv h3 { font-size: 1.15rem; }
.adv p { color: var(--muted); font-size: 14px; }
@media (max-width: 880px) { .advs { grid-template-columns: 1fr; } }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); }
.step { background: var(--bg-elev); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: 'Source Serif 4', Georgia, serif; font-size: 42px; color: var(--accent); line-height: 1; font-weight: 600; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 14px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: 'Source Serif 4', Georgia, serif; font-size: 1.15rem; font-weight: 500; color: var(--ink);
}
.faq-q:hover { color: var(--brand); }
.faq-toggle { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; transition: transform .2s, background .2s, color .2s; color: var(--ink-2); }
.faq-item.open .faq-toggle { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 0 22px; color: var(--ink-2); }

/* ============ Form ============ */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-aside h2 { margin-bottom: 18px; }
.form-aside .contact { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-item { display: flex; gap: 14px; font-size: 14px; color: var(--ink-2); }
.contact-item b { display: block; color: var(--ink); font-weight: 500; }
.contact-item span:first-child { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; min-width: 80px; padding-top: 2px; }

.form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: clamp(24px, 3vw, 36px);
}
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: 15px;
  padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r-1); color: var(--ink);
  outline: none; transition: border-color .15s, background .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); background: white; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form button { width: 100%; justify-content: center; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }
.form-success { padding: 18px; background: rgba(46,107,58,.08); border: 1px solid rgba(46,107,58,.2); border-radius: var(--r-2); color: var(--ok); font-size: 14px; }
@media (max-width: 880px) { .form-wrap { grid-template-columns: 1fr; } .form .row-2 { grid-template-columns: 1fr; } }

/* ============ Trust band ============ */
.trust {
  background: var(--brand);
  color: var(--brand-ink);
  padding: clamp(48px, 6vw, 72px) 0;
  position: relative;
  overflow: hidden;
  border: 0;
}
.trust .container { position: relative; z-index: 1; }
.trust-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; align-items: end; }
.trust-grid h2 { color: var(--brand-ink); max-width: 18ch; }
.trust-grid .stat strong { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; line-height: 1; color: var(--brand-ink); }
.trust-grid .stat span { display: block; font-size: 13px; color: rgba(247,244,236,.7); margin-top: 8px; }
.trust::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(181,70,42,.5), transparent 70%);
}
@media (max-width: 880px) { .trust-grid { grid-template-columns: 1fr 1fr; } }

/* ============ Footer ============ */
.footer { background: var(--brand-2); color: var(--brand-ink); padding: 56px 0 32px; border: 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,244,236,.55); font-weight: 500; margin-bottom: 16px; }
.foot-grid a { display: block; font-size: 14px; padding: 4px 0; color: rgba(247,244,236,.85); }
.foot-grid a:hover { color: var(--accent-2); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; margin-top: 40px; border-top: 1px solid rgba(247,244,236,.1); font-size: 12px; color: rgba(247,244,236,.55); flex-wrap: wrap; gap: 12px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ============ Modal ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,35,58,.5); backdrop-filter: blur(4px);
  display: grid; place-items: center; z-index: 100; padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg);
  border-radius: var(--r-3);
  width: 100%; max-width: 720px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head { padding: 32px 36px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 1.7rem; margin-bottom: 8px; }
.modal-body { padding: 28px 36px; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-elev); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.modal-close:hover { background: var(--accent); color: white; border-color: var(--accent); }
.modal-section { margin-bottom: 24px; }
.modal-section h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.modal-section ul { padding-left: 22px; color: var(--ink-2); }
.modal-section li { margin-bottom: 6px; }
.modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px; background: var(--bg-elev); border-radius: var(--r-2); margin-bottom: 24px; }
.modal-grid div small { display: block; font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.modal-grid div b { font-family: 'Source Serif 4', Georgia, serif; font-size: 16px; font-weight: 600; }


/* ============================================================
   Specialty landing pages (kadry-*.html)
   ============================================================ */
.sp-back { display:inline-block; font-size:14px; color:var(--muted); margin-bottom:28px; }
.sp-back:hover { color:var(--brand); }

.sp-hero { background: var(--bg-elev); border-bottom:1px solid var(--line); padding: 40px 0 64px; position:relative; overflow:hidden; }
.sp-hero-svo { background: linear-gradient(180deg, rgba(31,58,95,.03), var(--bg-elev) 120px); }
.sp-hero-svo::before { content:''; position:absolute; top:0; left:0; right:0; height:6px;
  background: repeating-linear-gradient(90deg,#d97a2a 0 14%,#1c1c1c 14% 18%,#d97a2a 18% 32%,#1c1c1c 32% 36%,#d97a2a 36% 50%,#1c1c1c 50% 54%,#d97a2a 54% 68%,#1c1c1c 68% 72%,#d97a2a 72% 86%,#1c1c1c 86% 90%,#d97a2a 90% 100%); }
.sp-hero-grid { display:grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px,4vw,56px); align-items:start; }
.sp-h1 { font-family:'Source Serif 4',Georgia,serif; font-weight:600; font-size:clamp(2rem,4vw,3.2rem); line-height:1.05; letter-spacing:-0.015em; margin:18px 0; text-wrap:balance; }
.sp-lead { font-size:clamp(1rem,1.3vw,1.15rem); color:var(--ink-2); max-width:60ch; line-height:1.6; }
.sp-cta { display:flex; gap:14px; margin-top:28px; flex-wrap:wrap; }

.sp-card { background:var(--bg); border:1px solid var(--line-2); border-radius:var(--r-3); padding:28px; box-shadow:var(--shadow-1); }
.sp-price { display:flex; flex-direction:column; gap:2px; padding-bottom:20px; border-bottom:1px dashed var(--line); margin-bottom:20px; }
.sp-price span { font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.sp-price s { color:var(--muted); font-size:15px; }
.sp-price b { font-family:'Source Serif 4',Georgia,serif; font-size:40px; font-weight:600; color:var(--ok); line-height:1; }
.sp-params { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:20px; }
.sp-params small { display:block; font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
.sp-params b { font-family:'Source Serif 4',Georgia,serif; font-size:20px; font-weight:600; color:var(--brand); }
.sp-doc { font-size:14px; color:var(--ink-2); padding-top:16px; border-top:1px dashed var(--line); }
.sp-doc small { display:block; font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }

.sp-sec { padding: clamp(48px,7vw,84px) 0; border-bottom:1px solid var(--line); }
.sp-alt { background:var(--bg-elev); }
.sp-narrow { max-width: 860px; }
.sp-h2 { font-family:'Source Serif 4',Georgia,serif; font-weight:600; font-size:clamp(1.6rem,2.8vw,2.2rem); line-height:1.1; letter-spacing:-0.01em; margin:14px 0 24px; text-wrap:balance; }
.sp-p { font-size:17px; color:var(--ink-2); line-height:1.75; margin-bottom:18px; }
.sp-p:last-child { margin-bottom:0; }
.sp-note { font-size:13px; color:var(--muted); margin-top:18px; line-height:1.6; }

.sp-why { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:8px; }
.sp-why-card { background:var(--bg); border:1px solid var(--line); border-radius:var(--r-2); padding:24px 26px; display:flex; gap:18px; align-items:flex-start; }
.sp-alt .sp-why-card { background:var(--bg-elev); }
.sp-why-num { font-family:'Source Serif 4',Georgia,serif; font-size:30px; font-weight:600; color:var(--accent); line-height:1; flex-shrink:0; }
.sp-why-card p { font-size:16px; color:var(--ink-2); line-height:1.55; margin:0; }

.sp-cols { display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,5vw,64px); }
.sp-list { list-style:none; padding:0; margin:8px 0 0; display:flex; flex-direction:column; gap:12px; }
.sp-list li { font-size:16px; color:var(--ink-2); padding-left:30px; position:relative; line-height:1.5; }
.sp-list li::before { content:'✓'; position:absolute; left:0; top:0; width:20px; height:20px; border-radius:50%; background:rgba(46,107,58,.14); color:var(--ok); display:grid; place-items:center; font-size:11px; font-weight:700; }
.sp-list-job li::before { content:'→'; background:rgba(31,58,95,.1); color:var(--brand); }

.sp-salary { margin-top:24px; border:1px solid var(--line); border-radius:var(--r-2); overflow:hidden; }
.sp-salary-head, .sp-salary-row { display:grid; grid-template-columns:1.6fr 1fr; gap:16px; padding:14px 20px; align-items:center; }
.sp-salary-head { background:var(--brand); color:var(--brand-ink); font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase; }
.sp-salary-row { background:var(--bg); border-top:1px solid var(--line); font-size:16px; color:var(--ink-2); }
.sp-alt .sp-salary-row { background:var(--bg-elev); }
.sp-salary-row b { font-family:'Source Serif 4',Georgia,serif; font-size:18px; font-weight:600; color:var(--ok); text-align:right; }

.sp-adv { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:8px; }
.sp-adv-card { background:var(--bg-elev); border:1px solid var(--line); border-radius:var(--r-2); padding:26px 24px; }
.sp-adv-card > b { font-family:'Source Serif 4',Georgia,serif; font-size:28px; font-weight:600; color:var(--brand); display:block; margin-bottom:14px; }
.sp-adv-card h3 { font-family:'Source Serif 4',Georgia,serif; font-size:18px; font-weight:600; margin-bottom:8px; }
.sp-adv-card p { font-size:14px; color:var(--muted); line-height:1.5; margin:0; }

.sp-final { background:var(--brand); color:var(--brand-ink); padding:clamp(56px,7vw,88px) 0; text-align:center; position:relative; overflow:hidden; }
.sp-final::before { content:''; position:absolute; top:-120px; right:-120px; width:380px; height:380px; border-radius:50%; background:radial-gradient(circle,rgba(181,70,42,.4),transparent 70%); }
.sp-final-svo::after { content:''; position:absolute; top:0; left:0; right:0; height:6px;
  background: repeating-linear-gradient(90deg,#d97a2a 0 14%,#1c1c1c 14% 18%,#d97a2a 18% 32%,#1c1c1c 32% 36%,#d97a2a 36% 50%,#1c1c1c 50% 54%,#d97a2a 54% 68%,#1c1c1c 68% 72%,#d97a2a 72% 86%,#1c1c1c 86% 90%,#d97a2a 90% 100%); }
.sp-final-h { font-family:'Source Serif 4',Georgia,serif; font-weight:600; font-size:clamp(1.8rem,3.4vw,2.6rem); line-height:1.1; max-width:20ch; margin:0 auto 18px; color:var(--brand-ink); position:relative; z-index:1; }
.sp-final-p { font-size:17px; color:rgba(247,244,236,.8); max-width:60ch; margin:0 auto 28px; line-height:1.6; position:relative; z-index:1; }
.sp-final .sp-cta { justify-content:center; position:relative; z-index:1; }
.btn-ghost-light { background:transparent; color:var(--brand-ink); border:1px solid rgba(247,244,236,.35); }
.btn-ghost-light:hover { border-color:var(--brand-ink); background:rgba(247,244,236,.08); }

@media (max-width: 880px) {
  .sp-hero-grid, .sp-cols { grid-template-columns:1fr; }
  .sp-why, .sp-adv { grid-template-columns:1fr; }
  .sp-adv { grid-template-columns:1fr 1fr; }
}
@media (max-width: 560px) {
  .sp-params { grid-template-columns:1fr 1fr; }
  .sp-adv { grid-template-columns:1fr; }
  .sp-salary-head, .sp-salary-row { grid-template-columns:1.4fr 1fr; padding:12px 14px; }
}


/* ============================================================
   Каталог всех курсов (vse-kursy.html)
   ============================================================ */
.vk-hero { background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden; }
.vk-hero::before { content:''; position:absolute; top:-180px; right:-160px; width:560px; height:560px; border-radius:50%; background:radial-gradient(circle, rgba(181,70,42,.5), transparent 65%); }
.vk-hero::after { content:''; position:absolute; inset:0; background-image:repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 2px, transparent 2px 24px); }
.vk-hero-in { position:relative; z-index:2; padding: clamp(44px,6vw,76px) var(--pad) clamp(32px,4vw,52px); }
.vk-hero h1 { color:var(--brand-ink); font-size:clamp(2rem,4vw,3.1rem); max-width:20ch; }
.vk-hero h1 em { font-style:normal; color:var(--accent-2); }
.vk-hero p { color:rgba(247,244,236,.82); font-size:clamp(1rem,1.3vw,1.15rem); margin-top:18px; max-width:62ch; line-height:1.6; }
.vk-hero-meta { display:flex; gap:30px; margin-top:28px; flex-wrap:wrap; }
.vk-hero-meta div small { display:block; font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:rgba(247,244,236,.55); margin-bottom:6px; }
.vk-hero-meta div b { font-family:'Source Serif 4',Georgia,serif; font-size:28px; font-weight:600; color:var(--brand-ink); }

/* sticky controls */
.vk-controls { position:sticky; top:0; z-index:40; background:rgba(247,244,236,.94); backdrop-filter:saturate(1.4) blur(10px); border-bottom:1px solid var(--line); }
.vk-controls-in { padding:16px 0; display:flex; flex-direction:column; gap:14px; }
.vk-search { position:relative; }
.vk-search input { width:100%; font-family:inherit; font-size:16px; padding:13px 16px 13px 44px; border:1px solid var(--line-2); border-radius:999px; background:var(--bg-elev); color:var(--ink); outline:none; transition:border-color .15s, background .15s; }
.vk-search input:focus { border-color:var(--brand); background:#fff; }
.vk-search svg { position:absolute; left:16px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:var(--muted); }
.vk-chips { display:flex; gap:8px; flex-wrap:wrap; }
.vk-chip { font-family:inherit; font-size:13.5px; font-weight:500; padding:8px 15px; border-radius:999px; border:1px solid var(--line-2); background:var(--bg-elev); color:var(--ink-2); cursor:pointer; transition:background .15s, color .15s, border-color .15s; white-space:nowrap; }
.vk-chip:hover { border-color:var(--brand); color:var(--brand); }
.vk-chip.active { background:var(--brand); color:var(--brand-ink); border-color:var(--brand); }
.vk-chip b { font-weight:500; opacity:.6; margin-left:5px; }

/* course sections */
.vk-body { padding: clamp(36px,5vw,56px) 0 clamp(56px,7vw,88px); }
.vk-cat { margin-bottom:44px; scroll-margin-top:140px; }
.vk-cat-head { display:flex; align-items:baseline; gap:14px; margin-bottom:18px; padding-bottom:14px; border-bottom:2px solid var(--brand); }
.vk-cat-head h2 { font-size:clamp(1.4rem,2.4vw,1.9rem); }
.vk-cat-head span { font-family:'JetBrains Mono',monospace; font-size:13px; color:var(--muted); }
.vk-list { display:flex; flex-direction:column; gap:10px; }
.vk-course { background:var(--bg-elev); border:1px solid var(--line); border-radius:14px; padding:18px 22px; display:grid; grid-template-columns:1fr auto auto; gap:18px; align-items:center; transition:border-color .15s, box-shadow .15s; }
.vk-course:hover { border-color:var(--line-2); box-shadow:var(--shadow-1); }
.vk-course-main { min-width:0; }
.vk-course-title { font-family:'Source Serif 4',Georgia,serif; font-size:17.5px; font-weight:600; color:var(--ink); line-height:1.3; }
.vk-course-tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.vk-tag { font-size:12px; color:var(--muted); background:var(--bg); border:1px solid var(--line); border-radius:6px; padding:3px 9px; }
.vk-tag.h { color:var(--brand); border-color:rgba(31,58,95,.18); background:rgba(31,58,95,.05); }
.vk-prices { text-align:right; white-space:nowrap; }
.vk-price-row { font-size:13px; color:var(--muted); }
.vk-price-row b { font-family:'Source Serif 4',Georgia,serif; font-size:19px; font-weight:600; color:var(--brand); margin-left:6px; }
.vk-price-row.dist b { color:var(--ok); }
.vk-course-btns { display:flex; flex-direction:column; gap:8px; align-items:stretch; }
.vk-detail { font-size:14px; font-weight:500; padding:11px 18px; border-radius:999px; border:1px solid var(--line-2); background:transparent; color:var(--brand); text-align:center; transition:background .15s,border-color .15s,color .15s; white-space:nowrap; }
.vk-detail:hover { background:var(--brand); color:var(--brand-ink); border-color:var(--brand); }
.vk-order { font-family:inherit; font-size:14px; font-weight:500; padding:11px 20px; border-radius:999px; border:0; background:var(--accent); color:#fff; cursor:pointer; transition:background .15s, transform .15s; white-space:nowrap; }
.vk-order:hover { background:var(--accent-2); transform:translateY(-1px); }
.vk-empty { text-align:center; padding:60px 20px; color:var(--muted); font-size:17px; }

@media (max-width: 760px) {
  .vk-course { grid-template-columns:1fr; gap:14px; }
  .vk-prices { text-align:left; display:flex; gap:18px; }
  .vk-order { width:100%; }
}

/* order modal reuse .modal-* but ensure form fields */
.vk-form-row { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.vk-form-row label { font-size:12px; color:var(--muted); font-family:'JetBrains Mono',monospace; letter-spacing:.08em; text-transform:uppercase; }
.vk-form-row input, .vk-form-row textarea { font-family:inherit; font-size:15px; padding:12px 14px; background:var(--bg); border:1px solid var(--line-2); border-radius:8px; color:var(--ink); outline:none; transition:border-color .15s, background .15s; }
.vk-form-row input:focus, .vk-form-row textarea:focus { border-color:var(--brand); background:#fff; }
.vk-picked { background:rgba(31,58,95,.06); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:18px; }
.vk-picked small { font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); display:block; margin-bottom:5px; }
.vk-picked b { font-family:'Source Serif 4',Georgia,serif; font-size:16px; font-weight:600; line-height:1.3; }


/* ====== Корзина каталога ====== */
.vk-order.in-cart { background: var(--ok); }
.vk-order.in-cart:hover { background: #25562f; }
.vk-cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--brand); color: var(--brand-ink); box-shadow: 0 -8px 30px -12px rgba(20,35,58,.5); transform: translateY(110%); transition: transform .25s ease; }
.vk-cart-bar.show { transform: translateY(0); }
.vk-cart-bar-in { padding: 14px 0; display: flex; align-items: center; gap: 18px; }
.vk-cart-bar .info { display: flex; align-items: center; gap: 14px; }
.vk-cart-bar .badge { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-family: 'Source Serif 4', Georgia, serif; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.vk-cart-bar .lbl { font-size: 14px; line-height: 1.3; }
.vk-cart-bar .lbl b { display: block; font-size: 17px; font-weight: 600; }
.vk-cart-bar .lbl small { color: rgba(247,244,236,.7); }
.vk-cart-bar .actions { margin-left: auto; display: flex; gap: 10px; }
.vk-cart-bar .btn-clear { background: transparent; border: 1px solid rgba(247,244,236,.3); color: var(--brand-ink); padding: 12px 18px; border-radius: 999px; font-family: inherit; font-size: 14px; cursor: pointer; }
.vk-cart-bar .btn-clear:hover { background: rgba(247,244,236,.1); }
@media (max-width: 600px) { .vk-cart-bar .lbl small { display: none; } .vk-cart-bar .btn-clear { display: none; } }

.vk-cart-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; max-height: 38vh; overflow-y: auto; }
.vk-cart-item { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.vk-cart-item .ci-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.vk-cart-item .ci-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.vk-qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.vk-qty button { width: 32px; height: 34px; border: 0; background: var(--bg-elev); color: var(--ink); font-size: 18px; cursor: pointer; font-family: inherit; }
.vk-qty button:hover { background: var(--brand); color: var(--brand-ink); }
.vk-qty input { width: 42px; height: 34px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; -moz-appearance: textfield; }
.vk-qty input::-webkit-outer-spin-button, .vk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vk-ci-remove { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-elev); color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.vk-ci-remove:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.vk-cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px dashed var(--line); margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.vk-cart-total b { font-family: 'Source Serif 4', Georgia, serif; font-size: 17px; color: var(--ink); }
@media (max-width: 560px) { .vk-cart-item { grid-template-columns: 1fr auto; } .vk-cart-item .vk-qty { grid-column: 1 / 2; } }


/* ====== Нативная реклама ИИ-консультанта ====== */
.bot-band { padding: clamp(28px,4vw,44px) 0; border-top: 1px solid var(--line); }
.bot-inner { display: flex; align-items: center; gap: 22px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-3); padding: 24px 28px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; overflow: hidden; }
.bot-inner:hover { border-color: var(--brand); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.bot-inner::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.bot-ic { width: 58px; height: 58px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 28px; flex-shrink: 0; }
.bot-txt { flex: 1; min-width: 0; }
.bot-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.bot-txt h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(1.15rem,1.7vw,1.4rem); font-weight: 600; margin: 6px 0 6px; line-height: 1.2; }
.bot-txt p { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 70ch; }
.bot-link { flex-shrink: 0; display: inline-flex; align-items: center; background: var(--brand); color: var(--brand-ink); padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s; }
.bot-inner:hover .bot-link { background: var(--accent); }
.bot-link .arr { transition: margin .2s; }
.bot-inner:hover .bot-link .arr { margin-left: 4px; }
@media (max-width: 720px) { .bot-inner { flex-direction: column; align-items: flex-start; gap: 16px; } .bot-link { width: 100%; justify-content: center; } }

/* ============================================================
   Страницы отдельных курсов (kurs-*.html)
   ============================================================ */
.kurs-page { min-height: 100vh; display: flex; flex-direction: column; }

/* hero */
.kurs-hero { background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden; padding: clamp(40px,6vw,72px) 0; }
.kurs-hero::before { content:''; position:absolute; top:-160px; right:-160px; width:520px; height:520px; border-radius:50%; background:radial-gradient(circle,rgba(181,70,42,.45),transparent 65%); }
.kurs-hero::after { content:''; position:absolute; inset:0; background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.022) 0 2px,transparent 2px 24px); }
.kurs-hero-inner { position:relative; z-index:2; display:grid; grid-template-columns:1.5fr 1fr; gap:clamp(24px,4vw,52px); align-items:start; }
.kurs-back { font-size:14px; color:rgba(247,244,236,.7); margin-bottom:20px; display:inline-block; }
.kurs-back:hover { color:var(--brand-ink); }
.kurs-h1 { font-family:'Source Serif 4',Georgia,serif; font-weight:600; font-size:clamp(1.8rem,3.6vw,2.9rem); line-height:1.07; letter-spacing:-0.015em; margin:14px 0 18px; color:var(--brand-ink); text-wrap:balance; }
.kurs-lead { font-size:clamp(1rem,1.2vw,1.1rem); color:rgba(247,244,236,.82); line-height:1.65; max-width:58ch; }
.kurs-cta-row { display:flex; gap:14px; margin-top:24px; flex-wrap:wrap; }

/* hero card */
.kurs-hero-card { background:rgba(255,255,255,.08); border:1px solid rgba(247,244,236,.18); border-radius:var(--r-3); padding:28px; backdrop-filter:blur(6px); }
.kurs-params { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:20px; padding-bottom:20px; border-bottom:1px solid rgba(247,244,236,.18); }
.kp small { display:block; font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:rgba(247,244,236,.55); margin-bottom:5px; }
.kp b { font-family:'Source Serif 4',Georgia,serif; font-size:18px; font-weight:600; color:var(--brand-ink); }
.kurs-prices { display:flex; flex-direction:column; gap:9px; margin-bottom:4px; }
.kurs-price-row { display:flex; justify-content:space-between; align-items:center; font-size:15px; color:rgba(247,244,236,.82); padding:8px 0; border-bottom:1px dashed rgba(247,244,236,.14); }
.kurs-price-row strong { font-family:'Source Serif 4',Georgia,serif; font-size:22px; font-weight:700; color:var(--brand-ink); }
.kurs-price-row.dist strong { color:var(--gold, #e0a73c); }
.kurs-price-note { font-size:14px; color:rgba(247,244,236,.65); text-align:center; padding:14px 0; }

/* sections */
.kurs-sec { padding:clamp(44px,6vw,76px) 0; border-bottom:1px solid var(--line); }
.kurs-sec-alt { background:var(--bg-elev); }
.kurs-h2 { font-family:'Source Serif 4',Georgia,serif; font-weight:600; font-size:clamp(1.5rem,2.6vw,2.1rem); line-height:1.1; letter-spacing:-0.01em; }

/* benefits grid */
.kurs-bene-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:32px; }
.kurs-bene { background:var(--bg-elev); border:1px solid var(--line); border-radius:var(--r-2); padding:26px; }
.kurs-sec-alt .kurs-bene { background:var(--bg); }
.kurs-bene-num { font-family:'Source Serif 4',Georgia,serif; font-size:38px; font-weight:600; color:var(--accent); line-height:1; margin-bottom:12px; }
.kurs-bene p { font-size:15.5px; color:var(--ink-2); line-height:1.55; margin:0; }

/* why + contact */
.kurs-why-wrap { display:grid; grid-template-columns:1.3fr 1fr; gap:clamp(28px,4vw,60px); align-items:start; }
.kurs-why-list { list-style:none; padding:0; margin:20px 0 0; display:flex; flex-direction:column; gap:12px; }
.kurs-why-list li { padding-left:28px; position:relative; font-size:16px; color:var(--ink-2); line-height:1.5; }
.kurs-why-list li::before { content:'✓'; position:absolute; left:0; top:0; width:20px; height:20px; border-radius:50%; background:rgba(46,107,58,.14); color:var(--ok); display:grid; place-items:center; font-size:11px; font-weight:700; }
.kurs-contact-card { background:var(--bg); border:1px solid var(--line); border-radius:var(--r-3); padding:28px; box-shadow:var(--shadow-1); }
.kurs-contact-rows { margin-top:18px; display:flex; flex-direction:column; gap:14px; }
.kurs-cr small { display:block; font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
.kurs-cr a, .kurs-cr span { font-size:16px; font-weight:500; color:var(--ink); }
.kurs-cr a:hover { color:var(--brand); }

/* apply form */
.kurs-apply-wrap { display:grid; grid-template-columns:1fr 1.1fr; gap:clamp(28px,4vw,60px); align-items:start; }
.kurs-form { background:var(--bg-elev); border:1px solid var(--line); border-radius:var(--r-3); padding:28px; }
.kf-row { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.kf-row2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.kf-field { display:flex; flex-direction:column; gap:6px; }
.kf-field label { font-size:12px; color:var(--muted); font-family:'JetBrains Mono',monospace; letter-spacing:.08em; text-transform:uppercase; }
.kf-field input, .kf-field textarea { font-family:inherit; font-size:15px; padding:11px 13px; border:1px solid var(--line-2); border-radius:var(--r-1); color:var(--ink); background:var(--bg); outline:none; transition:border-color .15s,background .15s; }
.kf-field input:focus, .kf-field textarea:focus { border-color:var(--brand); background:#fff; }
.kf-submit { width:100%; justify-content:center; margin-top:4px; }
.kf-note { font-size:12px; color:var(--muted); text-align:center; margin-top:10px; }
.kurs-sent { text-align:center; padding:32px 20px; }
.kurs-sent-ico { width:56px; height:56px; border-radius:50%; background:rgba(46,107,58,.14); color:var(--ok); font-size:26px; font-weight:700; display:grid; place-items:center; margin:0 auto 16px; }
.kurs-sent h3 { font-family:'Source Serif 4',Georgia,serif; font-size:1.5rem; margin-bottom:10px; }
.kurs-sent p { font-size:15px; color:var(--muted); line-height:1.6; max-width:46ch; margin:0 auto; }

/* mobile */
@media (max-width:880px) {
  .kurs-hero-inner, .kurs-why-wrap, .kurs-apply-wrap { grid-template-columns:1fr; }
  .kurs-bene-grid { grid-template-columns:1fr 1fr; }
  .kf-row2 { grid-template-columns:1fr; }
  .kurs-params { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:540px) {
  .kurs-bene-grid { grid-template-columns:1fr; }
}


/* ============================================================
   course-page-app.js стили (страницы /city/course-slug)
   ============================================================ */
.cp-hero {
  background: var(--brand); color: var(--brand-ink);
  position: relative; overflow: hidden;
}
.cp-hero::before { content:''; position:absolute; top:-180px; right:-150px; width:520px; height:520px; border-radius:50%; background:radial-gradient(circle, rgba(181,70,42,.48), transparent 65%); }
.cp-hero::after { content:''; position:absolute; inset:0; background-image:repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 2px, transparent 2px 24px); }
.cp-hero-in { position:relative; z-index:2; padding: clamp(40px,5vw,68px) 0 clamp(32px,4vw,52px); display:grid; grid-template-columns:1.5fr 1fr; gap:clamp(28px,4vw,56px); align-items:start; }

.cp-breadcrumb { display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(247,244,236,.65); flex-wrap:wrap; }
.cp-breadcrumb a { color:rgba(247,244,236,.75); } .cp-breadcrumb a:hover { color:var(--brand-ink); }
.cp-breadcrumb span { color:rgba(247,244,236,.4); }

.cp-title { font-family:'Source Serif 4',Georgia,serif; font-weight:600; font-size:clamp(1.7rem,3.4vw,2.8rem); line-height:1.08; letter-spacing:-0.015em; color:var(--brand-ink); margin-bottom:16px; text-wrap:balance; }
.cp-subtitle { font-size:clamp(1rem,1.3vw,1.1rem); color:rgba(247,244,236,.82); line-height:1.55; }
.cp-tags { display:flex; gap:9px; flex-wrap:wrap; margin-top:20px; }
.cp-tag { font-size:13px; font-weight:500; padding:6px 13px; border-radius:999px; background:rgba(255,255,255,.1); border:1px solid rgba(247,244,236,.2); color:rgba(247,244,236,.9); white-space:nowrap; }
.cp-tag.cp-tag-brand { background:rgba(31,58,95,.45); color:var(--brand-ink); }
.cp-tag.cp-tag-ok { background:rgba(46,107,58,.35); color:#a0e4b0; }

/* Hero card (форма) */
.cp-hero-card { background:var(--bg-elev); border:1px solid var(--line); border-radius:var(--r-3); padding:28px; color:var(--ink); box-shadow: 0 4px 30px -10px rgba(20,35,58,.4); }
.cp-prices { padding-bottom:18px; margin-bottom:18px; border-bottom:1px dashed var(--line); display:flex; flex-direction:column; gap:10px; }
.cp-price-row { display:flex; justify-content:space-between; align-items:baseline; font-size:15px; color:var(--muted); }
.cp-price-row b { font-family:'Source Serif 4',Georgia,serif; font-size:22px; font-weight:600; color:var(--brand); }
.cp-price-row.cp-price-dist b { color:var(--ok); }
.cp-contact-compact { padding-bottom:18px; margin-bottom:18px; border-bottom:1px dashed var(--line); }
.cp-phone-link { font-family:'JetBrains Mono',monospace; font-size:17px; font-weight:500; color:var(--brand); display:block; }
.cp-contact-compact p { font-size:12.5px; color:var(--muted); margin-top:4px; }

/* Form */
.cp-form { display:flex; flex-direction:column; gap:0; }
.cp-form-row { display:flex; flex-direction:column; gap:5px; margin-bottom:13px; }
.cp-form-row label { font-size:11.5px; color:var(--muted); font-family:'JetBrains Mono',monospace; letter-spacing:.08em; text-transform:uppercase; }
.cp-form-row input, .cp-form-row textarea { font-family:inherit; font-size:14.5px; padding:11px 14px; border:1.5px solid var(--line-2); border-radius:9px; color:var(--ink); background:var(--bg); outline:none; transition:border-color .15s, background .15s; }
.cp-form-row input:focus, .cp-form-row textarea:focus { border-color:var(--brand); background:#fff; }
.cp-success { text-align:center; padding:20px 0; }
.cp-success-check { width:52px; height:52px; border-radius:50%; background:var(--ok); color:#fff; font-size:22px; display:grid; place-items:center; margin:0 auto 14px; }
.cp-success h3 { font-family:'Source Serif 4',Georgia,serif; font-size:1.4rem; margin-bottom:8px; }
.cp-success p { color:var(--muted); font-size:14px; }

/* Sections */
.cp-section { padding: clamp(48px,6vw,80px) 0; border-bottom:1px solid var(--line); }
.cp-alt { background:var(--bg-elev); }
.cp-body { font-size:17px; color:var(--ink-2); line-height:1.75; margin-bottom:16px; }
.cp-body:last-child { margin-bottom:0; }

/* Two col */
.cp-two-col { display:grid; grid-template-columns:1.3fr 1fr; gap:clamp(32px,5vw,64px); align-items:start; }

/* Features */
.cp-features { display:flex; flex-direction:column; gap:18px; }
.cp-feature { display:flex; gap:16px; align-items:flex-start; background:var(--bg); border:1px solid var(--line); border-radius:var(--r-2); padding:18px; }
.cp-alt .cp-feature { background:var(--bg-elev); }
.cp-feature-icon { width:38px; height:38px; border-radius:9px; background:rgba(31,58,95,.08); color:var(--brand); display:grid; place-items:center; font-size:17px; flex-shrink:0; }
.cp-feature h4 { font-family:'Source Serif 4',Georgia,serif; font-size:1.05rem; font-weight:600; margin-bottom:5px; }
.cp-feature p { font-size:13.5px; color:var(--muted); line-height:1.5; }

/* Who grid */
.cp-who-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.cp-who-card { background:var(--bg); border:1px solid var(--line); border-radius:var(--r-2); padding:22px; }
.cp-who-card h3 { font-family:'Source Serif 4',Georgia,serif; font-size:1.1rem; font-weight:600; margin-bottom:10px; color:var(--brand); }
.cp-who-card p { font-size:14px; color:var(--muted); line-height:1.55; }

/* Steps */
.cp-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r-3); overflow:hidden; }
.cp-step { background:var(--bg-elev); padding:28px 26px; }
.cp-step-num { font-family:'Source Serif 4',Georgia,serif; font-size:42px; font-weight:600; color:var(--accent); line-height:1; margin-bottom:14px; }
.cp-step h3 { font-size:1.05rem; margin-bottom:8px; }
.cp-step p { font-size:14px; color:var(--muted); line-height:1.55; }

/* CTA section */
.cp-cta-section { background:var(--brand-2); color:var(--brand-ink); padding:clamp(56px,7vw,80px) 0; position:relative; overflow:hidden; border-bottom:0; }
.cp-cta-section::before { content:''; position:absolute; top:-120px; right:-100px; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle, rgba(181,70,42,.4), transparent 65%); }
.cp-cta-inner { position:relative; z-index:1; display:grid; grid-template-columns:1.3fr 1fr; gap:clamp(32px,5vw,64px); align-items:center; }
.cp-cta-card { background:var(--bg-elev); border:1px solid var(--line); border-radius:var(--r-3); padding:28px; }

/* Related */
.cp-related { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.cp-related-card { background:var(--bg-elev); border:1px solid var(--line); border-radius:var(--r-2); padding:20px 22px; display:flex; flex-direction:column; gap:10px; transition:border-color .15s, box-shadow .15s; }
.cp-related-card:hover { border-color:var(--line-2); box-shadow:var(--shadow-1); }
.cp-related-card h3 { font-family:'Source Serif 4',Georgia,serif; font-size:1.1rem; font-weight:600; color:var(--ink); line-height:1.25; }
.cp-related-meta { display:flex; gap:12px; font-size:13px; color:var(--muted); margin-top:auto; }

@media (max-width: 900px) {
  .cp-hero-in { grid-template-columns:1fr; }
  .cp-two-col, .cp-cta-inner { grid-template-columns:1fr; }
  .cp-who-grid { grid-template-columns:1fr 1fr; }
  .cp-steps { grid-template-columns:1fr 1fr; }
  .cp-related { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .cp-who-grid { grid-template-columns:1fr; }
  .cp-steps { grid-template-columns:1fr; }
}

/* ===== Аккордеон выбора города ===== */
.geo-accordion { display: flex; flex-direction: column; gap: 8px; }

.geo-district {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.geo-district.open {
  border-color: var(--brand);
  box-shadow: 0 4px 16px -8px rgba(31,58,95,.18);
}

.geo-district-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .15s;
}
.geo-district-btn:hover { background: rgba(31,58,95,.04); }
.geo-district.open .geo-district-btn { background: var(--brand); }

.geo-district-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}
.geo-district.open .geo-district-name { color: var(--brand-ink); }

.geo-district-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.geo-district.open .geo-district-count {
  background: rgba(247,244,236,.15);
  color: rgba(247,244,236,.7);
  border-color: rgba(247,244,236,.2);
}

.geo-district-arrow {
  font-size: 18px;
  color: var(--muted);
  transition: transform .25s;
  line-height: 1;
}
.geo-district.open .geo-district-arrow {
  transform: rotate(90deg);
  color: rgba(247,244,236,.7);
}

.geo-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.geo-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--bg-elev);
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
  text-decoration: none;
}
.geo-link:hover {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
  transform: translateY(-1px);
}
.geo-link.active {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
  font-weight: 500;
}
