/* ==========================================================
   Учебен център „Регалия“ - mockup v4
   Simple information site for parents. One menu (the five groups
   of the current sidebar), no repeated sections.
   Colours: logo blue, deep navy and warm yellow (after the logo
   and books.regalia6.com). Yellow is the single accent.
   Shapes: cards 14px, buttons and inputs 10px, chips fully round.
   ========================================================== */

:root {
  --bg: #fdfdfe;
  --tint: #f2f4fa;
  --white: #ffffff;
  --line: #e2e6ef;

  --navy: #1d1a3a;
  --text: #2b2a40;
  --muted: #5f6178;

  --blue: #4c5e9e;
  --blue-soft: #e7ebf7;

  --yellow: #f6c026;
  --yellow-hover: #ebb20f;
  --yellow-soft: #fff4d3;
  --yellow-line: #f1d47c;

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-card: 14px;
  --r-btn: 10px;
  --shadow: 0 1px 2px rgba(29, 26, 58, .05), 0 8px 24px rgba(29, 26, 58, .06);
  --shadow-hover: 0 2px 4px rgba(29, 26, 58, .06), 0 14px 32px rgba(29, 26, 58, .10);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--navy); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
.ph, .ph-duotone { line-height: 1; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 767px) { .wrap { padding: 0 16px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.section-title { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.15rem); margin-bottom: .35em; }
.section-lead { color: var(--muted); max-width: 60ch; margin-bottom: 2rem; }
.arrow-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.arrow-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border: 1px solid transparent; border-radius: var(--r-btn);
  font: 600 1rem/1.1 var(--font); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--yellow); color: var(--navy); }
