/*
   styles.css -- ОСНОВНЫЕ СТИЛИ САЙТА
*/
:root {
    --brand-blue: #6A86DD;
    --brand-blue-light: #E8EDFF;
    --brand-grey: #E5E7EB;
    --text-dark: #111827;
    --text-muted: #4B5563;
    --bg-main: #F9FAFB;
    --bg-surface: #FFFFFF;
    --white: #FFFFFF;
    --black: #000000;
    --border-light: #d1dbf8;
    --alert-bg: #FEE2E2;
    --alert-border: #FCA5A5;
    --alert-text: #B91C1C;
    --white-fade: rgba(255, 255, 255, 0.22);
    --white-border-fade: rgba(255, 255, 255, 0.29);
    --brand-blue-soft: rgba(106, 134, 221, 0.2);
    --brand-blue-shadow: rgba(106, 134, 221, 0.08);
    --shadow-soft: rgba(184, 182, 182, 0.1);
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/*
   ОБЩИЕ СТИЛИ ДЛЯ СТРАНИЧЕК
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    zoom: 0.8;
}

.main-content {
    padding-bottom: 60px;
}

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 36px;
    margin-bottom: 48px;
    text-transform: uppercase;
    text-decoration: none;
}

/* 
    HEADER -- CТИЛИ ШАПКИ
*/
.header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--brand-grey);
    padding: 20px 0;
    color: var(--brand-blue);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-group {
    max-width: 600px;
    margin-top: 0;
}

.logo-title {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.2;
}

.main-nav {
    display: flex;
    gap: 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: opacity 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-blue);
    transition: width 0.3s ease-in-out;
}

.main-nav a:hover {
    color: var(--brand-blue);
}

.main-nav a:hover::after {
    width: 100%;
}

.logo-subtitle {
    font-family: 'Roboto Mono', monospace;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-dark);
}

/* 
    HEADER -- КНОПКИ
*/
.header-right {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.btn-official {
    background: var(--brand-blue);
    color: var(--white);
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.btn-official:hover {
    transform: scale(1.05);
}

/* 
    index.php -- ГЛАВНАЯ СТРАНИЦА
*/
.hero-section {
    padding: 52px 0 0 0;
    position: relative;
    margin-bottom: 52px;
}

.slider-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    min-width: 100%;
    height: 382px;
}

.hero-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 20px;
    opacity: 0.5;
    cursor: pointer;
    transition: width 0.4s ease-in-out, opacity 0.4s ease;
    display: inline-block;
}

.dot.active {
    width: 32px;
    opacity: 1;
}

.slider-dots.inner-dots {
    margin-top: auto;
    padding-top: 20px;
}

/* 
    index.php -- ИНФА О КАФЕДРЕ 
*/
.about-section {
    margin-bottom: 52px;
}

.about-text {
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    text-align: justify;
    color: var(--text-muted);
}

/* 
    index.php / events.php -- СЕКЦИЯ МЕРОПРИЯТИЙ 
*/
.events-section {
    margin-bottom: 52px;
}

/* 
    index.php -- БЛОК С РЕСУРСАМИ ИСОЦСЕТЯМИ 
*/
.bottom-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 80px;
}

.resources-wrapper, .socials-wrapper {
    background: var(--brand-blue-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    height: 382px;
    position: relative;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.events-header .section-title {
    margin-bottom: 0;
}

.events-filter {
    display: flex;
    gap: 12px;
}

.resources-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
}

.resources-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 230px;
    padding: 15px;
    overflow: visible;
}

.resource-card {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    padding: 30px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.resource-card:hover {
    transform: scale(1.025);
    z-index: 10;
}

.resource-card p {
    color: var(--text-muted);
}

.resource-link {
    margin-top: auto;
    color: var(--brand-blue);
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.resource-link:hover {
    transform: translateX(5px);
}

.slider-dots.inner-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
}

.resources-header-controls {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white-fade);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    border: 1px solid var(--white-border-fade);
    color: var(--brand-blue);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.arrow-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.socials-wrapper {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.social-card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    height: 152px;
    transition: transform 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--border-light);
    text-decoration: none;
}

