:root {
  /* ─── Фирменная палитра ТУ УГМК (мягкий оранжевый) ─── */
  --ugmk-orange:       #e08a3c;   /* Основной оранжевый (приглушённый) */
  --ugmk-orange-dark:  #c4752c;   /* Тёмный оранжевый (hover) */
  --ugmk-orange-light: #fcf3e9;   /* Светлый фон */
  --ugmk-navy:         #14315b;   /* Тёмно-синий (текст/акценты) */
  --ugmk-gray:         #5a6b7d;

  /* Основные (имена сохранены для совместимости) */
  --primary:          #e08a3c;
  --primary-hover:    #c4752c;
  --bg-page:          #f6f7f9;
  --bg-surface:       #ffffff;
  --bg-surface-hover: #fcf3e9;
  --text-main:        #1b2733;
  --text-secondary:   #41505f;
  --text-muted:       #6b7a89;
  --border:           #e3e8ee;
  --border-hover:     #e6bc8a;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --container-max: 1200px;
  --header-height: 76px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* ─── Курсоры ───────────────────────────────────────────────────────────────── */
a, button,
.view-toggle button, .calendar-header button, .pagination a, .export-buttons a,
.toggle-title-btn, .methodist-email, .back-link, .per-page-btn, .table-apply-btn,
.scroll-to-top, .btn-share-filter, .clear-search { cursor: pointer; }
.course-card, .field-row, .status-badge, .calendar-day, .filter-group,
.toggle-label, .footer, .modal-content, .courses-table, .courses-table th,
.courses-table td, .calendar-view, .header, .wrapper, .page-section { cursor: default; }

/* ─── Типографика ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.25; color: var(--text-main); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
ul, ol { list-style-position: inside; }
ul li { list-style: disc; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.wrapper > main { flex: 1 1 auto; padding-top: var(--header-height); }
[class*="__container"] { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.page-section { padding: 32px 0 64px; }

/* ─── Шапка ──────────────────────────────────────────────────────────────────── */
:root { --header-height: 64px; }
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-height);
  background: var(--bg-surface); border-bottom: 1px solid var(--border);
  z-index: 100; box-shadow: var(--shadow-sm);
}
.header__container {
  height: 100%; display: flex; align-items: center; gap: 20px;
  max-width: var(--container-max); margin: 0 auto; padding: 0 20px;
}

/* Брендинг: лого + название */
.header__brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.header__brand:hover { text-decoration: none; }
.header__logo { height: 34px; width: auto; }
.header__brand-text {
  display: flex; flex-direction: column; line-height: 1.2;
  border-left: 2px solid var(--border); padding-left: 12px;
}
.header__org  { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.header__dept { font-size: 15px; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; }

/* Навигация */
.main-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.main-nav__link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: all .15s ease; white-space: nowrap;
}
.main-nav__link:hover { background: var(--bg-surface-hover); color: var(--text-main); text-decoration: none; }
.main-nav__link.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(51,62,249,.25);
}
.main-nav__link.active:hover { background: var(--primary-hover); color: #fff; }

/* ─── Переключатель вида ─────────────────────────────────────────────────────── */
.view-toggle {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0 24px;
  padding: 6px; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); width: fit-content;
}
.view-toggle button {
  padding: 10px 18px; background: transparent; border: 1px solid transparent;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  color: var(--text-secondary); transition: all 0.15s ease;
}
.view-toggle button:hover { background: var(--bg-surface-hover); color: var(--text-main); }
.view-toggle button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── Переключатель "только актуальные" ──────────────────────────────────────── */
.toggle-wrapper {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  padding-left: 16px; border-left: 1px solid var(--border);
}
.toggle-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 99px; transition: background .2s; }
.slider::before {
  content: ""; position: absolute; height: 14px; width: 14px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .2s;
}
input:checked + .slider { background: var(--primary); }
input:checked + .slider::before { transform: translateX(16px); }

/* ─── Бейдж счётчика фильтров ───────────────────────────────────────────────── */
.filter-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; background: #fff; color: var(--primary);
  border-radius: 50%; font-size: 11px; font-weight: 700;
  margin-left: 4px; line-height: 1;
}
.btn-filter .filter-count-badge { background: rgba(255,255,255,0.9); }

