@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");
@import url("lecturers_section.css");

/* Переменные темы */
:root {
    --font-main: "Inter", sans-serif;

    --brand-900: #285C76;
    --brand-700: #40A2A2;
    --brand-500: #5DC896;
    --brand-300: #84E69B;
    --brand-100: #C2F6CA;

    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;

    --radius: 12px;
    --container: 1280px;

    --text-muted-custom: #6B7280;
    --card-soft: #F9FAFB;
    --transition: all 0.2s ease;

    /* Новости на главной */
    --news-section-bg: #FFFFFF;
    --news-card-bg: #F8FAFC;
    --news-date-text-color: #64748B;
    --news-card-badge-text-color: var(--brand-900);
    --news-card-border: var(--border);

    /* Футер */
    --footer-bg: #0F172A;
    --footer-border: #1E293B;
    --footer-text: #F8FAFC;
    --footer-text-muted: #94A3B8;
    --footer-accent: #5DC896;
    --footer-social-bg: #1E293B;
    --footer-link-hover: #5DC896;

    /* Навбар */
    --navbar-height: 80px;
}

/* Тёмная тема */
html.dark {
    --bg: #020617;
    --surface: #0f172a;
    --text: #f8fafc;
    --text-muted: #cbd5e1;
    --border: #1e293b;

    --news-card-bg: #1E293B;
    --news-section-bg: #0F172A;
    --news-date-text-color: #94A3B8;
    --news-card-badge-text-color: var(--brand-300);
    --news-card-border: #334155;

    --academic-tech-panel: #153146;
    --academic-tech__card: #285C76;
}

/* Переходы */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* Сетка-фон для тёмной темы */
.dark .bg-pattern {
    background-image: radial-gradient(rgba(93, 200, 150, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Медиа */
img,
svg,
video {
    max-width: 100%;
    display: block;
}

/* Ссылки и кнопки */
a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* Типографика */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: 1em;
    color: var(--text-muted);
}

/* Универсальный контейнер для секций */
.container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Базовая секция */
.section {
    padding-top: 64px;
    padding-bottom: 64px;
}

/* Базовая карточка */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* Базовая кнопка */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: var(--brand-500);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--brand-700);
}

/* Кнопки как на главной (герой) — переиспользуются на страницах поступления */
.poas-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-width: 13rem;
    padding: 1rem 1.75rem;
    border-radius: 1.25rem;
    border: 2px solid transparent;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-main);
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.poas-hero__button:hover {
    transform: translateY(-2px);
}

.poas-hero__button--primary {
    background: var(--brand-500);
    color: #ffffff;
    box-shadow: 0 18px 35px rgba(93, 200, 150, 0.22);
}

.poas-hero__button--primary:hover {
    background: var(--brand-700);
    color: #ffffff;
    box-shadow: 0 22px 40px rgba(64, 162, 162, 0.26);
}

.poas-hero__button--secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.poas-hero__button--secondary:hover {
    color: var(--text);
    border-color: var(--brand-500);
}

.poas-hero__button-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

html.dark .poas-hero__button--secondary {
    background: var(--footer-border);
    border-color: var(--news-card-border);
    color: #f8fafc;
}

html.dark .poas-hero__button--secondary:hover {
    color: #f8fafc;
}

/* Фокус для доступности */
:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

/* Адаптивность "от себя" */
@media (max-width: 768px) {
    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Базовый каркас страницы */
html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 0.75rem 1rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

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

.content-wrapper {
    flex: 1 0 auto;
    width: 100%;
    padding-top: var(--navbar-height);
}

.poas-container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Navbar */
.poas-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1030;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark .poas-navbar {
    background-color: rgba(15, 23, 42, 0.85);
    border-bottom-color: var(--border);
}

/* Внутренний контейнер и строка */
.poas-navbar__container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.poas-navbar__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    height: var(--navbar-height);
    min-width: 0;
}

/* Логотип */
.poas-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.poas-logo__icon {
    width: 48px;
    height: 48px;
    background-color: var(--brand-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

html.dark .poas-logo__icon {
    background-color: rgba(40, 92, 118, 0.5);
}

.poas-logo__icon img {
    width: 100%;
    height: 100%;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

html.dark .logo-light {
    display: none;
}

html.dark .logo-dark {
    display: block;
}

.poas-logo__texts {
    display: flex;
    flex-direction: column;
}

.poas-logo__title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: var(--brand-900);
}

html.dark .poas-logo__title {
    color: var(--text);
}

.poas-logo__subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-500);
    display: block;
}

/* Навигационное меню */
.poas-nav {
    display: flex;
    align-items: center;
    gap: 60px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.poas-nav__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

html.dark .poas-nav__link {
    color: var(--text);
}

.poas-nav__link:hover {
    color: var(--brand-500);
}

html.dark .poas-nav__link:hover {
    color: var(--brand-500);
}

.poas-nav__link--external,
.poas-mobile-menu__link--external {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.poas-external-icon {
    width: 0.9em;
    height: 0.9em;
    flex-shrink: 0;
    opacity: 0.75;
}

/* Правая часть */
.poas-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Кнопка переключения языка */
.language-list {
    display: contents;
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-item {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-item form {
    display: inline;
    margin: 0;
}

.language-toggle-checkbox {
    display: none;
}

.poas-lang-btn {
    height: 29px;
    min-width: 56px;
    padding: 0 10px;
    border-radius: 10px;
    background-color: var(--brand-500);
    border: none;
    color: var(--surface);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    margin-right: 0;
}

.poas-lang-btn:hover {
    background-color: var(--brand-700);
}

html.dark .poas-lang-btn {
    background-color: var(--brand-500);
    color: #ffffff;
}

html.dark .poas-lang-btn:hover {
    background-color: var(--brand-700);
}

/* Кнопка переключения темы */
.poas-theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #F1F5F9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.poas-theme-btn:hover {
    background-color: var(--brand-100);
    color: var(--brand-700);
}

.poas-theme-btn img {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.icon-sun {
    display: none;
}

.icon-moon {
    display: block;
}

html.dark .icon-sun {
    display: block;
}

html.dark .icon-moon {
    display: none;
}

html.dark .poas-theme-btn {
    background-color: var(--border);
}

html.dark .poas-theme-btn:hover {
    background-color: var(--brand-900);
    border-color: var(--brand-500);
}

html.dark .poas-theme-btn img {
    width: 21px;
    height: 21px;
}

.poas-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}
 
.poas-burger:hover {
    background-color: var(--border);
}
 
.poas-burger__bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
 
html.dark .poas-burger__bar {
    background-color: var(--text);
}
 
/* Десктопное меню — видно только на широких экранах */
.poas-nav--desktop {
    display: flex;
}
 
/* Кнопка «Личный кабинет» — видна только на десктопе */
.poas-profile-btn--desktop {
    display: inline-flex;
}
 
/* Мобильное меню */
.poas-mobile-menu {
    border-top: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
 
html.dark .poas-mobile-menu {
    background-color: rgba(15, 23, 42, 0.97);
}
 
.poas-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 16px 0 8px;
    gap: 4px;
}
 
.poas-mobile-menu__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease;
}
 
.poas-mobile-menu__link:last-child {
    border-bottom: none;
}
 
.poas-mobile-menu__link:hover {
    color: var(--brand-500);
}
 
html.dark .poas-mobile-menu__link {
    color: var(--text);
}
 
html.dark .poas-mobile-menu__link:hover {
    color: var(--brand-500);
}
 
.poas-mobile-menu__footer {
    padding: 12px 0 20px;
}

/* Личный кабинет */
.poas-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-500);
    color: #fff !important;
    padding: 0 20px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow:
        0 10px 15px -3px rgba(93, 200, 150, 0.30),
        0 4px 6px -4px rgba(93, 200, 150, 0.30);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.poas-profile-btn:hover {
    background-color: var(--brand-700);
    transform: translateY(-1px);
    color: #fff !important;
}

html.dark .poas-profile-btn {
    box-shadow: none;
}

html.dark .poas-profile-btn:hover {
    box-shadow: none;
}

/* Текстовый логотип партнёра (если нет изображения) */
.poas-partner-wordmark {
    position: relative;
    display: inline-block;
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: var(--text-muted);
    white-space: nowrap;
    padding-bottom: 6px;
    transition: color 0.25s ease;
}

.poas-partner-wordmark::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-900) 0%, var(--brand-700) 45%, var(--brand-500) 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

a:hover .poas-partner-wordmark,
a:focus-visible .poas-partner-wordmark {
    color: var(--brand-900);
}

