/* ===== УТИЛИТЫ ШАПКИ ===== */
.header__tools {
    position: relative;
    flex-shrink: 0;
}

.header__utilities {
    display: flex;
    align-items: center;
    gap: 6px;
}

.utility-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.utility-btn:hover,
.utility-btn--active {
    background: rgba(255,255,255,0.25);
}

.utility-btn__icon {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.utility-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    padding: 16px;
    z-index: 300;
}

.utility-panel__title {
    font-size: 14px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 12px;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form__input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e8eaf6;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    min-width: 0;
}

.search-form__input:focus {
    outline: none;
    border-color: #1a237e;
}

.search-form__btn {
    padding: 10px 16px;
    background: #1a237e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.search-results {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.search-results__link {
    display: block;
    padding: 10px 8px;
    text-decoration: none;
    border-radius: 6px;
    color: inherit;
}

.search-results__link:hover {
    background: #e8eaf6;
}

.search-results__title {
    display: block;
    font-weight: 600;
    color: #1a237e;
    font-size: 14px;
}

.search-results__section {
    display: block;
    font-size: 12px;
    color: #888;
}

.search-results__empty {
    padding: 12px 8px;
    color: #888;
    font-size: 14px;
}

.translate-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.translate-list__btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    color: #2c3e50;
}

.utility-panel__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5c6bc0;
    margin: 12px 0 8px;
}

.utility-panel__label:first-of-type {
    margin-top: 0;
}

.utility-panel--a11y {
    min-width: 320px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
}

.gtranslate_wrapper {
    min-width: 220px;
}

.gtranslate_wrapper a,
.gtranslate_wrapper .glink,
.gtranslate_wrapper .nturl {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: #2c3e50;
    text-decoration: none;
    box-sizing: border-box;
}

.gtranslate_wrapper a:hover,
.gtranslate_wrapper .glink:hover,
.gtranslate_wrapper .nturl:hover {
    background: #e8eaf6;
    color: #1a237e;
}

.gtranslate_wrapper select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e8eaf6;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1a237e;
    background: #fff;
}

.utility-panel--translate .gt_selector {
    width: 100%;
}

.translate-list__btn--active {
    background: #e8eaf6;
    color: #1a237e;
}

