/* Единая фирменная палитра «Преподаю»: без золотого герба, бумаги и тёплых заливок.
   Статусы ошибок и оплаты сохраняют собственные семантические цвета. */
:root {
  --brand-night: #11162f;
  --brand-night-2: #1b2349;
  --brand-electric: #5b57f4;
  --brand-electric-dark: #4441d6;
  --brand-ice: #83e5f5;
  --brand-lime: #dafe62;
  --brand-cloud: #f4f5fa;
  --brand-paper: #fff;
  --brand-coral: #5b57f4;
  --brand-sun: #dafe62;
  --p-pine: #11162f;
  --p-pine-2: #1b2349;
  --p-green: #5b57f4;
  --p-lime: #dafe62;
  --p-cream: #f4f5fa;
  --p-coral: #5b57f4;
  --v3-primary: #5b57f4;
  --v3-coral: #5b57f4;
  --v3-yellow: #dafe62;
  --v3-lime: #dafe62;
  --ui-violet: #5b57f4;
  --ui-lime: #dafe62;
  --subject-accent: #5b57f4;
  --program-accent: #5b57f4;
  --teacher-color: #5b57f4;
}
.public-page main { background: radial-gradient(circle at 88% 12%,rgba(131,229,245,.12),transparent 24%), #f4f5fa; }
.public-page .product-hero h1 em { background: linear-gradient(110deg,#5b57f4,#33309a); background-clip: text; color: transparent; }
.public-page .product-kicker i, .public-page .catalog-sequence i { background: #5b57f4; }
.public-page .product-hero-meta b { color: #5b57f4; }
.public-page .public-brand-mark { border-radius: 18%; filter: none; }
.shell-v5 .brand-mark { background: transparent; box-shadow: none; padding: 0; transform: none; }
.shell-v5 .brand-mark img { border-radius: 18%; display: block; height: 100%; width: 100%; }
.public-page .progress-ring { background: conic-gradient(#5b57f4 0 52%,#83e5f5 52% 72%,#e5e4f6 72%); }
.public-page .subject-card-stage { background: #ecebff; }
.public-page .subject-card:nth-child(3n+2) .subject-card-stage { background: #e8f6ff; }
.public-page .subject-card:nth-child(3n+3) .subject-card-stage { background: #eef3ff; }
.public-page .program-tile { --program-accent: #5b57f4; }
.public-page .program-tile-stage { background: #ecebff; }
.public-page .program-dialogue-board { align-items: center; background: #ecebff; display: flex; inset: 0; justify-content: center; position: absolute; }
.public-page .program-dialogue-board > img { height: 100%; object-fit: contain; padding: 12px; width: 100%; }
.public-page .program-math-board { background: linear-gradient(145deg,#e8f6ff,#ecebff); }
.public-page .program-math-board > strong { color: #4441d6; }
.public-page .program-tile-signal { background: #fff; color: #4441d6; }
.public-page .program-tile-signal i { background: #5b57f4; }
.public-page .program-generic-board { background: #ecebff; }
.public-page .about-editorial { aspect-ratio: 1.95; background: #ecebff; height: auto; max-height: 700px; min-height: 0; }
.public-page .about-editorial::after { display: none; }
.public-page .about-editorial > img { height: 100%; object-fit: contain; width: 100%; }
.public-page .teacher-profile-portrait, .public-page .about-teacher > div { background: #ecebff; }
.public-page .teacher-profile-portrait img { object-fit: contain; }
.public-page .request-copy { background: #11162f; }
.public-page .request-copy::after { display: none; }
.public-page .request-stilllife { filter: none; object-fit: contain; }
.public-page .public-inner-hero { background: #11162f; }
.public-page .public-subject-hero, .public-page .course-detail-hero { --subject-accent: #5b57f4; }
/* Счётчики и декоративные акценты используют те же цвета, что и публичная часть. */
:root { --shell-coral: #83e5f5; --portal-coral: #83e5f5; --vx-coral: #83e5f5; --gold: #5b57f4; }
.public-page .program-tile h3 a { color: inherit; text-decoration: none; }
.public-page .program-tile-footer > a { align-items: center; background: #11162f; border-radius: 12px; color: #fff; display: inline-flex; font-size: 14px; gap: 10px; height: auto; justify-content: center; min-height: 44px; min-width: 100px; padding: 8px 14px; width: auto; }
.public-page .program-tile-footer > a > span { background: transparent; color: #83e5f5; display: inline; height: auto; position: static; width: auto; }
.public-page .contact-copy { align-content: start; background: #ecebff; color: #17192c; display: flex; flex-direction: column; min-height: 0; padding: clamp(24px,4vw,56px); }
.public-page .contact-copy .contact-stilllife { align-self: center; animation: none; filter: none; height: auto; margin-top: 16px; max-height: 260px; object-fit: contain; position: static; transform: none; width: min(100%,480px); }
.public-page :is(.public-inner-hero,.subject-profile-hero,.course-detail-hero,.contact-layout)::after {
  background: radial-gradient(circle,#5b57f4 0 3px,transparent 4px) 0 0/14px 14px,radial-gradient(circle,#83e5f5 0 3px,transparent 4px) 14px 0/14px 14px,radial-gradient(circle,#dafe62 0 3px,transparent 4px) 28px 0/14px 14px;
}
.public-page .interface-chrome > div i:first-child { background: #5b57f4; }
.public-page .interface-chrome > div i:nth-child(2) { background: #83e5f5; }
.public-page .interface-chrome > div i:nth-child(3) { background: #dafe62; }
/* Карточка одна и та же на главной и в каталоге, включая ширину и контраст текста. */
.public-page .program-deck { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.public-page .program-tile .program-tile-copy p { color: #5d6275; }
.public-page .program-tile .program-tile-subject { color: #4e49dc; }
.public-page .program-tile .program-tile-meta span { background: #ecebff; color: #44415f; }
.public-page .program-code-board code em { color: #83e5f5; }
@media (min-width: 1200px) {
  .public-page .program-tile-body { display: grid; gap: 16px; grid-template-columns: minmax(0,1fr) minmax(180px,.9fr); }
}
@media (max-width: 760px) {
  .public-page .program-deck { grid-template-columns: minmax(0,1fr); }
}
:root { --shell-indigo: #5b57f4; --shell-indigo-ink: #4441d6; --portal-indigo: #5b57f4; }