a:hover .poas-partner-wordmark::after,
a:focus-visible .poas-partner-wordmark::after {
    transform: scaleX(1);
}

html.dark a:hover .poas-partner-wordmark,
html.dark a:focus-visible .poas-partner-wordmark {
    color: var(--brand-300);
}

html.dark .poas-partner-wordmark {
    color: rgba(226, 232, 240, 0.82);
}

/*  АДАПТИВНОСТЬ НАВБАРА  */

@media (max-width: 1280px) {
    .poas-nav {
        gap: 28px;
    }
}

@media (max-width: 1100px) {
    .poas-nav {
        gap: 14px;
    }

    .poas-nav__link {
        font-size: 13px;
    }

    .poas-profile-btn--desktop {
        padding: 0 14px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .poas-nav--desktop {
        display: none;
    }

    .poas-profile-btn--desktop {
        display: none !important;
    }

    .poas-burger {
        display: flex;
    }

    .poas-actions {
        gap: 10px;
    }

    .poas-lang-btn {
        min-width: 48px;
        height: 36px;
        font-size: 13px;
    }

    .poas-theme-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .poas-logo__texts {
        display: none;
    }

    .poas-logo__icon {
        width: 40px;
        height: 40px;
    }

    .poas-actions {
        gap: 8px;
    }

    .poas-lang-btn {
        min-width: 44px;
        height: 32px;
        padding: 0 8px;
    }

    .poas-theme-btn {
        width: 32px;
        height: 32px;
    }
}

/* Блок новостей */
.news-section {
    padding: 3rem 0;
    background-color: var(--news-section-bg);
}

.news-section__container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.news-section__header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.news-section__title {
    margin-bottom: 1rem;
    font-size: calc(1.375rem + 1.2vw);
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-900);
}

html.dark .news-section__title {
    color: var(--text);
}

.news-section__subtitle {
    margin-bottom: 0;
    color: var(--text-muted);
}

html.dark .news-section__subtitle {
    color: #94A3B8;
}

.news-section__all-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-500);
    font-weight: 700;
    text-decoration: none;
    align-self: flex-end;
}

.news-section__all-link:hover {
    color: var(--brand-700);
    transform: scale(1.03);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.news-section__row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.news-section__icon-sm {
    width: 1rem;
    height: 1rem;
}

.news-card {
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--news-card-bg);
    border: 1px solid var(--news-card-border);
    border-radius: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card__image-wrapper {
    position: relative;
    height: 224px;
    overflow: hidden;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card__image {
    transform: scale(1.05);
}

.news-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--news-card-badge-text-color);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.5rem;
}

.news-card__date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--news-date-text-color);
    font-size: 0.875rem;
}

.news-card__title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: auto;
    padding-bottom: 1.5rem;
}

.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    color: var(--brand-500);
    font-weight: 700;
}

.news-card__link:hover {
    transform: scale(1.03);
    color: var(--brand-700);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 2rem;
    background-color: var(--news-card-bg);
    border: 2px dashed var(--news-card-border);
    border-radius: var(--radius);
}

.news-empty-state__art {
    position: relative;
    width: 48px;
    height: 60px;
    margin-bottom: 1rem;
    background-color: transparent;
    border: 2.5px solid var(--brand-500);
    border-radius: 6px;
    padding: 12px 6px 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.6;
}

.news-empty-state__art-line {
    height: 3px;
    background-color: var(--brand-500);
    border-radius: 2px;
}

.news-empty-state__art-line.long {
    width: 100%;
}

.news-empty-state__art-line.medium {
    width: 75%;
}

.news-empty-state__art-line.short {
    width: 40%;
}

.news-empty-state__title {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* Footer */
.poas-footer {
    background-color: var(--footer-bg);
    font-family: "Inter", "Jost", sans-serif;
    width: 100%;
    margin-top: 0;
    min-height: unset;
    max-height: unset;
    display: block;
    padding: 0;
    grid-row: unset;
    color: var(--footer-text);
}

/* Верхняя часть с сеткой */
.poas-footer__inner {
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--footer-border);
}

/* CSS Grid: 3 колонки на десктопе */
.poas-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px 48px;
    align-items: start;
}

/* Колонка 1 — Бренд */
.poas-footer__col--brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Логотип-ссылка */
.poas-footer__logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--footer-text);
}

/* Зелёный квадрат-иконка */
.poas-footer__logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--footer-accent);
    border-radius: 10px;
    flex-shrink: 0;
}

.poas-footer__logo-img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.poas-footer__logo-name {
    font-size: 18px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--footer-text);
}

/* Описание */
.poas-footer__desc {
    font-size: 14px;
    line-height: 22.8px;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: var(--footer-text-muted);
    margin: 0;
    max-width: 300px;
}

/* Соцсети */
.poas-footer__socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.poas-footer__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--footer-social-bg);
    border: 1px solid var(--footer-border);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.poas-footer__social-btn img {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) saturate(100%) invert(68%) sepia(10%) saturate(500%) hue-rotate(180deg) brightness(95%) contrast(90%);
    transition: filter 0.25s ease;
}

.poas-footer__social-btn:hover {
    background-color: var(--footer-accent);
    border-color: var(--footer-accent);
    transform: translateY(-2px);
}

.poas-footer__social-btn:hover img {
    filter: brightness(0) invert(1);
}

.poas-footer__social-btn--grape img {
    filter: none;
    width: 24px;
    height: 24px;
}

.poas-footer__social-btn--grape:hover img {
    filter: none;
    transform: scale(1.05);
}

/* Заголовки колонок Абитуриентам / Контакты */
.poas-footer__col-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--footer-text);
    margin: 0 0 20px;
}

