/* Reset and Base Styles */
:root {
    --primary-color: #540575;
    --secondary-color: #ff6614;
    --accent-color: #efdbb2;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --gray-color: #6c757d;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Оформление цитаты (quote) ===== */
.quote {
    margin: 16px 0;
    padding: 16px 16px;
    background-color: var(--light-gray) !important;  /* принудительный фон */
    border-left: 4px solid var(--secondary-color) !important;
    border-radius: var(--radius);
    font-family: 'Fact', sans-serif;
    position: relative;
}

.quote_body {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

/* Декоративная кавычка (опционально) */
.quote_body::before {
    content: "“";
    font-size: 4rem;
    position: absolute;
    left: -6px;
    top: -30px;
    color: var(--secondary-color);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
    z-index: -1;
}

/* Стили для вложенных элементов */
.quote_body a {
    color: var(--secondary-color);
    text-decoration: underline;
}
.quote_body a:hover {
    color: var(--primary-color);
}

.quote_body strong,
.quote_body b {
    font-weight: 800;
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 576px) {
    .quote {
        padding: 16px 16px;
    }
    .quote_body::before {
        font-size: 3rem;
        left: -10px;
        top: -10px;
    }
}

html {
    scroll-behavior: smooth;
}

/* Подключение шрифтов */
@font-face {
    font-family: 'Fact';
    src: url('/templates/ivvolcentr/assets/fonts/Fact-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fact';
    src: url('/templates/ivvolcentr/assets/fonts/Fact-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fact';
    src: url('/templates/ivvolcentr/assets/fonts/Fact-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Fact', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: #e05b12;
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: #43045e;
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-family: 'Fact', sans-serif;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}


.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--gray-color);
    line-height: 1.2;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    font-size: 16px;
    color: var(--dark-color);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--light-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--secondary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    pointer-events: all; /* Убедитесь, что кнопка кликабельна */
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    }

.mobile-menu-btn span {
    pointer-events: none; /* Но spans внутри не блокируют клик */
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile Navigation */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--light-color);
    box-shadow: var(--shadow-lg);
    z-index: 1002;
    transition: right 0.3s ease-in-out; /* Используем transition для right */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    font-size: 18px;
}

.mobile-navigation.active {
    right: 0; /* Меняем right на 0 для появления */
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-logo img {
    height: 40px;
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: var(--dark-color);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-list {
  font-family: 'Fact', sans-serif;
    list-style: none;
    padding: 20px;
    flex-grow: 1;
}

.mobile-nav-link {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}

.mobile-nav-link.active {
    color: var(--secondary-color);
}

.mobile-dropdown-btn {
  font-family: 'Fact', sans-serif;
      font-size: 18px;
    width: 100%;
    text-align: left;
    padding: 15px 0;
    color: var(--dark-color);
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-btn::after {
    content: '+';
    font-size: 20px;
    transition: var(--transition);
}

.mobile-dropdown-btn.active::after {
    content: '-';
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown-item {
    display: block;
    padding: 12px 0 12px 20px;
    color: var(--gray-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    color: var(--secondary-color);
}

.mobile-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-social {
    padding: 20px;
    padding-bottom: 80px;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--border-color);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--dark-color);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slider {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(84, 5, 117, 0.8) 0%, rgba(255, 102, 20, 0.6) 100%);
}

.slide-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--light-color);
    padding: 20px 0px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 30px;
    align-self: flex-start;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 10;
}

.slider-prev,
.slider-next {
    background: none;
    border: none;
    color: var(--light-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--light-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: var(--light-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Stats Section */
.stats-section {
    padding: 40px 0;
    background-color: var(--secondary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.stat-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-color);
    line-height: 1.4;
}

/* About Section */
.about-section {
    padding: 40px 0;
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-subtitle {
    font-family: 'Fact';
    font-weight: 400;
    display: inline-block;
    color: var(--secondary-color);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title_programs {
    color: var(--light-color);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.section-description-programs {
    font-size: 1.1rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--secondary-color);
    gap: 15px;
}

.section-footer {
    text-align: center;
    margin-top: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.feature {
    display: flex;
    gap: 8px;
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 20px;
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.about-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

/* Projects Section */
.projects-section {
    padding: 40px 0;
    background-color: var(--light-gray);
    background-image: url('/templates/ivvolcentr/assets/images/back_ob.svg');
    background-size: cover;
    background-position: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.project-content {
    padding: 30px;
    padding-bottom: 10px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0px;
    color: var(--primary-color);
}

.project-description {
    color: var(--gray-color);
    margin-bottom: 0px;
    line-height: 1.5;
}

.project-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--gray-color);
    margin-top: 5px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-color);
    gap: 15px;
}

/* Benefits Section */
.benefits-section {
    padding: 40px 0;
    background-color: var(--light-color);
}

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

.benefit-card {
    background-color: var(--light-color);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.benefit-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.benefit-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.benefit-description {
    color: var(--gray-color);
    line-height: 1.5;
}

/* Programs Section */
.programs-section {
    padding: 40px 0;
    background-color: var(--primary-color);
}

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

.program-item {
    background-color: var(--light-color);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.program-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-item span {
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
}

.program-item img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* News Section */
.news-section {
    padding: 40px 0;
    background-color: var(--light-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.news-image {
    height: 200px;
    overflow: hidden;
}

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

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 30px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--gray-color);
}

.news-category {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 600;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--secondary-color);
    gap: 15px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7a2b9a 100%);
    color: var(--light-color);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.cta-title .highlight {
    color: var(--secondary-color);
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.footer-top {
    padding: 80px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-description {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social .social-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.footer-social .social-link:hover {
    background-color: var(--secondary-color);
}

.footer-title {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.contact-item i {
    color: var(--secondary-color);
    font-size: 18px;
    margin-top: 3px;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.contact-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-partners {
    display: flex;
    gap: 20px;
    align-items: center;
}

.partner-link img {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.partner-link:hover img {
    opacity: 1;
}

.footer-policy {
    display: flex;
    gap: 20px;
}

.footer-policy a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-policy a:hover {
    color: var(--secondary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Header */
    .main-navigation,
    .header-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-wrapper {
        padding: 0 15px;
    }
    
    /* Hero */
    .hero-section {
        min-height: 500px;
    }
    
    .slide-content {
        text-align: center;
        align-items: center;
    }
    
    .hero-badge {
        align-self: center;
    }
    
    .hero-title .highlight::after {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .slider-controls {
        bottom: 20px;
    }
    
    /* Sections */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid,
    .benefits-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .about-actions {
        justify-content: center;
    }
    
    /* Footer */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-partners,
    .footer-policy {
        justify-content: center;
    }
    
    .footer-grid {
        gap: 30px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 25px;
    }
    
    .btn-large {
        padding: 14px 35px;
        white-space: normal; /* Разрешаем перенос текста */
        max-width: 100%; /* Не превышать ширину контейнера */
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--light-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(84, 5, 117, 0.1);
}

.form-control.error {
    border-color: var(--danger-color);
}

.form-text {
    font-size: 14px;
    color: var(--gray-color);
    margin-top: 5px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
}

.form-check-label {
    font-size: 14px;
    color: var(--gray-color);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }
.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.cursor-pointer { cursor: pointer; }
.user-select-none { user-select: none; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .back-to-top {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
}

/* News Section - Horizontal Card Layout */
.news-grid.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-card.horizontal {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.news-card-inner {
    display: flex;
    height: 200px; /* Фиксированная высота карточки */
    overflow: hidden;
}

.news-image-container {
    position: relative;
    flex: 0 0 200px; /* Фиксированная ширина для квадратного изображения */
    height: 200px;
    overflow: hidden;
    background-color: var(--light-gray);
}

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

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

.news-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.news-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* Для правильной работы text-overflow */
}

.news-content-top {
    flex: 1;
    margin-bottom: 15px;
    overflow: hidden;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-excerpt {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.news-date {
    color: var(--gray-color);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.news-read-more:hover {
    color: var(--light-color);
    background-color: var(--secondary-color);
    gap: 8px;
}

.news-read-more::after {
    content: '→';
    font-size: 0.9rem;
    transition: var(--transition);
}

.news-read-more:hover::after {
    transform: translateX(3px);
}

.news-footer {
    text-align: center;
    margin-top: 50px;
}

/* Для DLE шаблона news-card-horizontal */
.shortstory-horizontal {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 200px;
}

.shortstory-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.shortstory-horizontal__inner {
    display: flex;
    height: 100%;
    overflow: hidden;
}

.shortstory-horizontal__cover {
    position: relative;
    flex: 0 0 200px;
    height: 100%;
    overflow: hidden;
    background-color: var(--light-gray);
}

.shortstory-horizontal__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shortstory-horizontal:hover .shortstory-horizontal__cover img {
    transform: scale(1.05);
}

.shortstory-horizontal__content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.shortstory-horizontal__top {
    flex: 1;
    overflow: hidden;
}

.shortstory-horizontal__title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shortstory-horizontal__title a {
    color: inherit;
    text-decoration: none;
}

.shortstory-horizontal__title a:hover {
    color: var(--secondary-color);
}

.shortstory-horizontal__description {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
    
    /* Ограничение до 2 строк с троеточием */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em; /* 2 строки * line-height 1.5 = 3em */
}

.shortstory-horizontal__meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.shortstory-horizontal__date {
    color: var(--gray-color);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.shortstory-horizontal__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.shortstory-horizontal__read-more:hover {
    color: var(--light-color);
    background-color: var(--secondary-color);
    gap: 8px;
}

/* Responsive Design for News Section */
@media (max-width: 1100px) {
    .news-grid.two-column {
        gap: 20px;
    }
    
    .news-card-inner {
        height: 180px;
    }
    
    .news-image-container,
    .news-image-container {
        flex: 0 0 180px;
        height: 180px;
    }
    
    .news-content {
        padding: 15px;
    }
}

@media (max-width: 992px) {
    .news-grid.two-column {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .news-card-inner {
        height: 200px;
    }
    
    .news-image-container {
        flex: 0 0 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .news-card-inner {
        height: 180px;
    }
    
    .news-image-container {
        flex: 0 0 180px;
        height: 180px;
    }
    
    .news-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }
    
    .news-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 576px) {
    .news-card-inner {
        height: 160px;
    }
    
    .news-image-container {
        flex: 0 0 160px;
        height: 160px;
    }
    
    .news-content {
        padding: 12px;
    }
    
    .news-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }
    
    .news-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-height: 1.4;
    }
    
    .news-meta-bottom {
        padding-top: 10px;
    }
    
    .news-date {
        font-size: 0.8rem;
    }
    
    .news-read-more {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .news-card-inner {
        flex-direction: column;
        height: auto;
    }
    
    .news-image-container {
        flex: 0 0 200px;
        width: 100%;
        height: 200px;
    }
    
    .news-content {
        min-height: 180px;
    }
    
    .news-title {
        font-size: 1.1rem;
        -webkit-line-clamp: 2;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
}

/* Контейнер FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Элемент вопроса-ответа */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    background: var(--light-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Вопрос (кликабельный заголовок) */
.faq-question {
    padding: 20px 25px;
    background-color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(84, 5, 117, 0.05);
}

.faq-question h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    padding-right: 20px;
}

.faq-question i {
    color: var(--gray-color);
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 14px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* Область ответа */
.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background: var(--light-color);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* Краткий ответ */
.faq-short-answer {
    line-height: 1.6;
    color: var(--gray-color);
    margin-bottom: 0;
}

.faq-short-answer p {
    margin-bottom: 20px;
}

/* Кнопка "Читать далее" */
.faq-read-more {
    margin-top: 20px;
    text-align: right;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(84, 5, 117, 0.3);
    color: white;
}

.btn-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* FAQ */
.faq-section {
    margin: 80px 0;
    background: var(--light-color);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: left;
}

.faq-question h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.1rem;
}

.faq-question i {
    color: var(--gray-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--gray-color);
    margin: 0;
    line-height: 1.6;
}

/* Горизонтальная карточка члена команды */
.team-card-horizontal {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    padding: 20px 20px 0 0;
    display: flex;
    align-items: flex-end;
    gap: 25px;
    min-height: 180px;
    position: relative;
    overflow: visible;
    transform: translateX(0px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* Контейнер для фото с выступом сверху */
.member-photo-container {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    margin-top: -40px; /* Фото выступает сверху */
    display: flex;
    align-items: flex-end;
    margin-left: 10px;
    z-index: 7;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}


/* Информация справа от фото */
.member-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 0 10px 0;
    min-height: 160px;
    justify-content: space-between;
}

.member-name {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.member-position {
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 15px;
    font-size: 0.95rem;
    padding: 4px 12px;
    background-color: rgba(255, 102, 20, 0.1);
    border-radius: 20px;
    display: inline-block;
    max-width: fit-content;
}

/* Контактная информация */
.member-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    color: var(--primary-color);
    font-size: 15px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-item:hover .contact-icon {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.contact-link {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
    line-height: 1.4;
}

.contact-link:hover {
    color: var(--secondary-color);
}

/* Адаптивность для горизонтальных карточек */
@media (max-width: 768px) {
    .team-card-horizontal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px 20px 20px;
        min-height: auto;
    }
    
    .member-photo-container {
        margin-top: -50px;
        width: 130px;
        height: 180px;
        margin-left: 0;
    }
    
    .member-info-content {
        padding: 20px 0 0 0;
        align-items: center;
        min-height: auto;
    }
    
    .member-position {
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    /* Меняем градиент с левой на верхнюю границу */
    .team-card-horizontal:nth-child(1),
    .team-card-horizontal:nth-child(2),
    .team-card-horizontal:nth-child(3),
    .team-card-horizontal:nth-child(4) {
        border-left: none;
        border-top: 4px solid var(--primary-color);
    }
    
    .team-card-horizontal:nth-child(2) {
        border-top-color: var(--secondary-color);
    }
    
    .team-card-horizontal:nth-child(3) {
        border-top-color: #28a745;
    }
    
    .team-card-horizontal:nth-child(4) {
        border-top-color: #17a2b8;
    }
}

@media (max-width: 480px) {
    .team-card-horizontal {
        gap: 20px;
    }
    
    .member-photo-container {
        width: 120px;
        height: 170px;
        margin-top: -40px;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
    
    .member-position {
        font-size: 0.9rem;
    }
    
    .contact-link {
        font-size: 0.85rem;
    }
}

/* Анимация появления карточек */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.team-card-horizontal {
    animation: slideInFromLeft 0.5s ease forwards;
    opacity: 0;
}

.team-card-horizontal:nth-child(1) {
    animation-delay: 0.1s;
}

.team-card-horizontal:nth-child(2) {
    animation-delay: 0.2s;
}

.team-card-horizontal:nth-child(3) {
    animation-delay: 0.3s;
}

.team-card-horizontal:nth-child(4) {
    animation-delay: 0.4s;
}

/* Contact Page Specific Styles */
.contacts-page {
    background-color: var(--light-color);
}

/* Contact Hero */
.contact-hero {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 60px 0 40px;
    text-align: center;
    margin-top: 80px;
}

.contact-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.contact-hero-title .highlight {
    color: var(--accent-color);
}

.contact-hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Building Location Section */
.building-location {
    padding: 60px 0;
    background-color: var(--light-color);
}

.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 992px) {
    .location-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.building-image-section {
    position: relative;
    overflow: hidden;
}

.building-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.building-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.building-image-container:hover .building-image {
    transform: scale(1.05);
}

.location-description {
    padding: 20px;
}

.location-title {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.location-info {
    line-height: 1.6;
}

.location-info p {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.location-info strong {
    color: var(--primary-color);
}

.location-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.location-features li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.location-features li:before {
    content: "•";
    color: var(--secondary-color);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 0;
}

.transport-info {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: var(--radius);
    margin: 25px 0;
}

.transport-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.transport-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.location-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Contact Info Blocks */
.contact-info-blocks {
    padding: 60px 0;
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
    background-image: url(/templates/ivvolcentr/assets/images/pattern-white.svg);
    background-size: cover;
}

.info-blocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .info-blocks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.info-block {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
}

.info-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.block-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.block-icon {
    font-size: 40px;
    line-height: 1;
}

.block-title {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.4rem;
}

.block-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-category h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 10px;
}

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

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

.contact-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    line-height: 1.4;
}

.contact-value1 {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.contact-value1:hover {
    color: var(--secondary-color);
}

.contact-value1 small {
    font-size: 0.85rem;
    color: var(--gray-color);
    font-weight: normal;
    margin-left: 5px;
}

.hours-list .contact-value1 {
    color: var(--dark-color);
    font-weight: 600;
}

.email-note, .hours-note {
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    color: var(--gray-color);
    font-size: 0.9rem;
}

.email-note strong, .hours-note strong {
    color: var(--primary-color);
}

/* Team Contacts - Horizontal Cards */
.team-contacts-horizontal {
    padding: 80px 0;
    background-color: var(--light-color);
}

.team-contacts-horizontal .section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Сетка 2 колонки */
.team-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .team-grid-horizontal {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

/* Social Connect */
.social-connect {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7a2b9a 100%);
    color: var(--light-color);
    text-align: center;
}

.connect-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.connect-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
    min-width: 200px;
    justify-content: center;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.social-btn.vk:hover { background-color: #0077ff; color: white; }
.social-btn.telegram:hover { background-color: #0088cc; color: white; }
.social-btn.ob:hover { background-color: #ff6614; color: white; }

.social-icon {
    font-weight: 700;
    font-size: 1.2rem;
}

.social-label {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0 40px;
    }
    
    .location-actions {
        flex-direction: column;
    }
    
    .location-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-hero-description {
        font-size: 1rem;
    }
    
    .location-title {
        font-size: 1.5rem;
    }
    
    .location-features li {
        padding-left: 25px;
    }
    
    .info-block {
        padding: 20px;
    }
    
    .block-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-list li {
        text-align: center;
    }
}

/* Страница всех новостей */
.all-news-section {
    background-color: var(--light-color);
}

/* Шапка страницы */
.page-header {
    margin-top: 100px;
    margin-bottom: 40px;
    text-align: center;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--gray-color);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--gray-color);
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Сетка новостей на странице всех новостей */
.news-grid.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Баннер подписки */
.news-subscribe {
    background-color: var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 60px;
    box-shadow: var(--shadow);
}

.subscribe-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.subscribe-icon {
    font-size: 50px;
    color: var(--secondary-color);
}

.subscribe-text {
    flex: 1;
    min-width: 250px;
}

.subscribe-text h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.subscribe-text p {
    color: var(--gray-color);
    line-height: 1.5;
}

.subscribe-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.subscribe-form .btn {
    white-space: nowrap;
}

/* Адаптивность */
@media (max-width: 992px) {
    .news-grid.two-column {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .subscribe-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .subscribe-form {
        flex-direction: column;
        width: 100%;
    }
    
    .subscribe-form input,
    .subscribe-form .btn {
        width: 100%;
    }
    
    .subscribe-text {
        min-width: 100%;
    }
    
    .news-subscribe {
        padding: 30px 20px;
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .news-grid.two-column {
        gap: 20px;
    }
}