/* ─── Панель фильтров (sticky) ───────────────────────────────────────────────── */
.filters-sort-block {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; margin: 0 0 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  position: sticky; top: calc(var(--header-height) + 8px); z-index: 90;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 180px; flex: 1; }
.filter-group label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.filter-group select, .filter-group input {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-surface); font-size: 13px; font-weight: 500; color: var(--text-main); width: 100%;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.filter-group select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.filter-group select:hover { border-color: var(--border-hover); }
.filter-group select:focus, .filter-group input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(51, 62, 249, 0.1);
}
.filter-active-hint { color: var(--text-muted); display: block; margin-top: 4px; font-size: 12px; }

/* ─── Счётчик результатов ────────────────────────────────────────────────────── */
.results-count {
  margin: -8px 0 16px; font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.results-count strong { color: var(--text-main); }
.search-highlight { color: var(--text-secondary); }
.clear-search {
  font-size: 12px; color: var(--text-muted); background: var(--bg-surface-hover);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px 8px;
  display: inline-flex; align-items: center; transition: all .15s;
}
.clear-search:hover { color: var(--text-main); border-color: var(--border-hover); text-decoration: none; }

/* ─── Карточки курсов ───────────────────────────────────────────────────────── */
.courses-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.course-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.course-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.course-card h3 { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 0; }
.course-card h3 a { color: var(--primary); text-decoration: none; display: block; }
.course-card h3 a:hover { color: var(--primary-hover); text-decoration: underline; }
.course-title-collapsible { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-title-collapsible.expanded { -webkit-line-clamp: unset; display: block; }
.toggle-title-btn { background: none; border: none; color: var(--primary); font-size: 12px; font-weight: 500; padding: 2px 0; display: none; }
.toggle-title-btn.visible { display: inline-block; }
.field-row {
  display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0;
  border-bottom: 1px dashed var(--border); font-size: 13px;
}
.field-row:last-child { border-bottom: none; }
.field-label { color: var(--text-muted); font-weight: 500; min-width: 110px; }
.field-value { color: var(--text-main); font-weight: 500; text-align: right; }
.date-range { display: inline-flex; gap: 4px; align-items: center; font-weight: 500; color: var(--text-main); }

/* ─── Кнопка "Подать заявку" (карточка) ─────────────────────────────────────── */
.card-apply-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 14px 24px;
  background: var(--primary); color: #fff; border: 2px solid var(--primary);
  border-radius: var(--radius-md); font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; font-family: inherit;
  margin-top: 4px; transition: all 0.2s ease;
}
.card-apply-btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.card-apply-btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

/* ─── Бейджи статуса ─────────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  line-height: 1.4; width: fit-content;
}
.status-badge.applying  { background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe; }
.status-badge.closed    { background: #f8fafc; color: var(--text-muted); border: 1px solid var(--border); }
.status-badge.finished  { background: #f1f5f9; color: var(--text-muted); border: 1px solid var(--border); }
button.status-badge.applying { cursor: pointer; font-family: inherit; }
button.status-badge.applying:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── Таблица ────────────────────────────────────────────────────────────────── */
.courses-table-container {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow-x: auto; box-shadow: var(--shadow-sm);
  /* Показывает тень при горизонтальном скролле */
  background: linear-gradient(to right, var(--bg-surface) 30%, rgba(255,255,255,0)) left/30px 100%,
              linear-gradient(to right, rgba(255,255,255,0), var(--bg-surface) 70%) right/30px 100%,
              radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.12), transparent) left/14px 100%,
              radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.12), transparent) right/14px 100%;
  background-repeat: no-repeat;
  background-color: var(--bg-surface);
  background-attachment: local, local, scroll, scroll;
}
.table-scroll-hint {
  display: none; text-align: center; font-size: 12px; color: var(--text-muted);
  padding: 6px; background: var(--bg-surface-hover);
  border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.courses-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.courses-table th, .courses-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); word-wrap: break-word; overflow-wrap: break-word; }
