/* ============================================================
   ЦДПО СибГИУ — дизайн-система и страницы.
   ============================================================ */

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f9fbfe;
  --ink: #0e1b2d;
  --ink-2: #24344c;
  --muted: #5b6b82;
  --muted-2: #7b8aa0;
  --line: #e2e9f2;
  --line-strong: #cbd6e4;

  --brand: #0078be;
  --brand-600: #0067a6;
  --brand-700: #004f80;
  --brand-100: #e6f4fb;
  --brand-50: #f2fafe;

  --cta: #961e82;
  --cta-600: #7c156b;
  --accent: #961e82;
  --accent-100: #f8e9f3;

  --ok: #0f766e;
  --ok-bg: #e6f6f3;
  --warn: #8a4b00;
  --warn-bg: #fdf3e3;
  --danger: #b91c1c;
  --danger-bg: #fdecec;

  --pk: #0078be;
  --pk-bg: #e6f4fb;
  --pp: #961e82;
  --pp-bg: #f8e9f3;
  --po: #c8351a;
  --po-bg: #fdece8;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 45, 0.05), 0 1px 3px rgba(14, 27, 45, 0.06);
  --shadow: 0 6px 20px rgba(14, 27, 45, 0.08);
  --shadow-lg: 0 18px 48px rgba(14, 27, 45, 0.14);
  --container: 1200px;
  --header-h: 78px;
  --font: "Inter", "Segoe UI", "PT Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
}

h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
}

h3 {
  font-size: 19px;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

:focus-visible {
  outline: 3px solid #7aa7d9;
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.muted {
  color: var(--muted);
}

.req {
  color: var(--danger);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- верхняя строка и шапка ---------- */

.topbar {
  background: #062e4a;
  color: #cfe1f2;
  font-size: 12.5px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.topbar__info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a9c3dd;
}

.topbar__info .icon,
.topbar__phones .icon {
  width: 14px;
  height: 14px;
}

.topbar__dot {
  margin: 0 3px;
  opacity: 0.5;
}

.topbar__phones {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar__phones a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.topbar__phones a:hover {
  color: #fff;
  text-decoration: underline;
}

.topbar__phones .icon {
  color: #8fc0ef;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
}

.logo:hover {
  text-decoration: none;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--brand-600), var(--brand));
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.logo__img {
  display: block;
  height: 42px;
  width: auto;
}

.logo__divider {
  width: 1px;
  height: 30px;
  background: var(--line-strong);
}

.logo--footer .logo__panel {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
}

.logo--footer .logo__img {
  height: 34px;
}

.logo--footer {
  align-items: flex-start;
  gap: 12px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo__sub {
  font-size: 10.5px;
  color: var(--muted-2);
  max-width: 150px;
  line-height: 1.25;
}

.header .logo__sub {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav__link {
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}

.nav__link:hover {
  background: var(--brand-50);
  color: var(--brand-600);
  text-decoration: none;
}

.nav__link.is-active {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-100);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header__search {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  background: var(--surface-2);
}

.header__search:hover {
  color: var(--brand);
  border-color: var(--line-strong);
  text-decoration: none;
}

.header__search .icon {
  width: 18px;
  height: 18px;
}

.header__cta {
  padding: 0 12px;
  font-size: 14px;
  white-space: nowrap;
}

.header__burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- кнопки, бейджи, чипы ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 1px 2px rgba(60, 10, 50, 0.25);
}

.btn--primary:hover {
  background: var(--cta-600);
  color: #fff;
}

.btn--ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.btn--ghost:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
}

.btn--soft {
  background: var(--brand-100);
  color: var(--brand);
}

.btn--soft:hover {
  background: #dbe9f9;
}

.btn--sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13.5px;
  border-radius: 8px;
}

.btn--block {
  width: 100%;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge--pk {
  background: var(--pk-bg);
  color: var(--pk);
}

.badge--pp {
  background: var(--pp-bg);
  color: var(--pp);
}

.badge--po {
  background: var(--po-bg);
  color: var(--po);
}

.badge--soft {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.badge--accent {
  background: var(--accent-100);
  color: var(--accent);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.4;
}

.chip--link:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
  text-decoration: none;
  background: var(--brand-50);
}

.chip.is-active {
  border-color: var(--brand);
  background: var(--brand-100);
  color: var(--brand);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status--open {
  color: var(--ok);
}

.status--pending {
  color: var(--muted-2);
}

.status--closed {
  color: var(--muted-2);
}

.status--draft {
  color: var(--warn);
}

.status--archived {
  color: var(--muted-2);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* ---------- хлебные крошки и заголовки страниц ---------- */

.breadcrumbs {
  padding: 18px 0 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted-2);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--brand-600);
}

.page-head {
  padding: 26px 0 8px;
}

.page-head__title {
  max-width: 900px;
}

.page-head__lead {
  max-width: 760px;
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.section {
  padding: 56px 0;
}

.section--tight {
  padding: 36px 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section__title {
  margin: 0;
}

.section__lead {
  margin-top: 10px;
  color: var(--muted);
  max-width: 720px;
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}

.section__link .icon {
  width: 16px;
  height: 16px;
}

.section__link--back .icon {
  transform: rotate(180deg);
}

/* ---------- главная ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 82% -10%, rgba(0, 165, 230, 0.4), transparent 60%),
    radial-gradient(700px 300px at 8% 110%, rgba(150, 30, 130, 0.22), transparent 60%),
    linear-gradient(135deg, #04263f 0%, #005e96 55%, #0078be 100%);
  color: #eaf2fb;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 90%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0 64px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #c9ddf3;
}

.hero h1 {
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 560px;
  color: #c6d8ec;
  font-size: 17px;
}

.hero__search {
  margin-top: 26px;
  max-width: 620px;
}

.hero__search-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #a9c3dd;
}

.hero__search-row {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(5, 20, 40, 0.35);
}

.hero__search-row input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 0;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
}

.hero__search-row input:focus {
  outline: none;
}

.hero__search-row input::placeholder {
  color: var(--muted-2);
}

.hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
  font-size: 13px;
  color: #a9c3dd;
}

.hero__quick a {
  color: #dbe9f8;
  border-bottom: 1px dashed rgba(219, 233, 248, 0.4);
}

.hero__quick a:hover {
  color: #fff;
  text-decoration: none;
}

.hero__side {
  display: grid;
  gap: 12px;
}

.hero__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #eaf2fb;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero__card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
  text-decoration: none;
  color: #fff;
}

.hero__card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero__card-title {
  display: block;
  font-weight: 600;
  font-size: 15px;
}

.hero__card-text {
  display: block;
  font-size: 13px;
  color: #b6cde4;
  margin-top: 2px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__stat b {
  display: block;
  font-size: 20px;
  color: #fff;
}

.hero__stat span {
  font-size: 12.5px;
  color: #a9c3dd;
}

/* сетка направлений */

.dir-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dir-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  min-height: 168px;
}

.dir-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}

.dir-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
}

.dir-card__title {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.35;
}

.dir-card__count {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* виды обучения */

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  overflow: hidden;
}

.type-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--type-color, var(--brand));
}

