
/* ============================================================
   Главная: стили только внутри .home-main (контент страницы).
   Общие шапка, подвал и типографика — static/design_system.css (этап 2).
   ============================================================ */
.home-main {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.home-main *,
.home-main *::before,
.home-main *::after { box-sizing: border-box; }
.home-main img { max-width: 100%; display: block; }
.home-main a { color: inherit; text-decoration: none; }
.home-main button { font: inherit; }
.home-main ::selection { background: var(--gold-soft); color: var(--indigo-deep); }
.home-main :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   ПРОТОТИП. Палитра: тёплый фон, глубокий индиго, золото.
   Шрифты: системный sans + Georgia для заголовков (без web-font,
   чтобы не ловить FOUT и не менять скорость загрузки).
   ============================================================ */
.home-main *, .home-main *::before, .home-main *::after{ box-sizing: border-box; margin: 0; padding: 0; }
:root{
  --bg: #F8F5EF;
  --surface: #FFFFFF;
  --surface-2: #F1ECE2;
  --ink: #211B2E;
  --ink-soft: #3B3449;
  --muted: #6B6477;
  --line: #E2DACD;
  --line-strong: #CEC3B1;
  --indigo: #2F2A6E;
  --indigo-deep: #171326;
  --indigo-soft: #4A4290;
  --blue: #4169E1;
  --gold: #A9812F;
  --gold-ink: #7A5A16;
  --gold-soft: #D8BE86;
  --gold-pale: #F3E7CD;
  --white: #FFFFFF;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(33, 27, 46, .08);
  --shadow-sm: 0 8px 24px rgba(33, 27, 46, .06);
  --wrap: 1200px;
  --serif: Georgia, "Times New Roman", serif;
}
.home-main{ scroll-behavior: smooth; }
.home-main{
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.home-main img{ display: block; max-width: 100%; }
.home-main a{ color: inherit; text-decoration: none; }
.home-main button{ font: inherit; }
.home-main ::selection{ background: var(--gold-soft); color: var(--indigo-deep); }
.home-main :focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.home-main .skip{
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--indigo-deep); color: var(--white);
  padding: 12px 18px; border-radius: 0 0 10px 0;
}
.home-main .skip:focus{ left: 0; }
.home-main .wrap{
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.home-main .serif{ font-family: var(--serif); font-weight: 400; }


/* ---------- Buttons ---------- */
.home-main .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.home-main .btn:hover{ transform: translateY(-2px); }
.home-main .btn-primary{ background: var(--indigo); color: var(--white); }
.home-main .btn-primary:hover{ background: #262158; }
.home-main .btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: rgba(33, 27, 46, .22);
}
.home-main .btn-ghost:hover{ background: rgba(33, 27, 46, .05); border-color: rgba(33, 27, 46, .35); }
.home-main .btn-gold{ background: var(--gold-soft); color: #241B0B; }
.home-main .btn-gold:hover{ background: #E7D3A5; }
.home-main .btn-light{
  background: transparent;
  color: #F5EFE3;
  border-color: rgba(245, 239, 227, .3);
}
.home-main .btn-light:hover{ background: rgba(245, 239, 227, .08); }
.home-main .btn .arr{ transition: transform .18s ease; }
.home-main .btn:hover .arr{ transform: translateX(3px); }


/* ---------- Common section ---------- */
.home-main .section{ padding: 92px 0; }
.home-main .section--tight{ padding: 64px 0; }
.home-main .section--surface{ background: var(--surface); }
.home-main section[id]{ scroll-margin-top: 96px; }
.home-main .page-nav{
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-main .page-nav .wrap{
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.home-main .page-nav .wrap::-webkit-scrollbar{ display: none; }
.home-main .page-nav a{
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s ease;
}
.home-main .page-nav a:hover{ color: var(--indigo); }
.home-main .section-head{ max-width: 760px; margin-bottom: 44px; }
.home-main .section-head--wide{ max-width: 900px; }
.home-main .kicker{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.home-main .kicker::before{
  content: "";
  width: 30px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.home-main h2{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.1vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
}
.home-main .lead{
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 680px;
}
.home-main .arrow-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--indigo);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid rgba(47, 42, 110, .25);
  padding-bottom: 3px;
}
.home-main .arrow-link:hover{ color: var(--gold-ink); border-color: var(--gold); }
.home-main .arrow-link .arr{ transition: transform .18s ease; }
.home-main .arrow-link:hover .arr{ transform: translateX(3px); }


/* ---------- Hero ---------- */
.home-main .hero{
  position: relative;
  padding: 70px 0 54px;
  background:
    radial-gradient(900px 520px at 82% 10%, rgba(216, 190, 134, .22), transparent 60%),
    radial-gradient(700px 420px at 8% 0%, rgba(65, 105, 225, .06), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.home-main .hero::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.home-main .hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 64px;
  align-items: center;
}
.home-main .hero-copy{ max-width: 660px; }
.home-main .hero h1{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.05rem, 3.45vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 640px;
}
.home-main .hero h1 .brandline{ white-space: nowrap; }
.home-main .hero-lead{
  margin-top: 22px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 610px;
}
.home-main .hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.home-main .hero-note{
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.home-main .hero-note .sep{ width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.home-main .hero-stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 46px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.home-main .hero-stats div{ padding-right: 16px; }
.home-main .hero-stats div + div{ border-left: 1px solid var(--line); padding-left: 20px; }
.home-main .hero-stats b{
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1;
  color: var(--indigo);
}
.home-main .hero-stats span{
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}
.home-main .hero-visual{ position: relative; justify-self: end; width: 100%; max-width: 480px; }
.home-main .portrait-frame{
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background:
    radial-gradient(70% 70% at 50% 30%, rgba(255, 247, 225, .95), transparent 65%),
    linear-gradient(160deg, #EFE3CB 0%, #E2CFA8 52%, #C9AC72 100%);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.home-main .portrait-frame::before{
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(122, 90, 22, .28);
  border-radius: 14px;
  z-index: 2;
  pointer-events: none;
}
.home-main .portrait-frame img{
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 9% 20%;
  transform: translateX(-50%);
  z-index: 1;
}


/* ---------- Start cards ---------- */
.home-main .start-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.home-main .start-card{
  position: relative;
  border-radius: var(--radius);
  padding: 38px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-main .start-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow); }
.home-main .start-card--dark{
  background:
    radial-gradient(500px 260px at 90% 0%, rgba(216, 190, 134, .18), transparent 65%),
    var(--indigo-deep);
  border-color: transparent;
  color: #F5EFE3;
}
.home-main .start-card--dark h3{ color: #FBF6EC; }
.home-main .start-card--dark p{ color: #C9C1D3; }
.home-main .start-card--dark .arrow-link{ color: var(--gold-soft); border-color: rgba(216, 190, 134, .4); }
.home-main .start-icon{
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-pale);
  color: var(--gold-ink);
  margin-bottom: 22px;
}
.home-main .start-card--dark .start-icon{ background: rgba(216, 190, 134, .14); color: var(--gold-soft); }
.home-main .start-card.start-card--dark h3{ color: #FBF6EC; }
.home-main .start-card h3{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  line-height: 1.18;
  color: var(--ink);
}
.home-main .start-card p{ margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 440px; }
.home-main .start-card .arrow-link{ margin-top: auto; padding-top: 24px; }


/* ---------- About ---------- */
.home-main .about-grid{ display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.home-main .about-copy p{ color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.home-main .about-copy p + p{ margin-top: 18px; }
.home-main .about-copy .arrow-link{ margin-top: 26px; }
.home-main .about-note{
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, .55);
  padding: 26px 28px;
}
.home-main .about-note b{ display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.home-main .about-note p{ margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.home-main .about-facts{ margin-top: 26px; display: grid; gap: 14px; }
.home-main .about-facts div{ display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.home-main .about-facts svg{ flex: 0 0 auto; margin-top: 3px; color: var(--gold-ink); }


/* ---------- Directions ---------- */
.home-main .dir-grid{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-main .dir-card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px 20px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-main .dir-card:hover{ transform: translateY(-3px); border-color: var(--gold-soft); box-shadow: var(--shadow-sm); }
.home-main .dir-num{
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold-ink);
  letter-spacing: .08em;
}
.home-main .dir-card--all .dir-num{ color: var(--gold-soft); }
.home-main .dir-card h3{ margin-top: 10px; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.home-main .dir-card p{ margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.home-main .dir-card .dir-arrow{
  margin-top: auto;
  padding-top: 16px;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home-main .dir-card--all{
  background: var(--indigo);
  border-color: var(--indigo);
  color: #F5EFE3;
  justify-content: space-between;
}
.home-main .dir-card--all:hover{ background: #262158; border-color: #262158; }
.home-main .dir-card--all h3{ color: #FBF6EC; font-family: var(--serif); font-weight: 400; font-size: 20px; }
.home-main .dir-card--all p{ color: #C9C1D3; }
.home-main .dir-card--all .dir-arrow{ color: var(--gold-soft); }


/* ---------- Steps ---------- */
.home-main .steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.home-main .step{ position: relative; padding: 30px 28px 0 0; }
.home-main .step + .step{ padding-left: 28px; border-left: 1px solid var(--line); }
.home-main .step-num{
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
}
.home-main .step h3{ margin-top: 18px; font-size: 17px; line-height: 1.3; color: var(--ink); }
.home-main .step p{ margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.home-main .steps-note{
  margin-top: 34px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.home-main .steps-note svg{ flex: 0 0 auto; margin-top: 2px; color: var(--gold-ink); }


/* ---------- Program cards ---------- */
.home-main .card-grid-3{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-main .program-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-main .program-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.home-main .program-media{ position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.home-main .program-media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.home-main .program-card:hover .program-media img{ transform: scale(1.04); }
.home-main .program-badge{
  position: absolute;
  left: 14px; top: 14px;
  background: rgba(23, 19, 38, .82);
  color: #F5E9CF;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.home-main .program-body{ padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.home-main .program-kicker{ font-size: 12px; color: var(--gold-ink); letter-spacing: .06em; text-transform: uppercase; }
.home-main .program-body h3{ margin-top: 8px; font-size: 18px; line-height: 1.3; color: var(--ink); }
.home-main .program-meta{
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.home-main .program-meta span{ font-size: 13px; color: var(--muted); }
.home-main .program-meta b{ font-size: 16px; color: var(--indigo); white-space: nowrap; }
.home-main .program-body .arrow-link{ margin-top: 16px; font-size: 13px; }
.home-main .program-note{ margin-top: 18px; font-size: 13px; line-height: 1.55; color: var(--muted); text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.home-main .section-foot{ margin-top: 34px; display: flex; justify-content: center; }


/* ---------- Services ---------- */
.home-main .services-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-main .service-card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 22px 20px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-main .service-card::before{
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 36px;
  height: 2px;
  background: var(--gold);
}
.home-main .service-card:hover{
  transform: translateY(-3px);
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-sm);
}
.home-main .service-num{
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold-ink);
  letter-spacing: .08em;
}
.home-main .service-card h3{ margin-top: 10px; font-size: 18px; line-height: 1.3; color: var(--ink); }
.home-main .service-card p{ margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.home-main .service-bottom{
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.home-main .service-bottom b{ font-size: 20px; color: var(--indigo); }
.home-main .service-bottom span{
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 9px;
  white-space: nowrap;
}
.home-main .service-link{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
}
.home-main .service-card:hover .service-link{ color: var(--gold-ink); }


/* ---------- Seminars ---------- */
.home-main .seminar-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-main .seminar-card{
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-main .seminar-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.home-main .seminar-top{ display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--gold-ink); letter-spacing: .05em; text-transform: uppercase; }
.home-main .seminar-card h3{ margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.22; color: var(--ink); }
.home-main .seminar-card p{ margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.home-main .seminar-bottom{ margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-main .seminar-bottom b{ font-size: 16px; color: var(--indigo); }
.home-main .seminar-bottom a{ font-size: 13px; font-weight: 700; color: var(--indigo); }
.home-main .seminar-bottom a:hover{ color: var(--gold-ink); }
.home-main .seminar-note{ margin-top: 22px; font-size: 13px; color: var(--muted); text-align: center; }


/* ---------- Author ---------- */
.home-main .author-grid{ display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 54px; align-items: center; }
.home-main .author-photo{ position: relative; }
.home-main .author-photo img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: saturate(.82) contrast(1.03) brightness(1.01);
}
.home-main .author-photo::after{
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 14px;
  pointer-events: none;
}
.home-main .certs{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.home-main .certs img{
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.home-main .certs-caption{ margin-top: 8px; font-size: 12px; color: var(--muted); }
.home-main .author-copy h2{ margin-bottom: 6px; }
.home-main .author-role{ color: var(--gold-ink); font-size: 14px; letter-spacing: .03em; }
.home-main .author-copy > p{ margin-top: 18px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.home-main .author-facts{ margin-top: 24px; display: grid; gap: 12px; }
.home-main .author-facts div{ display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.home-main .author-facts svg{ flex: 0 0 auto; margin-top: 3px; color: var(--gold-ink); }
.home-main .author-copy .btn{ margin-top: 28px; }


/* ---------- Video ---------- */
.home-main .video-shell{ position: relative; max-width: 780px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0E0B18; }
.home-main .video-shell img{ width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .86; }
.home-main .video-shell::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 40%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
}
.home-main .video-play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.home-main .play-ring{
  width: 86px; height: 86px;
  border-radius: 50%;
  background: rgba(248, 245, 239, .94);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease;
}
.home-main .video-play:hover .play-ring{ transform: scale(1.06); background: #fff; }
.home-main .play-ring svg{ margin-left: 5px; color: var(--indigo); }
.home-main .video-caption{
  position: absolute;
  left: 26px; bottom: 22px;
  z-index: 2;
  color: #F5EFE3;
  font-size: 14px;
  letter-spacing: .02em;
}
.home-main .video-caption b{ display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; }


/* ---------- Reviews ---------- */
.home-main .review-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-main .review-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
}
.home-main .review-mark{ font-family: var(--serif); font-size: 42px; line-height: .8; color: var(--gold-soft); }
.home-main .review-card blockquote{ margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.home-main .review-card figcaption{ margin-top: auto; padding-top: 20px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.home-main .video-reviews{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.home-main .video-chip{
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color .18s ease, transform .18s ease;
}
.home-main .video-chip:hover{ border-color: var(--gold-soft); transform: translateY(-2px); }
.home-main .video-chip .mini-play{
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--indigo-deep);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
}
.home-main .video-chip b{ display: block; font-size: 14px; color: var(--ink); }
.home-main .video-chip span{ display: block; font-size: 12px; color: var(--muted); }


/* ---------- Articles ---------- */
.home-main .article-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: stretch;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-main .article-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow); }
.home-main .article-card img{ width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.home-main .article-body{ padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.home-main .article-body .program-kicker{ font-size: 11px; }
.home-main .article-body h3{ margin-top: 6px; font-size: 17px; line-height: 1.3; color: var(--ink); }
.home-main .article-body p{ margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.home-main .article-body .arrow-link{ margin-top: auto; padding-top: 10px; font-size: 13px; }


/* ---------- FAQ ---------- */
.home-main .faq-wrap{ max-width: 860px; }
.home-main .faq-item{ border-bottom: 1px solid var(--line); }
.home-main .faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
}
.home-main .faq-item summary::-webkit-details-marker{ display: none; }
.home-main .faq-plus{
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.home-main .faq-plus::before, .home-main .faq-plus::after{
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 1px;
  background: var(--gold-ink);
  transform: translate(-50%, -50%);
}
.home-main .faq-plus::after{ transform: translate(-50%, -50%) rotate(90deg); }
.home-main .faq-item[open] .faq-plus{ transform: rotate(45deg); border-color: var(--gold); }
.home-main .faq-body{ padding: 0 44px 22px 0; }
.home-main .faq-answer{ padding: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.home-main .faq-answer a{ color: var(--indigo); border-bottom: 1px solid rgba(47,42,110,.25); }
.home-main .faq-answer a:hover{ color: var(--gold-ink); border-color: var(--gold); }
.home-main .faq-more{ display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; border-bottom: 0 !important; }


/* ---------- CTA ---------- */
.home-main .cta{
  background:
    radial-gradient(700px 400px at 88% 10%, rgba(216, 190, 134, .2), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(74, 66, 144, .35), transparent 60%),
    var(--indigo-deep);
  color: #F5EFE3;
  padding: 84px 0;
}
.home-main .cta-grid{ display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.home-main .cta h2{ color: #FBF6EC; }
.home-main .cta .kicker{ color: var(--gold-soft); }
.home-main .cta .kicker::before{ background: var(--gold-soft); }
.home-main .cta p{ margin-top: 16px; color: #C9C1D3; font-size: 16px; line-height: 1.65; max-width: 560px; }
.home-main .cta-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-main .contact-card{
  background: rgba(248, 245, 239, .06);
  border: 1px solid rgba(216, 190, 134, .22);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.home-main .contact-card .row{ display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(245, 239, 227, .12); }
.home-main .contact-card .row:last-child{ border-bottom: 0; }
.home-main .contact-card svg{ flex: 0 0 auto; margin-top: 3px; color: var(--gold-soft); }
.home-main .contact-card b{ display: block; font-size: 14px; color: #F5EFE3; }
.home-main .contact-card span{ display: block; font-size: 12px; color: #AFA6BE; margin-top: 2px; }
.home-main .contact-card a:hover{ color: var(--gold-soft); }



/* ---------- 40+ readability pass ----------
   Аудитория 40+: крупнее базовый текст, контрастнее вторичный,
   больше кнопки и подписи. Стиль не меняется — только читаемость. */
:root{ --muted: #5B5468; --gold-ink: #6E4F12; }
.home-main{ font-size: 18px; }
.home-main .kicker{ font-size: 12px; letter-spacing: .16em; }
.home-main .lead{ font-size: 18px; }
.home-main .hero-lead{ font-size: clamp(1.05rem, 1.2vw, 1.18rem); }
.home-main .hero-note{ font-size: 14px; }
.home-main .hero-stats span{ font-size: 13px; }
.home-main .btn{ font-size: 16px; min-height: 54px; }
.home-main .page-nav a{ font-size: 14px; }
.home-main .start-card p{ font-size: 16px; }
.home-main .dir-card h3{ font-size: 18px; }
.home-main .dir-card p{ font-size: 14px; }
.home-main .dir-card .dir-arrow{ font-size: 14px; }
.home-main .step h3{ font-size: 18px; }
.home-main .step p{ font-size: 15px; }
.home-main .steps-note{ font-size: 15px; }
.home-main .program-kicker{ font-size: 12px; }
.home-main .program-body h3{ font-size: 19px; }
.home-main .program-meta span{ font-size: 14px; }
.home-main .program-meta b{ font-size: 17px; }
.home-main .program-body .arrow-link{ font-size: 14px; }
.home-main .seminar-card h3{ font-size: 22px; }
.home-main .seminar-card p{ font-size: 14px; }
.home-main .seminar-bottom b{ font-size: 17px; }
.home-main .seminar-bottom a{ font-size: 14px; }
.home-main .author-role{ font-size: 15px; }
.home-main .author-copy > p{ font-size: 17px; }
.home-main .author-facts div{ font-size: 15px; }
.home-main .certs-caption{ font-size: 13px; }
.home-main .review-card blockquote{ font-size: 16px; }
.home-main .review-card figcaption{ font-size: 13px; }
.home-main .video-chip b{ font-size: 15px; }
.home-main .video-chip span{ font-size: 13px; }
.home-main .article-body h3{ font-size: 17px; }
.home-main .article-body p{ font-size: 13.5px; }
.home-main .article-body .arrow-link{ font-size: 13.5px; }
.home-main .faq-item summary{ font-size: 18px; }
.home-main .faq-answer{ font-size: 16px; }
.home-main .faq-more{ font-size: 14px; }
.home-main .cta p{ font-size: 17px; }
.home-main .contact-card b{ font-size: 15px; }
.home-main .contact-card span{ font-size: 13px; }
.home-main .program-badge{ font-size: 12px; }


/* ---------- Responsive ---------- */
@media (max-width: 1080px){
.home-main .hero-grid{ gap: 40px; }
.home-main .dir-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-main .services-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-main .card-grid-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-main .seminar-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

}
@media (max-width: 920px){
.home-main .hero{ padding-top: 48px; }
.home-main .hero-grid{ grid-template-columns: 1fr; gap: 36px; }
.home-main .hero-copy{ order: 1; }
.home-main .hero-visual{ order: 2; justify-self: center; max-width: 420px; }
.home-main .hero h1{ font-size: clamp(2rem, 7vw, 3.1rem); }
.home-main .hero-stats{ margin-top: 34px; }
.home-main .start-grid{ grid-template-columns: 1fr; }
.home-main .about-grid{ grid-template-columns: 1fr; gap: 30px; }
.home-main .steps{ grid-template-columns: 1fr 1fr; border-top: 0; }
.home-main .step{ padding: 22px 22px 0 0; }
.home-main .step + .step{ padding-left: 22px; }
.home-main .step:nth-child(3){ padding-left: 0; border-left: 0; }
.home-main .step:nth-child(3), .home-main .step:nth-child(4){ border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.home-main .author-grid{ grid-template-columns: 1fr; gap: 34px; }
.home-main .author-photo{ max-width: 460px; }
.home-main .cta-grid{ grid-template-columns: 1fr; }
.home-main .review-grid{ grid-template-columns: 1fr 1fr; }
.home-main .video-reviews{ grid-template-columns: 1fr; }

}
@media (max-width: 900px){.home-main .page-nav .wrap{
    flex-wrap: wrap;
    gap: 8px 16px;
    overflow: visible;
  }
.home-main .page-nav a{ font-size: 12px; }

}
@media (max-width: 720px){.home-main .shape-switch{ display: none; }
.home-main .float-actions{ right: 14px; bottom: 14px; gap: 8px; }
.home-main .float-top{ width: 44px; height: 44px; }
.home-main .signup-card{ padding: 24px; }
.home-main .section{ padding: 66px 0; }
.home-main .section--tight{ padding: 48px 0; }
.home-main .wrap{ padding: 0 18px; }
.home-main .proto{ display: none; }
.home-main .dir-grid{ grid-template-columns: 1fr 1fr; }
.home-main .services-grid{ grid-template-columns: 1fr; }
.home-main .card-grid-3, .home-main .seminar-grid{ grid-template-columns: 1fr; }
.home-main .review-grid{ grid-template-columns: 1fr; }
.home-main .steps{ grid-template-columns: 1fr; }
.home-main .step, .home-main .step + .step{ padding: 20px 0 0; border-left: 0; }
.home-main .step + .step{ border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.home-main .hero-stats{ grid-template-columns: 1fr 1fr; row-gap: 18px; }
.home-main .hero-stats div:nth-child(3){ border-left: 0; padding-left: 0; }
.home-main .hero-stats div:nth-child(4){ border-left: 1px solid var(--line); padding-left: 20px; }
.home-main .hero-badge{ width: 76px; height: 76px; font-size: 9px; right: 0; top: 12px; }
.home-main .hero-badge b{ font-size: 21px; }
.home-main .portrait-card{ left: 0; bottom: 12px; padding: 10px 12px; max-width: 210px; }

}
@media (max-width: 460px){.home-main .hero h1{ font-size: 1.8rem; }
.home-main .hero h1 .brandline{ white-space: normal; }
.home-main .article-card{ grid-template-columns: 104px minmax(0, 1fr); }
.home-main .article-body{ padding: 13px 14px; }
.home-main .dir-grid{ grid-template-columns: 1fr; }
.home-main .dir-card{ min-height: 150px; }
.home-main .hero-actions .btn{ width: 100%; }
.home-main .cta-actions .btn{ width: 100%; }
.home-main .author-certs .certs img{ width: 31%; }

}
@media (prefers-reduced-motion: reduce){.home-main *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }

}


/* Подпись и бейдж поверх портрета (были потеряны при выносе CSS) */
.home-main .portrait-card {
  position: absolute;
  left: -18px;
  bottom: 26px;
  z-index: 3;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  max-width: 240px;
}
.home-main .portrait-card b { display: block; font-size: 15px; color: var(--ink); }
.home-main .portrait-card span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.home-main .hero-badge {
  position: absolute;
  right: -10px;
  top: 26px;
  z-index: 3;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--indigo-deep);
  color: var(--gold-soft);
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(23, 19, 38, .28);
}
.home-main .hero-badge b { display: block; font-family: var(--serif); font-size: 26px; letter-spacing: 0; color: #F5E9CF; }

/* ============================================================
   Тёмная тема главной — переиспользуем старую систему data-theme.
   Механизм, localStorage и pre-paint уже есть в main_css/JS.
   ============================================================ */
html[data-theme="dark"] .home-main {
  --bg: #0C0918;
  --surface: #171228;
  --surface-2: #211A36;
  --ink: #F7F1E5;
  --ink-soft: #D9D2C5;
  --muted: #B9B0C6;
  --line: #332C45;
  --line-strong: #4A4260;
  --indigo: #4B3F9E;
  --indigo-deep: #0A0720;
  --indigo-soft: #6C5CE0;
  --gold: #C9A96B;
  --gold-ink: #E9D9B4;
  --gold-soft: #D8BE86;
  --gold-pale: #2A2340;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .25);
}
html[data-theme="dark"] .home-main .hero {
  background:
    radial-gradient(900px 520px at 82% 10%, rgba(216, 190, 134, .12), transparent 60%),
    radial-gradient(700px 420px at 8% 0%, rgba(108, 92, 224, .10), transparent 60%),
    var(--bg);
}
html[data-theme="dark"] .home-main .hero-stats b { color: var(--gold-soft); }
html[data-theme="dark"] .home-main .program-meta b,
html[data-theme="dark"] .home-main .service-bottom b,
html[data-theme="dark"] .home-main .seminar-bottom b { color: var(--gold-soft); }
html[data-theme="dark"] .home-main .arrow-link,
html[data-theme="dark"] .home-main .dir-arrow,
html[data-theme="dark"] .home-main .service-link,
html[data-theme="dark"] .home-main .faq-more,
html[data-theme="dark"] .home-main .article-body .arrow-link {
  color: var(--gold-soft);
  border-color: rgba(216, 190, 134, .35);
}
html[data-theme="dark"] .home-main .arrow-link:hover,
html[data-theme="dark"] .home-main .dir-card:hover .dir-arrow,
html[data-theme="dark"] .home-main .service-card:hover .service-link,
html[data-theme="dark"] .home-main .faq-more:hover { color: #F5E9CF; }
html[data-theme="dark"] .home-main .btn-ghost {
  color: #F5EFE3;
  border-color: rgba(245, 239, 227, .3);
}
html[data-theme="dark"] .home-main .btn-ghost:hover {
  background: rgba(245, 239, 227, .08);
  border-color: rgba(245, 239, 227, .45);
}
html[data-theme="dark"] .home-main .about-note {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
  border-left-color: var(--gold);
}
html[data-theme="dark"] .home-main .portrait-frame {
  background:
    radial-gradient(70% 70% at 50% 30%, rgba(216, 190, 134, .15), transparent 65%),
    linear-gradient(160deg, #2A2340 0%, #1A1533 55%, #241B38 100%);
}
html[data-theme="dark"] .home-main .portrait-frame::before { border-color: rgba(216, 190, 134, .35); }
html[data-theme="dark"] .home-main .portrait-card {
  background: rgba(23, 18, 40, .92);
  border-color: rgba(216, 190, 134, .22);
}
html[data-theme="dark"] .home-main .portrait-card b { color: var(--ink); }
html[data-theme="dark"] .home-main .portrait-card span { color: var(--muted); }
html[data-theme="dark"] .home-main .hero-badge { background: #0A0720; }
html[data-theme="dark"] .home-main .start-card--dark {
  background: #0E0B1C;
  border: 1px solid var(--line);
}
html[data-theme="dark"] .home-main .btn-primary:hover { background: #5A4FBF; }
html[data-theme="dark"] .home-main .section--surface { background: var(--surface); }
html[data-theme="dark"] .home-main .page-nav { background: var(--surface-2); }
html[data-theme="dark"] .home-main .faq-plus { border-color: var(--line-strong); }
html[data-theme="dark"] .home-main .faq-plus::before,
html[data-theme="dark"] .home-main .faq-plus::after { background: var(--gold-soft); }

html[data-theme="dark"] .home-main .seminar-bottom a { color: var(--gold-soft) !important; }