.social-card:hover {
    transform: scale(1.025);
}

.social-icon {
    width: 96px;
    height: 96px;
    background: var(--brand-blue);
    border-radius: 8px;
    flex-shrink: 0;
    margin-right: 20px;
}

.resource-card h3, .social-text h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.resource-card p, .social-text p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: var(--text-dark);
}

.resources-header-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0.9;
    border: none;
    color: var(--brand-blue);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.arrow-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* FOOTER -- СТИЛИ ПОДВАЛА */
.footer {
    background: var(--white);
    border-top: 1px solid var(--brand-grey);
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-contacts {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-contacts span {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
}

/* 
   study_programs.html -- ПРОГРАММЫ ОБУЧЕНИЯ
*/
.programs-section {
    padding: 52px 0 84px 0;
}

.title-divider {
    width: 100px;
    height: 4px;
    background: var(--brand-blue);
    border-radius: 2px;
    margin-bottom: 50px;
}

.programs-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.programs-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.program-category-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.program-category {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 24px;
    text-transform: uppercase;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    gap: 12px;
}

.program-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.program-item-card {
    display: block;
    background: var(--bg-surface);
    border: 1px solid var(--brand-grey);
    border-radius: var(--radius);
    padding: 24px 32px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.program-item-card:hover {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.program-item-card:hover::before {
    background: var(--brand-blue);
}

.program-item-code {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 14px;
    color: var(--brand-blue);
    margin-bottom: 8px;
    display: inline-block;
    background: var(--brand-blue-light);
    padding: 4px 10px;
    border-radius: 4px;
}

.program-item-name {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.4;
    color: var(--text-dark);
}

.programs-info-box {
    background: var(--brand-blue-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 120px;
}

.programs-info-box p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 15px;
}

.programs-info-box p strong {
    color: var(--brand-blue);
    font-weight: 600;
}

.programs-info-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .programs-layout {
        grid-template-columns: 1fr;
    }
    .programs-info-box {
        position: static;
    }
}

/* 
   study_program_*.html -- СТРАНИЦА ПРОГРАММЫ
*/

.main-content {
    padding-bottom: 0;
}

.programs-section {
    padding: 52px 0 84px 0;
}

.page-title {
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
    font-size: 36px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.title-divider {
    width: 100%;
    max-width: 768px;
    height: 2px;
    background: var(--brand-blue);
    border-radius: 20px;
    margin-bottom: 50px;
}

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

.programs-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.program-category {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 32px;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.program-item {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
    padding-bottom: 2px;
    text-decoration: none;
    margin-bottom: 0;
}

.program-item p {
    margin-bottom: 5px;
}

.program-item p strong{
    font-size: 20px;
}

.program-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-blue);
    transition: width 0.3s ease-in-out;
}

.program-item:hover::after {
    width: 85%;
}

.program-info-box {
    background: var(--brand-blue-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 120px;
}

.program-info-box p:last-child {
    margin-bottom: 0;
}

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

.program-code {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.program-header .page-title {
    font-weight: 600;
    font-size: 36px;
    margin-bottom: 20px;
}

.main-content {
    padding-bottom: 60px;
}

.programs-section {
    padding: 52px 0 84px;
}

/* Layout Grid */
.programs-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Content Area */
.programs-list {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px var(--shadow-soft);
    border: 1px solid var(--brand-grey);
}

.prog-content-category {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 22px;
    color: var(--text-dark);
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.prog-content-category:first-child {
    margin-top: 0;
}

.prog-content-category::before {
    content: '';
    display: block;
    width: 24px;
    height: 4px;
    background: var(--brand-blue);
    border-radius: 2px;
}

.prog-content-text {
    color: var(--text-muted);
    font-size: 16px;
}

/* Теги-чипсы внутри содержимого программы */
/* Теги-чипсы внутри содержимого программы */
/* Chips styling */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    background: var(--bg-main);
    border: 1px solid var(--brand-grey);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--brand-blue);
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    transform: translateY(-1px);
}

/* Пользовательский список с кастомными маркерами */
/* Пользовательский список с кастомными маркерами */
/* Custom List */
.custom-list {
    list-style: none;
}

.custom-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.custom-list li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--brand-blue);
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
    font-size: 18px;
    line-height: 1.4;
}

.programs-info-box {
    background: var(--brand-blue-light);
    padding: 32px;
    border-radius: 12px;
    position: sticky;
    top: 120px;
    border: 1px solid var(--border-light);
}

.info-group {
    margin-bottom: 28px;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.info-title h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.info-text {
    font-family: 'Inter', sans-serif;
    align-items: center;
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 12px;
}

.info-text img {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    align-items: center;
    flex-shrink: 0;
}

.stuff-info-box {
    background: var(--brand-blue-light);
    padding: 32px;
    border-radius: 12px;
    top: 120px;
    border: 1px solid var(--border-light);
    height: fit-content;
    align-self: center;
}

.stuff-info-group:last-child {
    margin-bottom: 0;
}

.stuff-info-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.stuff-info-text {
    font-family: 'Inter', sans-serif;
    align-items: center;
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 12px;
    display: flex;
}

.stuff-info-text img {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    align-items: center;
    flex-shrink: 0;
}

p.info-text + p.info-text {
    margin-top: 8px;
}

p.stuff-info-text + p.stuff-info-text {
    margin-top: 12px;
}

.info-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 20px;
    margin-bottom: 16px;
}

.info-divider {
    height: 1px;
    background: var(--brand-blue-soft);
    margin: 12px 0;
}

/* 
   stuff_list.php -- СОТРУДНИКИ (СПИСОК)
    */

.staff-section {
    padding: 52px 0 84px 0;
}

.staff-page-title {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 36px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.staff-divider {
    width: 100px;
    height: 4px;
    background: var(--brand-blue);
    border-radius: 2px;
    margin-bottom: 50px;
}

/* Карточка руководителя кафедры (главная карточка) */
.head-dept-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: var(--bg-surface);
    border: 1px solid var(--brand-grey);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    text-decoration: none;
}

.head-dept-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--brand-blue);
}