.type-card:hover {
  box-shadow: var(--shadow);
  text-decoration: none;
}

.type-card__code {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--type-bg, var(--brand-100));
  color: var(--type-color, var(--brand));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.type-card__title {
  font-size: 20px;
  font-weight: 700;
}

.type-card__text {
  color: var(--muted);
  font-size: 14.5px;
}

.type-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-600);
}

/* ---------- карточки программ ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.pcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pcard:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pcard__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pcard__title {
  font-size: 18px;
  line-height: 1.35;
}

.pcard__title a {
  color: var(--ink);
  text-decoration: none;
}

.pcard__title a:hover {
  color: var(--brand-600);
  text-decoration: underline;
}

.pcard__dirs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pcard__summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin: 2px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
}

.pcard__meta div {
  min-width: 0;
}

.pcard__meta dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.pcard__meta dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.pcard__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.pcard__actions .btn {
  flex: 1 1 auto;
  white-space: nowrap;
  padding: 0 10px;
  font-size: 13.5px;
}

.pcard__actions .btn--primary {
  flex: 1.1 1 0;
}

/* компактный список */

.prow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px 180px;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.prow:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.prow__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.prow__title {
  font-size: 16.5px;
  line-height: 1.35;
}

.prow__title a {
  color: var(--ink);
}

