/* custom-colors.css - Яркие цвета для текста */

/* Единая типографика сайта: Manrope для интерфейса и текста */
:root {
  --bs-font-sans-serif: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
}

/* Skip-link: скрыт, виден только при фокусе с клавиатуры */
.skip-link {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed !important;
  top: 1rem !important;
  left: 1rem !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.5rem 1rem !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  z-index: 10000 !important;
  background: #fff !important;
  color: #1a1a2e !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Основной текст - темно-серый для высокой контрастности.
   :not(.site-footer *) — не трогаем текст в тёмном футере (статус, часы, «Юридическое», ©). */
body:not(.page-home) p:not(.site-footer *):not(.site-header *):not(.small-title):not(.projects-small-title):not(.hero-description):not(.hero-subtitle):not(.hero-stat):not(.corporate-experience-frame):not(.hero-badge):not(.hero-programming-label):not(.lead):not(.text-white):not(.section-lead):not(.site-footer__brand):not(.site-footer__lead):not(.site-footer__copy):not(.copyright-text):not(.site-header__line):not(.track-hero__label):not(.track-hero__lead):not(.track-hero__offer):not(.track-cta-banner__text):not([class*="__eyebrow"]):not([class*="__value"]):not(.program-volume-panel__note):not(.signup-banner__lead):not(.signup-banner__perks):not(.track-lead-card__preview-lead):not(.track-lead-card__preview-q):not(.track-lead-card__preview-foot):not(.track-lead-card__preview-example):not(.track-lead-card__grade-note):not(.track-lead-card__trust):not(.track-lead-card__hint):not(.track-lead-card__sub):not(.about-hero__brand):not(.about-hero__lead):not(.hub-badge):not(.hub-hero__lead):not(.hub-exam__badge):not(.hub-exam__lead):not(.hub-exam__label):not(.hub-exam__note):not(.prof-desc):not(.prof-card__scope):not(.hub-course-card__price):not(.java-hero-v2__description):not(.java-hero-v2__price-note):not(.java-hero-v2__content *):not(.hero-content *):not(.course-hero-exam *):not(.hub-exam *):not(.hub-final *),
body:not(.page-home) .about-text,
body:not(.page-home) .contact-info p,
body:not(.page-home) .review-text,
body:not(.page-home) .services-description,
body:not(.page-home) .breadcrumb-item:not(.active),
body:not(.page-home) ul:not(.navbar-nav):not(.social-icon):not(.footer-nav__list):not(.site-footer__legal):not(.track-hero__benefits):not(.hub-facts):not(.final-project-card ul):not(.project-card-ms ul):not(.jp-hero ul) li {
    color: #2c3e50 !important;  /* Темно-сине-серый */
    font-weight: 400;
    line-height: 1.6;
}

/* Для еще более яркого варианта - используйте черный */
body:not(.page-home) .main-content p,
body:not(.page-home) .section-content p {
    color: #000000 !important;
    font-weight: 500;  /* Чуть жирнее для лучшей читаемости */
}

/* Сохраняем белый текст только там, где фон темный */
.dark-bg p,
[class*="bg-dark"] p,
.site-header p,
.site-header a,
.site-header span,
.site-footer p,
.track-hero p:not([class*="track-lead-card"]):not(.track-hero__offer),
.track-hero__lead,
.track-hero__label,
.track-cta-banner__inner p,
.track-cta-banner__inner h3,
.hero .carousel-caption p,
.projects-title-wrap p,
.hub-hero p,
.hub-hero h1,
.hub-hero h2,
.hub-hero li,
.hub-exam,
.hub-exam p,
.hub-exam h2,
.hub-final,
.hub-final p,
.hub-final h2,
.final-project-card > :not(.fp-teacher-card) p,
.final-project-card p:not(.fp-teacher-card__note):not(.fp-teacher-card__lead),
.final-project-card li:not(.fp-teacher-card__points li),
.final-project-card h2,
.final-project-card h3,
.final-project-card .lead,
.final-project-card .small,
.project-card-ms p:not(.fp-teacher-card__note):not(.fp-teacher-card__lead),
.project-card-ms li:not(.fp-teacher-card__points li),
.project-card-ms h2,
.project-card-ms h3,
.jp-hero p,
.jp-hero li,
.jp-hero h1,
.jp-hero h2 {
    color: #ffffff !important;
}

.final-project-card .bg-white,
.final-project-card .bg-white p,
.final-project-card .bg-white li,
.final-project-card .bg-white h2,
.final-project-card .bg-white h3,
.final-project-card .bg-white .small,
.final-project-card .fp-teacher-card,
.final-project-card .fp-teacher-card strong,
.final-project-card .fp-teacher-card .fp-teacher-card__name,
.final-project-card .fp-teacher-card .fp-teacher-card__lead,
.final-project-card .fp-teacher-card .fp-teacher-card__points li,
.final-project-card .fp-teacher-card .fp-teacher-card__points li span,
.final-project-card .fp-teacher-card span:not(.fp-teacher-card__kw),
.project-card-ms .bg-white,
.project-card-ms .bg-white p,
.project-card-ms .bg-white li,
.project-card-ms .fp-teacher-card,
.project-card-ms .fp-teacher-card strong,
.project-card-ms .fp-teacher-card .fp-teacher-card__name,
.project-card-ms .fp-teacher-card .fp-teacher-card__lead,
.project-card-ms .fp-teacher-card .fp-teacher-card__points li,
.project-card-ms .fp-teacher-card .fp-teacher-card__points li span {
    color: #0b1424 !important;
    -webkit-text-fill-color: #0b1424 !important;
}

.final-project-card .bg-white .text-muted,
.project-card-ms .bg-white .text-muted,
.final-project-card .fp-teacher-card .fp-teacher-card__role,
.project-card-ms .fp-teacher-card .fp-teacher-card__role {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
}

.final-project-card .fp-teacher-card .fp-teacher-card__points i,
.project-card-ms .fp-teacher-card .fp-teacher-card__points i {
    color: #ea580c !important;
    -webkit-text-fill-color: #ea580c !important;
}

.final-project-card .fp-teacher-card .fp-teacher-card__note,
.final-project-card .fp-teacher-card .fp-teacher-card__note *,
.project-card-ms .fp-teacher-card .fp-teacher-card__note,
.project-card-ms .fp-teacher-card .fp-teacher-card__note *,
.final-project-card .fp-teacher-card .fp-teacher-card__code {
    display: none !important;
}

body:not(.page-home) .track-hero .track-hero__offer,
body:not(.page-home) .main-content .track-hero__offer {
    color: rgba(226, 232, 240, 0.78) !important;
    font-weight: 500;
}

body:not(.page-home) .track-hero .track-hero__benefits li,
body:not(.page-home) .track-hero .track-hero__benefit,
body:not(.page-home) .track-hero .track-hero__benefit span,
body:not(.page-home) .main-content .track-hero__benefits li {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Lead-карточка: контраст на белом фоне (перебивает .track-hero p / .main-content p) */
body:not(.page-home) .track-lead-card__title,
body:not(.page-home) .track-hero .track-lead-card__title {
    color: #0b1220 !important;
}

body:not(.page-home) .track-lead-card__sub,
body:not(.page-home) .track-hero .track-lead-card__sub,
body:not(.page-home) .main-content .track-lead-card__sub {
    color: #344054 !important;
}

body:not(.page-home) .track-lead-card__hint,
body:not(.page-home) .track-lead-card__trust,
body:not(.page-home) .track-lead-card__trust span,
body:not(.page-home) .track-lead-card__grade-note,
body:not(.page-home) .track-lead-card__outcomes-title,
body:not(.page-home) .main-content .track-lead-card__hint,
body:not(.page-home) .main-content .track-lead-card__trust,
body:not(.page-home) .main-content .track-lead-card__grade-note,
body:not(.page-home) .main-content .track-lead-card__outcomes-title,
body:not(.page-home) .track-hero .track-lead-card__hint,
body:not(.page-home) .track-hero .track-lead-card__trust,
body:not(.page-home) .track-hero .track-lead-card__grade-note,
body:not(.page-home) .track-hero .track-lead-card__outcomes-title {
    color: #344054 !important;
}

body:not(.page-home) .track-lead-card__perk,
body:not(.page-home) .track-hero .track-lead-card__perk,
body:not(.page-home) .main-content .track-lead-card__perk {
    color: #c2620a !important;
}

/* Тёмный превью-блок на lead-карточках треков */
body:not(.page-home) .track-lead-card__preview,
body:not(.page-home) .track-lead-card__preview p,
body:not(.page-home) .main-content .track-lead-card__preview p,
body:not(.page-home) .track-lead-card__preview-lead {
    color: #e8eef7 !important;
}

body:not(.page-home) .track-lead-card__preview-label,
body:not(.page-home) .track-lead-card__preview-foot {
    color: #ffd08a !important;
}

body:not(.page-home) .track-lead-card__preview-example,
body:not(.page-home) .track-lead-card__preview .track-lead-card__preview-example,
body:not(.page-home) .track-hero .track-lead-card__preview-example,
body:not(.page-home) .main-content .track-lead-card__preview .track-lead-card__preview-example,
body:not(.page-home) .main-content .track-lead-card__preview p.track-lead-card__preview-example {
    color: #ffd166 !important;
    -webkit-text-fill-color: #ffd166 !important;
    font-weight: 800;
    font-size: 0.88rem;
}

body:not(.page-home) .track-lead-card__preview-q,
body:not(.page-home) .track-lead-card__preview p.track-lead-card__preview-q,
body:not(.page-home) .main-content .track-lead-card__preview-q,
body:not(.page-home) .track-hero .track-lead-card__preview-q {
    color: #ffcc66 !important;
    font-weight: 700;
}

/* Футер — яркий градиент и контрастный текст */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 2.25rem 0 !important;
    background: linear-gradient(135deg, #07182f 0%, #102a4d 55%, #1a1a2e 100%) !important;
    border-top: 4px solid #ffd166;
    box-shadow: 0 -10px 36px rgba(26, 26, 46, 0.22);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.site-footer .copyright-text,
.site-footer p,
.site-footer a {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.01em;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: auto;
    opacity: 1 !important;
}

.site-footer a,
.site-footer .text-white-50 {
    color: #ffd166 !important;
    font-weight: 800 !important;
}

.site-footer a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Улучшаем контраст для заголовков (кроме hero, шапки и футера — см. ниже) */
body:not(.page-home) h1,
body:not(.page-home) h2:not(.site-footer__heading):not(.site-footer *),
body:not(.page-home) h3:not(.footer-nav-title):not(.site-footer *),
body:not(.page-home) h4,
body:not(.page-home) h5,
body:not(.page-home) h6 {
    color: #1a1a2e;
    font-weight: 700;
}

body.hub-page .hub-hero h1,
body.hub-page .hub-exam h2,
body.hub-page .hub-final h2 {
    color: #ffffff !important;
}

body.hub-page .hub-final p {
    color: #e2e8f0 !important;
}

/* Для выделенного текста */
body:not(.page-home) strong:not(.hero-section strong):not(.catalog-stat strong),
body:not(.page-home) b:not(.hero-section b):not(.catalog-stat strong) {
    color: #000000;
    font-weight: 700;
}

/* Ссылки в тексте */
body:not(.page-home) p a {
    color: #e67e22;
    font-weight: 500;
}

body:not(.page-home) p a:hover {
    color: #f39c12;
    text-decoration: underline;
}

/* Шапка и hero — яркий белый текст на тёмном фоне */
.site-header p,
.site-header a,
.site-header span {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.main-banner p,
.main-banner .hero-badge,
.main-banner .hero-programming-label,
.main-banner .hero-pillar,
.main-banner .hero-stat,
.video-overlay p {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.main-banner .hero-subtitle,
.main-banner .hero-stat {
    color: #ffffff !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 0 28px rgba(0, 0, 0, 0.45);
}

.main-banner .caption h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65), 0 0 32px rgba(0, 0, 0, 0.35);
}

.main-banner .caption h2 em {
    color: #fff8e7 !important;
    -webkit-text-fill-color: #fff8e7 !important;
    background: none !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.catalog-hero p,
.catalog-hero .hero-badge {
    color: #ffffff !important;
    opacity: 1 !important;
}

.catalog-hero .lead,
.catalog-hero__subtitle {
    color: rgba(226, 232, 240, 0.9) !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.catalog-hero h1 {
    color: #ffffff !important;
    text-shadow: none;
}

/* Единый блок индивидуального обучения на страницах курсов */
.course-individual-learning {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.34) 0 12%, transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(255, 214, 102, 0.35) 0 11%, transparent 30%),
        linear-gradient(135deg, #0f3460 0%, #1a1a2e 42%, #f39c12 100%);
}

.course-individual-learning::before {
    content: "";
    position: absolute;
    inset: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    pointer-events: none;
}

.course-individual-learning::after {
    content: "Персонально";
    position: absolute;
    right: -2rem;
    bottom: 1rem;
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
}

.course-individual-learning .container {
    position: relative;
    z-index: 1;
}

.course-individual-learning__card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 2.75rem 2.5rem;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(243, 156, 18, 0.95)) border-box;
    border: 3px solid transparent;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.course-individual-learning__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 10px;
    background: linear-gradient(90deg, #ffd166, #f39c12, #2980b9, #27ae60);
}

.course-individual-learning__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff3cd, #ffe1a6);
    color: #7a3f00;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.course-individual-learning__card h2,
.course-individual-learning__card h3 {
    color: #1a1a2e !important;
    font-weight: 900;
}

.course-individual-learning__lead {
    max-width: 820px;
    margin: 0 auto 1.5rem;
    display: inline-block;
    padding: 0.95rem 1.45rem;
    border-radius: 22px;
    background: #ffffff;
    border: 3px solid #ffd166;
    color: #111827 !important;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.7;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 0 0 6px rgba(255, 209, 102, 0.18);
}

.course-individual-learning__price {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 52, 96, 0.28);
}

.course-individual-learning__price span {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-individual-learning__price strong {
    color: #ffffff !important;
    font-size: 2.25rem;
    line-height: 1.15;
}

.course-individual-learning__features {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.75rem;
    max-width: 760px;
    text-align: left;
    padding: 1rem;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.course-individual-learning__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    color: #2c3e50 !important;
    font-size: 1rem;
    line-height: 1.55;
}

.course-individual-learning__features i {
    color: #27ae60;
    margin-top: 0.15rem;
}

.course-individual-learning__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f39c12, #d35400);
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(243, 156, 18, 0.38);
}

.course-individual-learning__button:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Страница 404 с картой сайта */
.error-404-section {
    position: relative;
    overflow: hidden;
    min-height: 72vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 209, 102, 0.34), transparent 24%),
        radial-gradient(circle at 88% 6%, rgba(52, 152, 219, 0.28), transparent 28%),
        radial-gradient(circle at 76% 82%, rgba(39, 174, 96, 0.18), transparent 26%),
        linear-gradient(135deg, #07182f 0%, #102a4d 42%, #f8fafc 42.2%, #eef5fb 100%);
}

.error-404-section::before {
    content: "";
    position: absolute;
    inset: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 38px;
    pointer-events: none;
}

.error-404-section::after {
    content: "TERAKOR";
    position: absolute;
    right: -1.2rem;
    top: 2rem;
    color: rgba(255, 255, 255, 0.06);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    pointer-events: none;
}

.error-404-hero {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 3rem 2.5rem;
    border-radius: 34px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, 0.85), #f39c12, #2980b9) border-box;
    border: 3px solid transparent;
    box-shadow: 0 28px 80px rgba(7, 24, 47, 0.22);
}

