/*
Theme Name: Garant Education approved interface layer
Description: Yellow/black production visual system approved for the public site and role cabinets.
*/

:root {
  --ge-ink: #101010;
  --ge-muted: #666660;
  --ge-subtle: #8b8b84;
  --ge-canvas: #f8f8f6;
  --ge-surface: #fff;
  --ge-line: #e5e5df;
  --ge-brand: #ffd21a;
  --ge-brand-dark: #101010;
  --ge-brand-soft: #fff7cc;
  --ge-accent: #ffd21a;
  --ge-success: #318348;
  --ge-success-soft: #edf8ef;
  --ge-warning: #a86500;
  --ge-warning-soft: #fff7dc;
  --ge-danger: #c83b36;
  --ge-danger-soft: #fff0ef;
  --ge-shadow: 0 12px 32px rgba(16, 16, 16, .08);
  --ge-shadow-sm: 0 4px 14px rgba(16, 16, 16, .05);
  --ge-radius: 14px;
  --ge-radius-sm: 9px;
  --ge-container: min(1480px, calc(100% - 40px));
}

body {
  background: var(--ge-canvas);
  color: var(--ge-ink);
}

h1, h2, h3, h4 { color: var(--ge-ink); letter-spacing: -.035em; }
a { color: var(--ge-ink); }
a:hover { color: #000; }

.button {
  background: var(--ge-brand);
  border-color: var(--ge-brand);
  border-radius: 8px;
  box-shadow: none;
  color: #0d0d0d;
  min-height: 46px;
}
.button:hover {
  background: #f2c500;
  border-color: #f2c500;
  box-shadow: 0 8px 18px rgba(255, 210, 26, .25);
  color: #000;
}
.button:focus-visible,
.cabinet-nav button:focus-visible,
.form-control:focus-visible,
.review-action:focus-visible,
.site-menu-toggle:focus-visible {
  outline: 3px solid rgba(255, 210, 26, .55);
  outline-offset: 2px;
}
.button--ghost {
  background: #fff;
  border-color: #a9a9a3;
  color: #111;
}
.button--ghost:hover {
  background: #f7f7f3;
  border-color: #111;
  color: #111;
}
.button--danger {
  background: var(--ge-danger);
  border-color: var(--ge-danger);
  color: #fff;
}

.site-header {
  background: rgba(255,255,255,.96);
  border-color: var(--ge-line);
  backdrop-filter: blur(14px);
}
.site-header__inner { min-height: 68px; }
.ge-adaptive-logo__text {
  color: #0a0a0a;
  font-size: 23px;
  font-weight: 840;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.site-nav ul { gap: clamp(18px, 2.4vw, 38px); }
.site-nav a { font-size: 14px; font-weight: 570; }
.site-header__actions { align-items: center; display: flex; gap: 10px; }
.site-header__actions .button { min-width: 210px; }
.site-menu-toggle {
  background: #fff;
  border: 1px solid var(--ge-line);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  height: 42px;
  padding: 10px;
  width: 42px;
}
.site-menu-toggle span {
  background: #111;
  display: block;
  height: 2px;
  margin: 4px 0;
  width: 100%;
}

.public-home { padding: 14px 0 0; }
.public-home .hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 30%, rgba(255,255,255,.38) 57%, rgba(255,255,255,0) 78%),
    url("../images/hero-classroom.webp") center right / cover no-repeat;
  border: 1px solid var(--ge-line);
  border-radius: 14px;
  margin: 0 auto;
  min-height: 465px;
  overflow: hidden;
  padding: 0;
  width: var(--ge-container);
}
.public-home .hero::before { display: none; }
.public-home .hero__inner {
  align-items: center;
  display: flex;
  min-height: 465px;
  width: 100%;
}
.public-home .hero__copy { max-width: 660px; padding: 46px 30px; }
.public-home .hero__copy h1 {
  font-size: clamp(2.35rem, 4.3vw, 4.25rem);
  line-height: 1.01;
  margin-bottom: 22px;
}
.public-home .hero__copy > p:not(.eyebrow) {
  color: #4f4f4b;
  font-size: 18px;
  line-height: 1.5;
  max-width: 530px;
}
.public-home .eyebrow {
  color: #7b6700;
  font-size: 11px;
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.public-home .hero__actions { margin-top: 28px; }
.public-home .hero__facts {
  display: flex;
  gap: 10px;
  grid-template-columns: none;
  margin-top: 38px;
  max-width: none;
}
.public-home .hero__facts li {
  align-items: center;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--ge-line);
  border-radius: 9px;
  box-shadow: var(--ge-shadow-sm);
  display: flex;
  gap: 9px;
  padding: 10px 13px;
}
.public-home .hero__facts li > span { color: #e3b800; font-size: 17px; }
.public-home .hero__facts strong { font-size: 12px; font-weight: 620; }
.home-section {
  margin: 0 auto;
  padding: 58px 0 0;
  width: var(--ge-container);
}
.home-section__head {
  align-items: end;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.home-section__head h2,
.process-section__title h2,
.home-data-card h2,
.consultation h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); margin: 0; }
.home-section__head > p { color: var(--ge-muted); margin: 0; max-width: 500px; text-align: right; }
.program-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.program-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ge-line);
  border-radius: 12px;
  display: grid;
  gap: 18px;
  grid-template-columns: 64px minmax(0,1fr) 42px;
  min-height: 126px;
  padding: 20px 18px;
}
.program-card__icon {
  align-items: center;
  background: var(--ge-brand);
  border-radius: 12px;
  display: flex;
  font-size: 24px;
  font-weight: 820;
  height: 64px;
  justify-content: center;
  width: 64px;
}
.program-card p,
.program-card h3,
.program-card small { margin: 0; }
.program-card p { color: var(--ge-muted); font-size: 12px; }
.program-card h3 { font-size: 19px; margin-top: 2px; }
.program-card small { color: var(--ge-muted); display: block; line-height: 1.4; margin-top: 6px; }
.program-card > a {
  align-items: center;
  border-radius: 50%;
  display: flex;
  font-size: 26px;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  width: 42px;
}
.program-card > a:hover { background: var(--ge-brand-soft); }
.home-empty {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ge-line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 28px;
}
.home-empty h3 { margin-bottom: 8px; }
.home-empty p { color: var(--ge-muted); }
.process-section {
  align-items: start;
  background: #fff;
  border: 1px solid var(--ge-line);
  border-radius: 12px;
  display: grid;
  gap: 30px;
  grid-template-columns: 220px minmax(0, 1fr);
  margin-top: 44px;
  padding: 24px 28px;
}
.process-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.process-list li { display: grid; gap: 12px; grid-template-columns: 34px minmax(0,1fr); }
.process-list b {
  align-items: center;
  background: var(--ge-brand);
  border-radius: 50%;
  display: flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.process-list h3 { font-size: 15px; margin: 2px 0 6px; }
.process-list p { color: var(--ge-muted); font-size: 12px; line-height: 1.5; margin: 0; }
.home-data-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.home-data-card {
  background: #fff;
  border: 1px solid var(--ge-line);
  border-radius: 12px;
  padding: 26px;
}
.home-data-card h2 { font-size: 22px; }
.home-data-card__note { color: var(--ge-muted); font-size: 12px; }
.live-metrics { display: grid; gap: 18px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 24px; }
.live-metrics div { border-right: 1px solid var(--ge-line); display: grid; gap: 6px; padding-right: 12px; }
.live-metrics div:last-child { border-right: 0; }
.live-metrics strong { font-size: 30px; line-height: 1; }
.live-metrics span { color: var(--ge-muted); font-size: 12px; }
.teacher-list { display: grid; gap: 10px; margin-top: 18px; }
.teacher-list article { align-items: center; border-top: 1px solid var(--ge-line); display: flex; gap: 12px; padding-top: 10px; }
.teacher-list img { border-radius: 9px; height: 54px; object-fit: cover; width: 54px; }
.teacher-list h3,
.teacher-list p { margin: 0; }
.teacher-list h3 { font-size: 14px; }
.teacher-list p { color: var(--ge-muted); font-size: 12px; }
.consultation {
  background: var(--ge-brand);
  border-radius: 14px;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0,.75fr) minmax(520px,1.25fr);
  margin-top: 58px;
  padding: 36px;
}
.consultation__copy { align-self: center; }
.consultation__copy .eyebrow { color: #5a4a00; }
.consultation__copy p:last-child { max-width: 500px; }
.consultation__form-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
}
.consultation-form { display: grid; gap: 13px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.consultation-form label { display: grid; gap: 5px; }
.consultation-form label > span { font-size: 12px; font-weight: 650; }
.consultation-form input,
.consultation-form select,
.consultation-form textarea {
  background: #fff;
  border: 1px solid #cacac4;
  border-radius: 8px;
  min-height: 44px;
  padding: 9px 11px;
  width: 100%;
}
.consultation-form textarea { resize: vertical; }
.consultation-form__message,
.consultation-form__consent,
.consultation-form__submit { grid-column: 1 / -1; }
.consultation-form__consent { align-items: start; display: flex !important; gap: 8px !important; }
.consultation-form__consent input { min-height: 18px; width: 18px; }
.consultation-form__honeypot { left: -10000px; position: absolute; }
.consultation-form__submit:disabled { cursor: wait; opacity: .7; }
.form-notice { border-radius: 8px; margin-bottom: 12px; padding: 11px 13px; }
.form-notice--success { background: var(--ge-success-soft); color: var(--ge-success); }
.form-notice--error { background: var(--ge-danger-soft); color: var(--ge-danger); }
.home-login {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ge-line);
  border-radius: 10px;
  display: flex;
  gap: 34px;
  margin: 18px auto;
  padding: 15px 20px;
  width: var(--ge-container);
}
.home-login span,
.home-login a { color: var(--ge-muted); font-size: 13px; }
.home-login a:last-child { color: #111; margin-left: auto; text-decoration: underline; }
.site-footer { background: #111; padding: 36px 0; }
body.home .site-footer { display: none; }
.site-footer__inner { align-items: center; }
.site-footer__contacts { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__contacts span,
.site-footer__contacts a { color: rgba(255,255,255,.74); font-size: 13px; }

/* Role cabinets */
body.garant-cabinet-page {
  --ge-cabinet-sidebar: 238px;
  background: #fbfbfa;
  color: #111;
}
.garant-cabinet-page .cabinet { grid-template-columns: var(--ge-cabinet-sidebar) minmax(0,1fr); }
.garant-cabinet-page .cabinet-sidebar {
  background: #fff;
  border-right: 1px solid var(--ge-line);
  color: #111;
  padding: 16px 12px;
}
.garant-cabinet-page .cabinet-sidebar .ge-adaptive-logo__text { color: #111; font-size: 20px; }
.garant-cabinet-page .cabinet-nav { gap: 4px; margin-top: 20px; }
.garant-cabinet-page .cabinet-nav button,
.garant-cabinet-page .cabinet-nav__link {
  border-radius: 8px;
  color: #30302d;
  min-height: 44px;
  padding: 10px 12px;
}
.garant-cabinet-page .cabinet-nav button:hover,
.garant-cabinet-page .cabinet-nav button.is-active,
.garant-cabinet-page .cabinet-nav__link:hover {
  background: linear-gradient(90deg,#fff6c5,#fffdf2);
  color: #111;
}
.garant-cabinet-page .cabinet-nav button.is-active { box-shadow: inset 3px 0 0 var(--ge-brand); }
.garant-cabinet-page .cabinet-sidebar__footer { border-color: var(--ge-line); color: #111; }
.garant-cabinet-page .cabinet-sidebar__footer a { color: #55554f; }
.garant-cabinet-page .portal-profile-button { color: #111; }
.garant-cabinet-page .portal-profile-button__avatar { background: #ededeb; color: #111; }
.garant-cabinet-page .cabinet-topbar {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--ge-line);
  min-height: 72px;
  padding: 12px 24px;
}
.garant-cabinet-page .cabinet-topbar__title > span { color: var(--ge-muted); font-size: 10px; }
.garant-cabinet-page .cabinet-topbar h1 { font-size: 22px; }
.garant-cabinet-page .cabinet-content { max-width: 1540px; padding: 24px; }
.garant-cabinet-page .cabinet-global-search input,
.garant-cabinet-page .form-control {
  border-color: #d9d9d4;
  border-radius: 8px;
}
.garant-cabinet-page .cabinet-tool-button,
.garant-cabinet-page .cabinet-menu-toggle { border-radius: 8px; }
.garant-cabinet-page .metric-card,
.garant-cabinet-page .panel,
.garant-cabinet-page .learning-card,
.garant-cabinet-page .enrollment-card,
.garant-cabinet-page .ux-section,
.garant-cabinet-page .ux-home-hero,
.garant-cabinet-page .ux-priority-card,
.garant-cabinet-page .ux-quick-action,
.garant-cabinet-page .portal-account-card,
.garant-cabinet-page .gamification-section {
  border-color: var(--ge-line);
  border-radius: 12px;
  box-shadow: none;
}
.garant-cabinet-page .dashboard-welcome,
.garant-cabinet-page .learning-card__hero,
.garant-cabinet-page .activity-heading,
.garant-cabinet-page .gamification-hero,
.garant-cabinet-page .ux-home-hero,
.garant-cabinet-page .ux-system-hero {
  background: #fff;
  border: 1px solid var(--ge-line);
  box-shadow: none;
  color: #111;
}
.garant-cabinet-page .dashboard-welcome h2,
.garant-cabinet-page .learning-card__hero h2,
.garant-cabinet-page .learning-card__hero h3,
.garant-cabinet-page .activity-heading h2,
.garant-cabinet-page .gamification-hero h2,
.garant-cabinet-page .ux-home-hero h2,
.garant-cabinet-page .ux-system-hero h2 { color: #111; }
.garant-cabinet-page .dashboard-welcome p,
.garant-cabinet-page .learning-card__hero p,
.garant-cabinet-page .activity-heading p,
.garant-cabinet-page .ux-home-hero p,
.garant-cabinet-page .ux-system-hero p { color: var(--ge-muted); }
.garant-cabinet-page .dashboard-welcome::after,
.garant-cabinet-page .activity-heading::after { border-color: rgba(255,210,26,.25); }
.garant-cabinet-page .progress-line,
.garant-cabinet-page .protected-video__progress progress { background: #ebebe7; }
.garant-cabinet-page .progress-line > span,
.garant-cabinet-page .protected-video__progress progress::-webkit-progress-value,
.garant-cabinet-page .gamification-progress i { background: var(--ge-brand); }
.garant-cabinet-page .protected-video__progress progress::-moz-progress-bar { background: var(--ge-brand); }
.garant-cabinet-page .action-badge { background: var(--ge-brand-soft); color: #6a5700; }
.garant-cabinet-page .lesson-row { background: #fafaf8; border-color: var(--ge-line); }
.garant-cabinet-page .option-item { background: #fafaf8; border-color: var(--ge-line); }
.garant-cabinet-page .option-item:has(input:checked) { background: var(--ge-brand-soft); border-color: #d7ae00; }
.garant-cabinet-page .option-item input { accent-color: #d5ab00; }
.garant-cabinet-page .test-submit-bar { border-radius: 11px; box-shadow: var(--ge-shadow); }
.garant-cabinet-page .protected-video__stage { border-radius: 12px; }
.garant-cabinet-page .protected-video__overlay { background: rgba(10,10,10,.92); }
.garant-cabinet-page .review-action.is-selected { background: var(--ge-brand-soft); border-color: #d7ae00; color: #111; }
.garant-cabinet-page .gamification-achievement__icon { background: var(--ge-brand); }
.garant-cabinet-page .gamification-achievement.is-earned { border-color: #e2bd19; }
.garant-cabinet-page table th { color: var(--ge-muted); }
.garant-cabinet-page .ux-quick-action:hover { border-color: #d8b400; transform: translateY(-1px); }

@media (max-width: 1120px) {
  .site-nav { display: none; }
  .site-menu-toggle { display: block; }
  .site-header.is-menu-open .site-nav {
    background: #fff;
    border-bottom: 1px solid var(--ge-line);
    border-top: 1px solid var(--ge-line);
    display: block;
    left: 0;
    padding: 14px 20px 20px;
    position: absolute;
    right: 0;
    top: 68px;
  }
  .site-header.is-menu-open .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-header.is-menu-open .site-nav a { display: block; padding: 10px 0; }
  .program-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .process-section { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  :root { --ge-container: min(100% - 24px, 1480px); }
  .site-header__actions .button { display: none; }
  .public-home .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 56%, rgba(255,255,255,.15) 100%),
      url("../images/hero-classroom.webp") 66% center / cover no-repeat;
  }
  .public-home .hero__copy { align-self: flex-start; padding: 34px 22px 230px; }
  .public-home .hero__facts { align-items: stretch; flex-direction: column; }
  .program-grid,
  .home-data-grid,
  .consultation { grid-template-columns: 1fr; }
  .consultation { padding: 24px; }
  .home-section__head { align-items: start; flex-direction: column; gap: 8px; }
  .home-section__head > p { text-align: left; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .public-home { padding-top: 8px; }
  .public-home .hero { min-height: 610px; }
  .public-home .hero__copy h1 { font-size: 2.35rem; }
  .program-grid,
  .process-list,
  .consultation-form { grid-template-columns: 1fr; }
  .program-card { grid-template-columns: 54px minmax(0,1fr) 36px; padding: 15px; }
  .program-card__icon { height: 54px; width: 54px; }
  .process-section { padding: 22px 18px; }
  .consultation { padding: 18px; }
  .home-login { align-items: flex-start; flex-direction: column; gap: 8px; }
  .home-login a:last-child { margin-left: 0; }
}

/* Public footer and mobile marketing navigation */
.site-nav__mobile-cta {
  display: none;
}

.site-footer__inner--marketing {
  align-items: flex-start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(150px, .62fr));
}

.site-footer__about p {
  color: rgba(255,255,255,.58);
  font-size: 13px;
  margin: 16px 0 0;
  max-width: 360px;
}

.site-footer__nav,
.site-footer__contacts {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.site-footer__nav strong,
.site-footer__contacts strong {
  color: #fff;
  font-size: 12px;
  margin-bottom: 4px;
}

.site-footer__nav a,
.site-footer__contacts a,
.site-footer__contacts span {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__contacts a:hover {
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 34px auto 0;
  padding-top: 18px;
  width: var(--ge-container);
}

.site-footer__bottom small {
  color: rgba(255,255,255,.46);
  font-size: 11px;
}

@media (max-width: 1120px) {
  .site-nav__mobile-cta {
    display: list-item;
  }

  .site-nav__mobile-cta a {
    color: #111;
    font-weight: 760;
  }

  .site-footer__inner--marketing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-footer__inner--marketing {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* v1.5.6 — global heading readability */
h1, h2, h3, h4, h5, h6 {
  font-family: Arial, "Helvetica Neue", "Segoe UI", sans-serif;
  letter-spacing: 0 !important;
  font-kerning: normal;
}
