section {
    padding: 5rem 0;
    position: relative;
}

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -5%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 23, 68, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-text {
    font-size: clamp(18px, 2vw, 24px);
    max-width: 900px;
    margin: 2rem auto;
    color: var(--text);
    line-height: 1.8;
}

.table-of-contents {
    background: var(--dark-blue);
    padding: 3rem 0;
}

.toc-details {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.toc-details summary {
    font-weight: 600;
    font-size: 20px;
    color: var(--secondary);
    cursor: pointer;
    list-style: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.toc-details summary:hover {
    color: var(--accent);
}

.toc-details summary::marker,
.toc-details summary::-webkit-details-marker {
    display: none;
}

.toc-details summary::after {
    content: '▼';
    float: right;
    transition: transform 0.3s ease;
}

.toc-details[open] summary::after {
    transform: rotate(180deg);
}

.toc-list {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.toc-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.toc-list a {
    color: var(--text);
    transition: all 0.3s ease;
    display: inline-block;
}

.toc-list a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.timeline-item {
    background: var(--dark-blue);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    border-left-color: var(--secondary);
    box-shadow: var(--shadow-glow);
}

.feature-block {
    background: var(--card);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 229, 255, 0.1);
    transition: all 0.4s ease;
}

.feature-block:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.cards-grid-3 .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--dark-blue);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

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

.support-section,
.security-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.accordion-item {
    background: var(--dark-blue);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--secondary);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    user-select: none;
    position: relative;
    font-size: 20px;
    transition: all 0.3s ease;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.accordion-header:hover {
    color: var(--secondary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-body {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.cta-section {
    background: var(--gradient-primary);
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 214, 0, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

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

.cta-section h2,
.cta-section p {
    position: relative;
    z-index: 2;
    color: var(--light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-section h2::after {
    background: var(--light);
}

.cta-section p {
    font-size: clamp(18px, 2vw, 22px);
    max-width: 800px;
    margin: 1.5rem auto 2.5rem;
}

.cta-section .btn-primary {
    background: var(--light);
    color: var(--primary);
    font-size: 20px;
    padding: 20px 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cta-section .btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 991px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 5rem 0;
    }
    
    h1 {
        font-size: clamp(32px, 6vw, 56px);
    }
    
    h2 {
        font-size: clamp(28px, 5vw, 44px);
    }
}

@media (max-width: 767px) {
    section {
        padding: 2.5rem 0;
    }
    
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .cards-grid-3 .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .timeline-item,
    .feature-block {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .btn {
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .cta-section .btn-primary {
        font-size: 18px;
        padding: 16px 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
}

/* Убираем max-height у всех изображений на главной странице, кроме логотипа */
.content-image img {
    max-height: none !important;
}

.content-image.portrait img {
    max-height: none !important;
}

.content-image.wide img {
    max-height: none !important;
}