/* Навигационный список */
.poas-footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.poas-footer__nav-link {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.poas-footer__nav-link:hover {
    color: var(--footer-link-hover);
    padding-left: 4px;
}

/* Список контактов */
.poas-footer__contacts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poas-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.poas-footer__contact-icon {
    flex-shrink: 0;
    margin-top: 1px;
    display: block;
    filter: invert(71%) sepia(35%) saturate(541%) hue-rotate(101deg) brightness(91%) contrast(92%);
}

.poas-footer__contact-text {
    font-size: 14px;
    line-height: 20px;
    font-style: normal;
    color: var(--footer-text-muted);
}

.poas-footer__contact-link {
    text-decoration: none;
    color: var(--footer-text-muted);
    transition: color 0.2s ease;
}

.poas-footer__contact-link:hover {
    color: var(--footer-link-hover);
}

@media (max-width: 480px) {
    .poas-footer__nav-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .poas-footer__contact-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .poas-footer__contact-item {
        align-items: center;
    }
}

/* Нижняя панель */
.poas-footer__bottom {
    background-color: var(--footer-bg);
    padding: 20px 0;
}

.poas-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.poas-footer__copyright {
    font-size: 14px;
    line-height: 20px;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: var(--footer-text-muted);
}

.poas-footer__policy-link {
    font-size: 14px;
    line-height: 20px;
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.poas-footer__policy-link:hover {
    color: var(--footer-link-hover);
}

.poas-footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.poas-footer__contact-item:nth-child(2) {
    margin-bottom: 8px;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .poas-nav-menu {
        display: none;
    }

    .poas-burger-container {
        display: flex;
    }

    .poas-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Адаптивность футера — мобильный */
@media (max-width: 600px) {
    .poas-footer__inner {
        padding: 40px 0 32px;
    }

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

    .poas-footer__col--brand {
        grid-column: auto;
    }

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

/* СТРАНИЦА: Подготовка к поступлению */

.preparation-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    font-family: var(--font-main);
    box-sizing: border-box;
    color: var(--text);
}

/* Навигация */
.preparation-page .education-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.preparation-page .nav-tab {
    padding: 0.65rem 1.6rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-muted);
    background: #F1F5F9;
    border: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    min-width: 186px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html.dark .preparation-page .nav-tab {
    background: var(--surface);
    color: var(--text);
}

.preparation-page .nav-tab:hover:not(.active) {
    background: var(--border);
}

html.dark .preparation-page .nav-tab:hover:not(.active) {
    background: var(--border);
}

.preparation-page .nav-tab.active {
    background: var(--brand-500);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(93, 200, 150, 0.35);
}

html.dark .preparation-page .nav-tab.active {
    background: var(--brand-500);
    box-shadow: none;
}

/* Основной контейнер */
.preparation-page .preparation-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
}

/* Карточка слева */
.preparation-page .preparation-info {
    background: var(--surface);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

html.dark .preparation-page .preparation-info {
    border-color: transparent;
    box-shadow: none;
}

/* Заголовок "Начни заранее" */
.preparation-page .preparation-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

/* Описание */
.preparation-page .preparation-description {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

/* Список элементов */
.preparation-page .preparation-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.preparation-page .prep-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Иконки */
.preparation-page .prep-icon {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    background: #E9EBEE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

html.dark .preparation-page .prep-icon {
    background: var(--border);
    color: #ffffff;
}

.preparation-page .prep-icon svg {
    width: 28px;
    height: auto;
}

html.dark .preparation-page .prep-item:nth-child(1) .prep-icon svg path {
    fill: #ffffff;
}

html.dark .preparation-page .prep-item:nth-child(2) .prep-icon svg path {
    stroke: #ffffff;
}

/* Заголовок элемента */
.preparation-page .prep-item-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 6px 0;
    line-height: 24px;
}

/* Текст элемента */
.preparation-page .prep-item-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    line-height: 16px;
}

/* Кнопка "Записаться" */
.preparation-page .btn-signup {
    align-self: flex-start;
    margin-top: 8px;
    padding: 12px 32px;
    background: var(--brand-500);
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
    transition: 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.preparation-page .btn-signup:hover {
    background: var(--brand-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 200, 150, 0.3);
}

html.dark .preparation-page .btn-signup:hover {
    box-shadow: none;
}

/* Кнопки «Презентация» и «Буклет» (страницы поступления) */
.applicant-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.applicant-downloads .poas-hero__button {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0.65rem 1.4rem;
    border-radius: 0.75rem;
    border-width: 1px;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.applicant-downloads .poas-hero__button-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.preparation-page .applicant-downloads {
    align-self: flex-start;
    margin-top: 8px;
}

.magistracy-page .applicant-downloads,
.postgraduate-page .applicant-downloads {
    width: 100%;
    margin-top: auto;
    padding-top: 0.5rem;
}

.bachelor-page .applicant-downloads {
    margin-top: 1rem;
}

@media (max-width: 576px) {
    .applicant-downloads {
        flex-direction: column;
        width: 100%;
    }

    .applicant-downloads .poas-hero__button {
        width: 100%;
        min-width: 0;
    }
}

.applicant-downloads__empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Изображение справа */
.preparation-page .preparation-image {
    position: relative;
}

.preparation-page .preparation-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
    display: block;
}

/* Адаптивность */
@media (max-width: 968px) {
    .preparation-page .preparation-content {
        grid-template-columns: 1fr;
    }

    .preparation-page .preparation-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .preparation-page .preparation-title {
        font-size: 28px;
    }
}

@media (max-width: 860px) {
    .preparation-page .nav-tab {
        min-width: 140px;
        height: 50px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .preparation-page {
        padding: 1rem 0.5rem 3rem;
    }

    .preparation-page .nav-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
        height: auto;
    }

    .preparation-page .preparation-info {
        padding: 24px;
    }

    .preparation-page .prep-icon {
        width: 50px;
        height: 50px;
    }

    .preparation-page .prep-item-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .preparation-page .education-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .preparation-page .nav-tab {
        min-width: auto;
        padding: 0.5rem 0.8rem;
        font-size: 13px;
        height: 48px;
    }
}

/* СТРАНИЦА: Бакалавриат */

.bachelor-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    font-family: var(--font-main);
    box-sizing: border-box;
    color: var(--text);
}

/* Навигация */
.bachelor-page .education-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.bachelor-page .nav-tab {
    padding: 0.65rem 1.6rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-muted);
    background: #F1F5F9;
    border: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    min-width: 186px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html.dark .bachelor-page .nav-tab {
    background: var(--surface);
    color: var(--text);
}

.bachelor-page .nav-tab:hover:not(.active) {
    background: var(--border);
}

html.dark .bachelor-page .nav-tab:hover:not(.active) {
    background: var(--border);
}

.bachelor-page .nav-tab.active {
    background: var(--brand-500);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(93, 200, 150, 0.35);
}

html.dark .bachelor-page .nav-tab.active {
    background: var(--brand-500);
    box-shadow: none;
}

/* Основная сетка */
.bachelor-page .bachelor-content {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

/* Левая колонка */
.bachelor-page .bachelor-info {
    background: var(--surface);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.bachelor-page .bachelor-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 32px 0;
    line-height: 1.2;
}

.bachelor-page .bachelor-section {
    margin-bottom: 32px;
}

.bachelor-page .bachelor-section:last-child {
    margin-bottom: 0;
}

.bachelor-page .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px 0;
    line-height: 1.25;
}

/* Списки */
.bachelor-page .skills-list,
.bachelor-page .disciplines-list,
.bachelor-page .admission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Чему вы научитесь */
.bachelor-page .skills-list li {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.bachelor-page .skills-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-500);
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
}

/* Дисциплины */
.bachelor-page .disciplines-list li {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.bachelor-page .disciplines-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--text);
    font-size: 19px;
    font-weight: bold;
    line-height: 1;
}

/* Правая колонка */
.bachelor-page .bachelor-sidebar {
    display: flex;
    flex-direction: column;
}

.bachelor-page .sidebar-section {
    background: rgba(64, 162, 162, 0.15);
    padding: 40px 24px;
    border-radius: 24px;
    border: 1px solid var(--brand-500);
    display: flex;
    flex-direction: column;
}

html.dark .bachelor-page .sidebar-section {
    background: rgba(64, 162, 162, 0.20);
    border-color: rgba(132, 230, 155, 0.30);
}

.bachelor-page .sidebar-title,
.bachelor-page .admission-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 24px 0;
    text-align: center;
}

.bachelor-page .sidebar-divider {
    height: 1px;
    background: var(--brand-500);
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    opacity: 0.5;
    margin-bottom: 32px;
}

/* Профессии */
.bachelor-page .professions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.bachelor-page .profession-item {
    background: var(--brand-500);
    color: #FFFFFF;
    padding: 14px 12px;
    border-radius: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

/* Поступление */
.bachelor-page .admission-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bachelor-page .admission-item {
    margin-bottom: 32px;
}

.bachelor-page .admission-item:last-child {
    margin-bottom: 0;
}

.bachelor-page .admission-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
    text-align: left;
}

.bachelor-page .admission-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bachelor-page .admission-list li {
    font-size: 15px;
    color: var(--text-muted);
    position: relative;
    padding-left: 16px;
    line-height: 1.4;
    text-align: left;
}

.bachelor-page .admission-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.bachelor-page .admission-list a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--text);
    text-underline-offset: 3px;
    transition: var(--transition);
}

.bachelor-page .admission-list a:hover {
    color: var(--brand-500);
    text-decoration-color: var(--brand-500);
}

/* Адаптивность */
@media (max-width: 968px) {
    .bachelor-page .bachelor-content {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .bachelor-page .sidebar-section {
        order: 2;
    }
}

@media (max-width: 860px) {
    .bachelor-page .nav-tab {
        min-width: 140px;
        height: 50px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .bachelor-page {
        padding: 1rem 0.5rem 3rem;
    }

    .bachelor-page .nav-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
        height: auto;
    }

    .bachelor-page .bachelor-info,
    .bachelor-page .sidebar-section {
        padding: 24px;
    }

    .bachelor-page .sidebar-divider {
        width: calc(100% + 48px);
        margin-left: -24px;
    }

    .bachelor-page .bachelor-title {
        font-size: 24px;
    }

    .bachelor-page .section-title {
        font-size: 20px;
    }

    .bachelor-page .disciplines-list li {
        font-size: 16px;
    }

    .bachelor-page .profession-item {
        font-size: 13px;
        min-height: 48px;
    }

    .bachelor-page .professions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bachelor-page .education-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .bachelor-page .nav-tab {
        min-width: auto;
        padding: 0.5rem 0.8rem;
        font-size: 13px;
        height: 48px;
    }
}

/* СТРАНИЦА: Магистратура */

.magistracy-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    font-family: var(--font-main);
    box-sizing: border-box;
    color: var(--text);
}

/* Навигация */
.magistracy-page .education-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.magistracy-page .nav-tab {
    padding: 0.65rem 1.6rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-muted);
    background: #F1F5F9;
    border: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    transition: 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
    min-width: 186px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html.dark .magistracy-page .nav-tab {
    background: var(--surface);
    color: var(--text);
}

.magistracy-page .nav-tab:hover:not(.active) {
    background: var(--border);
}

html.dark .magistracy-page .nav-tab:hover:not(.active) {
    background: var(--border);
}

.magistracy-page .nav-tab.active {
    background: var(--brand-500);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(93, 200, 150, 0.35);
}