/* ===== СРОЧНЫЕ ОБЪЯВЛЕНИЯ ===== */
.announcement-bar {
    background: linear-gradient(90deg, #ff6f00, #ff8f00);
    color: #fff;
    padding: 12px 0;
    position: relative;
    z-index: 101;
}

.announcement-bar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.announcement__item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.announcement__badge {
    background: rgba(0,0,0,0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement__text {
    font-size: 15px;
    font-weight: 500;
}

.announcement__link {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 4px;
}

/* ===== ПОДВАЛ (тёмно-серый, баннеры внутри) ===== */
.footer {
    background: #2d2d2d;
    color: #e0e0e0;
    padding: 0 0 40px;
    margin-top: 30px;
}

.footer .container {
    padding-top: 32px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.footer__map {
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    clip-path: inset(0 round 16px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    min-height: 250px;
}

.footer__map iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: block;
    border: 0;
    border-radius: 0;
}

.footer__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.footer__contacts h3,
.footer__info h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.footer__contacts h3::after,
.footer__social-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #64b5f6;
    margin-top: 10px;
    border-radius: 2px;
}

.footer__info p {
    margin-bottom: 10px;
    font-size: 15px;
}

.footer__info a {
    color: #90caf9;
    text-decoration: none;
}

.footer__info a:hover {
    text-decoration: underline;
}

.footer__social-title {
    margin-top: 0 !important;
    margin-bottom: 16px;
}

.footer__social-wrap {
    margin-top: auto;
    padding-top: 20px;
}

.footer__legal {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.85;
}

.footer__legal-links a {
    color: #90caf9;
    text-decoration: none;
}

.footer__legal-links a:hover {
    text-decoration: underline;
}

.footer__copy {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 14px;
    opacity: 0.7;
}

/* ===== КАРУСЕЛЬ БАННЕРОВ В ПОДВАЛЕ ===== */
.footer__carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    background: #383838;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-carousel__viewport {
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.footer-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.footer-carousel__track {
    display: flex;
    gap: 16px;
    padding: 4px 0;
}

.footer-carousel__item {
    flex: 0 0 auto;
    display: block;
    width: 132px;
    height: 132px;
    padding: 8px;
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.footer-carousel__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.footer-carousel__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.footer-carousel__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.footer-carousel__arrow:hover {
    background: rgba(255,255,255,0.2);
}

.footer-carousel__arrow svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* ===== ИКОНКИ СОЦСЕТЕЙ ===== */
.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.social-icon--telegram:hover { background: #229ED9; }
.social-icon--instagram:hover { background: #E4405F; }
.social-icon--youtube:hover { background: #FF0000; }
.social-icon--tiktok:hover { background: #000; }

/* ===== РАСПИСАНИЕ PDF ===== */
.schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.schedule-tab {
    padding: 12px 22px;
    background: #f5f7fa;
    border: 2px solid #e8eaf6;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #1a237e;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.schedule-tab:hover {
    border-color: #1a237e;
}

.schedule-tab--active {
    background: #1a237e;
    border-color: #1a237e;
    color: #fff;
}

.schedule-viewer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.schedule-viewer__frame {
    border: 1px solid #e8eaf6;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f7fa;
    min-height: 480px;
}

.schedule-viewer__iframe {
    width: 100%;
    height: 70vh;
    min-height: 480px;
    border: 0;
    display: block;
}

.schedule-viewer__mobile-hint {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: 12px;
    padding: 0 12px;
}

/* ===== ПРАВОВАЯ ИНФОРМАЦИЯ В ПОДВАЛЕ (legacy override) ===== */

/* ===== АКТУАЛЬНЫЕ ДАННЫЕ (расписание, ход приёма) ===== */
.live-block {
    max-width: 900px;
    margin: 0 auto;
}

.live-block--loading {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-block--loading::after {
    content: 'Загрузка актуальных данных...';
    color: #888;
    font-size: 16px;
}

.live-block__updated {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}

.live-block__notice {
    text-align: center;
    padding: 24px;
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-radius: 8px;
    color: #5d4037;
    font-size: 16px;
}

.schedule-group {
    margin-bottom: 20px;
    border: 1px solid #e8eaf6;
    border-radius: 10px;
    overflow: hidden;
}

.schedule-group__title {
    padding: 16px 20px;
    background: #1a237e;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.schedule-day {
    padding: 16px 20px;
    border-top: 1px solid #e8eaf6;
}

.schedule-day__title {
    font-size: 16px;
    color: #1a237e;
    margin-bottom: 12px;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 480px;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    border: 1px solid #e8eaf6;
    text-align: left;
}

.data-table th {
    background: #f5f7fa;
    color: #1a237e;
    font-weight: 600;
}

.data-table--nums {
    min-width: 0;
}

.data-table--nums th:not(:first-child) {
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    max-width: 7.5em;
}

.data-table--nums td:not(:first-child) {
    text-align: center;
    white-space: nowrap;
}


.admission-flow-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
}

.admission-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 12px;
    background: #f5f7fa;
    border-radius: 10px;
    border-left: 4px solid #1a237e;
}

.admission-step__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #1a237e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.admission-step__body p {
    margin-top: 6px;
    color: #555;
}

.no-cache-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ===== КОНТЕНТНЫЕ БЛОКИ ===== */
.content-block {
    max-width: 900px;
    margin: 0 auto;
}

.content-block p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: #333;
}

.content-block strong {
    color: #1a237e;
}

.content-block ul {
    margin: 0 0 16px 24px;
    line-height: 1.8;
}

.content-block::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== ФОТО В ТЕКСТЕ СТРАНИЦ (шаблон) =====
   Обтекание:  <img class="article-photo article-photo--wrap" src="..." alt="...">
   Галерея:    <div class="article-photos"> … </div>
   Ряд из N:   <div class="article-photos__row" style="--cols: 2"> … </div>
   Одно фото:  <img> внутри .article-photos (не в ряду)
*/
.article-photo--wrap {
    float: left;
    width: min(240px, 42%);
    height: auto;
    margin: 4px 20px 12px 0;
}

.article-photos {
    clear: both;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.article-photos img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.article-photos__row {
    display: grid;
    grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.article-photos__row img {
    width: 100%;
    height: auto;
    margin-inline: 0;
}

@media (max-width: 640px) {
    .article-photo--wrap {
        float: none;
        display: block;
        width: min(200px, 70%);
        margin: 0 auto 16px;
    }

    .article-photos__row {
        grid-template-columns: 1fr;
    }
}

.iframe-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 24px 0;
}

.iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.iframe-wrap--panorama {
    padding-bottom: 71.43%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.tour-building {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: #1a237e;
    text-align: center;
}

.tour-credit {
    max-width: 960px;
    margin: 8px auto 0;
    font-size: 13px;
    text-align: center;
}

.tour-credit a {
    color: #1a237e;
}

.banner-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #1a237e 0%, #42a5f5 50%, #0d47a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.banner-placeholder__text {
    font-size: clamp(18px, 4vw, 28px);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 800px;
    line-height: 1.4;
}

.news-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.news-list__item {
    padding: 20px 0;
    border-bottom: 1px solid #e8eaf6;
}

.news-list__date {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.news-list__title {
    font-size: 18px;
    color: #1a237e;
    font-weight: 600;
}

/* ===== ЗАГОЛОВКИ РАЗДЕЛОВ ===== */
.page-title::after {
    display: none;
}

.page-subtitle {
    display: none;
}

.page-title {
    margin-bottom: 28px;
}

.wip-plaque {
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 24px;
    text-align: center;
    background: #fff8e1;
    border: 2px solid #ffb300;
    border-radius: 12px;
}

.wip-plaque__label {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 12px;
    background: #ff6f00;
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wip-plaque__text {
    margin: 0;
    color: #5d4037;
    font-size: 16px;
    line-height: 1.5;
}

/* ===== РЕЖИМ ДЛЯ СЛАБОВИДЯЩИХ ===== */
html[data-a11y-font="medium"] {
    zoom: 1.2;
}

html[data-a11y-font="large"] {
    zoom: 1.45;
}

html[data-a11y="invert"] body {
    filter: invert(1) hue-rotate(180deg);
}

html[data-a11y="gray"] body {
    filter: grayscale(1) contrast(1.15);
}

html[data-a11y="protanopia"] body {
    filter: url("#a11y-protanopia");
}

html[data-a11y="deuteranopia"] body {
    filter: url("#a11y-deuteranopia");
}

html[data-a11y="contrast"] body {
    background: #000 !important;
    color: #fff !important;
}

html[data-a11y="contrast"] .page-section,
html[data-a11y="contrast"] section,
html[data-a11y="contrast"] .about-college,
html[data-a11y="contrast"] .header,
html[data-a11y="contrast"] .footer,
html[data-a11y="contrast"] .nav__dropdown {
    background: #000 !important;
    color: #fff !important;
}

html[data-a11y="contrast"] .page-title,
html[data-a11y="contrast"] .about-title,
html[data-a11y="contrast"] h1,
html[data-a11y="contrast"] h2,
html[data-a11y="contrast"] h3,
html[data-a11y="contrast"] a {
    color: #fff !important;
    text-decoration: underline;
}

html[data-a11y="contrast"] .header {
    border-bottom: 3px solid #fff;
}

html[data-a11y="contrast"] .footer {
    border-top: 3px solid #fff;
}

html[data-a11y="contrast"] .btn--blue,
html[data-a11y="contrast"] .utility-btn {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff;
}

html[data-a11y="contrast"] .utility-btn__icon {
    fill: #000;
}

body.a11y-mode {
    font-size: 20px;
    line-height: 1.8;
    background: #000 !important;
    color: #fff !important;
}

body.a11y-mode,
body.a11y-mode .page-content,
body.a11y-mode .page-section,
body.a11y-mode .content-block,
body.a11y-mode .about-college,
body.a11y-mode .about-text,
body.a11y-mode .news-list__item,
body.a11y-mode .news-list__link,
body.a11y-mode .news-article,
body.a11y-mode .news-article__content {
    background: #000 !important;
    color: #ff0 !important;
}

html[data-a11y="yellow"] .page-content *:not(img):not(svg):not(iframe):not(video):not(path),
html[data-a11y="yellow"] .about-college *:not(img):not(svg):not(iframe):not(video):not(path) {
    color: #ff0 !important;
}

body.a11y-mode p,
body.a11y-mode li,
body.a11y-mode span,
body.a11y-mode td,
body.a11y-mode th,
body.a11y-mode .content-block p,
body.a11y-mode .content-block li,
body.a11y-mode .content-block strong,
body.a11y-mode .about-text p,
body.a11y-mode .news-list__date,
body.a11y-mode .news-list__title,
body.a11y-mode .news-list__excerpt,
body.a11y-mode .news-article__date,
body.a11y-mode .news-article__title,
body.a11y-mode .news-article__content,
body.a11y-mode .news-article__content p,
body.a11y-mode .page-title,
body.a11y-mode .about-title,
body.a11y-mode h1,
body.a11y-mode h2,
body.a11y-mode h3,
body.a11y-mode h4 {
    color: #ff0 !important;
    background: transparent !important;
}

body.a11y-mode a {
    color: #0ff !important;
    text-decoration: underline !important;
}

body.a11y-mode .header {
    background: #000 !important;
    border-bottom: 3px solid #ff0;
}

body.a11y-mode .nav__dropdown {
    background: #000 !important;
    border: 2px solid #ff0;
}

body.a11y-mode .nav__sublink {
    color: #fff !important;
    font-size: 18px;
}

body.a11y-mode .footer {
    background: #000 !important;
    border-top: 3px solid #ff0;
}

body.a11y-mode .footer__carousel {
    background: #111 !important;
}

body.a11y-mode .footer-carousel__item {
    border: 2px solid #ff0;
}

body.a11y-mode .home-card,
body.a11y-mode .placeholder-block {
    background: #111 !important;
    border: 2px solid #ff0 !important;
    color: #fff !important;
}

body.a11y-mode .home-card h3 {
    color: #ff0 !important;
}

body.a11y-mode .btn--blue {
    background: #ff0 !important;
    color: #000 !important;
    font-size: 20px;
}

body.a11y-mode .utility-btn {
    border-color: #ff0;
}

body.a11y-mode .announcement-bar {
    background: #ff0 !important;
    color: #000 !important;
}

body.a11y-mode .announcement__link {
    color: #000 !important;
}

/* ===== АДАПТИВ УТИЛИТ ===== */
@media (max-width: 768px) {
    .header__top {
        flex-wrap: wrap;
    }

    .header__utilities {
        order: 2;
    }

    .nav__toggle {
        order: 3;
    }

    .utility-panel {
        right: -10px;
        min-width: calc(100vw - 40px);
        max-width: 320px;
    }

    .announcement__text {
        font-size: 14px;
        text-align: center;
    }

    .footer__info {
        min-height: auto;
    }

    .footer__social-wrap {
        margin-top: 24px;
        padding-top: 0;
    }

    .footer-carousel__item {
        width: 108px;
        height: 108px;
    }

    .schedule-viewer__iframe {
        height: 55vh;
        min-height: 360px;
    }

    .schedule-tab {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
        padding: 14px 12px;
    }
}

@media (max-width: 480px) {
    .utility-btn {
        width: 36px;
        height: 36px;
    }

    .utility-btn__icon {
        width: 18px;
        height: 18px;
    }

    .banner-placeholder {
        height: 180px;
    }
}

/* ===== ГЕРБ В ШАПКЕ ===== */
.header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header__gerb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header__gerb {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 425px) {
    .header__gerb {
        width: 36px;
        height: 36px;
    }
}

/* ===== КАРТОЧКИ С ИЗОБРАЖЕНИЕМ ===== */
.card-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 16px;
}

.card-images {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8eaf6;
    box-shadow: 0 4px 16px rgba(26, 35, 126, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-images:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(26, 35, 126, 0.15);
    border-color: #1a237e;
}

.card-images__image-wrap {
    width: 100%;
    height: 200px;
    background: #f5f7fa;
    overflow: hidden;
}

.card-images__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-images__body {
    padding: 20px 22px 24px;
}

.card-images__code {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #0d47a1;
    background: #e8eaf6;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.card-images__title {
    font-size: 17px;
    font-weight: 600;
    color: #1a237e;
    line-height: 1.45;
    margin: 0;
}

/* ===== КАРТОЧКИ ВАКАНСИЙ ===== */
.vacancy-phone {
    max-width: 900px;
    margin: 0 auto 24px;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    text-align: center;
}

.vacancy-phone a {
    color: #1a237e;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.vacancy-phone a:hover {
    color: #0d47a1;
}

.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
    gap: 20px;
    justify-content: center;
}

.vacancy-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e8eaf6;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(26, 35, 126, 0.08);
}

.vacancy-card__icon-wrap {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eaf6;
    border-radius: 12px;
}

.vacancy-card__icon {
    width: 28px;
    height: 28px;
    display: block;
}

.vacancy-card__body {
    min-width: 0;
}

.vacancy-card__title,
.vacancy-card__req {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #333;
}

.vacancy-card__title {
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 6px;
}

.vacancy-card__req {
    font-size: 14px;
    color: #555;
}

/* ===== КАРТОЧКА ПРЕПОДАВАТЕЛЯ ===== */
.card-teacher-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.card-teacher {
    width: 260px;
    padding: 16px 16px 20px;
    background: #fff;
    border: 1px solid #d7dce8;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(26, 35, 126, 0.06);
}

.card-teacher__photo-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f7fa;
    margin-bottom: 14px;
}

.card-teacher__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.card-teacher__name {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1a237e;
    line-height: 1.35;
    text-align: center;
}

.card-teacher__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

/* ===== СТРАНИЦА СПЕЦИАЛЬНОСТИ ===== */
.specialty-detail {
    max-width: 900px;
    margin: 0 auto;
}

.specialty-detail__image-wrap {
    width: 100%;
    max-height: 360px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
    background: #f5f7fa;
}

.specialty-detail__image {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.content-block:empty {
    display: none;
}

.specialty-detail__content p {
    margin-bottom: 12px;
}

.specialty-detail__content ul,
.specialty-detail__content ol {
    margin: 8px 0 16px 22px;
}

.specialty-detail__content li {
    margin-bottom: 6px;
}

.specialty-detail__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.specialty-detail__gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* ===== ГЛАВНАЯ: ВИДЕО СПРАВА ОТ ТЕКСТА ===== */
.about-wrapper--video {
    align-items: flex-start;
}

.about-video {
    flex: 1;
    min-width: 280px;
}

.iframe-wrap--video {
    margin: 0;
}

@media (max-width: 768px) {
    .card-images-grid {
        grid-template-columns: 1fr;
    }

    .card-images__image-wrap {
        height: 180px;
    }

    .about-wrapper--video {
        flex-direction: column;
    }

    .about-video {
        width: 100%;
    }
}

/* ===== НОВОСТИ И ХЭШТЕГИ ===== */
.news-list__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-list__link:hover .news-list__title {
    color: #0d47a1;
}

.news-list__excerpt {
    font-size: 15px;
    color: #666;
    margin-top: 6px;
    line-height: 1.6;
}

.news-list__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 28px 0 8px;
}

.news-pagination__btn,
.news-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #1a237e;
    background: #e8eaf6;
    border: 1px solid transparent;
}

.news-pagination__btn:hover,
.news-pagination__page:hover {
    background: #c5cae9;
}

.news-pagination__page--current {
    background: #1a237e;
    color: #fff;
}

.news-pagination__btn--disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.employer-block {
    margin: 32px 0;
}

.employer-block__title {
    font-size: 20px;
    color: #1a237e;
    margin: 0 0 12px;
    line-height: 1.4;
}

.employer-block__dates {
    margin: 16px 0 0;
    padding-left: 20px;
}

.employer-block__dates li {
    margin-bottom: 6px;
}

.news-list__empty,
.activity-list__empty {
    text-align: center;
    color: #888;
    padding: 24px;
    font-size: 16px;
    list-style: none;
}

.news-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #1a237e;
    background: #e8eaf6;
    padding: 4px 10px;
    border-radius: 6px;
}

.news-article__date {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
}

.news-article__title {
    text-align: center;
    font-size: 28px;
    color: #1a237e;
    margin-bottom: 16px;
    line-height: 1.35;
}

.news-article__content {
    margin-top: 24px;
}

/* Блок «Наша деятельность» */
.activity-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e8eaf6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.activity-section__title {
    font-size: 24px;
    color: #1a237e;
    margin-bottom: 20px;
    text-align: center;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list__item {
    border-bottom: 1px solid #e8eaf6;
}

.activity-list__link {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: baseline;
    padding: 14px 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
    border-radius: 8px;
}

.activity-list__link:hover {
    background: #f5f7fa;
}

.activity-list__date {
    flex-shrink: 0;
    font-size: 14px;
    color: #888;
    min-width: 100px;
}

.activity-list__title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1a237e;
}

.activity-list__link:hover .activity-list__title {
    color: #0d47a1;
}

/* ===== АДМИН: ГЛАВНАЯ ПАНЕЛЬ ===== */
.admin-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.admin-nav__card {
    display: block;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #1a237e;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}

.admin-nav__card:hover {
    transform: translateY(-3px);
}

.admin-news-form {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.admin-news-form h2 {
    color: #1a237e;
    margin-bottom: 20px;
    font-size: 20px;
}

.admin-field {
    margin-bottom: 16px;
}

.admin-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.admin-field input,
.admin-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e8eaf6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}

.admin-field textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-tags label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e8eaf6;
    font-size: 14px;
}

.admin-table th {
    background: #f5f7fa;
    color: #1a237e;
}

.admin-table__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.admin-btn--primary {
    background: #1a237e;
    color: #fff;
}

.admin-btn--danger {
    background: #c62828;
    color: #fff;
}

.admin-btn--ghost {
    background: #e8eaf6;
    color: #1a237e;
}