.error-404-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.error-404-orbit span {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.28), rgba(41, 128, 185, 0.14));
}

.error-404-orbit span:nth-child(1) {
    width: 110px;
    height: 110px;
    left: -35px;
    top: -35px;
}

.error-404-orbit span:nth-child(2) {
    width: 72px;
    height: 72px;
    right: 9%;
    top: 18%;
}

.error-404-orbit span:nth-child(3) {
    width: 150px;
    height: 150px;
    right: -60px;
    bottom: -70px;
}

.error-404-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 64px;
    margin-bottom: 1rem;
    padding: 0.4rem 1.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd166, #f39c12 48%, #d35400);
    color: #ffffff;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    box-shadow: 0 16px 40px rgba(243, 156, 18, 0.34);
}

.error-404-hero .section-heading {
    margin-bottom: 0.65rem;
    color: #07182f !important;
}

.error-404-hero .section-lead {
    max-width: 720px;
    margin: 0 auto;
    color: #2c3e50 !important;
    font-size: 1.08rem;
}

.error-404-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.error-404-actions .cta-button--outline {
    background: #ffffff;
    color: #1a1a2e !important;
    border: 2px solid #f39c12;
}

.error-404-sitemap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.error-404-sitemap__card {
    position: relative;
    overflow: hidden;
    padding: 1.55rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(26, 26, 46, 0.08);
    box-shadow: 0 16px 42px rgba(26, 26, 46, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.error-404-sitemap__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #f39c12, #2980b9, #27ae60);
}

.error-404-sitemap__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 58px rgba(26, 26, 46, 0.14);
}