html.dark .magistracy-page .nav-tab.active {
    background: var(--brand-500);
    box-shadow: none;
}

/* Основная сетка */
.magistracy-page .magistracy-content {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

/* Левая колонка */
.magistracy-page .magistracy-info {
    background: var(--surface);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.magistracy-page .magistracy-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.magistracy-page .magistracy-description {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.magistracy-page .magistracy-section {
    margin-bottom: 28px;
}

.magistracy-page .magistracy-section:last-child {
    margin-bottom: 0;
}

/* Заголовки секций */
.magistracy-page .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Списки с точками */
.magistracy-page .dot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.magistracy-page .dot-list li {
    font-size: 15px;
    color: var(--text-muted);
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.magistracy-page .dot-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* Теги профессий */
.magistracy-page .profession-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.magistracy-page .tag {
    background: #F1F5F9;
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

html.dark .magistracy-page .tag {
    background: var(--border);
}

/* Правая колонка */
.magistracy-page .magistracy-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.magistracy-page .sidebar-section {
    background: rgba(64, 162, 162, 0.15);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--brand-500);
    display: flex;
    flex-direction: column;
    height: 100%;
}

html.dark .magistracy-page .sidebar-section {
    background: rgba(64, 162, 162, 0.20);
    border-color: rgba(132, 230, 155, 0.30);
}

/* Заголовки в правой колонке */
.magistracy-page .sidebar-title,
.magistracy-page .sidebar-subtitle,
.magistracy-page .admission-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.magistracy-page .sidebar-section .dot-list,
.magistracy-page .sidebar-section .admission-list {
    margin-bottom: 24px;
}

.magistracy-page .sidebar-section>*:last-child {
    margin-bottom: 0;
}

/* Списки в правой колонке */
.magistracy-page .admission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.magistracy-page .admission-list li {
    font-size: 15px;
    color: var(--text-muted);
    position: relative;
    padding-left: 16px;
    line-height: 1.4;
    text-align: left;
}

/* Точки для списков в правой колонке */
.magistracy-page .admission-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* Ссылки */
.magistracy-page .admission-list a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--text);
    text-underline-offset: 3px;
    transition: var(--transition);
}

.magistracy-page .admission-list a:hover {
    color: var(--brand-500);
    text-decoration-color: var(--brand-500);
}

/* Кнопка */
.magistracy-page .btn-apply {
    width: 100%;
    padding: 14px 24px;
    background: var(--brand-500);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: auto;
}

.magistracy-page .btn-apply:hover {
    background: var(--brand-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 200, 150, 0.3);
}

html.dark .magistracy-page .btn-apply:hover {
    box-shadow: none;
}

/* Адаптивность */
@media (max-width: 968px) {
    .magistracy-page .magistracy-content {
        grid-template-columns: 1fr;
    }

    .magistracy-page .magistracy-sidebar {
        order: 2;
    }
}

@media (max-width: 860px) {
    .magistracy-page .nav-tab {
        min-width: 140px;
        height: 50px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .magistracy-page {
        padding: 1rem 0.5rem 3rem;
    }

    .magistracy-page .nav-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
        height: auto;
    }

    .magistracy-page .magistracy-info,
    .magistracy-page .sidebar-section {
        padding: 24px;
    }

    .magistracy-page .magistracy-title {
        font-size: 22px;
    }

    .magistracy-page .section-title,
    .magistracy-page .sidebar-title {
        font-size: 16px;
    }

    .magistracy-page .profession-tags {
        gap: 6px;
    }

    .magistracy-page .tag {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .magistracy-page .education-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .magistracy-page .nav-tab {
        min-width: auto;
        padding: 0.5rem 0.8rem;
        font-size: 13px;
        height: 48px;
    }
}

/* СТРАНИЦА: Аспирантура */

.postgraduate-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    font-family: var(--font-main);
    box-sizing: border-box;
    color: var(--text);
}

/* Навигация */
.postgraduate-page .education-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.postgraduate-page .nav-tab {
    padding: 0.65rem 1.6rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-muted);
    background: #F1F5F9;
    border: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    transition: 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
    min-width: 186px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html.dark .postgraduate-page .nav-tab {
    background: var(--surface);
    color: var(--text);
}

.postgraduate-page .nav-tab:hover:not(.active) {
    background: var(--border);
}

html.dark .postgraduate-page .nav-tab:hover:not(.active) {
    background: var(--border);
}

.postgraduate-page .nav-tab.active {
    background: var(--brand-500);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(93, 200, 150, 0.35);
}

html.dark .postgraduate-page .nav-tab.active {
    background: var(--brand-500);
    box-shadow: none;
}

/* Основная сетка (2 колонки после удаления блока преподавателей) */
.postgraduate-page .postgraduate-content {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 32px;
    align-items: stretch;
}

/* Левая колонка */
.postgraduate-page .postgraduate-info {
    background: var(--surface);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.postgraduate-page .postgraduate-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.postgraduate-page .postgraduate-description {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.postgraduate-page .career-section {
    margin-bottom: 28px;
}

.postgraduate-page .career-section:last-child {
    margin-bottom: 0;
}

/* Подзаголовки */
.postgraduate-page .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.postgraduate-page .section-text {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Центральная колонка */
.postgraduate-page .postgraduate-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.postgraduate-page .sidebar-section {
    background: rgba(64, 162, 162, 0.15);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--brand-500);
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

html.dark .postgraduate-page .sidebar-section {
    background: rgba(64, 162, 162, 0.20);
    border-color: rgba(132, 230, 155, 0.30);
}

/* Заголовки */
.postgraduate-page .sidebar-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 30px 0 30px 0;
    line-height: 1.3;
}

.postgraduate-page .sidebar-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 50px 0 30px 0;
    line-height: 1.3;
}

/* Списки с точками */
.postgraduate-page .dot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.postgraduate-page .dot-list li {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Точки */
.postgraduate-page .dot-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* Кнопка */
.postgraduate-page .btn-apply {
    width: 100%;
    padding: 18px 24px;
    background: var(--brand-500);
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: auto;
}

.postgraduate-page .btn-apply:hover {
    background: var(--brand-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 200, 150, 0.3);
}

html.dark .postgraduate-page .btn-apply:hover {
    box-shadow: none;
}

/* Правая колонка */
.postgraduate-page .professors-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    height: 100%;
}

.postgraduate-page .professor-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex: 1;
}

.postgraduate-page .professor-header {
    display: flex;
    align-items: center;
    gap: 13px;
}

/* Аватар */
.postgraduate-page .professor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--brand-500);
    flex-shrink: 0;
    background-color: var(--surface);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Фото */
.postgraduate-page .professor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.postgraduate-page .professor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Имя */
.postgraduate-page .professor-name {
    font-size: 12px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.2;
}

/* Профессия */
.postgraduate-page .professor-role {
    font-size: 11px;
    font-weight: 400;
    color: var(--brand-500);
    line-height: 1.2;
}

/* Тема */
.postgraduate-page .professor-topic {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.4;
}

.postgraduate-page .topic-label {
    font-weight: 500;
    color: var(--text);
}

/* Адаптивность */
@media (max-width: 900px) {
    .postgraduate-page .postgraduate-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .postgraduate-page .sidebar-section {
        height: auto;
    }

    .postgraduate-page .btn-apply {
        margin-top: 24px;
    }
}

@media (max-width: 860px) {
    .postgraduate-page .nav-tab {
        min-width: 140px;
        height: 50px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .postgraduate-page {
        padding: 1rem 0.5rem 3rem;
    }

    .postgraduate-page .nav-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
        height: auto;
    }

    .postgraduate-page .postgraduate-info,
    .postgraduate-page .sidebar-section {
        padding: 24px;
    }

    .postgraduate-page .sidebar-section {
        margin-bottom: 20px;
    }

    .postgraduate-page .postgraduate-title {
        font-size: 22px;
    }

    .postgraduate-page .sidebar-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .postgraduate-page .education-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .postgraduate-page .nav-tab {
        min-width: auto;
        padding: 0.5rem 0.8rem;
        font-size: 13px;
        height: 48px;
    }
}

/* --- Стили страницы Контакты --- */
.contacts-page {
    background-color: var(--bg);
    color: var(--text);
    padding: 60px 0 40px;
}

.contacts-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
}

.contacts-wrapper {
    display: flex;
    align-items: stretch;
    gap: 32px;
}