.courses-table th:nth-child(1), .courses-table td:nth-child(1) { width: 35%; }
.courses-table th:nth-child(2), .courses-table td:nth-child(2) { width: 14%; }
.courses-table th:nth-child(3), .courses-table td:nth-child(3) { width: 12%; }
.courses-table th:nth-child(4), .courses-table td:nth-child(4) { width: 12%; }
.courses-table th:nth-child(5), .courses-table td:nth-child(5) { width: 14%; }
.courses-table th:nth-child(6), .courses-table td:nth-child(6) { width: 13%; }
.courses-table th { background: var(--bg-surface-hover); font-weight: 600; color: var(--text-secondary); position: sticky; top: 0; z-index: 10; }
.courses-table tbody tr:hover { background: var(--bg-surface-hover); }
.courses-table td a { font-weight: 500; color: var(--primary); }
.table-format-hint { color: var(--text-muted); font-size: 12px; }
.table-apply-btn {
  display: inline-flex; align-items: center; padding: 6px 14px;
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 12px; cursor: pointer; font-family: inherit;
  transition: all 0.2s ease; white-space: nowrap;
}
.table-apply-btn:hover { background: var(--primary-hover); text-decoration: none; }

/* ─── Пустое состояние ───────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 20px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.empty-icon  { font-size: 36px; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-sub   { font-size: 13px; color: var(--text-muted); }

/* ─── Календарь ──────────────────────────────────────────────────────────────── */
.calendar-view {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calendar-header button {
  padding: 6px 12px; background: var(--bg-surface-hover); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
}
.calendar-header button:hover { background: var(--border); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 12px; }
.calendar-day-header { padding: 8px; font-weight: 600; color: var(--text-muted); text-align: center; }
.calendar-day { min-height: 80px; padding: 6px; border: 1px solid var(--border); background: var(--bg-surface); position: relative; }
.calendar-day:hover { border-color: var(--primary); background: var(--bg-surface-hover); }
.calendar-day.other-month { background: var(--bg-surface-hover); color: var(--text-muted); }
.calendar-day-number { font-weight: 600; margin-bottom: 4px; display: block; }
.calendar-event {
  display: block; background: #eff6ff; color: var(--primary); padding: 2px 4px; border-radius: 2px;
  margin: 2px 0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-left: 2px solid var(--primary);
}
.calendar-empty {
  text-align: center; padding: 24px; color: var(--text-muted);
  font-size: 14px; margin-top: 12px; border-top: 1px dashed var(--border);
}

/* ─── Страница курса ──────────────────────────────────────────────────────────── */
.course-detail-wrapper { max-width: 960px; margin: 0 auto; }
.course-detail-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-md);
}

/* Хлебные крошки */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: 14px; color: var(--text-muted);
}
.breadcrumb-sep { color: var(--border-hover); }
.breadcrumb-current { color: var(--text-secondary); }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--text-secondary); }
.back-link:hover { color: var(--primary); text-decoration: none; }

.course-detail-title { font-size: 26px; font-weight: 700; color: var(--primary); margin-bottom: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.course-detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.course-detail .field-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--bg-surface-hover); font-size: 14px; }
.course-detail .field-row:last-of-type { border-bottom: none; }
.course-detail .field-label { color: var(--text-muted); font-weight: 600; min-width: 160px; }
.course-detail .field-value { color: var(--text-main); font-weight: 500; text-align: right; max-width: 70%; }

/* ─── Даты курса — цифры чуть крупнее ───────────────────────────────────── */
.date-num { font-size: 17px; font-weight: 700; }
.course-detail-description { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.course-detail-description h4 { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--text-main); }
.course-detail-description p { color: var(--text-secondary); line-height: 1.65; font-size: 14px; }
.metodist-value { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.metodist-name { font-weight: 500; color: var(--text-main); }
.methodist-email { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); text-decoration: none; font-weight: 500; font-size: 14px; width: fit-content; }
.methodist-email:hover { opacity: .85; text-decoration: underline; }
.methodist-email svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--primary); fill: none; }