.error-404-sitemap__card--wide {
    grid-column: 1 / -1;
}

.error-404-sitemap__card h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.05rem;
    color: #1a1a2e !important;
    font-size: 1.2rem;
}

.error-404-sitemap__card h2 i {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff3cd, #ffd166);
    color: #d35400;
}

.error-404-sitemap__card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-404-sitemap__card li {
    margin-bottom: 0.58rem;
}

.error-404-sitemap__card a,
.error-404-link-grid a {
    color: #1a5276 !important;
    font-weight: 700;
    text-decoration: none;
}

.error-404-sitemap__card a:hover,
.error-404-link-grid a:hover {
    color: #d35400 !important;
    text-decoration: none;
}

.error-404-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
}

.error-404-link-grid a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.error-404-link-grid a i {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: linear-gradient(135deg, #2980b9, #1a5276);
    color: #ffffff;
}

.error-404-link-grid a:hover {
    transform: translateY(-2px);
    background: #fff8ec;
    border-color: #ffd166;
}

@media (max-width: 768px) {
    .error-404-hero {
        padding: 1.5rem;
    }

    .error-404-sitemap {
        grid-template-columns: 1fr;
    }

    .error-404-section::before,
    .error-404-section::after {
        display: none;
    }
}

/* Редактирование контента администратором на сайте */
body.has-admin-toolbar {
    padding-bottom: 54px;
}

.admin-site-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    background: linear-gradient(135deg, #1e3a5f, #16213e);
    color: #fff;
    border-top: 2px solid #f39c12;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
}

.admin-site-toolbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 1rem;
    flex-wrap: wrap;
}

.admin-site-toolbar__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.admin-site-toolbar__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.admin-site-toolbar__links a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.admin-site-toolbar__links a:hover {
    color: #ffd166 !important;
}

.admin-site-toolbar__edit {
    color: #ffd166 !important;
}

.admin-site-toolbar__logout {
    margin: 0;
}

.admin-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.7rem;
    border-radius: 8px;
    background: #f39c12;
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    border: none;
}