.contacts-info-card {
    flex: 1 1 0;
    min-width: 0;
    background-color: rgba(93, 200, 150, 0.05);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

html.dark .contacts-info-card {
    background-color: var(--surface);
    box-shadow: none;
    border-color: var(--border);
}

.contacts-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Кнопки соцсетей */
.contacts-socials {
    display: flex;
    gap: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background-color: rgba(93, 200, 150, 0.15);
    color: var(--brand-700);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    flex: 1;
    transition: 0.25s ease;
}

html.dark .social-btn {
    background-color: rgba(93, 200, 150, 0.1);
    color: var(--brand-500);
}

.social-btn:hover {
    background-color: rgba(93, 200, 150, 0.25);
    transform: translateY(-2px);
}

.social-btn img {
    width: 24px;
    height: 24px;
}

/* Карта */
.contacts-map {
    flex: 1.23 1 0;
    min-width: 0;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    background-color: var(--border);
}

.contacts-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* Адаптивность для мобильных */
@media (max-width: 968px) {
    .contacts-wrapper {
        flex-direction: column;
    }

    .contacts-map {
        min-height: 350px;
    }
}

/* ===== График пересдач (в стиле расписания преподавателей) ===== */

.sched-card--retakes {
    margin-top: 0;
}

.sched-table--retakes {
    min-width: 720px;
}

.sched-retake-date,
.sched-retake-time {
    display: block;
    line-height: 1.35;
}

.sched-retake-date {
    font-weight: 700;
}

.sched-retake-time {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.sched-retake-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background: rgba(148, 163, 184, 0.18);
    color: var(--text-muted);
}

.sched-retake-badge--red {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.sched-retake-badge--wait {
    background: rgba(148, 163, 184, 0.22);
    color: var(--text-muted);
}

.sched-retakes-alert {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(93, 200, 150, 0.12);
    border: 1px solid rgba(93, 200, 150, 0.28);
}

.sched-retakes-alert__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-muted);
}

html.dark .sched-retake-badge--red {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
}

html.dark .sched-retakes-alert {
    background: rgba(93, 200, 150, 0.1);
    border-color: rgba(93, 200, 150, 0.22);
}

/* Страница «Обучение и наука» */

.academic-page {
    padding: 2rem 0 4rem 0;
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    font-family: var(--font-main);
    box-sizing: border-box;
    color: var(--text);
}

/*  Заголовки  */
.academic-page__hero-title {
    margin-bottom: 4rem;
    font-size: calc(2rem + 1.5vw);
    font-weight: 800;
    text-align: center;
    color: var(--text);
}

.academic-page__hero-title span {
    color: var(--brand-500);
}

.academic-section {
    margin-bottom: 5rem;
}

.academic-section__title {
    margin-bottom: 2.5rem;
    font-size: calc(1.5rem + 0.5vw);
    font-weight: 800;
    color: var(--text);
}

/* 01. Образовательный процесс */
.academic-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

/* Таймлайн */
.academic-timeline {
    border-left: 2px dashed var(--brand-500);
    padding-left: 2.5rem;
    margin-left: 1.2rem;
    margin-top: 1rem;
}

.academic-timeline__item {
    position: relative;
    margin-bottom: 3.5rem;
}

.academic-timeline__item:last-child {
    margin-bottom: 0;
}

.academic-timeline__dot {
    position: absolute;
    left: -3.2rem;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--brand-500);
}

.academic-timeline__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.academic-timeline__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Техническое оснащение */
.academic-tech-panel {
    background-color: #EAF5F0;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    padding: 2.5rem;
}

html.dark .academic-tech-panel {
    background-color: var(--academic-tech-panel);
}

.academic-tech__subtitle {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.academic-tech__subtitle--margin {
    margin-top: 2rem;
}

.academic-tech__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.academic-tech__card {
    background-color: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

html.dark .academic-tech__card {
    background-color: var(--academic-tech__card);
}

.academic-tech__card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.academic-tech__card-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

.academic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.academic-tag {
    background-color: var(--surface);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

html.dark .academic-tag {
    background-color: var(--academic-tech__card);
}

/* 02 и 03. Наука и Достижения */
.academic-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.academic-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.academic-card:hover {
    transform: translateY(-4px);
}

.academic-card--center {
    align-items: center;
    text-align: center;
}

/* Специфичный стиль для 3 секции: зеленая левая полоса */
.academic-card--achievement {
    border-left: 6px solid var(--brand-500);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.academic-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: #5BC09A;
    border-radius: 1rem;
    color: #FFFFFF;
}

.academic-card__icon svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    display: block;
}

.academic-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}

.academic-card__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.academic-badge {
    align-self: flex-start;
    background-color: var(--brand-500);
    color: #FFFFFF;
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* --- Баннеры и кнопки --- */
.academic-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #EAF5F0;
    padding: 1.5rem 2.5rem;
    border-radius: 1rem;
    margin-top: 2rem;
}

html.dark .academic-banner {
    background-color: var(--academic-tech-panel);
}

.academic-banner__text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.academic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-500);
    color: #FFFFFF !important;
    padding: 0.8rem 1.8rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.academic-btn:hover {
    background-color: #0e9f6e;
}

/* CTA */
.academic-cta {
    background-color: #18181B;
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 5rem;
}

.academic-cta__title {
    color: #FFFFFF;
    font-size: calc(1.5rem + 0.8vw);
    font-weight: 800;
    margin-bottom: 1rem;
}

.academic-cta__text {
    color: #D4D4D8;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Адаптивность (Mobile) */
@media (max-width: 992px) {

    .academic-grid-2,
    .academic-grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .academic-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .academic-timeline {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }

    .academic-timeline__dot {
        display: none;
    }
}

/* Академическая жизнь — мобильная адаптация шапки */
@media (max-width: 576px) {
    .academic-page {
        padding: 1.5rem 0.75rem 3rem;
    }

    .academic-page__hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 2.25rem;
    }

    .academic-page__hero-title span {
        display: block;
    }

    .academic-section {
        margin-bottom: 3.5rem;
    }

    .academic-section__title {
        font-size: 1.4rem;
        margin-bottom: 1.75rem;
    }
}

@media (max-width: 360px) {
    .academic-page__hero-title {
        font-size: 1.55rem;
    }
}

/* 01. Образовательный процесс — мобильная адаптация блока */
@media (max-width: 768px) {
    .academic-grid-2 {
        gap: 2.5rem;
        min-width: 0;
    }

    .academic-timeline {
        min-width: 0;
    }

    .academic-timeline__item {
        margin-bottom: 2.25rem;
        min-width: 0;
    }

    .academic-timeline__title {
        font-size: 1.1rem;
        overflow-wrap: break-word;
    }

    .academic-timeline__text,
    .academic-tech__card-text {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .academic-tech-panel {
        padding: 1.5rem 1.25rem;
        min-width: 0;
        max-width: 100%;
    }

    .academic-tech__subtitle {
        margin-bottom: 1.25rem;
    }

    .academic-tech__subtitle--margin {
        margin-top: 1.75rem;
    }

    .academic-tech__cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .academic-tech__card {
        min-width: 0;
        max-width: 100%;
        padding: 1.25rem;
    }

    .academic-tech__card-title {
        overflow-wrap: break-word;
    }

    .academic-tags {
        gap: 0.6rem;
    }

    .academic-tag {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }
}

/* СТРАНИЦА: История развития — таймлайн */

/* Секция */
.history-section {
    padding: 64px 0;
    font-family: var(--font-main);
    color: var(--text);
}

/* Двухколоночная раскладка */
.history-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.history-left,
.history-right {
    min-width: 0;
}

/* ЛЕВАЯ КОЛОНКА */

.history-header {
    margin-bottom: 40px;
}

.history-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-900);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.history-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
    max-width: 380px;
}

/* ТАЙМЛАЙН */

.timeline {
    position: relative;
    padding: 0;
}

/* Центральная вертикальная линия */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: var(--brand-500);
    opacity: 0.35;
}

/* Каждый элемент таймлайна */
.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
    min-height: 0;
    pointer-events: none;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Маркер-кружок на линии */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 22px;
    transform: translate(-50%, 0);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-500);
    border: none;
    box-shadow: none;
    z-index: 2;
    flex-shrink: 0;
    pointer-events: auto;
    box-shadow: 0 0 0 2px var(--surface);
}

/* Маркер последнего события*/
.timeline-marker--current {
    background: var(--brand-900);
    box-shadow: 0 0 0 2px var(--brand-900);
}

/* Карточка справа от линии */
.timeline-item--right {
    justify-content: flex-end;
}

.timeline-item--right .timeline-card {
    width: calc(50% - 24px);
    margin-right: auto;
    margin-left: calc(50% + 24px);
}