.head-dept-photo {
    width: 280px;
    height: 360px;
    background: var(--brand-blue-light);
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid var(--brand-grey);
}

.head-dept-info {
    display: flex;
    flex-direction: column;
}

.head-dept-role {
    display: inline-block;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    align-self: flex-start;
}

.head-dept-name {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.2;
    color: var(--brand-blue);
    margin-bottom: 12px;
}

.head-dept-degree {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.head-dept-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    max-width: 900px;
}

/* Сетка карточек остальных сотрудников */
.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.employee-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--brand-grey);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.employee-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--brand-blue);
    transform: translateY(-2px);
}

.employee-photo {
    width: 120px;
    height: 160px;
    background: var(--brand-blue-light);
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid var(--brand-grey);
}

.employee-info {
    display: flex;
    flex-direction: column;
}

.employee-name {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    color: var(--brand-blue);
    margin-bottom: 8px;
}

.employee-degree {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

/*
   stuff_profile.php -- ПРОФИЛЬ СОТРУДНИКА
*/

.profile-container {
    padding: 50px 0 84px 0;
}

.profile-name {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.profile-divider {
    width: 100px;
    height: 4px;
    background: var(--brand-blue);
    border-radius: 2px;
    margin-bottom: 50px;
}

.profile-header-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch;
}

.profile-photo-large {
    width: 320px;
    height: 420px;
    background: var(--brand-blue-light);
    border-radius: var(--radius);
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid var(--brand-grey);
    box-shadow: var(--shadow);
}

.profile-main-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 300px;
}