.admin-edit-btn:hover {
    background: #e67e22;
    color: #fff !important;
}

.admin-editable-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.admin-editable-wrap--center {
    display: block;
    max-width: 100%;
}

.admin-editable-wrap--stack {
    display: block;
}

.admin-editable-wrap--stack .admin-edit-btn,
.admin-editable-wrap--center .admin-edit-btn {
    position: static;
    margin-top: 0.45rem;
}

.admin-editable-wrap--center .admin-edit-btn {
    display: inline-flex;
}

.benefit-card .admin-edit-btn,
.interview-promo-card .admin-edit-btn,
.personal-service-card .admin-edit-btn,
.director-block__info .admin-edit-btn {
    margin-top: 0.5rem;
}

.corporate-experience-frame + .admin-edit-btn {
    display: inline-flex;
    margin-top: 0.5rem;
}

.admin-editable-wrap--stack > .admin-edit-btn {
    align-self: flex-start;
}

.main-banner .admin-edit-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.catalog-admin-card-edit {
    width: 100%;
}

.catalog-admin-card-edit > .admin-edit-btn {
    margin-top: 0.45rem;
}

.course-card.catalog-admin-card-edit,
.course-card .catalog-admin-card-edit {
    height: auto;
}

/* Мобильная версия — без горизонтального скролла */
@media (max-width: 991px) {
  html {
    overflow-x: clip;
  }

  body {
    overflow-x: clip;
    max-width: 100%;
  }

  main,
  .container,
  .container-fluid {
    max-width: 100%;
  }

  .row {
    --bs-gutter-x: 1rem;
  }

  .main-banner,
  .main-banner .video-overlay,
  .main-banner .caption {
    max-width: 100%;
    overflow-x: clip;
  }

  #bg-video,
  .main-banner video {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-pillars,
  .hero-pillar {
    max-width: 100%;
  }

  .hero-pillar {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .admin-site-toolbar__inner {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .admin-site-toolbar__label {
    white-space: normal;
  }

  .site-header {
    overflow-x: clip;
  }

  .site-header .container {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header-email {
    white-space: normal !important;
    max-width: 100%;
    word-break: break-word;
    justify-content: center;
    text-align: center;
  }

  .site-header-cta {
    white-space: normal !important;
    max-width: 100%;
    text-align: center;
  }

  .site-header-actions {
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
  }

  .navbar {
    max-width: 100%;
    overflow-x: clip;
  }
}

/* === Блок записи на курсы (#signup) — яркий фон, контрастный текст === */
section#signup.py-5 {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 30%, #0984e3 62%, #6c5ce7 100%) !important;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

section#signup.py-5::before {
  content: '';
  position: absolute;
  top: -35%;
  right: -12%;
  width: min(560px, 85vw);
  height: min(560px, 85vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

section#signup.py-5::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: min(480px, 75vw);
  height: min(480px, 75vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 203, 110, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

section#signup.py-5 > .container {
  position: relative;
  z-index: 1;
}

section#signup.py-5 h1,
section#signup.py-5 h2,
section#signup.py-5 h3,
section#signup.py-5 h4,
section#signup.py-5 p,
section#signup.py-5 li,
section#signup.py-5 .signup-banner__title,
section#signup.py-5 .signup-banner__lead,
section#signup.py-5 .signup-banner__perks li,
section#signup.py-5 .signup-banner__phone,
section#signup.py-5 .text-white {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

/* Белая карточка формы: заголовок и текст тёмные */
section#signup.py-5 .contact-form-card h2,
section#signup.py-5 .contact-form h2,
section#signup.py-5 form h2,
section#signup.py-5 .contact-form__title,
section#signup.py-5 .signup-banner__form-title,
section#signup.py-5 .contact-form-card p,
section#signup.py-5 .contact-form-card label,
section#signup.py-5 .contact-form-card .form-label {
  color: #1a1a2e !important;
  -webkit-text-fill-color: #1a1a2e !important;
  text-shadow: none !important;
}

/* Страница tech-interview: светлый фон баннера — тёмный текст в левой колонке */
body.tech-interview-page section#signup.py-5 .signup-banner > .row > .col-lg-5 .signup-banner__title,
body.tech-interview-page section#signup.py-5 .signup-banner > .row > .col-lg-5 h2,
body.tech-interview-page section#signup.py-5 .signup-banner > .row > .col-lg-5 .signup-banner__lead,
body.tech-interview-page section#signup.py-5 .signup-banner > .row > .col-lg-5 .signup-banner__perks li,
body.tech-interview-page section#signup.py-5 .signup-banner > .row > .col-lg-5 .signup-banner__phone {
  color: #2d3748 !important;
  text-shadow: none !important;
}

body.tech-interview-page section#signup.py-5 .signup-banner > .row > .col-lg-5 .signup-banner__title,
body.tech-interview-page section#signup.py-5 .signup-banner > .row > .col-lg-5 h2.signup-banner__title {
  color: #1a365d !important;
}

body.tech-interview-page section#signup.py-5 .signup-banner > .row > .col-lg-5 .signup-banner__phone {
  color: #1a365d !important;
}

body.tech-interview-page section#signup.py-5 .signup-banner > .row > .col-lg-5 .signup-banner__phone a {
  color: #3182ce !important;
}

section#signup.py-5 .signup-banner__lead,
section#signup.py-5 p.fs-5,
section#signup.py-5 .signup-banner > .row > .col-lg-5 p,
section#signup.py-5 .signup-banner > .row > .col-lg-5 li {
  color: rgba(255, 255, 255, 0.97) !important;
  font-weight: 500 !important;
}

/* Блок доверия HR внутри signup — светлый фон, тёмный текст */
section#signup.py-5 .hr-trust-block h3,
section#signup.py-5 .hr-trust-block h4,
section#signup.py-5 .hr-trust-block p,
section#signup.py-5 .hr-trust-card h4,
section#signup.py-5 .hr-trust-card p {
  color: #4a5568 !important;
  text-shadow: none !important;
}

section#signup.py-5 .hr-trust-block__title {
  color: #1a365d !important;
}

section#signup.py-5 .hr-trust-block__lead {
  color: #4a5568 !important;
}

section#signup.py-5 .hr-trust-card h4 {
  color: #1a365d !important;
}

section#signup.py-5 .signup-banner__phone a {
  color: #ffeaa7 !important;
  font-weight: 700 !important;
}

section#signup.py-5 .signup-banner__phone a:hover {
  color: #ffffff !important;
}

section#signup.py-5 .signup-banner__perks .bi {
  color: #fdcb6e !important;
}