.btn--accent:hover { background: var(--yellow-hover); color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: #2e2a5a; color: #fff; }
.btn--ghost { background: var(--white); border-color: var(--line); color: var(--navy); }
.btn--ghost .ph { color: var(--blue); font-size: 1.15rem; }
.btn--ghost:hover { border-color: var(--blue); color: var(--navy); }
.btn--full { width: 100%; }

/* ==========================================================
   TOP BAR + HEADER
   ========================================================== */
.topbar { background: var(--navy); color: #cfcde3; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 40px; }
.topbar li { white-space: nowrap; }
.topbar__contact { display: flex; gap: 1.4rem; }
.topbar__contact li { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .ph { color: var(--yellow); font-size: 1rem; }
.topbar a { color: #f0eff8; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__links { display: flex; }
.topbar__links li + li { border-left: 1px solid rgba(255, 255, 255, .18); }
.topbar__links a { padding: 0 .8rem; }
.topbar__links li:last-child a { padding-right: 0; }
@media (max-width: 1100px) { .topbar__links li:nth-child(3) { display: none; } }

.header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.header.is-stuck { box-shadow: 0 2px 16px rgba(29, 26, 58, .07); }
.header__inner { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.logo { flex: none; }
.logo img { width: 250px; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: .15rem; }
.nav__list a { display: block; padding: .55rem .75rem; border-radius: var(--r-btn); color: var(--navy); text-decoration: none; font-weight: 500; font-size: .97rem; white-space: nowrap; }
.nav__list a:hover { background: var(--tint); color: var(--blue); }
.nav__extra { display: none; }
.header__cta { flex: none; }
.nav-toggle { display: none; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--white); color: var(--navy); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 1180px) {
  .logo img { width: 215px; }
  .header__inner { gap: 1rem; }
  .nav__list a { padding: .55rem .5rem; font-size: .93rem; }
}
@media (max-width: 1023px) {
  .topbar { display: none; }
  .header__inner { min-height: 66px; }
  .nav-toggle { display: grid; }
  .enroll { margin-left: auto; }
  .header__cta { padding: .7rem 1rem; }
  .nav { display: none; position: fixed; top: 66px; left: 0; right: 0; bottom: 0; margin: 0; padding: .5rem 16px 2rem; overflow-y: auto; background: var(--white); border-top: 1px solid var(--line); }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { padding: 1rem 0; font-size: 1.05rem; border-radius: 0; }
  .nav__list a:hover { background: none; }
  .nav__extra { display: grid; gap: .75rem; padding-top: 1.5rem; }
  .nav__extra a { color: var(--muted); text-decoration: none; }
}
@media (max-width: 640px) { .topbar { display: none; } }
@media (max-width: 480px) {
  .logo img { width: 190px; }
  .header__cta { display: none; }
  .nav-toggle { margin-left: auto; }
}

/* ---------- Enrolment picker (header) ----------
   Each course has its own Google Form; the button lists them. */
.enroll { position: relative; flex: none; }
.enroll .header__cta .ph { font-size: .9rem; transition: transform .2s ease; }
.enroll .header__cta[aria-expanded="true"] .ph { transform: rotate(180deg); }
.enroll__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: 370px;
  padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white);
  box-shadow: 0 4px 8px rgba(29, 26, 58, .06), 0 18px 40px rgba(29, 26, 58, .14);
}
.enroll__panel[hidden] { display: none; }
.enroll__title { margin: 0 0 .5rem .35rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.enroll__list a {
  display: grid; grid-template-columns: 4.6rem 1fr auto; align-items: center; gap: .5rem;
  padding: .55rem .6rem; border-radius: 9px; color: var(--text); font-size: .95rem; text-decoration: none;
}
.enroll__list b { color: var(--navy); font-weight: 600; }
.enroll__list span { color: var(--muted); }
.enroll__list .ph { color: var(--blue); font-size: .95rem; }
.enroll__list a:hover { background: var(--tint); }
.enroll__list a:hover span { color: var(--blue); }
.enroll__note { display: flex; gap: .45rem; margin: .6rem .35rem 0; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; line-height: 1.45; }
.enroll__note .ph { flex: none; margin-top: .1rem; color: var(--blue); font-size: 1rem; }
.nav__enroll { display: none; }
@media (max-width: 1023px) {
  .nav__enroll { display: block; margin-top: 1.5rem; padding: .9rem; border-radius: var(--r-card); background: var(--yellow-soft); box-shadow: inset 0 0 0 1px var(--yellow-line); }
  .nav__enroll-title { margin: 0 0 .35rem .3rem; color: var(--navy); font-weight: 600; }
  .enroll__list--nav a { padding: .6rem .3rem; }
  .enroll__list--nav a:hover { background: rgba(255, 255, 255, .7); }
}
@media (max-width: 480px) { .enroll { display: none; } }

/* ==========================================================
   1. HERO + NEXT SESSIONS
   ========================================================== */
.hero { background: var(--tint); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 4rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.25rem 0 0; color: var(--navy); font-size: .95rem; font-weight: 500; }
.hero__facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__facts .ph { color: var(--blue); font-size: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.schedule { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 1.4rem 1.4rem 1rem; }
.schedule__head { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.schedule__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); color: var(--navy); font-size: 1.5rem; flex: none; }
.schedule__head h2 { margin: 0; font-size: 1.25rem; }
.schedule__head p { margin: 0; color: var(--muted); font-size: .88rem; }
.schedule__list li { display: grid; grid-template-columns: 4.6rem 1fr auto 2rem; align-items: center; gap: .5rem; padding: .55rem .25rem .55rem .6rem; border-radius: var(--r-btn); font-size: .95rem; }
.schedule__list li:nth-child(odd) { background: #f7f8fc; }
.schedule__class { font-weight: 600; color: var(--navy); white-space: nowrap; }
.schedule__what { color: var(--muted); }
.schedule__list time { padding: .15rem .55rem; border-radius: 999px; background: var(--yellow-soft); box-shadow: inset 0 0 0 1px var(--yellow-line); font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule__list li.is-past { opacity: .45; }
.schedule__plan { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; color: var(--blue); font-size: 1.1rem; text-decoration: none; }
.schedule__plan:hover { background: var(--blue-soft); color: var(--navy); }
.schedule__hint { display: flex; align-items: center; gap: .35rem; margin: .7rem 0 0; color: var(--muted); font-size: .82rem; }
.schedule__hint .ph { color: var(--blue); }

@media (max-width: 959px) { .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.75rem; padding-bottom: 3rem; } }
@media (max-width: 420px) {
  .schedule { padding: 1.1rem .9rem .8rem; }
  .schedule__list li { grid-template-columns: 1fr auto 2rem; row-gap: 0; font-size: .92rem; }
  .schedule__class { grid-column: 1; }
  .schedule__what { grid-column: 1; grid-row: 2; font-size: .88rem; }
  .schedule__list time { grid-column: 2; grid-row: 1 / span 2; }
  .schedule__plan { grid-column: 3; grid-row: 1 / span 2; }
}

/* ==========================================================
   2. SITE MENU
   Level 1: class tiles (the main way in).
   Level 2: four short groups. Phones: groups fold open.
   ========================================================== */
.menu { padding: 4.25rem 0 4.5rem; }
.menu__label { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; color: var(--navy); font-size: 1.05rem; font-weight: 600; }
.menu__label .ph-duotone { color: var(--blue); font-size: 1.45rem; }

.classes__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.classes__grid a {
  display: flex; flex-direction: column; height: 100%;
  padding: 1.15rem 1.15rem 1.05rem; border: 1px solid transparent; border-radius: var(--r-card);
  background: var(--tint); color: var(--text); text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.classes__grid b { color: var(--blue); font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.classes__grid span { margin-top: .15rem; color: var(--navy); font-size: .9rem; font-weight: 600; }
.classes__grid small { margin-top: .6rem; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.classes__grid a:hover { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--text); }
.classes__grid .is-main a { background: var(--yellow-soft); border-color: var(--yellow-line); }
.classes__grid .is-main b { color: var(--navy); }
.classes__grid .is-main a:hover { background: #fff0c2; border-color: var(--yellow); }

.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.group { padding: 1.25rem 1.4rem 1rem; border-radius: var(--r-card); background: var(--tint); }
.group summary { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; list-style: none; cursor: default; }
.group summary::-webkit-details-marker { display: none; }
.group__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--white); color: var(--blue); font-size: 1.4rem; box-shadow: 0 1px 2px rgba(29, 26, 58, .06); }
.group__title { color: var(--navy); font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.group__caret { display: none; margin-left: auto; color: var(--blue); font-size: 1.05rem; transition: transform .2s ease; }
.group__links li + li a { border-top: 1px solid #e3e7f1; }
.group__links a {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: .62rem .2rem; color: var(--text); font-size: .97rem; line-height: 1.4; text-decoration: none;
  transition: color .15s ease;
}
.group__links .ph { flex: none; color: #a8aec4; font-size: .95rem; transition: color .15s ease, transform .15s ease; }
.group__links a:hover { color: var(--blue); }
.group__links a:hover .ph, .group__links a:focus-visible .ph { color: var(--blue); transform: translateX(2px); }
.group__chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .1rem 0 .55rem; }
.group__chips span { margin-right: .15rem; color: var(--muted); font-size: .92rem; }
.group__chips a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font-size: .88rem; font-weight: 500; text-decoration: none; }
.group__chips a:hover { border-color: var(--blue); color: var(--blue); }

@media (max-width: 1099px) {
  .classes__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .menu { padding: 2.75rem 0 3rem; }
  .classes__grid { gap: .55rem; }
  .classes__grid a { padding: .85rem .8rem; }
  .classes__grid b { font-size: 2rem; }
  .classes__grid small { margin-top: .35rem; font-size: .76rem; }
  .groups { grid-template-columns: 1fr; gap: .6rem; margin-top: .6rem; }
  .group { padding: 0; }
  .group summary { margin: 0; padding: .85rem 1rem; cursor: pointer; }
  .group__caret { display: block; }
  .group[open] .group__caret { transform: rotate(180deg); }
  .group__links { padding: 0 1rem .6rem; }
  .group__chips { margin: 0 1rem .4rem; }
}

/* ==========================================================
   3. PORTALS (e-diary, e-learning)
   ========================================================== */
.portals-wrap { background: var(--tint); padding: 4rem 0; }
.portals { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.portal { display: flex; align-items: center; gap: 1.1rem; padding: 1.35rem 1.5rem; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
.portal:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--text); }
.portal__icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--navy); color: var(--yellow); font-size: 1.8rem; }
.portal__body { display: flex; flex-direction: column; flex: 1; }
.portal__body strong { color: var(--navy); font-size: 1.1rem; font-weight: 600; }
.portal__body span { color: var(--muted); font-size: .93rem; line-height: 1.45; }
.portal__go { display: inline-flex; align-items: center; gap: .3rem; color: var(--blue); font-weight: 600; white-space: nowrap; }
@media (max-width: 767px) { .portals-wrap { padding: 3rem 0; } .portals { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .portal { flex-wrap: wrap; padding: 1.1rem; } .portal__go { width: 100%; padding-left: calc(54px + 1.1rem); } }

/* ---------- Tabs (books + news) ---------- */
.tabs { display: none; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.js .tabs { display: flex; }
.tabs button { padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font: 500 .95rem/1 var(--font); cursor: pointer; }
.tabs button:hover { border-color: var(--blue); }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabpanel + .tabpanel { margin-top: 2rem; }
.js .tabpanel + .tabpanel { margin-top: 0; }
.tabpanel[hidden] { display: none; }

/* ==========================================================
   4. BOOKS
   ========================================================== */
.books { padding: 4.5rem 0; }
.books__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
.books__head .section-lead { margin-bottom: 1.5rem; }
.books__head .arrow-link { margin-bottom: 1.75rem; }
.covers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.covers a { display: flex; flex-direction: column; gap: .6rem; color: var(--text); text-decoration: none; }
.covers img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 4px rgba(29, 26, 58, .1), 0 10px 22px rgba(29, 26, 58, .12); transition: transform .2s ease; }
.covers a:hover img { transform: translateY(-4px); }
.covers span { font-size: .9rem; line-height: 1.35; }
.covers a:hover span { color: var(--blue); }
@media (max-width: 999px) {
  .covers { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 28%; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; overscroll-behavior-x: contain; }
  .covers li { scroll-snap-align: start; }
}
@media (max-width: 559px) { .books { padding: 3.25rem 0; } .covers { grid-auto-columns: 42%; gap: 1rem; } }

/* ==========================================================
   5. CURRENT INFO
   Segmented switch, exam panels with aligned file buttons,
   grouped documents, score tiles.
   ========================================================== */
.news { background: var(--tint); padding: 4.5rem 0; }

/* Segmented switch */
.switch {
  display: none; gap: .25rem; margin-bottom: 1.75rem; padding: .3rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  width: fit-content; max-width: 100%; overflow-x: auto;
}
.js .switch { display: flex; }
.switch button {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.05rem; border: 0; border-radius: 9px; background: transparent;
  color: var(--navy); font: 500 .95rem/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.switch button .ph { color: var(--blue); font-size: 1.1rem; }
.switch button:hover { background: var(--tint); }
.switch button[aria-selected="true"] { background: var(--navy); color: #fff; }
.switch button[aria-selected="true"] .ph { color: var(--yellow); }

/* Exams: one panel per grade */
.boards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.board { display: grid; grid-template-columns: 260px 1fr; column-gap: 2rem; align-items: start; padding: 1.5rem 1.75rem; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); }
.board__head { grid-row: span 2; display: flex; align-items: center; gap: 1rem; padding: .35rem 2rem .35rem 0; border-right: 1px solid var(--line); align-self: stretch; }
.board__grade { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 14px; background: var(--yellow); color: var(--navy); font-size: 1.6rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.board__grade small { margin-top: .1rem; font-size: .66rem; font-weight: 600; letter-spacing: 0; }
.board__head h3 { margin: 0; font-size: 1.15rem; }
.board__head p { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; }
.board__rows { flex: 1; }
.exam-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: .7rem 0; }
.exam-row + .exam-row { border-top: 1px dashed var(--line); }
.exam-row__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); font-size: 1.4rem; }
.exam-row__name { display: flex; flex-direction: column; min-width: 0; }
.exam-row__name strong { color: var(--navy); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.exam-row__name span { color: var(--muted); font-size: .86rem; }
.exam-row__files { display: flex; gap: .4rem; }
.exam-row__files a {
  display: inline-flex; align-items: center; gap: .35rem; height: 36px; padding: 0 .75rem;
  border: 1px solid var(--line); border-radius: 9px; background: var(--white);
  color: var(--navy); font-size: .88rem; font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.exam-row__files a .ph { color: var(--blue); font-size: 1.05rem; }
.exam-row__files a:hover { border-color: var(--blue); background: var(--tint); }
.exam-row__files a.is-key { background: var(--yellow-soft); border-color: var(--yellow-line); }
.exam-row__files a.is-key .ph { color: var(--navy); }
.exam-row__files a.is-key:hover { background: #ffedb8; border-color: var(--yellow); }
.board__note { grid-column: 2; margin: .5rem 0 0; padding: .7rem .9rem; border-radius: var(--r-btn); background: var(--tint); color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* Documents */
.doc-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.doc-group { padding: 1.4rem 1.5rem 1rem; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); }
.doc-group h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .6rem; font-size: 1.05rem; }
.doc-group h3 .ph-duotone { color: var(--blue); font-size: 1.4rem; }
.doc-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .7rem .6rem; margin: 0 -.6rem; border-radius: 9px;
  color: var(--text); font-size: .96rem; line-height: 1.4; text-decoration: none;
}
.doc-list li + li a { box-shadow: 0 -1px 0 var(--line); border-radius: 0; }
.doc-list li + li a:hover { border-radius: 9px; box-shadow: none; }
.doc-list a:hover { background: var(--tint); color: var(--blue); }
.doc-list em { flex: none; padding: .15rem .45rem; border-radius: 6px; background: #fdecea; color: #b3261e; font-size: .72rem; font-style: normal; font-weight: 700; letter-spacing: .03em; }
.news__more { margin-top: 1.5rem; }

/* Scores and guide */
.guide {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 1.5rem;
  border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; transition: box-shadow .15s ease, transform .15s ease;
}
.guide:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--text); }
.guide__icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--yellow); color: var(--navy); font-size: 1.8rem; }
.guide__body { display: flex; flex-direction: column; flex: 1; }
.guide__body strong { color: var(--navy); font-size: 1.12rem; font-weight: 600; }
.guide__body span { color: var(--muted); font-size: .93rem; }
.guide__go { display: inline-flex; align-items: center; gap: .3rem; color: var(--blue); font-weight: 600; white-space: nowrap; }
.stages__title { margin: 2rem 0 1rem; font-size: 1.05rem; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stages a {
  display: flex; flex-direction: column; gap: .15rem; padding: 1.2rem 1.25rem;
  border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; transition: box-shadow .15s ease, transform .15s ease;
}
.stages a:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--text); }
.stages b { color: var(--blue); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stages span { color: var(--navy); font-weight: 500; font-size: .95rem; }
.stages em { display: inline-flex; align-items: center; gap: .3rem; margin-top: .6rem; color: #1f7a45; font-size: .8rem; font-style: normal; font-weight: 600; }
.stages em .ph { font-size: 1.05rem; }

@media (max-width: 899px) {
  .board { grid-template-columns: 1fr; }
  .board__head { grid-row: auto; padding: 0 0 1rem; border-right: 0; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
  .board__note { grid-column: auto; }
}
@media (max-width: 767px) {
  .news { padding: 3.25rem 0; }
  .switch { width: 100%; display: none; }
  .js .switch { display: grid; grid-template-columns: repeat(3, 1fr); }
  .switch button { flex-direction: column; justify-content: center; gap: .3rem; padding: .6rem .3rem; font-size: .8rem; line-height: 1.2; white-space: normal; text-align: center; }
  .switch button .ph { font-size: 1.3rem; }
  .doc-groups { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr 1fr; gap: .75rem; }
}
@media (max-width: 599px) {
  .board { padding: 1.15rem; }
  .exam-row { grid-template-columns: auto 1fr; row-gap: .7rem; }
  .exam-row__files { grid-column: 1 / -1; flex-wrap: wrap; }
  .exam-row__files a { flex: 1; justify-content: center; }
  .guide { flex-wrap: wrap; padding: 1.1rem; }
  .guide__go { width: 100%; padding-left: calc(54px + 1.1rem); }
  .doc-group { padding: 1.1rem 1.1rem .75rem; }
}

/* ==========================================================
   6. CONTACT
   One card: navy info panel + form. Map full width below.
   ========================================================== */
.contact { padding: 4.5rem 0; }
.contact__card {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  overflow: hidden; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line);
}

/* Info panel */
.contact__side { display: flex; flex-direction: column; gap: 1.75rem; padding: 2.25rem 2rem; background: var(--navy); color: #c9c7df; }
.contact__items { display: grid; gap: 1.5rem; }
.contact__items li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--yellow); font-size: 1.35rem; }
.contact__items div { display: flex; flex-direction: column; gap: .1rem; font-size: .95rem; line-height: 1.45; }
.contact__label { margin-bottom: .15rem; color: #9e9bbd; font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.contact__items strong { color: #fff; font-weight: 600; }
.contact__big { color: #fff; font-size: 1.08rem; font-weight: 600; text-decoration: none; }
.contact__big:hover { color: var(--yellow); }
.contact__more { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; color: var(--yellow); font-weight: 600; text-decoration: none; }
.contact__more:hover { color: #ffd65c; text-decoration: underline; }
.contact__cities { margin-top: auto; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.25rem; }
.contact__cities .contact__label { grid-column: 1 / -1; }
.contact__cities p { display: flex; flex-direction: column; margin: 0; font-size: .93rem; }
.contact__cities strong { color: #fff; font-weight: 600; }
.contact__cities a { color: #d9d7ee; }
.contact__cities a:hover { color: var(--yellow); }

/* Form */
.form { display: flex; flex-direction: column; padding: 2.25rem 2.25rem 2rem; }
.form__body { display: grid; gap: 1.2rem; }
.form__body[hidden] { display: none; }
.form h3 { margin: 0; font-size: 1.4rem; }
.form__hint { margin: -.75rem 0 .1rem; color: var(--muted); font-size: .95rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { padding: 0; color: var(--navy); font-weight: 500; font-size: .95rem; }
.field legend { margin-bottom: .45rem; }
.field small { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; padding: .78rem .9rem; border: 1px solid #cdd3e2; border-radius: var(--r-btn);
  background: #fbfcfe; color: var(--text); font: 400 1rem/1.4 var(--font);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder { color: #9396ab; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px var(--blue-soft); }
.field input.is-invalid { border-color: #b3261e; background: #fff8f7; }
.field__error { margin: 0; color: #b3261e; font-size: .86rem; }
.field__error[hidden] { display: none; }

/* Choice buttons (radio) */
.choice { display: grid; grid-template-columns: repeat(6, 1fr); gap: .45rem; }
.choice--wide { grid-template-columns: 1fr 1fr; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: .45rem; height: 44px;
  border: 1px solid #cdd3e2; border-radius: var(--r-btn); background: #fbfcfe;
  color: var(--navy); font-weight: 600; font-size: .95rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.choice span .ph { color: var(--blue); font-size: 1.15rem; }
.choice label:hover span { border-color: var(--blue); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:checked + span .ph { color: var(--yellow); }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Consent */
.field--check label { display: flex; gap: .65rem; align-items: flex-start; color: var(--muted); font-size: .88rem; font-weight: 400; line-height: 1.45; cursor: pointer; }
.field--check input { flex: none; width: 1.15rem; height: 1.15rem; margin: .1rem 0 0; accent-color: var(--navy); }
.field--check input.is-invalid { outline: 2px solid #b3261e; outline-offset: 1px; }

/* Sent */
.form__done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-height: 320px; text-align: center; }
.form__done[hidden] { display: none; }
.form__done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: .5rem; border-radius: 50%; background: #e8f4ea; color: #22803a; font-size: 2rem; }
.form__done h3 { margin: 0; }
.form__done p { max-width: 26em; margin: 0; color: var(--muted); }

/* Map */
.map { margin-top: 1.25rem; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }

@media (max-width: 959px) {
  .contact__card { grid-template-columns: 1fr; }
  .contact__items { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
}
@media (max-width: 599px) {
  .contact { padding: 3.25rem 0; }
  .contact__side { padding: 1.6rem 1.25rem; }
  .contact__items { grid-template-columns: 1fr; gap: 1.25rem; }
  .form { padding: 1.6rem 1.25rem; }
  .form__row { grid-template-columns: 1fr; }
  .choice { grid-template-columns: repeat(3, 1fr); }
  .choice--wide { grid-template-columns: 1fr 1fr; }
  .map iframe { height: 260px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--tint); border-top: 1px solid var(--line); padding: 3.25rem 0 0; font-size: .94rem; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem 2.5rem; padding-bottom: 2.5rem; }
.footer__logo img { width: 210px; }
.footer__brand p { max-width: 22em; margin: 1rem 0 0; line-height: 1.55; }
.footer h4 { margin: 0 0 .9rem; color: var(--navy); font-size: .95rem; font-weight: 600; letter-spacing: 0; }
.footer__col li { margin-bottom: .5rem; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--blue); text-decoration: underline; }
.footer__classes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.footer__contact .ph { flex: none; margin-top: .2rem; color: var(--blue); font-size: 1.05rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 1.1rem 0 1.4rem; border-top: 1px solid var(--line); font-size: .86rem; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.footer__bottom a { color: var(--muted); }
@media (max-width: 899px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer { padding-top: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
  .footer__grid > :last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================
   COURSE PAGE (kurs-7-klas.html)
   ========================================================== */
html:has(.c-tabs) { scroll-padding-top: 140px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.75rem; color: var(--muted); font-size: .9rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs .ph { font-size: .8rem; color: #a8aec4; }
.crumbs [aria-current] { color: var(--navy); font-weight: 500; }

.c-hero { background: var(--tint); padding: 2rem 0 3.75rem; }
.c-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 4rem; align-items: center; }
.c-hero__badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 1.1rem; border-radius: 16px; background: var(--yellow); color: var(--navy); font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.c-hero__badge small { margin-top: .1rem; font-size: .68rem; font-weight: 600; letter-spacing: 0; }
.c-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; max-width: 30rem; margin: 1.4rem 0 0; color: var(--navy); font-weight: 500; font-size: .97rem; }
.c-facts li { display: flex; align-items: center; gap: .5rem; }
.c-facts .ph { color: var(--blue); font-size: 1.25rem; }

.c-summary { padding: 1.5rem 1.6rem; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); }
.c-summary h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.c-summary dl { margin: 0; }
.c-summary dl div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.c-summary dl div:first-child { border-top: 0; }
.c-summary dt { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .92rem; }
.c-summary dt .ph { color: var(--blue); font-size: 1.1rem; }
.c-summary dd { margin: 0; color: var(--navy); font-weight: 500; font-size: .95rem; line-height: 1.45; }
.c-summary dd small { color: var(--muted); font-weight: 400; font-size: .86rem; }
.c-summary__next { display: flex; gap: .6rem; align-items: flex-start; margin-top: .6rem; padding: .8rem .9rem; border-radius: var(--r-btn); background: var(--yellow-soft); box-shadow: inset 0 0 0 1px var(--yellow-line); color: var(--navy); font-size: .9rem; line-height: 1.45; }
.c-summary__next .ph { flex: none; font-size: 1.2rem; }
.c-summary__next time { font-weight: 700; }

/* In-page navigation, sticks under the header */
.c-tabs { position: sticky; top: 77px; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.c-tabs .wrap { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.c-tabs .wrap::-webkit-scrollbar { display: none; }
.c-tabs a { flex: none; padding: .95rem .85rem; border-bottom: 2px solid transparent; color: var(--muted); font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.c-tabs a:first-child { padding-left: 0; }
.c-tabs a:hover { color: var(--navy); }
.c-tabs a[aria-current="true"] { color: var(--navy); border-bottom-color: var(--yellow); }

.c-section { padding: 4rem 0; }
.c-section--tint { background: var(--tint); }
.sub-title { margin: 2.75rem 0 1rem; font-size: 1.2rem; }
.c-note { display: flex; gap: .55rem; align-items: flex-start; margin: 1.25rem 0 0; color: var(--muted); font-size: .93rem; max-width: 70ch; }
.c-note .ph { flex: none; margin-top: .15rem; color: var(--blue); font-size: 1.1rem; }

/* Formats */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.format-card { display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); }
.format-card__head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.1rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
.format-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-size: 1.8rem; }
.format-card__head h3 { margin: 0; font-size: 1.3rem; }
.format-card__head p { margin: 0; color: var(--muted); font-size: .92rem; }
.format-card__list { flex: 1; }
.format-card__list li { display: flex; gap: .8rem; padding: .7rem 0; }
.format-card__list .ph { flex: none; margin-top: .15rem; color: var(--blue); font-size: 1.2rem; }
.format-card__list span { display: flex; flex-direction: column; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.format-card__list strong { color: var(--navy); font-size: 1rem; font-weight: 600; }
.format-card__note { margin: .5rem 0 1.25rem; padding: .7rem .9rem; border-radius: var(--r-btn); background: var(--tint); color: var(--muted); font-size: .88rem; }
.format-card .btn .ph { font-size: 1rem; }

/* Includes */
.includes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.includes li { display: flex; flex-direction: column; gap: .2rem; padding: 1.3rem; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); }
.includes__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .7rem; border-radius: 13px; background: var(--blue-soft); color: var(--blue); font-size: 1.6rem; }
.includes strong { color: var(--navy); font-weight: 600; }
.includes li > span:last-child { color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* School year road */
.road, .steps { list-style: none; margin: 0; padding: 0; }
.road { display: grid; grid-template-columns: repeat(5, 1fr); }
.road li { position: relative; padding: 2.2rem 1rem 0 0; }
.road li::before { content: ""; position: absolute; top: .45rem; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); z-index: 1; }
.road li::after { content: ""; position: absolute; top: .95rem; left: 14px; right: 0; height: 2px; background: var(--blue-soft); }
.road li:last-child::after { display: none; }
.road li:last-child::before { border-color: var(--yellow-hover); background: var(--yellow); }
.road__when { display: block; color: var(--blue); font-size: .88rem; font-weight: 600; }
.road strong { display: block; color: var(--navy); font-weight: 600; line-height: 1.35; }

.tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tests li { display: grid; gap: .35rem; padding: 1.25rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.tests p { margin: 0; color: var(--muted); font-size: .92rem; }
.tests strong { display: block; color: var(--navy); font-size: 1rem; }
.tests__date { display: flex; align-items: baseline; gap: .45rem; margin-bottom: .2rem !important; }
.tests__date b { color: var(--blue); font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.tests__date span { color: var(--navy); font-weight: 500; }
.tests__place { display: flex; align-items: center; gap: .35rem; }
.tests__place .ph { color: var(--blue); }

/* Fees */
.fees { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 760px; }
.fee-card { padding: 1.6rem; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); }
.fee-card--main { box-shadow: inset 0 0 0 2px var(--yellow), var(--shadow); }
.fee-card p { margin: 0; }
.fee-card__name { color: var(--muted); font-weight: 600; font-size: .92rem; }
.fee-card__price { margin: .35rem 0 .1rem !important; color: var(--navy); font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.fee-card__price span { color: var(--muted); font-size: 1.3rem; font-weight: 600; }
.fee-card__lev { color: var(--muted); font-size: .88rem; }
.fee-card__what { margin-top: 1rem !important; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--text); font-size: .95rem; }

/* Enrolment steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.steps li { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.steps__num { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: .3rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.steps h3 { margin: 0; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.steps .steps__main { background: var(--yellow-soft); border-color: var(--yellow-line); }
.steps__main .steps__num { background: var(--yellow); color: var(--navy); }
.steps__buttons { display: grid; gap: .45rem; margin-top: auto; padding-top: .5rem; }
.steps__buttons .ph { font-size: .95rem; }
.steps__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; font-weight: 600; text-decoration: none; }
.steps__link:hover { text-decoration: underline; }
.steps .steps__warn { padding: .5rem .65rem; border-radius: 8px; background: #fdf0ee; color: #8f2a20; font-size: .86rem; }
.btn--small { padding: .65rem 1rem; font-size: .93rem; }

/* Teachers */
.teachers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.teachers__col { padding: 1.5rem; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); }
.teachers__col h3 { display: flex; align-items: center; gap: .65rem; margin: 0 0 1rem; font-size: 1.08rem; }
.teachers__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); font-size: 1.4rem; }
.teachers__col ul { columns: 2; column-gap: 1.5rem; }
.teachers__col li { padding: .32rem 0; color: var(--text); font-size: .96rem; break-inside: avoid; }

/* More + questions */
.c-more { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.c-more__card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); color: var(--muted); font-size: .93rem; line-height: 1.5; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
a.c-more__card:hover { border-color: #cdd4e6; box-shadow: var(--shadow-hover); color: var(--muted); }
.c-more__card > span:nth-child(2) { flex: 1; }
.c-more__card strong { display: block; color: var(--navy); font-size: 1rem; }
.c-more__card > .ph { color: var(--blue); }
.c-more__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); font-size: 1.6rem; }
.c-ask { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; margin-top: 1.25rem; padding: 1.75rem 2rem; border-radius: 18px; background: var(--navy); color: #c9c7df; }
.c-ask h2 { margin: 0 0 .25rem; color: #fff; font-size: 1.4rem; }
.c-ask p { margin: 0; font-size: .93rem; }
.c-ask__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.c-ask .btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.c-ask .btn--ghost .ph { color: var(--yellow); }
.c-ask .btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.c-small { margin: 1rem 0 0; color: var(--muted); font-size: .84rem; }

@media (max-width: 1099px) {
  .includes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) { .c-tabs { top: 67px; } html:has(.c-tabs) { scroll-padding-top: 125px; } }
@media (max-width: 959px) {
  .c-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .road { grid-template-columns: 1fr; }
  .road li { padding: 0 0 1.4rem 2rem; }
  .road li::before { top: .3rem; }
  .road li::after { top: 1.2rem; left: 6px; right: auto; bottom: 0; width: 2px; height: auto; }
  .tests { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .c-section { padding: 3rem 0; }
  .formats, .fees, .teachers, .c-more { grid-template-columns: 1fr; }
  .c-hero { padding-bottom: 2.75rem; }
}
@media (max-width: 559px) {
  .c-facts { grid-template-columns: 1fr; }
  .c-summary { padding: 1.2rem; }
  .c-summary dl div { grid-template-columns: 1fr; gap: .15rem; }
  .includes, .steps { grid-template-columns: 1fr; }
  .format-card { padding: 1.2rem; }
  .teachers__col ul { columns: 1; }
  .c-ask { padding: 1.4rem; }
}