/* ─── Пагинация ──────────────────────────────────────────────────────────────── */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; align-items: center; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--text-secondary); background: var(--bg-surface); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
/* ─── Per-page селектор ──────────────────────────────────────────────────── */
.per-page-selector {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-top: 16px; width: 100%; padding: 8px 0;
}
.per-page-selector label {
  font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: nowrap;
}
.per-page-options {
  display: inline-flex; gap: 2px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 99px; padding: 3px; box-shadow: var(--shadow-sm);
}
.per-page-btn {
  min-width: 40px; padding: 7px 14px; border: none; border-radius: 99px;
  background: transparent; color: var(--text-secondary); font-weight: 600;
  font-size: 13px; cursor: pointer; transition: all 0.18s ease; font-family: inherit;
  line-height: 1;
}
.per-page-btn:hover {
  background: var(--bg-surface-hover); color: var(--text-main);
}
.per-page-btn.active {
  background: var(--primary); color: #fff; box-shadow: 0 2px 6px rgba(51, 62, 249, 0.25);
}
.per-page-btn.active:hover { background: var(--primary-hover); color: #fff; }

/* ─── Кнопки экспорта ────────────────────────────────────────────────────────── */
.export-buttons { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; margin-bottom: 8px; }
.export-buttons a { padding: 11px 22px; background: var(--text-main); color: #fff; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; transition: all 0.2s ease; }
.export-buttons a:hover { background: #1e293b; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ─── Модальные окна ─────────────────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--bg-surface); padding: 24px; border-radius: var(--radius-lg); max-width: 480px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,.2); position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; }
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--text-main); }
.modal-text { color: var(--text-secondary); line-height: 1.5; }

/* ─── Loading overlay ────────────────────────────────────────────────────────── */
.loading-overlay { display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.95); z-index: 9999; justify-content: center; align-items: center; }
.loading-overlay.active { display: flex; }
.loading-spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top: 3px solid var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Кнопки действий курса ──────────────────────────────────────────────────── */
.course-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
  background: var(--primary); color: #fff; border: 2px solid var(--primary);
  border-radius: var(--radius-md); font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; transition: all 0.2s ease;
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-primary-sm { padding: 10px 24px; font-size: 14px; border-width: 2px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
  background: var(--bg-surface); color: var(--primary); border: 2px solid var(--primary);
  border-radius: var(--radius-md); font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; transition: all 0.2s ease;
}
.btn-secondary:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary:active { transform: translateY(0); }
.btn-icon { width: 16px; height: 16px; margin-right: 6px; flex-shrink: 0; stroke: var(--primary); fill: none; }

/* ─── E-learning чекбокс ─────────────────────────────────────────────────────── */
/* E-learning badge (страница курса и список) */
.elearn-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600;
}
.elearn-badge--yes {
  background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0;
}
.elearn-badge--no {
  background: var(--bg-surface-hover); color: var(--text-muted); border: 1px solid var(--border);
}

