:root {
    --red: #c41e3a;
    --red-dark: #a01830;
    --blue: #1e3c72;
    --blue-dark: #0f2444;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray: #f5f7fa;
    --gray-light: #e1e8ed;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА ===== */
.site-header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 3px solid var(--red);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
    line-height: 1.2;
}

.logo-text .city {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.header-contacts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 8px;
}

.contact-link:hover {
    color: var(--red);
    background: var(--gray);
}

/* ===== НАВИГАЦИЯ ===== */
.main-nav {
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: var(--shadow);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-list a,
.nav-list button {
    display: block;
    padding: 18px 25px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-list a:hover,
.nav-list a.active,
.nav-accessibility-btn:hover {
    background: var(--red);
    border-bottom-color: var(--red);
}

.nav-accessibility-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-accessibility-btn.active {
    background: var(--white);
    color: var(--black);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== HERO СЛАЙДЕР (без градиента) ===== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
}

.slide-content h2 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.slide-content p {
    font-size: 24px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
    pointer-events: none;
}

.arrow {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--black);
    pointer-events: all;
}

.arrow:hover {
    background: var(--red);
    color: var(--white);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ===== СЕКЦИИ ===== */
.section {
    background: var(--white);
    margin: 40px 0;
    padding: 50px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 15px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== ИНФО-КАРТОЧКИ ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    background: var(--gray);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.info-card p {
    font-size: 16px;
    color: var(--text);
}

.info-card a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.info-card a:hover {
    text-decoration: underline;
}

/* ===== ЛИЦЕНЗИЯ ===== */
.license-block {
    background: var(--gray);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border-left: 4px solid var(--red);
}

.license-block h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--black);
}

.license-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
}

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}

/* ===== УЧРЕДИТЕЛЬ ===== */
.founders-block {
    background: var(--gray);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--blue);
}

.founders-block h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--black);
}

.founder-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.founder-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--blue);
}

.founder-info p {
    margin: 10px 0;
    font-size: 15px;
}

.founder-info a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.founder-info a:hover {
    text-decoration: underline;
}

/* ===== СТРУКТУРА (ТАБЫ) ===== */
.structure-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray-light);
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
}

.tab-btn.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.staff-card {
    background: var(--gray);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}

.staff-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--red), var(--blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    margin: 0 auto 20px;
}

.staff-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.staff-card .position {
    color: var(--red);
    font-weight: 600;
    margin-bottom: 15px;
}

.staff-card .contact,
.staff-card .detail {
    font-size: 14px;
    color: var(--text);
    margin: 8px 0;
}

.staff-card a {
    color: var(--blue);
    text-decoration: none;
}

.staff-card a:hover {
    text-decoration: underline;
}

/* ===== ДОКУМЕНТЫ ===== */
.docs-categories {
    display: grid;
    gap: 40px;
}

.docs-block h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--black);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
}

.docs-list {
    display: grid;
    gap: 15px;
}

.doc-item {
    background: var(--gray);
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border-left: 4px solid var(--red);
}

.doc-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.doc-icon {
    font-size: 32px;
}

.doc-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
}

.doc-date {
    font-size: 13px;
    color: var(--text-light);
}

.doc-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.1);
}

/* ===== КОНТАКТЫ ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.contact-card {
    background: var(--gray);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.contact-card p {
    font-size: 16px;
    color: var(--text);
}

.contact-card a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--gray);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ===== ФУТЕР ===== */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.footer-logo h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-info h3,
.footer-contacts h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-info p,
.footer-contacts p {
    margin: 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

.footer-contacts a {
    color: var(--white);
    text-decoration: none;
}

.footer-contacts a:hover {
    color: var(--red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* ===== УТИЛИТЫ ===== */
.empty-text {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    font-size: 16px;
}

/* ===== ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ ===== */
.high-contrast {
    --red: #000000;
    --blue: #000000;
    --black: #000000;
    --white: #ffffff;
    --gray: #ffffff;
    --gray-light: #000000;
    --text: #000000;
    --text-light: #000000;
}

.high-contrast * {
    border-color: #000 !important;
    box-shadow: none !important;
}

.high-contrast body {
    font-size: 20px !important;
    line-height: 1.8 !important;
}

.high-contrast .site-header,
.high-contrast .main-nav,
.high-contrast .site-footer {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

.high-contrast .nav-list a,
.high-contrast .nav-list button {
    color: #000 !important;
    border-color: #000 !important;
}

.high-contrast .nav-list a:hover,
.high-contrast .nav-list a.active,
.high-contrast .nav-accessibility-btn:hover,
.high-contrast .nav-accessibility-btn.active {
    background: #000 !important;
    color: #fff !important;
}

.high-contrast .hero {
    background: #fff !important;
}

.high-contrast .slide-content {
    background: #fff !important;
    border: 2px solid #000 !important;
}

.high-contrast .slide-content h2,
.high-contrast .slide-content p {
    color: #000 !important;
    text-shadow: none !important;
}

.high-contrast .section {
    background: #fff !important;
    border: 2px solid #000 !important;
}

.high-contrast .section-header h2 {
    color: #000 !important;
}

.high-contrast .info-card,
.high-contrast .staff-card,
.high-contrast .contact-card,
.high-contrast .doc-item,
.high-contrast .founder-card,
.high-contrast .license-block,
.high-contrast .founders-block {
    background: #fff !important;
    border: 2px solid #000 !important;
}

.high-contrast .btn-primary,
.high-contrast .btn-outline {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
}

.high-contrast a {
    color: #0000EE !important;
    text-decoration: underline !important;
}

.high-contrast .staff-avatar {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
}

.high-contrast .arrow {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
}

.high-contrast .dot {
    background: #000 !important;
}

.high-contrast .dot.active {
    background: #000 !important;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .logo-text h1 {
        font-size: 20px;
    }
    
    .slide-content h2 {
        font-size: 42px;
    }
    
    .slide-content p {
        font-size: 20px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .logo-text h1 {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .header-contacts {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .contact-link {
        justify-content: center;
        padding: 10px;
        background: var(--gray);
        border-radius: 8px;
    }
    
    .mobile-toggle {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--black);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list a,
    .nav-list button {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }
    
    .nav-accessibility-btn {
        background: var(--red);
        color: var(--white);
        border-radius: 0;
    }
    
    .hero {
        height: 350px;
    }
    
    .slide-content {
        padding: 20px;
        margin: 0 20px;
    }
    
    .slide-content h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .info-cards,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .doc-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .structure-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .hero {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 22px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .info-card,
    .contact-card {
        padding: 20px;
    }
    
    .arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
/* =========================================
   СТИЛИ АДМИН-ПАНЕЛИ
   ========================================= */

.admin-body {
    background: #f0f2f5;
    color: var(--text);
}

.admin-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка админки */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--blue-dark);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    font-size: 22px;
    margin: 0;
    font-weight: 700;
}

.admin-header .btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    font-size: 14px;
}

.admin-header .btn:hover {
    background: var(--red);
}

/* Секции админки */
.admin-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-top: 4px solid var(--red);
}

.admin-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--blue-dark);
    font-size: 20px;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 10px;
}

.admin-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text);
    font-size: 17px;
}