.profile-greeting {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.3;
    color: var(--brand-blue);
    margin-bottom: 16px;
}

.profile-position {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: inline-block;
    align-self: flex-start;
}

.profile-degree {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.profile-contacts-card {
    background: var(--brand-blue-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 35px;
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 20px var(--brand-blue-shadow);
}

.contacts-title {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 18px;
    color: var(--brand-blue);
    margin-bottom: 24px;
    position: relative;
    padding-left: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contacts-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: var(--brand-blue);
    border-radius: 2px;
}

.contacts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.4;
}

.contact-icon-wrapper {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand-grey);
}

.contact-icon-wrapper img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.sidebar-contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--brand-grey);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    height: fit-content;
    align-self: start;
}

.sidebar-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sidebar-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.4;
}

.icon-box {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-blue-light);
    padding: 5px;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
}

.profile-details-section {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1400px;
    background: var(--bg-surface);
    padding: 40px 0;
}

.detail-block {
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 24px;
    color: var(--brand-blue);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-title::before {
    content: '';
    display: block;
    width: 24px;
    height: 4px;
    background: var(--brand-blue);
    border-radius: 2px;
}

.blue-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blue-bullet-list li {
    position: relative;
    padding-left: 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

/*
   event.php -- МЕРОПРИЯТИЕ 
*/

/* 
   СТРАНИЦА КОНКРЕТНОГО МЕРОПРИЯТИЯ (event.html)
    */

.event-page-section {
    padding-bottom: 80px;
}

/* Главный баннер-шапка события */
.event-main-banner {
    width: 100%;
    max-width: 1435px;
    height: 382px;
    background: var(--brand-blue-light);
    border-radius: var(--radius);
    margin: 40px 0 50px 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--brand-grey);
}

.event-main-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Заголовок и дата */
/* Строка с заголовком и датой события */
.event-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.event-date {
    background: var(--brand-blue-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 18px;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-title {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 0;
    text-transform: uppercase;
}

.event-divider {
    width: 465px;
    max-width: 100%;
    height: 4px;
    background: var(--brand-blue);
    border-radius: 2px;
    margin-bottom: 40px;
}

/* Основной текст описания события */
.event-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    max-width: 1435px;
    margin-bottom: 60px;
    text-align: justify;
}

/* Инфо-блок с локацией и картой */
.event-location-box {
    margin-bottom: 60px;
    background: var(--bg-surface);
    padding: 32px;
    border: 1px solid var(--brand-grey);
    border-radius: var(--radius);
    max-width: 1435px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.event-location-box p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-map {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--brand-grey);
    background: var(--brand-grey);
}

.event-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Секция галереи с фотографиями события */
.event-gallery-section {
    margin-bottom: 60px;
    max-width: 1435px;
}

.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: var(--brand-blue-light);
    border-radius: 8px;
    aspect-ratio: 343 / 245;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--brand-grey);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--brand-blue);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Список документов и файлов для скачивания */
.event-documents {
    margin-bottom: 60px;
    max-width: 1435px;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--brand-grey);
    border-radius: 8px;
    color: var(--brand-blue);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.document-item:hover {
    background: var(--brand-blue-light);
    border-color: var(--brand-blue);
    transform: translateX(4px);
}