body:not(.tech-interview-page) section#signup.py-5 .signup-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(8px);
}

body:not(.tech-interview-page) section#signup.py-5 .signup-banner::before {
  display: none !important;
}

section#signup.py-5 .signup-banner__form-card {
  background: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
}

section#signup.py-5 .signup-banner__form-title {
  color: #1a1a2e !important;
  text-shadow: none !important;
}

section#signup.py-5 .signup-banner__input {
  background: #f8fafc !important;
  color: #1a1a2e !important;
  border: 2px solid rgba(9, 132, 227, 0.25) !important;
}

section#signup.py-5 .form-control {
  background: #ffffff !important;
  color: #1a1a2e !important;
  border: 2px solid rgba(255, 255, 255, 0.75) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
  font-weight: 500;
}

section#signup.py-5 .form-control::placeholder {
  color: #636e72 !important;
}

section#signup.py-5 .form-control:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.45) !important;
  background: #ffffff !important;
  color: #1a1a2e !important;
}

section#signup.py-5 .btn-warning {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 45%, #f39c12 100%) !important;
  color: #1a1a2e !important;
  border: none !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 28px rgba(243, 156, 18, 0.45) !important;
}

section#signup.py-5 .btn-warning:hover {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
  color: #1a1a2e !important;
  transform: translateY(-2px);
}

section#signup.py-5 .btn-dark {
  background: linear-gradient(135deg, #2d3436 0%, #1a1a2e 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
}

/* Honeypot: скрытое поле против ботов */
.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-honeypot label,
.contact-honeypot input {
  position: absolute !important;
  left: -10000px !important;
}

/* Legacy captcha (если осталась в кеше) */
.captcha-field {
  display: none !important;
}

section#signup.py-5 .btn-dark:hover {
  filter: brightness(1.12);
  color: #ffffff !important;
}

/* Расширенный футер с контактами (каталог и внутренние страницы) */
.site-footer--extended {
  padding: 2.75rem 0 2rem !important;
}

#contacts.site-footer--extended,
#contacts.section-contact {
  scroll-margin-top: 88px;
}

/* Блок «преподаватель в цифрах» — главная и страницы курсов */
.instructor-stats {
  margin-top: 0.35rem;
}

.instructor-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}

@media (max-width: 767.98px) {
  .instructor-stats__grid {
    grid-template-columns: 1fr;
  }
}

.instructor-stats__item {
  --stat-accent: #1a365d;
  --stat-icon-bg: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.35rem 1rem 1.15rem;
  border-radius: 18px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(26, 54, 93, 0.09);
  box-shadow: 0 12px 32px rgba(26, 54, 93, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.instructor-stats__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--stat-accent);
}

.instructor-stats__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 54, 93, 0.12);
}

.instructor-stats__item--navy {
  --stat-accent: linear-gradient(90deg, #1a365d, #2c5282);
  --stat-icon-bg: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

.instructor-stats__item--orange {
  --stat-accent: linear-gradient(90deg, #dd6b20, #f29340);
  --stat-icon-bg: linear-gradient(135deg, #dd6b20 0%, #f6ad55 100%);
}

.instructor-stats__item--blue {
  --stat-accent: linear-gradient(90deg, #2b6cb0, #3182ce);
  --stat-icon-bg: linear-gradient(135deg, #2b6cb0 0%, #4299e1 100%);
}

.instructor-stats__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #fff !important;
  background: var(--stat-icon-bg);
  box-shadow: 0 8px 18px rgba(26, 54, 93, 0.16);
}

.instructor-stats__value {
  display: block;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  color: #1a365d !important;
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
}

.instructor-stats__label {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b !important;
  font-weight: 600;
  margin: 0;
  max-width: 11.5rem;
}

.director-block__info .instructor-stats {
  margin: 0.75rem 0 1.35rem;
}

#teacher .instructor-stats {
  margin-bottom: 1.5rem !important;
}

/* Enterprise / компетенции в блоке преподавателя на курсах */
#teacher .teacher-highlight {
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.08), rgba(9, 132, 227, 0.08));
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0, 184, 148, 0.2);
}

#teacher .teacher-highlight--enterprise {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(14, 165, 233, 0.06));
  border-color: rgba(37, 99, 235, 0.22);
}

#teacher .teacher-saos-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1d4ed8 !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 78, 216, 0.35);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#teacher .teacher-saos-link:hover {
  color: #1e40af !important;
  border-bottom-color: rgba(30, 64, 175, 0.55);
}

#teacher .teacher-competencies {
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

#teacher .teacher-competencies h5 {
  margin-bottom: 0.85rem;
}

#teacher .teacher-competencies li {
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.45;
}

#teacher .teacher-competencies strong {
  color: #0f172a;
}

@media (max-width: 575.98px) {
  #teacher .teacher-highlight,
  #teacher .teacher-competencies {
    padding: 1rem 1.05rem;
  }

  #teacher .teacher-competencies li {
    font-size: 0.9rem;
  }
}

.site-footer__brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffe08a !important;
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.45), 0 1px 2px rgba(0, 0, 0, 0.25);
}

.site-footer p.site-footer__brand,
.site-footer p.site-footer__lead,
.site-footer p.site-footer__copy,
.site-footer .copyright-text {
  color: #ffffff !important;
  opacity: 1 !important;
}

.site-footer p.site-footer__brand {
  color: #ffe08a !important;
}

.site-footer__lead,
.site-footer__copy {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  opacity: 1 !important;
}

.site-footer__copy {
  font-size: 0.9rem !important;
  color: #f8fafc !important;
  letter-spacing: 0.02em;
}

.site-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd166 !important;
}

.site-footer__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.site-footer__list-item:last-child {
  margin-bottom: 0;
}

.site-footer__icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1rem;
  color: #ffd166;
}

.site-footer__list-item a {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  text-decoration: none;
}

.site-footer__list-item a:hover {
  color: #ffd166 !important;
  text-decoration: underline;
}

.site-footer__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72) !important;
  font-weight: 500 !important;
}

.site-footer__addresses {
  display: grid;
  gap: 0.75rem;
}

.site-footer__address-row dt {
  margin: 0 0 0.2rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd166 !important;
}

.site-footer__address-row dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500 !important;
}

.site-footer__address-row--meeting {
  margin-top: 0.15rem;
  padding: 0.7rem 0.75rem;
  background: rgba(255, 209, 102, 0.14);
  border-left: 3px solid #ffd166;
  border-radius: 0.4rem;
}