/* Формы в админке (сетка для аккуратности) */
.admin-section form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.admin-section form:has(textarea) {
    grid-template-columns: 1fr; /* Если есть textarea, делаем в одну колонку */
}

.admin-section label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-section input[type="text"],
.admin-section input[type="email"],
.admin-section input[type="url"],
.admin-section input[type="password"],
.admin-section input[type="file"],
.admin-section textarea,
.admin-section select {
    padding: 10px 15px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.admin-section input:focus,
.admin-section textarea:focus,
.admin-section select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.admin-section .btn {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 10px;
}

/* Таблицы в админке */
.admin-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: var(--white);
    font-size: 15px;
}

.admin-section th,
.admin-section td {
    padding: 14px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.admin-section th {
    background: var(--gray);
    font-weight: 700;
    color: var(--blue-dark);
    white-space: nowrap;
}

.admin-section tr:hover td {
    background: #f8f9fa;
}

/* Кнопка удаления */
.btn-del {
    background: #ffebee;
    color: var(--red);
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-del:hover {
    background: var(--red);
    color: var(--white);
}

/* Сообщения об успехе/ошибке */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 600;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    text-align: center;
}

/* =========================================
   СТРАНИЦА ВХОДА (LOGIN)
   ========================================= */
body > .login-box {
    max-width: 400px;
    margin: 100px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-top: 5px solid var(--blue);
}

.login-box h2 {
    margin-bottom: 25px;
    color: var(--blue-dark);
    font-size: 24px;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-box input {
    padding: 14px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.login-box input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.login-box button[type="submit"] {
    padding: 14px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.login-box button[type="submit"]:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Адаптив для админки */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-section form {
        grid-template-columns: 1fr;
    }
    
    .admin-section table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
/* Стили для фото сотрудников и педагогов */
.staff-avatar-img {
    width: 200px;
    height: 200px;
    border-radius: 10%;
    object-fit: cover; /* Обрезает фото по центру, не искажая пропорции */
    margin: 0 auto 20px;
    border: 3px solid var(--gray-light);
    transition: var(--transition);
}

.staff-card:hover .staff-avatar-img {
    border-color: var(--blue);
    transform: scale(1.05);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .staff-avatar-img {
        width: 70px;
        height: 70px;
    }
}
/* =========================================
   СЛАЙДЕР ГАЛЕРЕИ (ФОТО И ВИДЕО)
   ========================================= */
.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 500px; /* Фиксированная высота для единообразия */
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Ключевое свойство: contain не обрезает края фото/видео */
.gallery-slide img,
.gallery-slide video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(4px);
}

.gallery-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 2;
    pointer-events: none;
}

.gallery-arrow {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--black);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow:hover {
    background: var(--red);
    color: var(--white);
    transform: scale(1.1);
}

.gallery-dots {
    position: absolute;
    bottom: 60px; /* Чуть выше подписи */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background: var(--white);
    width: 25px;
    border-radius: 5px;
}

/* Адаптив для галереи */
@media (max-width: 768px) {
    .gallery-slider {
        height: 300px;
    }
    .gallery-caption {
        font-size: 14px;
        padding: 10px;
    }
    .gallery-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
}
/* Если подписи нет, сдвигаем точки ближе к низу */
.gallery-slider:has(.gallery-slide:not(:has(.gallery-caption))) .gallery-dots {
    bottom: 20px;
}
/* Улучшенные подписи в карточках персонала */
.staff-card .detail {
    font-size: 14px;
    color: var(--text);
    margin: 8px 0;
    text-align: left;
    line-height: 1.5;
    padding: 0 10px;
}

.staff-card .detail strong {
    color: var(--text-light);
    font-weight: 600;
        /* display: inline-block;
    min-width: 110px; /* Выравнивает двоеточия по вертикали */
}

.staff-card .contact strong {
    color: var(--text-light);
    font-weight: 600;
}