.prow__summary {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prow__dirs {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
}

.prow__meta {
  display: grid;
  gap: 6px;
  margin: 0;
}

.prow__meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.prow__meta dt {
  color: var(--muted-2);
}

.prow__meta dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.prow__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- каталог ---------- */

.catalog {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 8px 0 64px;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow: auto;
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.filters__title {
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filters__title .icon {
  width: 17px;
  height: 17px;
  color: var(--brand-600);
}

.filters__reset {
  border: 0;
  background: none;
  color: var(--brand-600);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px;
}

.filters__reset:hover {
  text-decoration: underline;
}

.filter-group {
  border-top: 1px solid var(--line);
  padding: 14px 0 10px;
}

.filter-group:first-of-type {
  border-top: 0;
}

.filter-group__title {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}

.filter-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.4;
}

.filter-option input {
  margin: 3px 0 0;
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.filter-option__count {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.filter-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.filter-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.45;
}

.catalog__main {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.search-field {
  position: relative;
  flex: 1 1 280px;
  min-width: 220px;
}

.search-field .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  width: 18px;
  height: 18px;
}

.search-field input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  font-size: 14.5px;
}

.search-field input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(21, 74, 128, 0.14);
}

.search-field__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  display: none;
  place-items: center;
}

.search-field__clear .icon {
  position: static;
  transform: none;
  width: 14px;
  height: 14px;
}

.search-field.has-value .search-field__clear {
  display: grid;
}

.toolbar-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.toolbar-select select {
  height: 44px;
  max-width: 220px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6b82' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-2);
  appearance: none;
  cursor: pointer;
}

.view-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
}

.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.view-toggle button .icon {
  width: 16px;
  height: 16px;
}

.view-toggle button.is-active {
  background: var(--brand-100);
  color: var(--brand);
  font-weight: 600;
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.results-bar strong {
  color: var(--ink);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand);
  font-size: 12.5px;
}

.active-chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 58, 102, 0.1);
  color: var(--brand);
  cursor: pointer;
}

.active-chip .icon {
  width: 12px;
  height: 12px;
}

.filters-mobile-toggle {
  display: none;
}

.list-stack {
  display: grid;
  gap: 12px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.pagination__pages {
  display: flex;
  gap: 6px;
}

.pagination__pages button,
.pagination__pages span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  cursor: pointer;
}

.pagination__pages button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.pagination__pages button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- пустое состояние ---------- */

.empty {
  padding: 56px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.empty__icon {
  width: 44px;
  height: 44px;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.empty__title {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty__text {
  max-width: 520px;
  margin: 0 auto 18px;
  color: var(--muted);
}

.empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ---------- страница направления ---------- */

.dir-hero {
  padding: 22px 0 8px;
}

.dir-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.dir-hero__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-100);
  color: var(--brand);
  margin-bottom: 16px;
}

.dir-hero__text {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 760px;
}

.type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.type-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
}

.type-tab .badge {
  padding: 2px 7px;
  font-size: 11px;
}

.type-tab:hover {
  border-color: var(--brand-600);
}

.type-tab.is-active {
  border-color: var(--brand);
  background: var(--brand-100);
  color: var(--brand);
  font-weight: 600;
}

.type-tab__count {
  color: var(--muted-2);
  font-size: 12px;
}

.consult-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #f2f7fd, #ffffff);
  border: 1px solid var(--line);
}

.consult-card__title {
  font-size: 17px;
  margin-bottom: 8px;
}

.consult-card__text {
  font-size: 13.5px;
  color: var(--muted);
}

.consult-card__contacts {
  margin: 14px 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.consult-card__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}

.consult-card__contacts .icon {
  width: 16px;
  height: 16px;
  color: var(--brand-600);
}

/* ---------- страница программы ---------- */

.program {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
  padding: 18px 0 64px;
}

.program__head {
  margin-bottom: 22px;
}

.program__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.program__title {
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.02em;
}

.program__summary {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
}

.program__dirs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.program__head-actions {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.program__section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.program__section:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.program__about {
  display: grid;
  gap: 12px;
}

.program__about p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}

.related-list .prow {
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
}

.related-list .prow__actions {
  flex-direction: row;
  justify-content: flex-end;
}

.related-list .prow__actions .btn {
  flex: 0 0 auto;
}

.program__section h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.program__section h3 {
  font-size: 16px;
  margin: 18px 0 8px;
}

.program__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program__list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
}

.program__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23154a80' stroke-width='3'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") no-repeat center;
}