/* Карточка слева от линии */
.timeline-item--left {
    justify-content: flex-start;
}

.timeline-item--left .timeline-card {
    width: calc(50% - 24px);
    margin-right: calc(50% + 24px);
    margin-left: 0;
}

/* Сама карточка */
.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: 0.25s ease;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    overflow-wrap: break-word;
    word-break: break-word;
}

.timeline-card:hover {
    border-color: var(--brand-500);
    box-shadow: 0 6px 20px rgba(93, 200, 150, 0.08);
    transform: translateY(-2px);
    z-index: 3;
}

html.dark .timeline-card {
    box-shadow: none;
}

/* Строка: заголовок + год */
.timeline-card__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

/* Год — зелёный*/
.timeline-card__year {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-500);
    white-space: nowrap;
    margin-left: auto;
}

/* Заголовок события  */
.timeline-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

/* Описание события */
.timeline-card__text {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ПРАВАЯ КОЛОНКА: картинка */

.history-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: -12px 0 40px rgba(93, 200, 150, 0.25), 0 8px 40px rgba(0, 0, 0, 0.18);
}

.history-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

html.dark .history-image-wrap {
    box-shadow: -16px 0 60px rgba(93, 200, 150, 0.18), 0 8px 48px rgba(0, 0, 0, 0.6);
}

/* АДАПТИВНОСТЬ */

@media (max-width: 1100px) {
    .history-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .history-right {
        order: 2;
    }

    .history-left {
        order: 1;
    }

    .timeline::before {
        left: 10px;
        transform: none;
    }

    .timeline-marker {
        left: 10px;
        top: 22px;
        transform: none;
    }

    .timeline-item--right .timeline-card,
    .timeline-item--left .timeline-card {
        width: calc(100% - 36px);
        margin-left: 36px;
        margin-right: 0;
    }

    .history-title {
        font-size: 26px;
    }

    .history-subtitle {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .history-layout {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .history-section {
        padding: 40px 0;
    }

    .history-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .history-right {
        display: none;
    }
}

/* ===== СТРАНИЦА: Расписание (обложка + таблица из Excel) ===== */

.schedule-hero {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 7rem 0 3rem;
    background:
        radial-gradient(circle at calc(100% - 14rem) 8rem, rgba(132, 230, 155, 0.25), transparent 13rem),
        radial-gradient(circle at 11rem calc(100% - 4rem), rgba(40, 92, 118, 0.14), transparent 11rem);
    background-repeat: no-repeat;
}

html.dark .schedule-hero {
    background:
        radial-gradient(circle at calc(100% - 14rem) 8rem, rgba(93, 200, 150, 0.28), transparent 13rem),
        radial-gradient(circle at 11rem calc(100% - 4rem), rgba(40, 92, 118, 0.3), transparent 11rem);
}

.schedule-hero__container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

.schedule-hero__title {
    margin: 0 0 1rem;
    color: var(--text);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.schedule-hero__accent {
    color: transparent;
    background: linear-gradient(90deg, var(--brand-700), var(--brand-500));
    -webkit-background-clip: text;
    background-clip: text;
}

.schedule-hero__subtitle {
    max-width: 38rem;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
}

.schedule-hero__tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.schedule-hero__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.schedule-hero__pill--active {
    background: var(--brand-500);
    color: #ffffff;
    border-color: var(--brand-500);
    box-shadow: 0 10px 25px rgba(93, 200, 150, 0.25);
}

.sched-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 16px 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sched-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 23px;
    padding: 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.sched-card__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.sched-card__title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
}

.sched-card__updated {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sched-card__actions {
    display: flex;
    gap: 0.75rem;
}

.sched-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.7rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--brand-500);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.sched-btn--ghost {
    background: transparent;
    color: var(--brand-700);
}

.sched-btn--ghost:hover {
    background: rgba(93, 200, 150, 0.12);
}

.sched-btn--primary {
    background: var(--brand-500);
    color: #ffffff;
}

.sched-btn--primary:hover {
    background: var(--brand-700);
    border-color: var(--brand-700);
    transform: translateY(-1px);
}

.sched-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sched-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.sched-table th,
.sched-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
}

.sched-table thead th {
    position: sticky;
    top: 0;
    background: var(--brand-500);
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}

.sched-table thead th:first-child {
    border-top-left-radius: 12px;
}

.sched-table thead th:last-child {
    border-top-right-radius: 12px;
}

.sched-table tbody tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.08);
}

.sched-table tbody tr:hover {
    background: rgba(93, 200, 150, 0.10);
}

.sched-empty {
    padding: 40px 20px;
    text-align: center;
    background: rgba(148, 163, 184, 0.10);
    border-radius: 16px;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
}

/* Тёмная тема: пересдачи используют те же sched-* классы */

/* Адаптив: таблица расписания превращается в карточки-строки */
@media (max-width: 768px) {
    .sched-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .sched-card__top {
        align-items: flex-start;
    }

    .sched-table {
        min-width: 0;
    }

    .sched-table thead {
        display: none;
    }

    .sched-table,
    .sched-table tbody,
    .sched-table tr,
    .sched-table td {
        display: block;
        width: 100%;
    }

    .sched-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
    }

    .sched-table td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        text-align: right;
    }

    .sched-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-muted);
        text-align: left;
    }

    .sched-table td:last-child {
        border-bottom: none;
    }
}

/* ПЕЧАТЬ: только выбранная таблица, без обложки, всегда десктоп */
@media print {
    html,
    html.dark,
    body {
        background: #ffffff !important;
        color: #000000 !important;
        color-scheme: only light;
    }

    .poas-navbar,
    .poas-footer,
    .poas-mobile-menu,
    #theme-toggle,
    .schedule-hero,
    .sched-card__actions {
        display: none !important;
    }

    .content-wrapper {
        padding-top: 0 !important;
    }

    .poas-container,
    .sched-wrap {
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    body[data-print-block="teachers"] .sched-print-target[data-print-target="retakes"],
    body[data-print-block="retakes"] .sched-print-target[data-print-target="teachers"] {
        display: none !important;
    }

    .sched-print-target,
    .sched-print-target * {
        color: #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sched-card,
    .sched-card--retakes {
        box-shadow: none !important;
        border: 1px solid #000000 !important;
        background: #ffffff !important;
        break-inside: avoid;
        padding: 12px !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .sched-card__title {
        font-size: 1.25rem !important;
        color: #000000 !important;
    }

    .sched-card__updated {
        color: #333333 !important;
    }

    .sched-table-scroll {
        overflow: visible !important;
    }

    .sched-table {
        display: table !important;
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: collapse !important;
    }

    .sched-table thead {
        display: table-header-group !important;
    }

    .sched-table tbody {
        display: table-row-group !important;
    }

    .sched-table tr {
        display: table-row !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    .sched-table tbody tr:nth-child(even) {
        background: #f3f4f6 !important;
    }

    .sched-table th,
    .sched-table td {
        display: table-cell !important;
        text-align: left !important;
        width: auto !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
        background: transparent !important;
    }

    .sched-table td::before {
        content: none !important;
        display: none !important;
    }

    .sched-table thead th {
        background: #d1d5db !important;
        color: #000000 !important;
        font-weight: 700 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sched-table--retakes {
        min-width: 0 !important;
    }

    .sched-retake-date,
    .sched-retake-time {
        color: #000000 !important;
    }

    .sched-retake-badge,
    .sched-retake-badge--red,
    .sched-retake-badge--wait {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
        box-shadow: none !important;
    }

    .sched-retakes-alert {
        break-inside: avoid;
        margin-top: 0.75rem !important;
        background: #ffffff !important;
        border: 1px solid #000000 !important;
    }

    .sched-retakes-alert__text {
        color: #000000 !important;
    }

    .sched-empty {
        color: #000000 !important;
        background: #ffffff !important;
        border: 1px solid #000000 !important;
    }
}

/* ===== Хлебные крошки ===== */

.poas-breadcrumbs {
    margin-bottom: 1.25rem;
}

.poas-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.poas-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.poas-breadcrumbs__item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-muted);
    font-weight: 400;
}

.poas-breadcrumbs__link {
    color: var(--brand-700);
    text-decoration: none;
    font-weight: 600;
}

.poas-breadcrumbs__link:hover {
    color: var(--brand-500);
    text-decoration: underline;
}

.poas-breadcrumbs__current {
    color: var(--text-muted);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(100%, 28rem);
}

html.dark .poas-breadcrumbs__link {
    color: var(--brand-500);
}

html.dark .poas-breadcrumbs__link:hover {
    color: var(--brand-100);
}

/* ===== Вход / регистрация / личный кабинет ===== */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - var(--navbar-height) - 4rem);
    padding: 3rem 16px 4rem;
    background:
        radial-gradient(circle at calc(100% - 10rem) 6rem, rgba(132, 230, 155, 0.22), transparent 12rem),
        radial-gradient(circle at 8rem calc(100% - 4rem), rgba(40, 92, 118, 0.12), transparent 10rem);
}

html.dark .auth-page {
    background:
        radial-gradient(circle at calc(100% - 10rem) 6rem, rgba(93, 200, 150, 0.2), transparent 12rem),
        radial-gradient(circle at 8rem calc(100% - 4rem), rgba(40, 92, 118, 0.28), transparent 10rem);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.auth-card--wide {
    max-width: 480px;
}

.auth-card__header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.auth-card__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-form__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
}

.auth-form__loading {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
}

html.dark .auth-form__label {
    color: var(--text-secondary, #94a3b8);
}

.auth-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-input,
.account-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-main);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder {
    color: var(--text-muted);
}

.auth-input:focus,
.account-input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(93, 200, 150, 0.2);
}

