/* Герой секция */
.hero {
    width: 100%;
}
.hero > img {
    width: 100%;
    object-fit: fill;
    z-index: -1;
}

/* Секция слайдера */
.slider-section {
    padding: 60px 0;
    background-color: var(--section-bg-tertiary);
}

.slider-header {
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.slider-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.slider-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--text-color);
}

.settings-panel {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    gap: 15px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    justify-content: center;
}

.toggle-btn {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn.active {
    background: var(--accent-color);
    color: #333;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.toggle-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    margin: 0 auto 20px;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.images-container {
    display: flex;
    width: 95%;
    height: 90%;
    position: relative;
    gap: 15px;
    align-items: center;
}

.side-container {
    flex: 1;
    height: 80%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    opacity: 0.6;
    transition: all 0.5s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.side-container.left {
    margin-right: -25px;
    z-index: 1;
}

.side-container.left .side-image {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.side-container.right {
    margin-left: -25px;
    z-index: 1;
}

.side-container.right .side-image {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.main-container {
    flex: 2.5;
    height: 100%;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

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

.slide-content {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    color: white;
    padding: 20px;
    z-index: 3;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.slide-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-description {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 20px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: #2c3e50;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.5);
}

.indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
}

.slide-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
    font-weight: bold;
}

/* Анимация для автоматического перехода */
@keyframes slideProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(to right, var(--header-bg), var(--accent-color));
    width: 0%;
    z-index: 10;
    border-radius: 0 0 5px 0;
    box-shadow: 0 0 10px rgba(26, 42, 108, 0.5);
}

.progress-bar.animated {
    animation: slideProgress 5s linear forwards;
}

.image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 20px;
    background: linear-gradient(45deg, var(--header-bg), #2c3e50);
    color: white;
}

.image-fallback svg {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px;
    opacity: 0.8;
    fill: currentColor;
}

/* Секция "О нас" */
.about {
    padding: 60px 0;
    background-color: var(--section-bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    width: 250px;
    margin: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--gold-title-color);
    margin-bottom: 10px;
}

.stat-text {
    color: #666;
}

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

.approach-item {
    background: var(--card-bg-alt);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.approach-item h3 {
    margin-bottom: 15px;
    color: var(--gold-title-color);
}

.approach-item i {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
}

ul {
    padding-left: 10px;
}

/* Секция партнеров */
.partners {
    padding: 60px 0;
    background-color: var(--section-bg-alt);
}

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

.partner-card {
    background: var(--card-bg-alt);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    display: grid;
    grid-template-rows: 200px auto auto;
    align-items: center;
    justify-content: center;
    justify-items: center;
}

.partner-img {
    max-width: 80%;
    max-height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
    background-color: white;
    box-shadow: var(--partner-logo-img);
}

.partner-img.circle {
    border-radius: 50%;
}

.partner-name {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--gold-title-color);
    text-transform: uppercase;
    line-height: 25px;
}

/* Секция формы */
.form-section {
    padding: 60px 0;
    background: var(--form-bg);
    color: white;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--form-container-bg);
    padding: 40px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.form-title {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.form-title span {
    color: var(--accent-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.form-group textarea {
    height: 120px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: #333;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--accent-hover);
}

/* Подвал */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-info {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
}

.footer-info h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

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

.social-link img {
    width: 100%;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

@media (max-width: 768px) {
    .slider-container {
        height: 400px;
        margin-bottom: 40px;
    }
    
    .slider-header h2 {
        font-size: 1.8rem;
    }
    
    .slider-header p {
        font-size: 1rem;
    }
   
    .settings-panel {
        flex-direction: column;
        gap: 10px;
    }
    
    .images-container {
        width: 100%;
        gap: 0;
    }
    
    /* Скрываем боковые изображения на мобильных */
    .side-container {
        display: none;
    }
    
    .main-container {
        flex: 1;
        margin: 0 10px;
        transform: scale(1);
        border-radius: 8px;
    }
    
    .slide-title {
        font-size: 1.4rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .slider-indicators {
        gap: 10px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 35px;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slide-title {
        font-size: 1.2rem;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-description {
        display: none;
    }
    
    .main-container {
        margin: 0 5px;
    }
}