.curriculum {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.curriculum th,
.curriculum td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.curriculum thead th {
  background: var(--surface-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.curriculum tbody tr:last-child td {
  border-bottom: 0;
}

.curriculum td:last-child,
.curriculum th:last-child {
  text-align: right;
  white-space: nowrap;
}

.curriculum tfoot td {
  background: var(--surface-2);
  font-weight: 600;
}

.doc-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
}

.doc-list a:hover {
  border-color: var(--brand-600);
  text-decoration: none;
}

.doc-list .icon {
  color: var(--brand-600);
}

/* правая карточка */

.program__aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 14px;
}

.buy-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.buy-card__price {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.buy-card__price-note {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
}

.buy-card__rows {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.buy-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.buy-card__row dt {
  color: var(--muted-2);
}

.buy-card__row dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.buy-card .btn {
  width: 100%;
}

.buy-card__hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
}

.aside-note {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  font-size: 13.5px;
  color: var(--ink-2);
}

.aside-note a {
  font-weight: 600;
}

/* ---------- прочие блоки ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.step__title {
  font-size: 16px;
  margin-bottom: 6px;
}

.step__text {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.employer {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #005e96, #0078be);
  color: #eaf2fb;
}

.employer h2 {
  color: #fff;
}

.employer p {
  color: #c6d8ec;
}

.employer__list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.employer__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
}

.employer__list .icon {
  color: #8fc0ef;
  margin-top: 2px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.trust-card__icon {
  color: var(--brand-600);
  margin-bottom: 10px;
}

.trust-card h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.trust-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.trust-card .todo {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--warn);
  background: var(--warn-bg);
  padding: 2px 8px;
  border-radius: 999px;
}

/* FAQ */

.faq {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 18px;
}

.faq details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  transition: transform 0.15s ease;
  color: var(--muted-2);
  width: 18px;
  height: 18px;
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 800px;
}

/* контакты */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-list .icon {
  color: var(--brand-600);
  margin-top: 2px;
}

.contact-list dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.contact-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.contact-value {
  display: block;
  font-size: 15px;
  margin-top: 2px;
}

.contact-list dd {
  margin: 2px 0 0;
  font-size: 15px;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 600px;
  border-radius: var(--radius-lg);
}

@media (max-width: 860px) {
  .map-embed iframe {
    height: 420px;
  }
}

.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(45deg, #eef3fa, #eef3fa 12px, #f6f9fd 12px, #f6f9fd 24px);
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
  padding: 20px;
}

/* формы */

.form {
  display: grid;
  gap: 14px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
}

.input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(21, 74, 128, 0.14);
}

.input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.input--area {
  min-height: 92px;
  resize: vertical;
}

.field__error {
  font-size: 12.5px;
  color: var(--danger);
}

.field__hint {
  font-size: 12px;
  color: var(--muted-2);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.check input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form__hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted-2);
}

.form-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.form-card__title {
  font-size: 20px;
  margin-bottom: 6px;
}