html.dark .auth-input,
html.dark .account-input {
    background-color: #0b1220;
}

.auth-form__field-error {
    margin: 0;
    font-size: 0.85rem;
    color: #dc2626;
}

.auth-form__errors {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #b91c1c;
    font-size: 0.9rem;
}

html.dark .auth-form__errors {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}

.auth-form__submit,
.account-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 14px;
    background: var(--brand-500);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.auth-form__submit:hover,
.account-btn:hover {
    background: var(--brand-700);
    transform: translateY(-1px);
}

.auth-card__footer {
    margin: 1.5rem 0 0;
    text-align: center;
}

.auth-card__link {
    color: var(--brand-700);
    font-weight: 600;
    text-decoration: none;
}

html.dark .auth-card__link {
    color: var(--brand-500);
}

.auth-card__link:hover {
    text-decoration: underline;
}

.auth-form__group--checkbox {
    margin-top: 0.25rem;
}

.auth-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text);
}

.auth-form__checkbox-input {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--brand-500);
    cursor: pointer;
}

.auth-form__checkbox-text a {
    color: var(--brand-600, #36a978);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-form__checkbox-text a:hover {
    color: var(--brand-700, #2d8f68);
}

/* Личный кабинет */
.account-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 16px 4rem;
}

.account-page__inner {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.account-page__title {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
}

.account-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 0;
}

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

.account-sidebar__link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.account-sidebar__link:hover {
    background: rgba(93, 200, 150, 0.1);
    color: var(--text);
}

.account-sidebar__link--active {
    color: var(--brand-700);
    background: rgba(93, 200, 150, 0.14);
    border-right: 3px solid var(--brand-500);
}

html.dark .account-sidebar__link--active {
    color: var(--brand-500);
}

.account-sidebar__link--muted {
    color: var(--text-muted);
    font-weight: 500;
}

.account-sidebar__logout {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.account-sidebar__logout-form {
    margin: 0;
    padding: 0;
}

.account-sidebar__logout-form button {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.account-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-500);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.account-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.account-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.account-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.account-form__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.account-form__actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.account-form__actions .account-btn {
    width: auto;
    min-width: 160px;
}

.account-pending {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

html.dark .account-pending {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
}

.account-pending__title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}

.account-pending__text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .account-page__inner {
        grid-template-columns: 1fr;
    }

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

    .auth-card {
        padding: 2rem 1.25rem;
    }
}

/* Трекер публикаций (личный кабинет) */
.account-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.account-form__hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.account-textarea {
    min-height: 110px;
    resize: vertical;
}

.account-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

html.dark .account-select {
    background-color: #0b1220;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.account-file-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-main);
    cursor: pointer;
}

.account-file-input::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.45rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: var(--brand-500);
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
}

html.dark .account-file-input {
    background: #0b1220;
}

.account-btn--inline {
    width: auto;
    margin-top: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.account-btn--sm {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
    min-width: 100px;
}

.account-btn--outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.account-btn--outline:hover {
    background: rgba(93, 200, 150, 0.1);
    border-color: var(--brand-500);
    color: var(--text);
    transform: none;
}

html.dark .account-btn--outline:hover {
    background: rgba(93, 200, 150, 0.12);
}

.tracker-form {
    max-width: 640px;
}

.tracker-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.tracker-search__field {
    flex: 1 1 140px;
    min-width: 0;
}

.tracker-search__field--sm {
    flex: 0 1 150px;
}

.tracker-search__field--date {
    flex: 0 1 160px;
}

.tracker-search__field--wide {
    flex: 1 1 220px;
}

.tracker-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tracker-empty {
    margin: 2rem 0 0;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tracker-status-card {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-left: 4px solid var(--border);
}

.tracker-status-card--uploaded {
    border-left-color: #6b7280;
}

.tracker-status-card--submitted_for_review {
    border-left-color: #3b82f6;
}

.tracker-status-card--for_signing {
    border-left-color: #f59e0b;
}

.tracker-status-card--signed {
    border-left-color: var(--brand-500);
}

.tracker-status-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tracker-status-card__badge {
    display: inline-block;
    width: fit-content;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(93, 200, 150, 0.14);
    color: var(--brand-700);
}

html.dark .tracker-status-card__badge {
    color: var(--brand-500);
}

.tracker-status-card--submitted_for_review .tracker-status-card__badge {
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
}

html.dark .tracker-status-card--submitted_for_review .tracker-status-card__badge {
    color: #93c5fd;
}

.tracker-status-card--for_signing .tracker-status-card__badge {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

html.dark .tracker-status-card--for_signing .tracker-status-card__badge {
    color: #fcd34d;
}

.tracker-status-card--signed .tracker-status-card__badge {
    background: rgba(93, 200, 150, 0.18);
}

.tracker-status-card__date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tracker-status-card__label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.tracker-status-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
}

.tracker-item-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.tracker-item-card__download {
    flex-shrink: 0;
    min-width: 110px;
}

.tracker-item-card__body {
    flex: 1;
    min-width: 0;
}

.tracker-item-card__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.tracker-item-card__meta {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.account-pagination {
    margin-top: 1.75rem;
}

.account-pagination__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

a.account-pagination__btn:hover {
    border-color: var(--brand-500);
    background: rgba(93, 200, 150, 0.1);
    color: var(--text);
}

.account-pagination__btn--active {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: #ffffff;
}

.account-pagination__btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .tracker-status-card {
        grid-template-columns: 1fr;
    }

    .tracker-search {
        flex-direction: column;
        align-items: stretch;
    }

    .tracker-search__field,
    .tracker-search__field--sm,
    .tracker-search__field--date,
    .tracker-search__field--wide {
        flex: 1 1 auto;
        width: 100%;
    }

    .tracker-item-card {
        flex-direction: column;
    }

    .tracker-item-card__download {
        width: 100%;
    }
}

/* Заключения и публикации (Обучение и наука) */
.academic-section__lead {
    margin: -0.5rem 0 1.5rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.academic-section__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.academic-section__header .academic-section__title {
    margin-bottom: 0;
}

.academic-section__all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--brand-600);
    text-decoration: none;
    white-space: nowrap;
}

.academic-section__all-link:hover {
    color: var(--brand-700);
    text-decoration: underline;
}

.science-pubs__grid {
    --bs-gutter-y: 1.5rem;
}

.journal-cards-grid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.journal-card__placeholder-image {
    object-fit: contain;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(93, 200, 150, 0.12), rgba(40, 92, 118, 0.08));
}

/* Страница «Журналы и конференции» */
.science-publications-page .academic-page__hero-title {
    margin-bottom: 2.5rem;
}

.science-publications-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.science-publications-filters__group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 12rem;
    flex: 1 1 14rem;
}

.science-publications-filters__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.science-publications-filters__select {
    appearance: none;
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background-color: var(--bg);
    background-image: 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='%23475569' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
    transition: var(--transition);
}

.science-publications-filters__select:hover {
    border-color: var(--brand-500);
}

.science-publications-filters__select:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(93, 200, 150, 0.2);
}

html.dark .science-publications-filters {
    box-shadow: none;
}

