/* Global Variables (предполагается что уже подключены) */
:root {
    --primary-color: #113f4e;
    --secondary-color: #113f4e;
    --accent-color: #00737D;
    --bg-light: #eff7fa;
    --bg-white: #FFFFFF;
    --bg-section: #f5fbfd;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #6C6C6C;
    --border-color: #d8e9f0;

    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --box-shadow-hover: 0 3px 8px rgba(0, 0, 0, 0.12);
    --box-shadow-section: 0 8px 32px rgba(17, 63, 78, 0.08);

    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    --transition-speed: 0.25s;
}

/* Основной контейнер страницы */
.about-page {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(239, 247, 250, 0.6) 100%);
    min-height: 100vh;
}

/* Секция "О центре" */
.about-center {
    padding: 80px 0;
    background: var(--bg-white);
}

/* Заголовок центра с изображением */
.center-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    background: var(--bg-white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--box-shadow-section);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.center-image {
    flex: 0 0 300px;
    height: 250px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
}

.center-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-description {
    flex: 1;
}

.center-description h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: left;
}

.center-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.center-description p:last-child {
    margin-bottom: 0;
}

/* Основное описание центра */
.center-intro {
    background: linear-gradient(135deg, var(--bg-section) 0%, rgba(245, 251, 253, 0.8) 100%);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 50px;
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.center-intro::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 115, 125, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.center-intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Ключевые направления */
.center-key-directions {
    margin-bottom: 60px;
}

.center-key-directions h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.center-key-directions h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
}

/* Сетка направлений */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.direction-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.direction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.direction-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--accent-color);
}

.direction-item:hover::before {
    opacity: 1;
}

.direction-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.4rem;
    box-shadow: var(--box-shadow);
}

.direction-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Дополнительные секции */
.additional-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.section-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.section-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-card h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.section-card p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-medium);
    font-size: 1.05rem;
}

.section-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-medium);
    position: relative;
    padding-left: 25px;
    font-size: 1.05rem;
    line-height: 1.6;
    transition: color var(--transition-speed) ease;
}

.section-card li::before {
    content: "●";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 12px;
}

.section-card li:hover {
    color: var(--text-dark);
}

.section-card li:last-child {
    border-bottom: none;
}

/* Специальный стиль для "Центр не занимается" */
.not-engaged {
    background: linear-gradient(135deg, #fef2f2 0%, #fef7f7 100%);
    border-left: 5px solid #ef4444;
}

.not-engaged::before {
    background: #ef4444;
}

.not-engaged h4 {
    color: #dc2626;
}

.not-engaged h4::after {
    background: #ef4444;
}

.not-engaged li::before {
    color: #ef4444;
}

/* Примечание */
.directions-note {
    background: linear-gradient(135deg, var(--bg-section) 0%, rgba(245, 251, 253, 0.8) 100%);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    font-style: italic;
    color: var(--text-medium);
    text-align: center;
    margin-top: 50px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Секция Миссии */
.mission-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0, 115, 125, 0.03) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.mission-content {
    display: flex;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mission-text {
    flex: 1;
    max-width: 650px;
}

.mission-text h2 {
    text-align: left;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.mission-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
}

.mission-text p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* Контейнер изображения миссии */
.mission-image-container {
    flex: 0 0 450px;
    position: relative;
    height: 500px;
}

.mission-bg {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 115, 125, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.mission-image {
    position: relative;
    height: 100%;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Цели миссии */
.mission-goals {
    background: linear-gradient(135deg, var(--bg-section) 0%, rgba(245, 251, 253, 0.8) 100%);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin: 30px 0;
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--box-shadow);
}

.mission-goals h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.mission-goals ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-goals li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.6;
}

.mission-goals li::before {
    content: "●";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Направления миссии */
.mission-directions {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.mission-directions h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.directions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.directions-list li {
    background: linear-gradient(135deg, var(--bg-section) 0%, rgba(245, 251, 253, 0.8) 100%);
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--accent-color);
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.5;
    transition: all var(--transition-speed) ease;
}

.directions-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

/* Ценности */
.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.value-item {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.value-icon {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.9;
}

.value-item h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.value-item p {
    margin: 0;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .center-header {
        flex-direction: column;
        text-align: center;
    }

    .center-image {
        flex: none;
        width: 100%;
        max-width: 400px;
        height: 250px;
    }

    .mission-content {
        flex-direction: column;
        gap: 40px;
    }

    .mission-image-container {
        flex: none;
        height: 350px;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .about-center {
        padding: 60px 0;
    }

    .mission-section {
        padding: 60px 0;
    }

    .directions-grid {
        grid-template-columns: 1fr;
    }

    .additional-sections {
        grid-template-columns: 1fr;
    }

    .direction-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .direction-icon {
        align-self: center;
    }

    .mission-values {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .directions-list {
        grid-template-columns: 1fr;
    }

    .mission-text {
        max-width: 100%;
    }

    .center-key-directions h3 {
        font-size: 1.6rem;
    }

    .mission-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {

    .about-center,
    .mission-section {
        padding: 40px 0;
    }

    .center-header,
    .center-intro {
        padding: 25px;
    }

    .section-card {
        padding: 25px;
    }

    .mission-goals,
    .mission-directions {
        padding: 25px;
    }

    .value-item {
        padding: 25px 20px;
    }

    .container {
        padding: 0 15px;
    }

    .directions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .additional-sections {
        gap: 25px;
    }

    .center-key-directions h3 {
        font-size: 1.4rem;
    }

    .mission-text h2 {
        font-size: 1.6rem;
    }
}

/* Дополнительные улучшения */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Анимации загрузки */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.direction-item,
.section-card,
.value-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}