/* ─── Кнопка "написать методисту" ───────────────────────────────────────────── */
.btn-write-metodist { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; background: var(--primary); color: #fff; border-radius: var(--radius-md); font-weight: 600; font-size: 13px; text-decoration: none; transition: all 0.2s ease; margin-top: 4px; box-shadow: 0 2px 6px rgba(240,127,26,.25); }
.btn-write-metodist:hover { background: var(--primary-hover); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(240,127,26,.35); }
.btn-write-metodist svg { width: 16px; height: 16px; stroke: #fff; fill: none; flex-shrink: 0; }
.btn-write-metodist:hover svg { stroke: #fff; }

/* ─── Боковая панель фильтров ───────────────────────────────────────────────── */
.filter-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: .3s; z-index: 1000; }
.filter-overlay.active { opacity: 1; visibility: visible; }
.filter-sidebar { position: fixed; top: 0; right: -340px; width: 320px; height: 100vh; background: #fff; box-shadow: -4px 0 12px rgba(0,0,0,.15); padding: 20px; overflow-y: auto; transition: .3s; z-index: 1001; }
.filter-sidebar.active { right: 0; }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.filter-close { background: none; border: none; font-size: 28px; cursor: pointer; color: #666; }
.filter-input, .filter-select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; box-sizing: border-box; font-family: inherit;
  background: var(--bg-surface); color: var(--text-main);
  transition: border-color .15s, box-shadow .15s;
}
.filter-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.filter-input:hover, .filter-select:hover { border-color: var(--border-hover); }
.filter-input:focus, .filter-select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(51, 62, 249, 0.1);
}
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 220px; overflow-y: auto; z-index: 10; display: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  margin-top: -1px;
}
.autocomplete-item {
  padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--bg-surface-hover);
  font-size: 14px; color: var(--text-main);
  transition: background .1s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.active {
  background: #eff6ff; color: var(--primary);
}
.autocomplete-item strong { color: var(--primary); font-weight: 700; background: #fef3c7; padding: 0 1px; border-radius: 2px; }
.date-range { display: flex; flex-direction: column; gap: 8px; }
.date-range input { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.checkbox-group { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 0; }
.checkbox-group input { width: 18px; height: 18px; cursor: pointer; }
.filter-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }
.btn-apply { flex: 1; padding: 10px; background: var(--primary); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 500; font-family: inherit; }
.btn-apply:hover { background: var(--primary-hover); }
.btn-reset { flex: 1; padding: 10px; background: #f1f3f5; color: #333; border: none; border-radius: 4px; cursor: pointer; font-family: inherit; }
.btn-reset:hover { background: #e2e5e8; }
.btn-filter { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; background: var(--bg-surface); border: 2px solid var(--primary); border-radius: 99px; color: var(--primary); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; white-space: nowrap; font-family: inherit; }
.btn-filter:hover { background: var(--primary); color: #fff; }
.btn-filter:hover svg { stroke: #fff; }
.btn-filter:hover .filter-count-badge { color: var(--primary); }
.btn-filter svg { width: 18px; height: 18px; stroke: var(--primary); fill: none; transition: stroke .2s; }

/* ─── Кнопка "Поделиться фильтром" ─────────────────────────────────────────── */
.btn-share-filter {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  background: transparent; color: var(--text-muted); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit; width: 100%; justify-content: center;
  transition: all .15s;
}
.btn-share-filter:hover { color: var(--primary); border-color: var(--primary); background: #eff6ff; }

/* ─── Scroll to top ──────────────────────────────────────────────────────────── */
.scroll-to-top {
  position: fixed; bottom: 28px; right: 24px; z-index: 500;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.scroll-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-to-top:hover { background: var(--primary-hover); }

/* ─── Тост-уведомления ───────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--text-main); color: #fff; padding: 12px 20px;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 500;
  z-index: 9000; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s; max-width: calc(100vw - 40px);
}
.toast.toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: #dc2626; }

/* ─── Подвал ─────────────────────────────────────────────────────────────────── */
.footer { background: var(--bg-surface-hover); color: var(--text-muted); text-align: center; padding: 24px 20px; border-top: 1px solid var(--border); font-size: 13px; margin-top: auto; }

/* ─── Адаптив ────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header__title { font-size: 16px; }
  .filters-sort-block { position: static; }
  .courses-list { grid-template-columns: 1fr; }
  .course-detail-card { padding: 20px; }
  .course-detail-title { font-size: 20px; }
  .course-detail .field-row { flex-direction: column; gap: 6px; padding: 10px 0; }
  .course-detail .field-label { min-width: auto; font-size: 12px; }
  .course-detail .field-value { text-align: left; max-width: 100%; }
  .pagination, .export-buttons, .view-toggle { flex-direction: column; align-items: stretch; }
  .toggle-wrapper { margin-left: 0; padding-left: 0; border-left: none; margin-top: 8px; }
  .course-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; width: 100%; }
  .card-apply-btn { width: 100%; }
  .filter-sidebar { width: 100%; right: -100%; }
  /* Скрываем второстепенные колонки таблицы на мобиле */
  .col-hide-mobile { display: none; }
  .table-scroll-hint { display: block; }
  /* Фиксированные ширины таблицы для мобила */
  .courses-table { table-layout: auto; min-width: 500px; }
  .scroll-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 16px; }
  .breadcrumb { flex-wrap: wrap; }
  .toast { white-space: normal; text-align: center; }
}

@media (max-width: 480px) {
  .calendar-grid { font-size: 10px; }
  .calendar-day { min-height: 56px; padding: 4px; }
  .calendar-event { font-size: 10px; }
  .view-toggle { width: 100%; }
  .view-toggle button { flex: 1; text-align: center; padding: 10px 8px; }
}

/* ─── Доступность ───────────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (hover: none) {
  .course-card:hover, .calendar-day:hover, .courses-table tbody tr:hover {
    border-color: var(--border); box-shadow: var(--shadow-sm); background: var(--bg-surface);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* ─── СТРАНИЦЫ КОНТАКТОВ И ГРАФИКОВ ─────────────────────────────────────── */
/* ───────────────────────────────────────────────────────────────────────── */

.contacts-wrapper { max-width: 960px; margin: 0 auto; }

/* Заголовок страницы */
.page-header { margin-bottom: 28px; }
.page-header__title {
  font-size: 28px; font-weight: 700; color: var(--text-main);
  margin-bottom: 6px; letter-spacing: -0.02em;
}
.page-header__sub { color: var(--text-muted); font-size: 15px; }

/* Блок реквизитов отдела */
.dept-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 36px;
}
.dept-card__col { padding: 24px 28px; }
.dept-card__col:first-child { border-right: 1px solid var(--border); }
.dept-info-item {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 18px;
}
.dept-info-item:last-child { margin-bottom: 0; }
.dept-info-item__icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: #eff6ff; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.dept-info-item__icon svg { width: 18px; height: 18px; color: var(--primary); }
.dept-info-item__label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 2px;
}
.dept-info-item__val { font-size: 14px; font-weight: 500; color: var(--text-main); line-height: 1.4; }
.dept-info-item__val a { color: var(--primary); }
.dept-info-item__val a:hover { text-decoration: underline; }

/* Секции */
.contacts-section { margin-bottom: 40px; }
.contacts-section__title {
  font-size: 20px; font-weight: 700; color: var(--text-main);
  margin-bottom: 16px; letter-spacing: -0.01em;
}

/* ─── Карточки сотрудников ──────────────────────────────────────────────── */
.staff-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.staff-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .15s, box-shadow .15s;
}
.staff-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.staff-card__avatar-wrap { flex-shrink: 0; }
/* SVG-аватар и img одинаковые стили */
.staff-avatar {
  border-radius: 50%;
  display: block; flex-shrink: 0;
}
.staff-avatar--photo { object-fit: cover; }
.staff-card__info { flex: 1; min-width: 0; }
.staff-card__name  { font-weight: 700; font-size: 15px; color: var(--text-main); margin-bottom: 4px; line-height: 1.25; }
.staff-card__pos   { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }
.staff-card__contacts { display: flex; flex-direction: column; gap: 6px; }
.staff-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--primary);
  text-decoration: none; word-break: break-all;
}
.staff-card__link:hover { text-decoration: underline; }
.staff-card__link svg { flex-shrink: 0; }

/* ─── Файлы графиков ────────────────────────────────────────────────────── */
.files-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
}
.file-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 18px;
  text-decoration: none; color: inherit; transition: all .15s ease;
}
.file-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-md);
  transform: translateY(-1px); text-decoration: none;
}
.file-card--unavailable {
  opacity: 0.55; cursor: default;
}
.file-card__icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.file-card__body { flex: 1; min-width: 0; }
.file-card__title { font-weight: 600; font-size: 14px; color: var(--text-main); margin-bottom: 5px; line-height: 1.3; }
.file-card__meta  { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-muted); }
.file-card__tag   { background: #eff6ff; color: var(--primary); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.file-card__missing { color: #dc2626; font-weight: 500; }
.file-card__arrow { flex-shrink: 0; color: var(--text-muted); transition: color .15s, transform .15s; }
.file-card:hover .file-card__arrow { color: var(--primary); transform: translateY(2px); }

/* Уведомление о синхронизации */
.sync-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  padding: 9px 14px; background: #f0fdf4; color: #15803d;
  border: 1px solid #bbf7d0; border-radius: var(--radius-md); font-size: 13px;
}
.sync-note--warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* Адаптив */
@media (max-width: 768px) {
  /* Navbar */
  .header__container { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 10px; }
  :root { --header-height: 112px; }
  .header__brand-text { display: none; }
  .main-nav { width: 100%; justify-content: center; }
  .main-nav__link { padding: 7px 14px; font-size: 13px; }
  /* Content */
  .page-header__title { font-size: 22px; }
  .dept-card { grid-template-columns: 1fr; }
  .dept-card__col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .staff-grid, .files-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .main-nav__link { padding: 6px 10px; font-size: 12px; }
}
/* ══════════════════════════════════════════════════════════════════════════════
   ТЕМА ТУ УГМК (оранжевый брендинг) + НОВЫЕ КОМПОНЕНТЫ
   ══════════════════════════════════════════════════════════════════════════════ */