.form-card__lead {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

/* диалог */

.dialog {
  width: min(640px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.dialog::backdrop {
  background: rgba(10, 26, 45, 0.55);
  backdrop-filter: blur(2px);
}

.dialog__body {
  padding: 26px;
  max-height: calc(100vh - 80px);
  overflow: auto;
}

.dialog__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dialog__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.dialog__title {
  font-size: 22px;
  line-height: 1.3;
  max-width: 520px;
}

.dialog__meta {
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.dialog__success {
  text-align: center;
  padding: 12px 8px 4px;
}

.dialog__check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
}

.dialog__check .icon {
  width: 26px;
  height: 26px;
}

.dialog__success p {
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 12px;
}

.dialog__success .form__actions {
  justify-content: center;
  margin-top: 16px;
}

/* тост */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  transform: translate(-50%, 16px);
  padding: 12px 18px;
  border-radius: 10px;
  background: #7c156b;
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- информационные страницы ---------- */

.prose {
  max-width: 820px;
}

.prose h2 {
  margin: 30px 0 12px;
}

.prose h3 {
  margin: 22px 0 8px;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul {
  padding-left: 22px;
}

.anchor-nav {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.anchor-nav a {
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.anchor-nav a:hover {
  background: var(--brand-50);
  color: var(--brand-600);
  text-decoration: none;
}

.with-aside {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.info-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--brand-100);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}

.note {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--warn-bg);
  border: 1px solid #f2d9b0;
  color: #6b3f0c;
  font-size: 13.5px;
}

.note strong {
  color: #4a2a05;
}

.callout {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
}

.callout h3 {
  margin-bottom: 6px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.news-item__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted-2);
}

.news-item h3 {
  font-size: 17px;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- подвал ---------- */

.footer {
  margin-top: 24px;
  background: #08263c;
  color: #c9d8e8;
  font-size: 14px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding: 46px 24px 34px;
}

.footer__about p {
  margin: 14px 0 0;
}

.footer__note {
  color: #a9bfd6;
  font-size: 13.5px;
  max-width: 320px;
}

.footer__title {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7f9cba;
  font-weight: 700;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a,
.footer__col p {
  color: #c9d8e8;
  margin: 0;
  font-size: 13.5px;
}

.footer__col a:hover {
  color: #fff;
}

.footer__hours {
  color: #8ba6c2 !important;
}

.footer__link {
  margin-top: 4px;
  color: #9fc4ea !important;
}

.footer .logo__name {
  color: #fff;
}

.footer .logo__sub {
  color: #7f9cba;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: #8ba6c2;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__legal a {
  color: #8ba6c2;
}

.footer__legal a:hover {
  color: #fff;
}

/* ---------- адаптив ---------- */

@media (max-width: 1240px) {
  .logo__sub {
    max-width: 160px;
  }
}

@media (max-width: 1120px) {
  .dir-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav__link {
    padding: 7px;
    font-size: 13px;
  }

  .header__cta {
    padding: 0 11px;
    font-size: 13px;
  }
}

@media (max-width: 1200px) {
  .nav__link {
    padding: 6px;
    font-size: 13px;
  }
}

@media (max-width: 1080px) {
  .header__cta {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 0 48px;
  }

  .hero__side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .catalog {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    max-height: none;
    display: none;
  }

  .filters.is-open {
    display: block;
  }

  .filters-mobile-toggle {
    display: inline-flex;
  }

  .program {
    grid-template-columns: 1fr;
  }

  .program__aside {
    position: static;
    display: none;
  }

  .program__head-actions {
    display: flex;
  }

  .dir-hero__grid {
    grid-template-columns: 1fr;
  }

  .prow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-list .prow {
    grid-template-columns: 1fr;
  }

  .prow__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
  }

  .prow__actions {
    flex-direction: row;
  }

  .with-aside {
    grid-template-columns: 1fr;
  }

  .anchor-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
}

@media (max-width: 860px) {
  .topbar__info {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .header__inner {
    flex-wrap: wrap;
    min-height: 64px;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo__sub {
    display: none;
  }

  .header__search {
    display: none;
  }

  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    margin-left: 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 11px 8px;
    font-size: 15px;
  }

  .header__burger {
    display: inline-flex;
  }

  .header__cta {
    display: none;
  }

  .header__actions {
    margin-left: auto;
  }

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

  .type-grid {
    grid-template-columns: 1fr;
  }

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

  .split {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15.5px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 36px 0;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero__search-row {
    flex-direction: column;
    padding: 10px;
  }

  .hero__search-row .btn {
    width: 100%;
  }

  .toolbar-select {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar-select select {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .hero__side {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .hero__stat span {
    font-size: 11.5px;
    line-height: 1.35;
    display: block;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .filters__head {
    position: sticky;
    top: 0;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 20px;
  }

  .employer {
    padding: 24px;
  }

  .dir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dir-card {
    min-height: 0;
    padding: 16px;
    gap: 8px;
  }

  .dir-card__icon {
    width: 36px;
    height: 36px;
  }

  .dir-card__title {
    font-size: 14px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    padding: 34px 16px 24px;
  }

  .logo--footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .logo--footer .logo__sub {
    max-width: 260px;
  }

  .footer__bottom {
    padding: 14px 16px 20px;
  }

  .dialog__body {
    padding: 18px;
  }

  .breadcrumbs ol {
    font-size: 12px;
  }

  .pagination {
    justify-content: center;
  }

  .program__section h2 {
    font-size: 20px;
  }
}

@media print {
  .header,
  .footer,
  .filters,
  .filters-mobile-toggle,
  .view-toggle,
  .breadcrumbs,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