html.dark .science-publications-filters__select {
    background-image: 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='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

@media (max-width: 600px) {
    .science-publications-filters {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .science-publications-filters__group {
        min-width: 0;
        width: 100%;
        flex-basis: auto;
    }
}

.science-publications-section:last-child {
    margin-bottom: 2rem;
}

/* Кастомный селект фильтров (в стиле сайта) */
.custom-select {
    position: relative;
    width: 100%;
}

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

.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.custom-select__trigger:hover {
    border-color: var(--brand-500);
}

.custom-select--open .custom-select__trigger,
.custom-select__trigger:focus-visible {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(93, 200, 150, 0.2);
}

.custom-select__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select__chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    stroke: var(--brand-500);
    transition: transform 0.2s ease;
}

.custom-select--open .custom-select__chevron {
    transform: rotate(180deg);
}

.custom-select__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 50;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

html.dark .custom-select__menu {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.custom-select--open .custom-select__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select__item {
    margin: 0;
}

.custom-select__item + .custom-select__item {
    margin-top: 0.15rem;
}

.custom-select__item-btn {
    display: block;
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: none;
    border-radius: 0.6rem;
    background: transparent;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.custom-select__item-btn:hover,
.custom-select__item-btn:focus-visible {
    outline: none;
    background: rgba(93, 200, 150, 0.14);
    color: var(--brand-900);
}

html.dark .custom-select__item-btn:hover,
html.dark .custom-select__item-btn:focus-visible {
    color: var(--brand-300);
}

.custom-select__item-btn.is-selected {
    background: var(--brand-500);
    color: #ffffff;
    font-weight: 700;
}

.conf-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.conf-list__item {
    margin: 0;
}

.conf-list__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    background: var(--news-card-bg);
    border: 1px solid var(--news-card-border);
    border-radius: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.conf-list__link:hover {
    transform: translateY(-2px);
    border-color: rgba(93, 200, 150, 0.45);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.conf-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    flex-shrink: 0;
}

.conf-list__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.conf-list__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}

.conf-list__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--news-card-badge-text-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--border);
}

.conf-list__action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand-700);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.conf-list__action .poas-external-icon {
    stroke: currentColor;
}

.conf-list__empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 1rem;
}

@media (max-width: 767px) {
    .conf-list__link {
        grid-template-columns: auto 1fr;
    }

    .conf-list__action {
        grid-column: 2;
        justify-self: start;
        margin-top: -0.25rem;
    }
}

.academic-section__empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 1rem;
}

.publ-types-swiper-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.publ-types-swiper {
    flex: 1;
    min-width: 0;
    padding: 0.25rem 0 1rem;
}

.publ-types-nav {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.publ-types-nav:hover {
    border-color: var(--brand-500);
    background: rgba(93, 200, 150, 0.1);
}

.publ-types-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.publ-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 180px;
    padding: 2rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.publ-type-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-500);
}

.publ-type-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: var(--brand-500);
    color: #fff;
}

.publ-type-card__icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.publ-type-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.publ-type-card__count {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.publ-page {
    padding: 3.5rem 0 4rem;
}

.publ-page__header {
    margin-bottom: 2rem;
}

.publ-page__back {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--brand-700);
    font-weight: 600;
    text-decoration: none;
}

html.dark .publ-page__back {
    color: var(--brand-500);
}

.publ-page__back:hover {
    text-decoration: underline;
}

.publ-page__title {
    margin: 0 0 0.35rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.publ-page__subtitle {
    margin: 0;
    color: var(--text-muted);
}

.publ-page__empty {
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 1rem;
    color: var(--text-muted);
}

.publ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.publ-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius, 16px);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.publ-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.publ-card__visual {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, rgba(93, 200, 150, 0.15), rgba(93, 200, 150, 0.05));
    border-bottom: 1px solid var(--border);
}

html.dark .publ-card__visual {
    background: linear-gradient(135deg, rgba(93, 200, 150, 0.12), rgba(15, 23, 42, 0.6));
}

.publ-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--brand-500);
    opacity: 0.7;
}

.publ-card__placeholder svg {
    width: 3rem;
    height: 3rem;
}

.publ-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: var(--brand-500);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.publ-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.35rem 1.5rem;
}

.publ-card__date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.publ-card__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.publ-card__title a {
    color: var(--text);
    text-decoration: none;
}

.publ-card__title a:hover {
    color: var(--brand-700);
}

html.dark .publ-card__title a:hover {
    color: var(--brand-500);
}

.publ-card__meta {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.publ-card__label {
    font-weight: 700;
    color: var(--text);
}

.publ-card__description {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    flex: 1;
}

.publ-card__read {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.65rem 1.25rem;
    background: var(--brand-500);
    color: #fff !important;
    border-radius: var(--radius, 12px);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.publ-card__read:hover {
    background: var(--brand-700);
}

.publ-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.publ-pagination__btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.publ-pagination__info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.publ-detail {
    padding: 3.5rem 0 4rem;
}

.publ-detail__header {
    margin: 1rem 0 2rem;
}

.publ-detail__date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.publ-detail__title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
}

.publ-detail__badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    background: var(--brand-500);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.publ-detail__fields {
    display: grid;
    gap: 1.25rem;
    margin: 0 0 2rem;
}

.publ-detail__field dt {
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.publ-detail__field dd {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text);
}

.publ-detail__description {
    white-space: pre-wrap;
}

.publ-detail__actions {
    margin-bottom: 2rem;
}

.publ-detail__footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ========== GrapeLab (секция 03) ========== */
.academic-grid-2--grape {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 2rem;
    align-items: start;
}

.academic-grape__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.25rem;
}

.academic-grape__subheading {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1rem;
}

.academic-grape__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.academic-grape__list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.academic-grape__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--brand-500);
}

.grape-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.grape-card {
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.grape-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-500);
}

.grape-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-900);
    margin: 0 0 0.35rem;
}

.grape-card__text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 768px) {
    .publ-types-nav {
        display: none;
    }

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

    .academic-grid-2--grape {
        grid-template-columns: 1fr;
    }

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

.error-page {
    text-align: center;
    padding: 6rem 1rem 4rem;
}

.error-page__code {
    margin: 0 0 0.5rem;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-500);
}

.error-page__title {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.error-page__actions {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.error-page__home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 240px;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    background: var(--brand-500);
    color: #fff;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.error-page__home-link:hover {
    background: var(--brand-700);
    color: #fff;
    transform: translateY(-1px);
}

/* Политика конфиденциальности */

.legal-policy {
    padding-bottom: 5rem;
}

.legal-policy__header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-policy__meta {
    margin: -2rem 0 0;
    font-size: 0.95rem;
    color: var(--text-muted, #6b7280);
}

.legal-policy__notice {
    max-width: 720px;
    margin: 1.5rem auto 0;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(93, 200, 150, 0.25);
    background: rgba(93, 200, 150, 0.08);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

.legal-policy__body {
    max-width: 820px;
    margin: 0 auto;
}

.legal-policy__lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.legal-policy__section {
    margin-bottom: 2.75rem;
    padding-bottom: 2.75rem;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.legal-policy__section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-policy__section-title {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
}

.legal-policy__subsection-title {
    margin: 1.75rem 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-700, #2d8f68);
}

.legal-policy__list {
    margin: 0.75rem 0 1rem;
    padding-left: 1.35rem;
    line-height: 1.75;
}

.legal-policy__list li + li {
    margin-top: 0.45rem;
}

.legal-policy__note {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--brand-500);
    background: var(--surface-muted, rgba(0, 0, 0, 0.03));
    border-radius: 0 10px 10px 0;
    font-size: 0.98rem;
    line-height: 1.7;
}

.legal-policy__body p {
    line-height: 1.75;
    margin: 0 0 1rem;
}

.legal-policy__body a {
    color: var(--brand-600, #36a978);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-policy__body a:hover {
    color: var(--brand-700, #2d8f68);
}

.legal-policy__body code {
    font-size: 0.9em;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: var(--surface-muted, rgba(0, 0, 0, 0.05));
}

html.dark .legal-policy__note,
html.dark .legal-policy__body code {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 767px) {
    .legal-policy__section-title {
        font-size: 1.2rem;
    }

    .legal-policy__body {
        max-width: 100%;
    }
}

/* Баннер cookie */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(93, 200, 150, 0.28);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

html.dark .cookie-banner {
    background: rgba(15, 23, 42, 0.96);
    border-top-color: rgba(93, 200, 150, 0.22);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.cookie-banner--visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner__content {
    flex: 1 1 320px;
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

.cookie-banner__link {
    color: var(--brand-600, #36a978);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.cookie-banner__link:hover {
    color: var(--brand-700, #2d8f68);
}

.cookie-banner__btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: var(--brand-500);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cookie-banner__btn:hover {
    background: var(--brand-700);
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__btn {
        width: 100%;
    }
}