* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #1a1a1a; background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* === LAYOUT === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* === HEADER === */
.site-header { background: #1c1d22; color: #fff; }
.site-header-top { display: flex; align-items: center; padding: 16px 0; gap: 28px; }
.site-header-action-finance { flex-shrink: 0; }
.site-header-action-finance svg { height: 22px; width: auto; display: block; }
.site-header-spacer { flex: 1; }
.site-header-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-header-nav a { color: rgba(255,255,255,0.75); font-size: 14px; transition: color 0.15s; white-space: nowrap; }
.site-header-nav a:hover { color: #fff; }
.site-header-phone { text-align: right; flex-shrink: 0; }
.site-header-phone .num { font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap; }
.site-header-phone .hours { font-size: 11px; color: #888; margin-top: 2px; }
@media (max-width: 1024px) {
  .site-header-nav { display: none; }
}
@media (max-width: 600px) {
  .site-header-top { gap: 12px; padding: 12px 0; }
  .site-header-action-finance svg { height: 18px; }
  .site-header-phone .num { font-size: 14px; }
  .site-header-phone .hours { display: none; }
}

/* === HERO === */
.hero { background: linear-gradient(135deg, #1c1d22 0%, #2a2b32 100%); color: #fff; padding: 56px 0 100px; position: relative; overflow: hidden; }
.hero-blob { position: absolute; right: -100px; top: 60px; width: 720px; height: 720px; background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 60%); pointer-events: none; }
.hero-vshfd-logo { position: relative; z-index: 2; margin-bottom: 56px; }
.hero-vshfd-logo svg { height: 64px; width: auto; max-width: 100%; display: block; }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { font-size: 56px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 28px; }
.hero-lead { font-size: 21px; line-height: 1.5; color: rgba(255,255,255,0.85); margin-bottom: 40px; max-width: 600px; }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 10px; font-size: 16px; font-weight: 600; transition: transform 0.1s, background 0.15s, box-shadow 0.15s; cursor: pointer; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; box-shadow: 0 8px 24px rgba(37,99,235,0.4); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.98); }
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
}
@media (max-width: 768px) {
  .hero { padding: 40px 0 56px; }
  .hero-vshfd-logo { margin-bottom: 32px; }
  .hero-vshfd-logo svg { height: 44px; }
  .hero h1 { font-size: 32px; line-height: 1.1; margin-bottom: 20px; }
  .hero-lead { font-size: 16px; margin-bottom: 28px; }
  .btn { padding: 14px 22px; font-size: 15px; width: 100%; }
  .hero-cta { width: 100%; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-vshfd-logo svg { height: 36px; }
}

/* === SECTIONS === */
.section { padding: 96px 0; }
.section--light { background: #faf8f3; }
.section--white { background: #fff; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #FF6854; margin-bottom: 12px; }
.section h2 { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.section-sub { font-size: 18px; color: #555; line-height: 1.6; }
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section h2 { font-size: 28px; }
  .section-sub { font-size: 15px; }
}

/* === LEAD-PARA === */
.lead-para { max-width: 760px; font-size: 19px; line-height: 1.65; color: #2c2c2c; padding: 56px 0 0; }
@media (max-width: 600px) {
  .lead-para { font-size: 16px; padding: 32px 0 0; }
}

/* === LADDER === */
.ladder { display: flex; flex-direction: column; gap: 12px; }
.step { background: #fff; border: 1px solid #e8e6df; border-radius: 16px; overflow: hidden; transition: all 0.15s; }
.step:hover { border-color: #d0cdc2; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.step.open { border-color: #F45821; box-shadow: 0 8px 32px rgba(244,88,33,0.12); transform: none; }
.step-head { display: flex; align-items: center; gap: 20px; padding: 24px 28px; cursor: pointer; user-select: none; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: #f1efe8; color: #888; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
.step.open .step-num { background: #F45821; color: #fff; }
.step-title { flex: 1; min-width: 0; }
.step-title-main { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.step-title-sub { font-size: 14px; color: #777; }
.step-meta { display: flex; gap: 24px; font-size: 14px; color: #555; flex-shrink: 0; }
.step-meta-item strong { display: block; font-size: 20px; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
.step-meta-item span { font-size: 12px; color: #888; }
.step-toggle { width: 24px; height: 24px; flex-shrink: 0; transition: transform 0.2s; color: #888; }
.step.open .step-toggle { transform: rotate(90deg); color: #1a1a1a; }
.step-body { display: none; padding: 0 28px 28px; }
.step.open .step-body { display: block; }
.step-desc { padding: 8px 0 24px; font-size: 16px; color: #444; line-height: 1.6; max-width: 720px; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-bottom: 20px; }
.skill { background: #f9f7f0; border: 1px solid #f1efe8; border-radius: 10px; padding: 14px 44px 14px 18px; display: flex; flex-direction: column; gap: 4px; transition: all 0.15s; cursor: pointer; position: relative; }
.skill:hover { background: #fff; border-color: #d8d5c8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.skill::after { content: '›'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #b3afa0; font-weight: 300; transition: color 0.15s, right 0.15s; line-height: 1; }
.skill:hover::after { color: #1c1d22; right: 14px; }
.skill-name { font-size: 15px; font-weight: 500; line-height: 1.35; color: #1a1a1a; }
.skill-meta { font-size: 12px; color: #888; }
.show-all-link { display: inline-block; font-size: 14px; color: #2563eb; font-weight: 500; padding: 4px 0; }
.show-all-link:hover { color: #1d4ed8; }

/* Passport strip — встроенный в ступень CTA на паспорт */
.passport-strip { display: flex; align-items: center; gap: 20px; padding: 20px; background: linear-gradient(135deg, #FFF4ED 0%, #FFE4D4 100%); border-radius: 12px; margin-top: 24px; }
.passport-strip-icon { width: 60px; height: 80px; flex-shrink: 0; background: linear-gradient(135deg, #FF8B5C 0%, #FF6132 100%); border-radius: 6px; position: relative; box-shadow: 0 4px 12px rgba(255,97,50,0.25); }
.passport-strip-icon::after { content: ''; position: absolute; left: 8px; right: 8px; top: 16px; bottom: 16px; border: 1px solid rgba(255,255,255,0.4); border-radius: 2px; }
.passport-strip-icon-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.02em; z-index: 1; }
.passport-strip-text { flex: 1; min-width: 0; }
.passport-strip-title { font-size: 16px; font-weight: 600; color: #6B2E0E; line-height: 1.3; margin-bottom: 4px; }
.passport-strip-desc { font-size: 14px; color: #8C4520; line-height: 1.5; }
.passport-strip-btn { background: #1a1a1a; color: #fff; padding: 12px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.passport-strip-btn:hover { background: #000; }

@media (max-width: 900px) {
  .step-head { padding: 18px 20px; gap: 14px; flex-wrap: wrap; }
  .step-meta { width: 100%; gap: 16px; padding-left: 58px; }
  .step-toggle { position: absolute; right: 20px; top: 26px; }
  .step-head { position: relative; padding-right: 52px; }
  .step-body { padding: 0 20px 20px; }
}
@media (max-width: 600px) {
  .step-head { padding: 16px 18px; padding-right: 48px; gap: 12px; }
  .step-num { width: 36px; height: 36px; font-size: 15px; }
  .step-title-main { font-size: 16px; }
  .step-title-sub { font-size: 13px; }
  .step-meta { padding-left: 48px; gap: 12px; }
  .step-meta-item strong { font-size: 16px; }
  .skills-grid { grid-template-columns: 1fr; }
  .passport-strip { flex-direction: column; align-items: flex-start; padding: 18px; }
  .passport-strip-btn { width: 100%; text-align: center; }
}

/* === BRIDGE — переход к программам === */
.bridge { background: #1c1d22; color: #fff; border-radius: 20px; padding: 40px 48px; margin: 24px 0 0; display: flex; align-items: center; gap: 32px; }
.bridge-text { flex: 1; }
.bridge-title { font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.bridge-desc { font-size: 15px; color: rgba(255,255,255,0.7); }
.bridge .btn-primary { white-space: nowrap; }
@media (max-width: 768px) {
  .bridge { flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 20px; }
  .bridge-title { font-size: 19px; }
  .bridge .btn-primary { width: 100%; }
}

/* === PROGRAMS === */
.prog-group { margin-bottom: 64px; }
.prog-group:last-child { margin-bottom: 0; }
.prog-group-head { margin-bottom: 24px; }
.prog-group-title { font-size: 28px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.prog-group-desc { font-size: 15px; color: #666; max-width: 700px; }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.prog { background: #fff; border: 1px solid #e8e6df; border-radius: 16px; overflow: hidden; transition: all 0.15s; }
.prog:hover { border-color: #d0cdc2; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.prog.open { border-color: #1c1d22; box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: none; }
.prog-head { padding: 24px 28px 24px 28px; cursor: pointer; position: relative; }
.prog-head::after { content: '›'; position: absolute; right: 24px; top: 28px; font-size: 28px; color: #b3afa0; font-weight: 300; line-height: 1; transition: transform 0.2s, color 0.15s; transform-origin: center; }
.prog:hover .prog-head::after { color: #1c1d22; }
.prog.open .prog-head::after { transform: rotate(90deg); color: #1c1d22; }
.prog-name { font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; color: #1a1a1a; padding-right: 36px; }
.prog-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.prog-pill { font-size: 12px; padding: 4px 10px; border-radius: 6px; background: #f1efe8; color: #555; font-weight: 500; }
.prog-pill--accent { background: #FFE4D4; color: #6B2E0E; }
.prog-pill--level { background: #E8EEFD; color: #1d4ed8; }
.prog-body { display: none; padding: 0 28px 24px; border-top: 1px solid #f1efe8; }
.prog.open .prog-body { display: block; }
.prog-desc { padding: 16px 0; font-size: 15px; line-height: 1.6; color: #444; }
.prog-topics-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #888; margin-bottom: 8px; }
.prog-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.prog-topic { font-size: 13px; padding: 6px 12px; background: #faf8f3; border-radius: 6px; color: #1a1a1a; }
.prog-groups-list { font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.prog-groups-line { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid #f1efe8; gap: 12px; }
.prog-groups-line:first-of-type { border-top: none; padding-top: 0; }
.prog-groups-line span:last-child { color: #888; font-size: 13px; white-space: nowrap; }
.prog-cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.prog-cta-btn { background: #2563eb; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.prog-cta-btn:hover { background: #1d4ed8; }
.prog-cta-link { font-size: 13px; color: #2563eb; }

.all-progs { text-align: center; margin-top: 40px; }
.all-progs a { font-size: 15px; color: #2563eb; font-weight: 500; }
.all-progs a:hover { color: #1d4ed8; }

@media (max-width: 768px) {
  .prog-group { margin-bottom: 40px; }
  .prog-group-title { font-size: 22px; }
  .prog-grid { grid-template-columns: 1fr; gap: 12px; }
  .prog-head { padding: 18px 20px; }
  .prog-body { padding: 0 20px 20px; }
}

/* === HOW IT WORKS — механика === */
.mech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mech-card { background: #fff; border-radius: 16px; padding: 32px; }
.mech-num { font-size: 13px; font-weight: 700; color: #FF6854; margin-bottom: 12px; letter-spacing: 0.06em; }
.mech-title { font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.mech-desc { font-size: 15px; line-height: 1.6; color: #555; }
@media (max-width: 900px) { .mech { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .mech-card { padding: 24px; }
  .mech-title { font-size: 19px; }
}

/* === PASSPORT VISUAL — оранжевые карточки + скрин ЛК === */
.passport-section { background: #fff; }
.passport-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
@media (max-width: 1024px) { .passport-grid { grid-template-columns: 1fr; gap: 40px; } }

/* === ПАСПОРТА — КОЛОДА КАРТ С ЛИСТАЛКОЙ === */
.passport-cards {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 3/4;
  padding: 0;
}

/* Базовая карта */
.passport-card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  /* Слоты по умолчанию (карта скрыта) — JS поставит реальные значения */
  --slot-x: 0px;
  --slot-y: 0px;
  --slot-rot: 0deg;
  --slot-z: 0;
  transform: translate(var(--slot-x), var(--slot-y)) rotate(var(--slot-rot));
  z-index: var(--slot-z);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), z-index 0s 0.22s, box-shadow 0.3s;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.25);
}
.passport-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 140%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

/* Цвета карт — те же что и были */
.passport-card-1 { background: linear-gradient(155deg, #FFB888 0%, #FF8B5C 50%, #FF6F2C 100%); }
.passport-card-2 { background: linear-gradient(155deg, #FFA374 0%, #FF7544 50%, #F45821 100%); }
.passport-card-3 { background: linear-gradient(155deg, #FF8B5C 0%, #F45821 50%, #D63E18 100%); }
.passport-card-4 { background: linear-gradient(155deg, #FF7544 0%, #E04E1C 50%, #B33312 100%); }
.passport-card-5 { background: linear-gradient(155deg, #E04E1C 0%, #B33312 50%, #7A2308 100%); }
.passport-card-6 { background: linear-gradient(155deg, #383944 0%, #1c1d22 100%); }

/* Внутренности карты-обложки (скрыты по умолчанию, показаны только когда карта сверху) */
.passport-card-cover-inner {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.passport-card.is-cover .passport-card-cover-inner { opacity: 1; pointer-events: auto; }

.passport-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.passport-card-action { font-size: 12px; opacity: 0.85; letter-spacing: 0.02em; font-weight: 700; }
.passport-card-action .bracket { color: rgba(255,255,255,0.55); font-weight: 400; }
.passport-card-step-num { font-size: 38px; font-weight: 800; line-height: 1; opacity: 0.95; letter-spacing: -0.02em; }
.passport-card-bottom { display: flex; flex-direction: column; gap: 8px; }
.passport-card-title { font-size: 22px; font-weight: 700; line-height: 1.15; }
.passport-card-meta { font-size: 13px; opacity: 0.85; }
.passport-card-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.15s, border-color 0.15s;
}
.passport-card-go:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.5); }

/* Корешок (видимый когда карта в стопке) */
.passport-card-edge {
  position: absolute;
  top: 16px;
  right: 12px;
  bottom: 16px;
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s;
}
.passport-card.is-cover .passport-card-edge { opacity: 0; }

.passport-card-edge-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255,255,255,0.85);
}
.passport-card-edge-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  opacity: 1;
  transition: opacity 0.25s;
}
.passport-card.is-cover .passport-card-edge-num { opacity: 0; }

/* Карта-обложка получает повышенный z-index и тень + сбрасывает поворот */
.passport-card.is-cover {
  --slot-x: 0px;
  --slot-y: 0px;
  --slot-rot: 0deg;
  --slot-z: 20;
  box-shadow: 0 24px 48px -12px rgba(213, 62, 24, 0.45);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), z-index 0s, box-shadow 0.3s;
}

.passport-cards-caption {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: #888;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .passport-cards { max-width: 280px; }
  .passport-card-cover-inner { padding: 18px; }
  .passport-card-step-num { font-size: 30px; }
  .passport-card-title { font-size: 18px; }
  .passport-card-edge-text { font-size: 9px; }
}

/* Скрин личного кабинета */
.passport-screen { background: #fff; border: 1px solid #e8e6df; border-radius: 16px; padding: 24px 28px; box-shadow: 0 4px 24px rgba(0,0,0,0.04); }
.passport-screen-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid #f1efe8; margin-bottom: 18px; gap: 16px; }
.passport-screen-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.passport-screen-title-sub { font-size: 12px; color: #888; margin-top: 3px; }
.passport-screen-score-block { text-align: right; flex-shrink: 0; }
.passport-screen-score-label { font-size: 11px; color: #888; margin-bottom: 2px; }
.passport-screen-score { font-size: 28px; font-weight: 800; color: #2D8650; line-height: 1; }
.passport-screen-score .total { font-size: 14px; color: #888; font-weight: 500; }
.passport-skill-row { padding: 12px 0; border-top: 1px solid #f5f3ec; }
.passport-skill-row:first-of-type { border-top: none; padding-top: 4px; }
.passport-skill-name { font-size: 14px; font-weight: 500; line-height: 1.4; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.passport-skill-name .label { color: #1a1a1a; flex: 1; min-width: 0; }
.passport-skill-name .val { color: #2D8650; font-weight: 700; flex-shrink: 0; }
.passport-skill-name .val--empty { color: #b3b3b3; }
.passport-skill-bar { height: 6px; background: #f1efe8; border-radius: 3px; overflow: hidden; }
.passport-skill-fill { height: 100%; background: #2D8650; border-radius: 3px; transition: width 0.6s ease; }
.passport-screen-cta { display: block; margin-top: 20px; padding: 14px; background: #2563eb; color: #fff; text-align: center; border-radius: 10px; font-weight: 600; font-size: 15px; transition: background 0.15s; }
.passport-screen-cta:hover { background: #1d4ed8; }

@media (max-width: 600px) {
  .passport-screen { padding: 18px 20px; }
  .passport-screen-head { flex-wrap: wrap; }
  .passport-screen-score { font-size: 22px; }
}

.passport-text-block .section-eyebrow { margin-bottom: 12px; }
.passport-text-block h2 { margin-bottom: 20px; }
.passport-text-block p { font-size: 17px; line-height: 1.65; color: #444; margin-bottom: 16px; }
.passport-features { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.passport-feature { display: flex; gap: 16px; align-items: flex-start; }
.passport-feature-num { width: 32px; height: 32px; border-radius: 50%; background: #1c1d22; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.passport-feature-text { flex: 1; }
.passport-feature-text strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.passport-feature-text span { font-size: 14px; color: #555; line-height: 1.5; }

/* === DOCS === */
.docs-section { background: #faf8f3; }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.doc-card { background: #fff; border-radius: 16px; padding: 32px 28px; border: 1px solid #ece9e0; transition: transform 0.2s, box-shadow 0.2s; }
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px -12px rgba(0,0,0,0.1); }
.doc-card-img { width: 100%; aspect-ratio: 4/3; border-radius: 10px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.doc-card-img-1 { background: linear-gradient(135deg, #FFE4DC 0%, #FFCAB8 100%); }
.doc-card-img-2 { background: linear-gradient(135deg, #DCE8FF 0%, #B8CFFF 100%); }
.doc-card-img-3 { background: linear-gradient(135deg, #FFF0D6 0%, #FFD89F 100%); }
.doc-card-paper { width: 70%; height: 80%; background: #fff; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); display: flex; flex-direction: column; padding: 12% 14%; gap: 6%; }
.doc-card-paper-line { height: 5%; border-radius: 2px; background: rgba(28,29,34,0.18); }
.doc-card-paper-line.short { width: 50%; }
.doc-card-paper-line.medium { width: 75%; }
.doc-card-paper-line.long { width: 90%; }
.doc-card-paper-seal { position: absolute; right: 14%; bottom: 18%; width: 18%; aspect-ratio: 1; border-radius: 50%; opacity: 0.5; }
.doc-card-paper-seal-1 { background: #D63E18; }
.doc-card-paper-seal-2 { background: #2563EB; }
.doc-card-paper-seal-3 { background: #EF9F27; }
.doc-card-name { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; line-height: 1.2; }
.doc-card-subname { font-size: 14px; color: #666; line-height: 1.5; }
.docs-note { margin-top: 28px; padding: 20px 24px; background: #fff; border-radius: 12px; font-size: 14px; line-height: 1.55; color: #555; display: flex; align-items: center; gap: 16px; }
.docs-note-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #FFE4DC; display: flex; align-items: center; justify-content: center; color: #D63E18; font-weight: 700; font-size: 16px; }
.docs-note a { color: #2563eb; font-weight: 600; }
.docs-note a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .docs-grid { grid-template-columns: 1fr; gap: 16px; }
  .doc-card { padding: 24px 20px; }
  .doc-card-img { aspect-ratio: 16/9; }
}

/* === DOCUMENTS === */
.docs-section { background: #faf8f3; }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.doc-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid #e8e6df;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px -12px rgba(0,0,0,0.08); border-color: #d8d4c5; }
.doc-card-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0; background: #faf8f3; }
.doc-card-img img.doc-card-scan { width: 100%; height: 100%; object-fit: contain; display: block; }
.doc-card-img-red { background: #fff5f2; }
.doc-card-img-blue { background: #f0f4ff; }
.doc-card-img-orange { background: #fff8ed; }
.doc-card-name { font-size: 22px; font-weight: 700; line-height: 1.2; color: #1a1a1a; }
.doc-card-desc { font-size: 14px; line-height: 1.55; color: #555; margin-top: -6px; }
.doc-card-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #888; padding-top: 16px; border-top: 1px solid #f1efe8; width: 100%; }
.doc-card-meta strong { color: #1a1a1a; font-weight: 600; }

.docs-license { margin-top: 32px; padding: 24px 28px; background: #fff; border-radius: 12px; border: 1px solid #e8e6df; display: flex; align-items: flex-start; gap: 18px; max-width: 800px; }
.docs-license-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; background: #faf8f3; display: flex; align-items: center; justify-content: center; }
.docs-license-text { font-size: 14px; line-height: 1.6; color: #444; }
.docs-license-text strong { color: #1a1a1a; }

@media (max-width: 900px) {
  .docs-grid { grid-template-columns: 1fr; gap: 16px; }
  .doc-card { padding: 24px 22px; }
  .doc-card-img { aspect-ratio: 4 / 3; max-width: 360px; margin: 0 auto; }
}

/* === PRICING / ACCESS === */
.access-section { background: #faf8f3; }
.access-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 8px; }
.access-card {
  position: relative;
  border-radius: 20px;
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.access-card-primary {
  background: linear-gradient(135deg, #FF8B5C 0%, #F45821 50%, #D63E18 100%);
  color: #fff;
  box-shadow: 0 24px 48px -16px rgba(213, 62, 24, 0.4);
  overflow: hidden;
}
.access-card-primary::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 80%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.access-card-secondary {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #e8e6df;
}
.access-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}
.access-card-secondary .access-card-badge {
  background: #faf8f3;
  border-color: #e8e6df;
  color: #888;
}
.access-card-title { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; position: relative; z-index: 1; }
.access-card-secondary .access-card-title { font-size: 26px; }
.access-card-desc { font-size: 16px; line-height: 1.55; opacity: 0.92; position: relative; z-index: 1; }
.access-card-secondary .access-card-desc { color: #555; opacity: 1; }
.access-card-features { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.access-card-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.access-card-feature-mark {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.access-card-secondary .access-card-feature-mark { background: #fff5f2; color: #D63E18; }
.access-card-feature-mark::after { content: ''; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.access-card-secondary .access-card-feature-mark::after { border-color: #D63E18; }

.access-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  margin-top: auto;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.access-card-primary .access-card-cta { background: #fff; color: #1a1a1a; }
.access-card-primary .access-card-cta:hover { background: #fff5f2; }
.access-card-secondary .access-card-cta { background: #1a1a1a; color: #fff; }
.access-card-secondary .access-card-cta:hover { background: #000; }

@media (max-width: 900px) {
  .access-grid { grid-template-columns: 1fr; gap: 16px; }
  .access-card { padding: 28px 24px; gap: 18px; }
  .access-card-title { font-size: 24px; }
  .access-card-secondary .access-card-title { font-size: 22px; }
}

/* === STATS === */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { padding: 0; min-width: 0; }
.stat-num { font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-bottom: 10px; white-space: nowrap; }
.stat-num span { color: #FF6854; }
.stat-label { font-size: 15px; color: #666; line-height: 1.5; }
@media (max-width: 1100px) {
  .stat-num { font-size: 40px; }
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .stat-num { font-size: 44px; }
}
@media (max-width: 480px) {
  .stat-num { font-size: 32px; }
  .stat-label { font-size: 13px; }
}

.nafd-line { margin-top: 56px; padding: 32px; background: #fff; border-radius: 16px; font-size: 17px; line-height: 1.65; color: #444; max-width: 800px; }
.nafd-line strong { color: #1a1a1a; }
@media (max-width: 600px) {
  .nafd-line { padding: 20px; font-size: 14px; margin-top: 32px; }
}

/* === FINAL CTA === */
.cta-final { background: linear-gradient(135deg, #1c1d22 0%, #2a2b32 100%); color: #fff; border-radius: 24px; padding: 64px; text-align: center; }
.cta-final h2 { font-size: 40px; line-height: 1.1; font-weight: 700; margin-bottom: 16px; }
.cta-final-sub { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cta-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; max-width: 800px; margin: 0 auto; }
.cta-form input { padding: 16px 20px; font-size: 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; font-family: inherit; }
.cta-form input::placeholder { color: rgba(255,255,255,0.5); }
.cta-form input:focus { outline: none; border-color: #2563eb; background: rgba(255,255,255,0.1); }
.cta-form button { padding: 16px 28px; background: #2563eb; color: #fff; font-size: 15px; font-weight: 600; border-radius: 10px; white-space: nowrap; grid-column: 1 / -1; transition: background 0.15s; }
.cta-form button:hover { background: #1d4ed8; }
.cta-fine { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 16px; line-height: 1.5; }
.cta-fine a { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* === CONSULTATION (мягкий лидмагнит) === */
.consultation-section { background: #faf8f3; }
.consultation { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.consultation-text h2 { font-size: 32px; line-height: 1.15; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.01em; }
.consultation-text p { font-size: 16px; line-height: 1.65; color: #444; margin-bottom: 20px; }
.consultation-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.consultation-list li { font-size: 15px; line-height: 1.55; color: #2c2c2c; padding-left: 28px; position: relative; }
.consultation-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 16px; height: 8px; border-left: 2px solid #2563eb; border-bottom: 2px solid #2563eb; transform: rotate(-45deg); }
.consultation-form-wrap { background: #fff; border: 1px solid #e8e6df; border-radius: 14px; padding: 22px; box-shadow: 0 8px 32px rgba(0,0,0,0.04); }
.consultation-form { display: flex; flex-direction: column; gap: 8px; }
.consultation-form-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; line-height: 1.2; }
.consultation-form input { padding: 12px 14px; font-size: 14px; border-radius: 8px; border: 1px solid #e0ddd1; background: #fafafa; color: #1a1a1a; font-family: inherit; transition: border-color 0.15s, background 0.15s; }
.consultation-form input:focus { outline: none; border-color: #2563eb; background: #fff; }
.consultation-form input::placeholder { color: #aaa; }
.consultation-form button { padding: 13px 18px; background: #2563eb; color: #fff; font-size: 15px; font-weight: 600; border-radius: 8px; transition: background 0.15s; margin-top: 4px; }
.consultation-form button:hover { background: #1d4ed8; }
.consultation-form-fine { font-size: 12px; color: #888; line-height: 1.45; margin-top: 2px; text-align: center; }
@media (max-width: 900px) {
  .consultation { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .consultation-text h2 { font-size: 24px; }
  .consultation-form-wrap { padding: 22px; }
}
@media (max-width: 700px) {
  .cta-form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cta-final { padding: 36px 20px; }
  .cta-final h2 { font-size: 26px; }
  .cta-final-sub { font-size: 15px; margin-bottom: 28px; }
  .cta-form input { padding: 14px 16px; font-size: 14px; }
}

/* === LADDER TIMELINE === */
.ladder-timeline { display: flex; align-items: stretch; gap: 6px; margin-bottom: 32px; padding: 24px; background: #fff; border: 1px solid #e8e6df; border-radius: 16px; }
.tl-step { flex: 1 1 0; min-width: 0; padding: 16px 14px; border-radius: 10px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; gap: 6px; position: relative; color: #1a1a1a; min-height: 150px; }
.tl-step:hover { transform: translateY(-2px); }
.tl-step--1 { background: #FFE9DD; }
.tl-step--2 { background: #FFD4B8; }
.tl-step--3 { background: #FFB888; }
.tl-step--4 { background: #FF9B5E; color: #fff; }
.tl-step--5 { background: #FF6F2C; color: #fff; }
.tl-step--6 { background: linear-gradient(135deg, #1c1d22, #383944); color: #fff; }
.tl-step-num { font-size: 11px; font-weight: 700; opacity: 0.75; letter-spacing: 0.06em; text-transform: uppercase; }
.tl-step-name { font-size: 14px; font-weight: 600; line-height: 1.3; word-break: break-word; display: flex; flex-direction: column; gap: 2px; }
.tl-step-name-1 { font-weight: 600; }
.tl-step-name-2 { font-size: 12px; font-weight: 500; opacity: 0.85; line-height: 1.25; }
.tl-step-meta { font-size: 11px; opacity: 0.75; margin-top: auto; }
.tl-step.active { box-shadow: 0 0 0 3px #1c1d22, 0 8px 20px rgba(0,0,0,0.15); transform: translateY(-2px); }
.tl-arrow { display: flex; align-items: center; color: #c0bbab; font-size: 18px; flex-shrink: 0; padding: 0 2px; }

/* Средние экраны — 3+3 в сетке */
@media (max-width: 1100px) {
  .ladder-timeline { flex-wrap: wrap; gap: 10px; padding: 20px; }
  .tl-step { flex: 1 1 calc(33.333% - 8px); min-height: 130px; }
  .tl-arrow { display: none; }
}

/* Узкие экраны — змейкой в столбик */
@media (max-width: 640px) {
  .ladder-timeline { flex-direction: column; padding: 14px; gap: 8px; }
  .tl-step { flex: 0 0 auto; min-height: auto; padding: 14px 18px; flex-direction: row; align-items: center; gap: 12px; }
  .tl-step-num { font-size: 10px; min-width: 56px; flex-shrink: 0; }
  .tl-step-name { font-size: 14px; flex: 1; flex-direction: row; gap: 5px; flex-wrap: wrap; }
  .tl-step-name-2 { font-size: 14px; opacity: 1; font-weight: 600; }
  .tl-step-meta { font-size: 11px; margin-top: 0; flex-shrink: 0; white-space: nowrap; }
}

/* === MODAL === */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none; align-items: flex-start; justify-content: center; z-index: 100; padding: 40px 20px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 20px; max-width: 720px; width: 100%; padding: 40px; box-shadow: 0 32px 80px rgba(0,0,0,0.3); position: relative; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; background: #f1efe8; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: background 0.15s; }
.modal-close:hover { background: #e0ddd1; }
.modal-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #FF6132; margin-bottom: 8px; }
.modal-title { font-size: 28px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.modal-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; font-size: 14px; color: #666; }
.modal-meta span strong { color: #1a1a1a; font-weight: 700; }
.modal-section { margin-bottom: 24px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #888; margin-bottom: 12px; }
.modal-prog-list { display: flex; flex-direction: column; gap: 6px; }
.modal-prog-item { background: #faf8f3; border-radius: 8px; overflow: hidden; transition: background 0.15s; border: 1px solid transparent; }
.modal-prog-item:hover { background: #f1efe8; }
.modal-prog-item.open { background: #fff; border-color: #e8e6df; }
.modal-prog-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.modal-prog-name { flex: 1; font-size: 14px; font-weight: 500; color: #1a1a1a; line-height: 1.35; }
.modal-prog-count { color: #888; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.modal-prog-arrow { color: #b3afa0; font-size: 20px; line-height: 1; transition: transform 0.2s, color 0.15s; flex-shrink: 0; }
.modal-prog-item:hover .modal-prog-arrow { color: #1c1d22; }
.modal-prog-item.open .modal-prog-arrow { transform: rotate(90deg); color: #1c1d22; }
.modal-prog-body { display: none; padding: 0 14px 14px; }
.modal-prog-item.open .modal-prog-body { display: block; }
.modal-prog-lessons { list-style: none; margin: 0 0 12px 0; padding: 0; }
.modal-prog-lessons li { padding: 8px 0; font-size: 13px; line-height: 1.5; color: #444; border-top: 1px solid #f1efe8; list-style: none; }
.modal-prog-lessons li:first-child { border-top: 1px solid #f1efe8; padding-top: 12px; }
.modal-prog-link { display: inline-flex; align-items: center; padding: 8px 14px; background: #2563eb; color: #fff; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.15s; }
.modal-prog-link:hover { background: #1d4ed8; }
.modal-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
@media (max-width: 600px) {
  .modal { padding: 28px 20px; }
  .modal-title { font-size: 22px; }
}

/* Big modal — для "показать все навыки" */
.modal-large { max-width: 920px; }
.modal-skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.modal-skills-grid .skill { background: #faf8f3; }
.modal-skills-grid .skill:hover { background: #f1efe8; }

/* === REVIEWS SLIDER === */
.reviews-section { background: #faf8f3; }
.reviews-slider { position: relative; }
.reviews-track-wrap { overflow: hidden; }
.reviews-track { display: flex; gap: 20px; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.review-card { flex: 0 0 calc(50% - 10px); background: #fff; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; min-height: 280px; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.review-stars { color: #FF9500; font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.review-text { font-size: 15px; line-height: 1.65; color: #2c2c2c; margin-bottom: 20px; flex: 1; }
.review-text-full { display: none; }
.review-card.expanded .review-text-short { display: none; }
.review-card.expanded .review-text-full { display: block; }
.review-toggle { background: none; border: none; color: #2563eb; font-size: 14px; font-weight: 500; cursor: pointer; padding: 0; align-self: flex-start; margin-top: -8px; margin-bottom: 16px; }
.review-toggle:hover { color: #1d4ed8; }
.review-author { display: flex; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid #f1efe8; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #FF8B5C, #FF5722); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.review-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.review-position { font-size: 13px; color: #777; margin-top: 3px; line-height: 1.4; }

.reviews-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; }
.reviews-arrows { display: flex; gap: 12px; }
.reviews-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d8d5c8; background: #fff; color: #1a1a1a; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: all 0.15s; }
.reviews-arrow:hover { border-color: #1c1d22; background: #1c1d22; color: #fff; }
.reviews-arrow:disabled { opacity: 0.35; cursor: default; }
.reviews-arrow:disabled:hover { background: #fff; color: #1a1a1a; border-color: #d8d5c8; }
.reviews-dots { display: flex; gap: 8px; }
.reviews-dot { width: 8px; height: 8px; border-radius: 50%; background: #d8d5c8; cursor: pointer; transition: background 0.2s, transform 0.2s; border: none; padding: 0; }
.reviews-dot.active { background: #1c1d22; transform: scale(1.3); }

@media (max-width: 768px) {
  .review-card { flex: 0 0 100%; padding: 24px; min-height: 240px; }
  .review-text { font-size: 14px; }
}

/* === FOOTER === */
.site-footer { background: #1c1d22; color: rgba(255,255,255,0.6); padding: 40px 0; font-size: 13px; line-height: 1.6; }
.site-footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.site-footer-logo-block { flex-shrink: 0; }
.site-footer-logo-block svg { height: 28px; width: auto; display: block; }
.footer-logo-link { display: inline-block; }
.site-footer-text { flex: 1; min-width: 280px; }
.site-footer-text a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.site-footer-text a:hover { color: #fff; }
@media (max-width: 600px) {
  .site-footer { padding: 32px 0; }
  .site-footer-inner { gap: 24px; }
  .site-footer-text { font-size: 12px; }
}

/* === Сжатие воздуха для каркаса A (карьерный) === */
body[data-template="a"] .section {
  padding: 64px 0;
}
body[data-template="a"] .section--tight {
  padding: 40px 0;
}
@media (max-width: 800px) {
  body[data-template="a"] .section {
    padding: 44px 0;
  }
}

/* === Hero компактнее в каркасе A === */
body[data-template="a"] .hero {
  padding: 40px 0 56px;
}
body[data-template="a"] .hero-vshfd-logo {
  margin-bottom: 32px;
}
body[data-template="a"] .hero-vshfd-logo svg {
  height: 56px;
}
body[data-template="a"] .hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}
body[data-template="a"] .hero-lead {
  font-size: 18px;
  margin-bottom: 28px;
}
@media (max-width: 800px) {
  body[data-template="a"] .hero {
    padding: 32px 0 40px;
  }
  body[data-template="a"] .hero h1 {
    font-size: 32px;
  }
}

/* === Access — общая пара кнопок под двумя карточками === */
.access-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.access-cta-row .btn {
  min-width: 220px;
}
.access-cta-row .btn-secondary {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
}
.access-cta-row .btn-secondary:hover {
  background: #1a1a1a;
  color: #fff;
}
@media (max-width: 600px) {
  .access-cta-row {
    flex-direction: column;
  }
  .access-cta-row .btn {
    width: 100%;
  }
}

/* === Авторы программ — горизонтальная листалка === */
.authors-section { background: #fff; }

.section-head--with-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.authors-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.authors-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #d4cfc8;
  background: #fff;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.authors-arrow:hover {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}
.authors-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.authors-arrow:disabled:hover {
  background: #fff;
  color: #1a1a1a;
  border-color: #d4cfc8;
}

.authors-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 200px);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.authors-scroller::-webkit-scrollbar {
  display: none;
}
.authors-scroller .author-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.author-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #f5efea;
  margin-bottom: 16px;
  max-width: 200px;
}
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.author-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  position: relative;
  padding-top: 10px;
  line-height: 1.3;
}
.author-name::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: #3a8dde;
}
.author-position {
  font-size: 13px;
  line-height: 1.45;
  color: #5a5a5a;
}

@media (max-width: 720px) {
  .authors-scroller {
    grid-auto-columns: minmax(160px, 70vw);
    gap: 16px;
  }
  .authors-arrow {
    width: 38px;
    height: 38px;
  }
  .author-name { font-size: 15px; }
  .author-position { font-size: 12px; }
}

/* === Программы: раскрывашка уроков и лента строк (общие для A и B) === */
/* Раскрываемый блок «N уроков по Excel — показать» внутри карточки программы */
.prog-lessons-toggle {
  margin-top: 16px;
  padding: 12px 16px;
  background: #f0f6fb;
  border: 1px solid #cee0f3;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease;
}
.prog-lessons-toggle:hover {
  background: #e3eef9;
}
.prog-lessons-toggle-label {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
}
.prog-lessons-toggle-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.prog-lessons-list {
  margin-top: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #f0e7df;
  border-radius: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
}
.prog-lessons-list.open {
  max-height: 1500px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.prog-lessons-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prog-lessons-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f0eb;
  font-size: 14px;
  line-height: 1.45;
  color: #2a2a2a;
}
.prog-lessons-list li:last-child {
  border-bottom: none;
}
.prog-lessons-list li::before {
  content: '·';
  color: #3a8dde;
  font-weight: 700;
  margin-right: 10px;
}

.prog .prog-lessons-toggle.open .prog-lessons-toggle-arrow {
  transform: rotate(90deg);
}

/* === Программы как лента строк (каркас B) === */
.prog-group--list {
  margin-bottom: 32px;
}
.prog-group--list:last-child {
  margin-bottom: 0;
}
.prog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prog-group--list .prog {
  background: #fff;
  border: 1px solid #ece7e0;
  border-left: 3px solid #3a8dde;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.prog-group--list .prog:hover {
  border-color: #d4cfc8;
  border-left-color: #3a8dde;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.prog-group--list .prog.open {
  border-left-color: #3a8dde;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.prog-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
}
.prog-row-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6fc;
  border-radius: 8px;
  color: #3a8dde;
}
.prog-row-icon svg {
  width: 22px;
  height: 22px;
}
.prog-row-main {
  flex: 1;
  min-width: 0;
}
.prog-row-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.prog-row-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.prog-row-meta .prog-pill {
  display: inline-block;
  padding: 2px 10px;
  background: #f5efea;
  border-radius: 12px;
  font-size: 12px;
  color: #5a5a5a;
}
.prog-row-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: transform 0.2s ease, color 0.2s ease;
}
.prog-group--list .prog.open .prog-row-arrow {
  transform: rotate(180deg);
  color: #3a8dde;
}

.prog-row-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.prog-group--list .prog.open .prog-row-body {
  max-height: 2000px;
}
.prog-row-body-inner {
  padding: 0 20px 20px 76px;
  border-top: 1px solid #f5efea;
  padding-top: 16px;
}
@media (max-width: 600px) {
  .prog-row {
    padding: 14px 16px;
    gap: 12px;
  }
  .prog-row-icon {
    width: 36px;
    height: 36px;
  }
  .prog-row-icon svg {
    width: 20px;
    height: 20px;
  }
  .prog-row-name {
    font-size: 15px;
  }
  .prog-row-body-inner {
    padding: 16px 16px 16px 16px;
  }
}

/* === Сжимаю переход reviews → passport (граница цвета и так разделяет) === */
body[data-template="a"] #reviews {
  padding-bottom: 32px;
}
body[data-template="a"] #passport {
  padding-top: 40px;
}

/* === Hero 2-колоночный (для каркаса A с формой обратного звонка) === */
.hero--two-col .hero-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.hero--two-col .hero-content {
  max-width: none;
}

/* Компактная форма обратного звонка в hero */
.hero-callback {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
  margin-top: -56px;
}
.hero-callback-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.hero-callback-sub {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
}
.hero-callback input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
}
.hero-callback input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}
.hero-callback input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.hero-callback .btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}
.hero-callback-fine {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}
.hero-callback-fine a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}
.hero-callback-fine a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .hero--two-col .hero-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-callback {
    max-width: 420px;
    margin-top: 0;
  }
}

/* === Passport-section компактнее по вертикали === */
body[data-template="a"] #passport {
  padding-top: 32px;
  padding-bottom: 56px;
}
body[data-template="a"] #passport .section-head {
  margin-bottom: 32px;
}

/* === Кнопка "Перейти в паспорт" под буллитами === */
.passport-text-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 24px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.passport-text-cta:hover {
  background: #2563eb;
}

/* === Сжимаю переходы между смежными секциями каркаса A === */
body[data-template="a"] #docs {
  padding-top: 40px;
}
body[data-template="a"] .section--light + .section,
body[data-template="a"] .section--light + .docs-section {
  padding-top: 32px;
}

/* «О школе» — компактнее снизу */
body[data-template="a"] .section--light:has(.nafd-line) {
  padding-bottom: 40px;
}