.site-footer__address-row--meeting dt {
  color: #ffe08a !important;
  font-size: 0.75rem;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0.01em;
}

.site-footer__address-row--meeting dd {
  margin-top: 0.35rem;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.contact-details__row--meeting {
  margin-top: 0.15rem;
  padding: 0.7rem 0.65rem !important;
  background: linear-gradient(90deg, rgba(243, 156, 18, 0.12) 0%, rgba(243, 156, 18, 0.04) 100%);
  border-left: 3px solid var(--tk-orange, #f39c12);
  border-radius: 0.35rem;
}

.contact-details__row--meeting .contact-details__city {
  color: var(--tk-navy, #16213e) !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  line-height: 1.4;
}

.contact-address-line--meeting {
  padding: 0.65rem 0.75rem;
  background: linear-gradient(90deg, rgba(243, 156, 18, 0.14) 0%, rgba(243, 156, 18, 0.05) 100%);
  border-left: 3px solid #f39c12;
  border-radius: 0.35rem;
  line-height: 1.5;
}

.contact-address-line--meeting strong {
  color: #16213e;
}

.address-label--meeting {
  color: #c05600;
}

.site-footer__bottom {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-footer__nav a {
  color: #ffd166 !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .site-footer--extended {
    padding: 2.25rem 0 1.75rem !important;
  }

  .site-footer__main > [class*="col-"]:not(:last-child) {
    margin-bottom: 0.25rem;
  }

  .site-footer__nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.15rem;
  }

  .site-footer__nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0.45rem 0.15rem;
    line-height: 1.3;
  }

  .site-footer__quick-card {
    width: 100%;
    min-height: 56px;
  }

  .site-footer__quick-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.site-footer__legal,
.site-footer__legal a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: #ffd166 !important;
  text-decoration: underline;
}

.site-footer__quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__quick-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-footer__quick-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 209, 102, 0.45);
}

.site-footer__quick-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.1rem;
  color: #fff;
}

.site-footer__quick-card--phone .site-footer__quick-icon {
  background: linear-gradient(135deg, #2e7d6e 0%, #1a5c4f 100%);
}

.site-footer__quick-card--email .site-footer__quick-icon {
  background: linear-gradient(135deg, #2b6cb0 0%, #1a365d 100%);
}

.site-footer__quick-card--cta .site-footer__quick-icon {
  background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
}

.site-footer__quick-card--vk .site-footer__quick-icon {
  background: linear-gradient(135deg, #0077ff 0%, #0055cc 100%);
}

.site-footer__quick-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.site-footer__quick-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72) !important;
}

.site-footer__quick-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.35;
}

.site-footer__quick-hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68) !important;
}

@media (min-width: 992px) {
  .site-footer__quick-actions {
    gap: 0.65rem;
  }

  .site-footer__quick-card {
    padding: 0.75rem 0.9rem;
  }
}

/* Home footer — mobile-first contacts + legal */
.site-footer--home {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.site-footer-home-contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.site-footer-home-contacts__card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-footer-home-contacts__card:hover,
.site-footer-home-contacts__card:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(34, 211, 238, 0.35);
  color: #ffffff !important;
}

.site-footer-home-contacts__card i {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1rem;
  color: #fff !important;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

.site-footer-home-contacts__card--email i {
  background: linear-gradient(135deg, #2b6cb0 0%, #1a365d 100%);
}

.site-footer-home-contacts__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.site-footer-home-contacts__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7) !important;
}

.site-footer-home-contacts__value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.25;
  white-space: nowrap;
}

.site-footer-home-copy {
  text-align: center;
  margin-bottom: 1rem;
}

.site-footer-home-copy__line {
  display: block;
  text-align: center;
  line-height: 1.45;
}

.site-footer-home-copy__desktop {
  margin-top: 0.35rem;
  text-align: center;
}

.site-footer--home .site-footer__legal {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  gap: 0.15rem;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer--home .site-footer__legal a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.15rem;
  line-height: 1.3;
  font-size: 0.84rem !important;
}

@media (min-width: 768px) {
  .site-footer-home-copy {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    text-align: left;
  }

  .site-footer-home-copy__line {
    display: inline;
    text-align: left;
  }

  .site-footer-home-copy__line + .site-footer-home-copy__line::before {
    content: " — ";
  }

  .site-footer-home-copy__desktop {
    margin-top: 0;
    text-align: right;
    margin-left: auto;
  }

  .site-footer--home .site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
  }

  .site-footer--home .site-footer__legal a {
    min-height: auto;
    padding: 0;
    font-size: 0.8125rem !important;
  }
}

.legal-page .content-card {
  max-width: 920px;
  margin: 0 auto;
}

.legal-page .content-card p {
  text-align: left;
}

.legal-document__header {
  padding-bottom: 1.35rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.legal-document__title {
  font-size: clamp(1.45rem, 3.2vw, 2.1rem) !important;
  font-weight: 800 !important;
  color: #0f2442 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.75rem;
  max-width: 36rem;
}

.legal-page .legal-document__header.text-center .legal-document__title {
  max-width: none;
}

.legal-document__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c05621;
}

.legal-document__subtitle {
  max-width: 42rem;
  color: #475569 !important;
  font-size: 1.05rem;
  line-height: 1.6;
}

.legal-document__body.article-content h2 {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem 0.7rem 1rem;
  border-left: 4px solid #f29340;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(242, 147, 64, 0.1) 0%, rgba(242, 147, 64, 0) 72%);
  font-size: clamp(1.18rem, 2.4vw, 1.42rem) !important;
  font-weight: 800 !important;
  color: #0f2442 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
}

.legal-document__body.article-content h2:first-child {
  margin-top: 0;
}

.legal-document__body.article-content p,
.legal-document__body.article-content li {
  color: #1e293b !important;
  line-height: 1.75;
  font-size: 1.02rem;
}

.legal-document__body.article-content strong {
  color: #0f172a !important;
  font-weight: 700;
}

.legal-document__body.article-content a {
  color: #c05621 !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.legal-document__body.article-content a:hover {
  color: #9c4221 !important;
}

.legal-document__requisites {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  line-height: 1.7;
  color: #1e293b !important;
}

.legal-page__back a {
  font-weight: 600;
  text-decoration: none;
  color: #1a365d !important;
}

.legal-documents-grid {
  max-width: 760px;
  margin: 0 auto;
}

.legal-documents-card h2 {
  color: #0f2442 !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  line-height: 1.35;
}