/* ─── Шапка: фирменная оранжевая полоса ─── */
.header { border-bottom: 3px solid var(--ugmk-orange); }
.header__dept { color: var(--ugmk-orange); }
.main-nav__link.active {
  background: var(--ugmk-orange); color: #fff;
  box-shadow: 0 2px 8px rgba(240,127,26,.3);
}
.main-nav__link.active:hover { background: var(--ugmk-orange-dark); color: #fff; }

/* ─── Footer ─── */
.footer {
  background: var(--ugmk-navy); color: rgba(255,255,255,.72);
  text-align: center; padding: 20px 24px; font-size: 12.5px;
  border-top: 3px solid var(--ugmk-orange);
}

/* ─── Заголовок страницы с акцентной полосой ─── */
.page-header { border-left: 4px solid var(--ugmk-orange); padding-left: 16px; }
.page-header__title { color: var(--ugmk-navy); }

/* ══════════════════════════════════════════════════════════════════════════════
   БАННЕР АНОНСА — всплывающее окно по центру экрана
   ══════════════════════════════════════════════════════════════════════════════ */
/* ─── Inline-баннер (полоса вверху страницы расписания) ─── */
.inline-banner {
  background: linear-gradient(120deg, #14315b 0%, #1d4276 60%, #245089 100%);
  color: #fff; border-bottom: 3px solid var(--ugmk-orange);
  margin-top: var(--header-height);
}
/* Когда есть inline-баннер: main не добавляет повторный отступ под шапку */
.wrapper--has-inline-banner > main { padding-top: 0; }
.inline-banner__container {
  max-width: var(--container-max); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 20px;
}
.inline-banner__img-link { flex-shrink: 0; display: block; }
.inline-banner__img {
  width: 120px; height: 76px; object-fit: cover; border-radius: var(--radius-md);
  border: 2px solid rgba(255,255,255,.2); display: block;
}
.inline-banner__content { flex: 1; min-width: 0; }
.inline-banner__label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ugmk-orange); margin-bottom: 4px;
}
.inline-banner__title { font-size: 17px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.inline-banner__text { font-size: 13px; opacity: .85; line-height: 1.5; }
.inline-banner__actions { flex-shrink: 0; }
.inline-banner__btn {
  display: inline-flex; align-items: center; padding: 9px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; background: var(--ugmk-orange); color: #fff;
  text-decoration: none; border: 2px solid var(--ugmk-orange); transition: all .15s; white-space: nowrap;
}
.inline-banner__btn:hover { background: var(--ugmk-orange-dark); border-color: var(--ugmk-orange-dark); color: #fff; text-decoration: none; }
@media (max-width: 768px) {
  .inline-banner__container { flex-wrap: wrap; gap: 14px; padding: 14px 16px; }
  .inline-banner__img { width: 80px; height: 54px; }
  .inline-banner__text { display: none; }
  .inline-banner__content { flex: 1 1 auto; }
  .inline-banner__actions { width: 100%; }
  .inline-banner__btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   БАННЕР АНОНСА — всплывающее окно по центру экрана
   ══════════════════════════════════════════════════════════════════════════════ */
.banner-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease;
}
.banner-modal.open { opacity: 1; visibility: visible; }
.banner-modal__backdrop {
  position: absolute; inset: 0; background: rgba(20, 49, 91, .55);
  backdrop-filter: blur(2px);
}
.banner-modal__window {
  position: relative; z-index: 1; width: 100%; max-width: 460px; margin: auto;
  background: var(--bg-surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  transform: translateY(16px) scale(.97); transition: transform .28s ease;
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.banner-modal.open .banner-modal__window { transform: translateY(0) scale(1); }
.banner-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.4); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.banner-modal__close:hover { background: rgba(0,0,0,.65); }
.banner-modal__img-link { display: block; }
.banner-modal__img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  background: linear-gradient(135deg, var(--ugmk-orange), var(--ugmk-orange-dark));
}
.banner-modal__body { padding: 22px 24px 24px; }
.banner-modal__label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ugmk-orange); margin-bottom: 8px;
}
.banner-modal__title {
  font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ugmk-navy); margin-bottom: 10px;
}
.banner-modal__text {
  font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 18px;
}
.banner-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.banner-modal__btn {
  display: inline-flex; align-items: center; padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; background: var(--ugmk-orange); color: #fff;
  text-decoration: none; border: 2px solid var(--ugmk-orange); transition: all .15s;
}
.banner-modal__btn:hover { background: var(--ugmk-orange-dark); border-color: var(--ugmk-orange-dark); color: #fff; text-decoration: none; }
.banner-modal__btn--outline { background: transparent; color: var(--ugmk-navy); border-color: var(--border); }
.banner-modal__btn--outline:hover { background: var(--bg-page); border-color: var(--ugmk-navy); color: var(--ugmk-navy); }
@media (max-width: 480px) {
  .banner-modal__window { max-width: 100%; }
  .banner-modal__actions { flex-direction: column; }
  .banner-modal__btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   СТРАНИЦА АНОНСОВ — сетка карточек
   ══════════════════════════════════════════════════════════════════════════════ */
.announcements-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; margin-top: 28px; justify-content: start;
}
.announce-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s; text-decoration: none; color: inherit;
  max-width: 460px;
}
.announce-card:hover {
  border-color: var(--ugmk-orange); box-shadow: var(--shadow-md);
  transform: translateY(-3px); text-decoration: none; color: inherit;
}
.announce-card__img-wrap {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--ugmk-orange) 0%, var(--ugmk-orange-dark) 100%);
}
.announce-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.announce-card:hover .announce-card__img { transform: scale(1.05); }
.announce-card__img-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.92); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.announce-card__body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; gap: 11px; }
.announce-card__meta { display: flex; align-items: center; gap: 8px; }
.announce-card__badge {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--ugmk-orange); color: #fff;
}
.announce-card__date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.announce-card__title { font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ugmk-navy); margin: 0; }
.announce-card__text { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.announce-card__footer {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; align-items: center;
}
.announce-card__read-more {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ugmk-orange); display: inline-flex; align-items: center; gap: 5px;
}
.announce-card:hover .announce-card__read-more { color: var(--ugmk-orange-dark); gap: 8px; }