/* Логотипы партнеров события */
.event-partners {
    margin-bottom: 80px;
    max-width: 1435px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.partner-logo {
    width: 250px;
    height: 120px;
    background: var(--bg-surface);
    border: 1px solid var(--brand-grey);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Mono', monospace;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    border-color: var(--brand-blue);
    transform: scale(1.025);
}

/* 
   contacts.html -- КОНТАКТЫ
    */

.contacts-section {
    padding-top: 40px;
}

.contacts-header {
    margin-bottom: 50px;
}

.contacts-title {
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
    font-size: 36px;
    line-height: 47px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contacts-title-line {
    width: 591px;
    height: 2px;
    background: var(--brand-blue);
    border-radius: 20px;
    max-width: 100%;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.contact-card {
    background: var(--brand-blue-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    min-height: 240px;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card-title {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 20px;
    line-height: 26px;
    color: var(--brand-blue);
    margin-bottom: 36px;
}

.contact-info-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon-placeholder {
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: var(--text-dark);
}

/* карта */

.map-section {
    margin-bottom: 80px;
}

.map-title {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 36px;
    line-height: 47px;
    color: var(--text-dark);
    margin-bottom: 35px;
}

.map-container-box {
    width: 100%;
    height: 382px;
    background: var(--brand-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 
   events.php (полный список) -- МЕРОПРИЯТИЯ И НОВОСТИ
    */

.events-page-section {
    padding: 52px 0 84px 0;
}

.section-title {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.title-divider {
    width: 465px;
    max-width: 100%;
    height: 4px;
    background: var(--brand-blue);
    border-radius: 2px;
    margin-bottom: 40px;
}

/* Панель фильтрации по типам событий */
.events-page-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-pill {
    background: var(--bg-main);
    border: 1px solid var(--brand-grey);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    text-decoration: none;
}

.filter-pill:hover {
    border-color: var(--brand-blue);
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    transform: translateY(-1px);
}

.filter-pill.active {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    color: var(--bg-surface);
}

.filter-btn {
    background: var(--bg-main);
    border: 1px solid var(--brand-grey);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

/* Сетка карточек событий/новостей */
.events-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Отдельная карточка события/новости */
.events-list-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--brand-grey);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.events-list-card:hover {
    transform: scale(1.025);
    box-shadow: var(--shadow);
    border-color: var(--brand-blue);
}

.card-image {
    height: 240px;
    background: var(--brand-blue-light);
    border-bottom: 1px solid var(--brand-grey);
}

/* Фотография в карточке */
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контент карточки (заголовок, дата, тег) */
.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Строка метаданных: тег события и дата */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-tag {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 6px;
}

.tag-news {
    background: var(--brand-grey);
    color: var(--text-muted);
}

.tag-event {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
}

.card-date {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: var(--text-dark);
}

/* Блок навигации по страницам */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Номера страниц */
.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.page-num:hover {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
}

.page-num.active {
    background: var(--brand-blue);
    color: var(--white);
}

.page-dots {
    color: var(--text-muted);
    letter-spacing: 2px;
    padding: 0 5px;
}

.page-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--brand-grey);
    background: var(--bg-surface);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-arrow:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: var(--brand-blue-light);
}

.page-arrow svg {
    transition: transform 0.2s ease;
}

.page-arrow.prev:hover svg {
    transform: scale(1.05);
}

.page-arrow.next:hover svg {
    transform: scale(1.05);
}

/*
   404.html -- ОШИБКА 404
*/

.error-section {
    min-height: 940px;
    padding-top: 52px;
    padding-bottom: 40px;
}

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

.error-title {
    font-family: 'Roboto Mono', monospace;
    margin-top: 52px;
    font-style: normal;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--black);
    margin: 0;
}

.error-subtitle {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    color: var(--brand-blue);
    margin: 0;
}

/*
   login.php -- ФОРМА ВХОДА
*/

.login-box {
    background: var(--bg-surface);
    border: 1px solid var(--brand-grey);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow);
}

.login-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 30px;
    text-align: center;
}

.login-error {
    background: var(--alert-bg);
    border: 1px solid var(--alert-border);
    color: var(--alert-text);
    padding: 12px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}


.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--brand-grey);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--brand-blue);
}


.btn-login {
    width: 100%;
    background: var(--brand-blue);
    color: var(--white);
    border: 1px solid var(--brand-blue);
    padding: 14px;
    border-radius: 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, border 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background: var(--brand-blue-light);
    border: 1px solid var(--border-light);
    color: var(--brand-blue);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--brand-blue);
}