.legal-documents-card {
  display: block;
  padding: 1.35rem 1.25rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 28px rgba(26, 54, 93, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.legal-documents-card:hover {
  transform: translateY(-3px);
  border-color: rgba(211, 84, 0, 0.25);
  box-shadow: 0 16px 36px rgba(26, 54, 93, 0.1);
  color: inherit;
}

.legal-documents-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: #fff !important;
  font-size: 1.1rem;
}

.legal-documents-card p {
  color: #64748b !important;
}

.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1080;
  max-width: 42rem;
  margin: 0 auto;
}

.cookie-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(26, 54, 93, 0.12);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.cookie-consent__text {
  flex: 1 1 16rem;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-consent__text a {
  color: #1a365d;
  font-weight: 600;
}

.cookie-consent__accept {
  flex: 0 0 auto;
  min-width: 7.5rem;
}

.contact-form__consent .form-check-label {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-form__consent .form-check-label a {
  color: #1a365d;
  font-weight: 600;
}

/* Consent checkbox: force visible white tick on brand orange (not white-on-white) */
.contact-form__consent .form-check-input {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.2em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff !important;
  border: 1.5px solid #94a3b8 !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  accent-color: #e67e22;
  cursor: pointer;
}

.contact-form__consent .form-check-input:checked {
  background-color: #e67e22 !important;
  border-color: #e67e22 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}

.contact-form__consent .form-check-input:focus {
  border-color: #e67e22 !important;
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.28) !important;
}

/* Документы — компактные заголовки на мобильных */
@media (max-width: 767.98px) {
  .legal-page.section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  .legal-document__header {
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
  }

  .legal-document__badge {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(243, 156, 18, 0.12);
  }

  .legal-document__title {
    font-size: 1.22rem !important;
    line-height: 1.28 !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 0.55rem !important;
  }

  .legal-document__subtitle {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #64748b !important;
  }

  .legal-documents-card {
    padding: 1rem 0.95rem;
  }

  .legal-documents-card h2,
  .legal-documents-card .h5 {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.45rem !important;
  }

  .legal-documents-card p {
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }

  .legal-documents-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
  }

  .legal-document__body.article-content h2 {
    font-size: 1rem !important;
    line-height: 1.32 !important;
    margin-top: 1.6rem;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.7rem 0.55rem 0.8rem;
  }

  .legal-document__body.article-content p,
  .legal-document__body.article-content li {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
  }

  .legal-page__back a {
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .legal-page h1.legal-document__title {
    font-size: 1.12rem !important;
  }
}

.program-volume {
  text-align: left;
  line-height: 1.55;
}

.card .program-volume {
  font-size: 0.92rem;
}

/* ===== Заголовок «Что входит в программу» (все курсы) ===== */
.program-includes-head {
  text-align: center;
  margin-bottom: 0.25rem;
}

.program-includes-head--left {
  text-align: left;
}

.program-includes-head__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00a884;
  margin: 0 0 0.55rem;
}

.program-includes-head--left .program-includes-head__eyebrow {
  justify-content: flex-start;
}

.program-includes-head__title {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  background: linear-gradient(135deg, #00a884 0%, #0077b6 55%, #5c4dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.program-includes-head__accent {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00a884, #0077b6);
  margin: 0 auto 1.15rem;
  box-shadow: 0 2px 12px rgba(0, 168, 132, 0.35);
}

.program-includes-head--left .program-includes-head__accent {
  margin-left: 0;
}

.program-includes-head__lead {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #4a635e;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.program-includes-head--left .program-includes-head__lead {
  margin-left: 0;
  margin-right: 0;
}

.program-includes-head__volume.program-volume {
  display: inline-block;
  text-align: left;
  max-width: 36rem;
  margin: 0.35rem auto 0.85rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(0, 168, 132, 0.07) 0%, rgba(0, 119, 182, 0.06) 100%);
  border: 1px solid rgba(0, 168, 132, 0.14);
  font-size: 0.94rem;
}

.program-includes-head + .program-includes-head__lead,
.program-includes-head + .program-includes-head__volume {
  margin-top: 0;
}

@media (max-width: 575px) {
  .program-includes-head__title {
    font-size: 1.65rem;
  }

  .program-includes-head__volume.program-volume {
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
  }
}

/* --- Сертификаты (для всех страниц) --- */
.certificate-section {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  overflow: hidden;
}

.certificate-lead {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tk-orange, #f39c12) !important;
  margin-bottom: 1.5rem;
}

.certificate-content p {
  font-size: 1.05rem;
  color: var(--tk-text, #2c3e50) !important;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.certificate-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.certificate-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--tk-navy, #1a1a2e) !important;
  line-height: 1.5;
}

.certificate-features i {
  color: #27ae60;
  font-size: 1.25rem;
  margin-top: -0.1rem;
}

.certificate-gallery {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 2rem 0;
}

.certificate-gallery__item {
  position: relative;
  width: 65%;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(26, 26, 46, 0.2);
  transition: transform 0.4s ease, z-index 0s, box-shadow 0.4s ease;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.5rem;
}

.certificate-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid #edf2f7;
}

.certificate-gallery__item--rus {
  z-index: 2;
  transform: translateX(15%) rotate(2deg);
}

.certificate-gallery__item--en {
  z-index: 1;
  transform: translateX(-15%) rotate(-4deg) scale(0.95);
  position: absolute;
}

.certificate-gallery:hover .certificate-gallery__item--rus {
  transform: translateX(25%) rotate(4deg) scale(1.02);
  z-index: 2;
}

.certificate-gallery:hover .certificate-gallery__item--en {
  transform: translateX(-25%) rotate(-6deg) scale(1.02);
  z-index: 3;
  box-shadow: 0 25px 60px rgba(26, 26, 46, 0.25);
}

@media (max-width: 991.98px) {
  .certificate-gallery {
    min-height: 300px;
    padding: 1rem 0;
    margin-top: 2rem;
  }
}

@media (max-width: 575.98px) {
  .certificate-gallery {
    flex-direction: column;
    gap: 1.5rem;
    min-height: auto;
  }
  
  .certificate-gallery__item {
    width: 90%;
    position: relative;
    transform: none !important;
  }
  
  .certificate-gallery__item--en {
    position: relative;
  }
  
  .certificate-gallery:hover .certificate-gallery__item--rus,
  .certificate-gallery:hover .certificate-gallery__item--en {
    transform: translateY(-5px) !important;
  }
}

/* Тёмный блок экспертизы: custom.css иначе красит li/p в #2c3e50/#000 */
.expertise-visual-section,
.expertise-visual-section.bg-dark-tech {
  background: linear-gradient(145deg, #0b1220 0%, #152238 55%, #1a2740 100%) !important;
  color: #f8fafc !important;
}

.expertise-visual-section h1,
.expertise-visual-section h2,
.expertise-visual-section h3,
.expertise-visual-section h4,
.expertise-visual-section h6,
.expertise-visual-section .section-heading,
.expertise-visual-section h2.section-heading {
  color: #e8eef7 !important;
  -webkit-text-fill-color: #e8eef7 !important;
}

.expertise-visual-section .section-lead,
.expertise-visual-section > .container > .row > .col-lg-5 > p,
.main-content .expertise-visual-section > .container > .row > .col-lg-5 > p {
  color: #dbe4f0 !important;
  opacity: 1 !important;
}

.expertise-visual-section ul li,
.expertise-visual-section ul:not(.navbar-nav):not(.social-icon) li,
.expertise-visual-section .tech-feature-list li {
  color: #e8eef7 !important;
  font-weight: 600 !important;
}

.expertise-visual-section .tech-feature-list li i.bi-diagram-3 {
  color: #f39c12 !important;
}

.expertise-visual-section .tech-feature-list li i.bi-bug {
  color: #f87171 !important;
}

.expertise-visual-section .tech-feature-list li i.bi-shield-check {
  color: #4ade80 !important;
}

/* HR-карточка: светлый фон, тёмный текст (без белого) */
.expertise-visual-section .hr-partner-box {
  background: linear-gradient(145deg, #fff8ec 0%, #ffe8c2 100%) !important;
  border: 2px solid #f39c12 !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35) !important;
}

.expertise-visual-section .hr-partner-box h5,
.expertise-visual-section .hr-partner-box h5.mb-2 {
  color: #1a1a2e !important;
  -webkit-text-fill-color: #1a1a2e !important;
  font-weight: 800 !important;
}

.expertise-visual-section .hr-partner-box h5 i,
.expertise-visual-section .hr-partner-box .bi-building-up {
  color: #d35400 !important;
}

.expertise-visual-section .hr-partner-box p,
.main-content .expertise-visual-section .hr-partner-box p,
.expertise-visual-section .hr-partner-box .mb-0 {
  color: #2c3e50 !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  opacity: 1 !important;
}

.expertise-visual-section .hr-partner-box strong {
  color: #c0392b !important;
  font-weight: 800 !important;
}

.expertise-visual-section .review-popover {
  background: #fff3d6 !important;
  border: 2px solid #e67e22 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.expertise-visual-section .review-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 20px;
  border-width: 0 7px 7px 7px;
  border-style: solid;
  border-color: transparent transparent #e67e22 transparent;
}

.expertise-visual-section .review-popover::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 21px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent #fff3d6 transparent;
}

.expertise-visual-section .review-popover__head,
.expertise-visual-section .review-popover__head strong {
  color: #9a3412 !important;
  -webkit-text-fill-color: #9a3412 !important;
  font-weight: 800 !important;
}

.expertise-visual-section .review-popover__head i {
  color: #c2410c !important;
}

.expertise-visual-section .review-popover p,
.expertise-visual-section .review-popover__body,
.main-content .expertise-visual-section .review-popover p {
  color: #1a1a2e !important;
  font-family: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  opacity: 1 !important;
}

.expertise-visual-section .review-popover strong {
  color: #b91c1c !important;
  font-weight: 800 !important;
}

.expertise-visual-section .review-popover code {
  color: #9a3412 !important;
  background: #ffe0a3 !important;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  font-weight: 700;
}

/* Курсы: светлый текст в тёмном hero + блок теста */
body.course-page .java-hero-v2 h1,
body.course-page .java-hero-v2 .java-hero-v2__title,
body.course-page .hero-section h1,
body.course-page .hero-section .hero-title {
  color: #ffffff !important;
}

body.course-page .java-hero-v2 .java-hero-v2__description,
body.course-page .java-hero-v2 .java-hero-v2__price-note,
body.course-page .java-hero-v2__content p,
body.course-page .hero-section .hero-content p,
body.course-page .hero-section .hero-description,
body.course-page .hero-section .lead {
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
}

body.course-page .java-hero-v2 .java-hero-v2__badge,
body.course-page .java-hero-v2 .value-pill,
body.course-page .hero-section .value-pill {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

.hub-exam,
.course-hero-exam {
  position: relative;
  z-index: 1;
  scroll-margin-top: 5.5rem;
  margin: 0 0 1rem;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1.15rem;
  background:
    linear-gradient(165deg, rgba(30, 58, 138, 0.28), transparent 46%),
    rgba(8, 15, 28, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: #f8fafc;
}

.hub-exam h2,
.course-hero-exam h2 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(1.18rem, 2.1vw, 1.48rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hub-exam__badge,
.course-hero-exam .hub-exam__badge {
  display: inline-flex;
  margin: 0 0 0.7rem;
  padding: 0.22rem 0.58rem;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74 !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-exam__lead,
.hub-exam__label,
.hub-exam__note {
  color: #e2e8f0 !important;
}

.hub-exam__lead {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
}

.hub-exam__label {
  margin: 0.95rem 0 0.5rem;
  color: #cbd5e1 !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-exam__tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.hub-exam__track {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
}

.hub-exam__track:hover,
.hub-exam__track:focus-visible {
  border-color: rgba(249, 115, 22, 0.75);
  background: rgba(249, 115, 22, 0.18);
  color: #fff !important;
}

.hub-exam__note {
  margin: 0.85rem 0 0;
  color: #cbd5e1 !important;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.hero-section .price-hero-card,
.hero-section .price-hero-card p,
.hero-section .price-hero-card li,
.hero-section .price-hero-card .text-muted {
  color: #1a1a2e !important;
  -webkit-text-fill-color: #1a1a2e !important;
}

.hero-section .price-hero-card .price-value {
  color: #e67e22 !important;
  -webkit-text-fill-color: #e67e22 !important;
}

.track-hero .hub-exam {
  text-align: left;
  margin: 0 auto 1rem;
}

/* Корпоративная CTA-кнопка в новостях и статьях */
.article-content .btn-corporate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff !important;
  font-weight: 750;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.article-content .btn-corporate:hover,
.article-content .btn-corporate:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.45);
  filter: brightness(1.04);
}

.article-content .btn-corporate i {
  transition: transform 0.2s ease;
}

.article-content .btn-corporate:hover i {
  transform: translateX(3px);
}