/* ══════════════════════════════════════════════════════════════════════════════
   СТРАНИЦА ОДНОГО АНОНСА
   ══════════════════════════════════════════════════════════════════════════════ */
.announcement-detail { max-width: 860px; }
.announcement-detail__hero {
  width: 100%; aspect-ratio: 16/7; overflow: hidden; margin-bottom: 28px;
  border-radius: var(--radius-lg); background: var(--ugmk-orange-light);
}
.announcement-detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.announcement-detail__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.announcement-detail__badge {
  display: inline-block; padding: 4px 14px; border-radius: 99px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--ugmk-orange); color: #fff;
}
.announcement-detail__date { font-size: 13px; color: var(--text-muted); }
.announcement-detail__lead {
  font-size: 17px; line-height: 1.6; color: var(--text-secondary);
  font-weight: 500; margin-bottom: 20px; padding-left: 16px;
  border-left: 3px solid var(--ugmk-orange);
}
.announcement-detail__title {
  font-size: 28px; font-weight: 700; color: var(--ugmk-navy); line-height: 1.2; margin-bottom: 20px;
}
.announcement-detail__body { font-size: 15px; line-height: 1.8; color: var(--text-main); margin-bottom: 28px; }
.announcement-detail__body p { margin-bottom: 1em; }
.announcement-detail__body h2, .announcement-detail__body h3 { color: var(--ugmk-navy); margin: 1.4em 0 .5em; }
.announcement-detail__body ul, .announcement-detail__body ol { margin: 0 0 1em 1.4em; }
.announcement-detail__body li { margin-bottom: .4em; }
.announcement-detail__body img { border-radius: var(--radius-md); margin: 1em 0; max-width: 100%; }
.announcement-detail__body a { color: var(--ugmk-orange); }
.announcement-detail__images {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-bottom: 28px;
}
.announcement-detail__images img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md);
  border: 1px solid var(--border); cursor: zoom-in; transition: opacity .15s;
}
.announcement-detail__images img:hover { opacity: .85; }
.announcement-detail__cta {
  padding: 22px 26px; background: var(--ugmk-orange-light);
  border-left: 4px solid var(--ugmk-orange); border-radius: var(--radius-md); margin-top: 24px;
}
.announcement-detail__cta-btn {
  display: inline-block; margin-top: 12px; padding: 11px 26px; border-radius: var(--radius-sm);
  background: var(--ugmk-orange); color: #fff; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none; transition: background .15s;
}
.announcement-detail__cta-btn:hover { background: var(--ugmk-orange-dark); text-decoration: none; color: #fff; }

/* ─── Адаптив для новых блоков ─── */
@media (max-width: 768px) {
  .announcements-grid { grid-template-columns: 1fr; }
  .announcement-detail__title { font-size: 21px; }
}
