/* ============ ОПТИМИЗИРОВАННЫЙ main-style.css ============ */
:root {
    --primary-gradient: linear-gradient(270deg, #134381 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(45deg, #667eea, #764ba2);
    --light-bg: rgba(255, 255, 255, 0.95);
    --dark-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #555;
    --accent: #667eea;
    --accent-dark: #5a6fd8;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #f44336;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-large: 0 10px 30px rgba(0,0,0,0.2);
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --gold: #FFD700;
    --gold-dark: #FFA500;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    padding-top: 80px;
}

h1, h2, h3, .hero-title, .section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    letter-spacing: -0.02em;
}

/* ============ ШАПКА ============ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 106px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.logo-caption {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 0;
    border-radius: 8px;
    margin-top: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    text-align: center;
    line-height: 1.2;
}

.logo-text h1 {
    font-size: 1.5em;
    color: var(--text-dark);
    font-weight: 300;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.9em;
    color: var(--accent);
    margin: 0;
    font-weight: 500;
}

.nav-main ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    background: transparent;
}

.nav-main a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    font-size: 0.95em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-main a:hover,
.nav-main a.active {
    color: var(--accent);
}

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

/* ============ БУРГЕР-МЕНЮ ============ */
.burger-menu {
    display: none;
}

@media (max-width: 992px) {
    .nav-main {
        display: none;
    }

    .burger-menu {
        display: block;
        position: relative;
    }

    .burger-icon {
        width: 35px;
        height: 25px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }

    .burger-icon span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--accent);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .burger-icon.open span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
        background: var(--gold);
    }

    .burger-icon.open span:nth-child(2) {
        opacity: 0;
    }

    .burger-icon.open span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
        background: var(--gold);
    }

    .burger-nav {
        position: absolute;
        top: 50px;
        right: 0;
        background: rgba(19, 67, 129, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 15px;
        padding: 20px;
        list-style: none;
        margin: 0;
        width: 250px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .burger-nav.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .burger-nav li {
        margin-bottom: 15px;
        text-align: right;
    }

    .burger-nav li:last-child {
        margin-bottom: 0;
    }

    .burger-nav a {
        color: white;
        text-decoration: none;
        font-size: 1.1em;
        font-weight: 500;
        transition: color 0.3s ease;
        display: block;
        padding: 5px 0;
    }

    .burger-nav a:hover,
    .burger-nav a.active {
        color: var(--gold);
    }
}

/* ============ ГЕРОЙ-СЕКЦИЯ ============ */
.hero-section {
    padding: 30px 20px 0;
    background: transparent;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before,
.hero-section::after {
    display: none;
}

.hero-content {
    max-width: 1000px;
    margin: 20px auto;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-title {
    font-size: 58px;
    margin-bottom: 60px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    line-height: 1.2;
}

/* Шарик с Леонардо */
.hero-image-container {
    position: relative;
    margin: 0 auto 70px;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-ball {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 50px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(145, 11, 145, 0.562);
    cursor: pointer;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.hero-image-ball:not(.popped) {
    animation: floatBall 6s ease-in-out infinite;
}

.hero-image-ball img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    border-radius: 50%;
    opacity: 0.6;
}

@keyframes floatBall {
    0% { transform: translateX(0) translateY(0px); }
    25% { transform: translateX(6px) translateY(-8px); }
    50% { transform: translateX(-6px) translateY(-15px); }
    75% { transform: translateX(8px) translateY(-5px); }
    100% { transform: translateX(0) translateY(0px); }
}

.hero-image-ball:not(.popped):hover {
    animation: breathGlowHover 1.8s ease-in-out infinite;
    border: 8px solid rgba(255, 255, 255, 0.8);
    z-index: 20;
}

@keyframes breathGlowHover {
    0% {
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0.25), 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 0 80px rgba(255, 255, 255, 0.3);
        transform: scale(1.2);
    }
    50% {
        border-color: rgba(118, 75, 162, 0.9);
        box-shadow: 0 0 0 30px rgba(118, 75, 162, 0.35), 0 0 60px rgba(102, 126, 234, 0.7), 0 20px 70px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(255, 255, 255, 0.4);
        transform: scale(1.25);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0.25), 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 0 80px rgba(255, 255, 255, 0.3);
        transform: scale(1.2);
    }
}

/* Блики */
.hero-image-ball::before,
.hero-image-ball::after,
.hero-image-ball .shine-edge,
.hero-image-ball .glass-overlay,
.hero-image-ball .glass-reflection {
    position: absolute;
    pointer-events: none;
}

/* Финальное изображение */
.hero-image-final {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    filter: blur(10px) opacity(0);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-image-final.show {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) opacity(1);
    width: 509px;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.4), 0 0 120px rgba(118, 75, 162, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.1);
    left: 50%;
    margin-left: -254.5px;
    animation: transformToRectangle 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, gentleGlow 4s ease-in-out infinite 1.2s;
}

.hero-image-final img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1.2s ease;
    border-radius: inherit;
}


@keyframes transformToRectangle {
    0% { width: 100%; height: 100%; border-radius: 50%; transform: scale(0.8); left: 0; margin-left: 0; }
    30% { width: 350px; height: 250px; border-radius: 25%; transform: scale(1); left: 50%; margin-left: -175px; }
    60% { width: 450px; height: 280px; border-radius: 15%; transform: scale(1.05); left: 50%; margin-left: -225px; }
    100% { width: 509px; height: 300px; border-radius: 10px; transform: scale(1); left: 50%; margin-left: -254.5px; }
}

@keyframes gentleGlow {
    0%, 100% { box-shadow: 0 0 60px rgba(102, 126, 234, 0.4), 0 0 120px rgba(118, 75, 162, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.1); transform: scale(1); }
    50% { box-shadow: 0 0 80px rgba(102, 126, 234, 0.6), 0 0 140px rgba(118, 75, 162, 0.3), inset 0 0 40px rgba(255, 255, 255, 0.15); transform: scale(1.02); }
}

@keyframes popAnimation {
    0% { transform: scale(1) rotate(0deg); opacity: 1; filter: brightness(1) blur(0) saturate(1); border-width: 8px; }
    100% { transform: scale(2.5) rotate(40deg); opacity: 0; visibility: hidden; filter: brightness(3.5) blur(15px) saturate(6); }
}

.hero-image-ball.popping {
    animation: popAnimation 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    pointer-events: none;
}

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

.btn-hero {
    background: white;
    color: var(--accent);
    border: none;
    padding: 18px 45px;
    border-radius: var(--border-radius);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    min-width: 200px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 16px 40px;
    border-radius: var(--border-radius);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ============ ИКОНКИ ============ */
.icons-showcase {
    padding: 40px 20px 20px;
    background: transparent;
    position: relative;
    z-index: 10;
}

.icons-showcase .container {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    border-radius: 20px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.icon-item {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
    aspect-ratio: 1/1;
    overflow: hidden;
    display: block;
}

.icon-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 30px rgba(102, 126, 234, 0.4);
}

.icon-item .icon-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, filter 0.4s ease;
    z-index: 1;
    filter: grayscale(100%);
}

.icon-item:hover .icon-image {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.icon-item .icon-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(102, 126, 234, 0.7), rgba(118, 75, 162, 0.4), transparent);
    color: white;
    padding: 15px 5px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
    backdrop-filter: blur(2px);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    pointer-events: none;
}

/* Изображения для иконок */
.icon-item.authors .icon-image { background-image: url('image/authors.png'); }
.icon-item.methodology .icon-image { background-image: url('image/methodology.png'); }
.icon-item.articles .icon-image { background-image: url('image/calc.png'); }
.icon-item.seminars .icon-image { background-image: url('image/seminars.png'); }
.icon-item.contacts .icon-image { background-image: url('image/contacts.png'); }
.icon-item.videos .icon-image { background-image: url('image/material.png'); }

/* ============ ГРИД ============ */
.grid-showcase {
    padding: 20px 20px 60px;
    background: transparent;
    position: relative;
    z-index: 10;
}

.grid-showcase .container {
    max-width: 1200px;
    margin: 0 auto;
    background: #D5D7D4;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.grid-showcase h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 2.2em;
    font-weight: 300;
}

.grid-showcase h2 span {
    color: var(--accent);
    font-weight: 600;
}

.grid-showcase .grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 150px);
    gap: 15px;
    background: transparent;
    padding: 5px;
    border-radius: 16px;
    margin: 0;
}

.grid-showcase .grid-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.4s ease;
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
}

.grid-showcase .grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(102, 126, 234, 0.3);
    border-color: var(--accent);
}

.grid-showcase .grid-item .static-image,
.grid-showcase .grid-item .gif-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease;
}

.grid-showcase .grid-item .gif-image {
    opacity: 0;
}

.grid-showcase .grid-item:hover .static-image {
    opacity: 0;
}

.grid-showcase .grid-item:hover .gif-image {
    opacity: 1;
}

/* Позиционирование элементов сетки */
.grid-showcase .item1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.grid-showcase .item2 { grid-column: 1 / 3; grid-row: 3 / 5; }
.grid-showcase .item3 { grid-column: 3 / 4; grid-row: 1 / 2; }
.grid-showcase .item4 { grid-column: 3 / 4; grid-row: 4 / 5; }
.grid-showcase .item5 { grid-column: 4 / 5; grid-row: 1 / 2; }
.grid-showcase .item6 { grid-column: 4 / 5; grid-row: 4 / 5; }
.grid-showcase .item7 { grid-column: 5 / 7; grid-row: 1 / 5; }
.grid-showcase .item8 { 
    grid-column: 3 / 5; 
    grid-row: 2 / 4; 
    border: 3px solid var(--accent);
    z-index: 5;
}

/* Изображения для сетки */
.item1 .static-image { background-image: url('image/harmony.png'); }
.item1 .gif-image { background-image: url('image/harmony.gif'); }
.item2 .static-image { background-image: url('image/collective.png'); }
.item2 .gif-image { background-image: url('image/collective.gif'); }
.item3 .static-image { background-image: url('image/creative.jpg'); }
.item3 .gif-image { background-image: url('image/creative.gif'); }
.item4 .static-image { background-image: url('image/prof.png'); }
.item4 .gif-image { background-image: url('image/prof.gif'); }
.item5 .static-image { background-image: url('image/eye.png'); }
.item5 .gif-image { background-image: url('image/eye.gif'); }
.item6 .static-image { background-image: url('image/desease.png'); }
.item6 .gif-image { background-image: url('image/desease.gif'); }
.item7 .static-image { background-image: url('image/mayak.jpg'); }
.item7 .gif-image { background-image: url('image/mayak.gif'); }
.item8 .static-image { background-image: url('image/passport2.png'); background-size: contain; }
.item8 .gif-image { background-image: url('image/passport_gif.gif'); background-size: contain; }

/* Подписи */
.grid-showcase .item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.9));
    color: white;
    padding: 10px 5px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
    backdrop-filter: blur(5px);
    border-top: 2px solid rgba(255,255,255,0.3);
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.grid-showcase .grid-item:hover .item-caption {
    transform: translateY(0);
}

/* ============ МЕТОД КАПСИД ============ */
.method-kapsid-section {
    padding: 20px 20px;
    position: relative;
}

.method-kapsid-container {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.method-kapsid-section .method-kapsid-title {
    text-align: center;
    margin-bottom: 10px;
    color: white;
    font-size: 2.5em;
    font-weight: 300;
    position: relative;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.method-kapsid-section .method-kapsid-title .gold-text {
    color: var(--gold);
    font-weight: 600;
}

.method-kapsid-section .method-kapsid-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 10px auto 40px;
    font-size: 1.2em;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}

.glass-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 40px;
    color: white;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: white;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
}

.glass-card-header {
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gold-text {
    color: var(--gold);
}

.gold-gradient-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.green-gradient-icon {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purple-gradient-icon {
    background: linear-gradient(135deg, var(--accent), #764ba2);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gold-gradient-icon i, .green-gradient-icon i, .purple-gradient-icon i {
    color: white;
    font-size: 1.5em;
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.method-card-full {
    grid-column: 1 / -1;
}

.method-card-body {
    padding: 25px;
}

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

.method-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    color: white;
    line-height: 1.5;
    font-size: 0.95em;
}

.method-list li i {
    font-size: 1.1em;
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.btn-gold-outline {
    border-color: var(--gold);
    color: white;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.method-kapsid-button {
    margin-top: 40px;
    text-align: center;
}

/* ============ ДЕТАЛЬНЫЕ КОНТЕЙНЕРЫ ============ */
.detail-containers-section {
    width: 100%;
    padding: 0 5px 5px;
    background: transparent;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.detail-containers-section .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    border-radius: 20px;
    padding: 0;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.detail-container {
    display: block;
    margin-bottom: 30px;
    scroll-margin-top: 100px;
    box-sizing: border-box;
}

.glass-style {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-style:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
}

.glass-style .detail-inner {
    display: flex;
    align-items: stretch;
    padding: 30px;
    gap: 30px;
}

.glass-content {
    flex: 0 0 60%;
    max-width: calc(60% - 15px);
    width: 60%;
    padding: 30px 35px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.glass-style .detail-image-wrapper {
    flex: 0 0 40%;
    max-width: calc(40% - 15px);
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.glass-style .detail-image {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.glass-style .detail-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(255, 215, 0, 0.3);
    border-color: var(--gold);
}

.glass-style .detail-static,
.glass-style .detail-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease;
}

.glass-style .detail-gif {
    opacity: 0;
}

.glass-style .detail-image:hover .detail-static {
    opacity: 0;
}

.glass-style .detail-image:hover .detail-gif {
    opacity: 1;
}

.glass-features {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 30px;
    width: 100%;
    color: white;
}

.detail-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.detail-features li {
    margin-bottom: 18px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05em;
}

.detail-features li i {
    color: var(--gold);
    width: 28px;
    font-size: 1.3em;
    text-align: center;
}

.gold-btn {
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    color: #134381;
    border: none;
    padding: 16px 30px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gold-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.detail-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 2.2em;
    margin-bottom: 25px;
    color: white;
}

.detail-title span {
    color: var(--gold);
    font-weight: 600;
}

.detail-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.1em;
}

.detail-description p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Чередование изображений */
#detail-2 .detail-image-wrapper,
#detail-4 .detail-image-wrapper,
#detail-6 .detail-image-wrapper {
    order: -1;
}

/* ============ БЛОК АВТОРОВ ============ */
#authors .detail-container {
    background: transparent;
    box-shadow: none;
}

#authors .detail-image-wrapper {
    flex: 0 0 40%;
    max-width: 40%;
}

.authors-image {
    aspect-ratio: 1/1;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    margin-bottom: 25px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.authors-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 35px rgba(102, 126, 234, 0.4);
}

.authors-image .detail-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/we2.png');
    background-size: cover;
    background-position: center;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.authors-image .detail-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/we.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.authors-image:hover .detail-static {
    opacity: 0;
}

.authors-image:hover .detail-hover {
    opacity: 1;
}

.authors-content p:first-child {
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 20px;
}

/* ============ ФОРМЫ ============ */
.glass-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 25px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.glass-form h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 500;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 1em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: 2px solid var(--gold);
    background: rgba(255, 255, 255, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--gold);
    flex-shrink: 0;
}

.form-consent label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85em;
    line-height: 1.4;
}

.form-consent a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-style: dotted;
}

.form-legal-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7em;
    text-align: center;
    margin-top: 15px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-button:disabled,
.gold-btn:disabled,
button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(50%);
}

/* ============ СЕМИНАРЫ ============ */
.seminars-section {
    padding: 5px 20px;
    background: transparent;
}

.glass-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.seminars-section .section-title {
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

.seminars-subtitle {
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 10px auto 40px;
    text-align: center;
    font-size: 1.2em;
    line-height: 1.7;
}

.seminars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 0;
}

.seminar-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 0;
}

.seminar-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.seminar-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8em;
    font-weight: 600;
    z-index: 2;
}

.gradient-purple {
    background: linear-gradient(45deg, var(--accent), #764ba2);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.seminar-header h3 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.seminar-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1em;
}

.seminar-info {
    padding: 30px;
}

.seminar-date,
.seminar-format {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.seminar-date i,
.seminar-format i {
    width: 20px;
    font-size: 1.1em;
}

.seminar-features {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.seminar-features li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.seminar-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* ============ ФУТЕР (ОСНОВНЫЕ СТИЛИ) ============ */
.main-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    padding: 60px 20px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

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

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

.footer-logo h3 {
    font-size: 1.5em;
    font-weight: 600;
}

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

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

.social-links a {
    color: white;
    font-size: 1.3em;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-column h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2em;
}

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

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contacts i {
    color: var(--gold);
    width: 20px;
}

.footer-contacts a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contacts a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Мобильные элементы (скрыты на десктопе) */
.footer-actions,
.footer-mobile-email {
    display: none;
}

/* ============ МЕДИА-ЗАПРОСЫ ============ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5em;
    }
    
    .hero-image-container {
        width: 250px;
        height: 250px;
    }
    
    .hero-image-final.show {
        width: 400px;
        height: 236px;
        margin-left: -200px;
    }
    
    .grid-showcase .grid {
        grid-template-rows: repeat(4, 120px);
    }
    
    .icons-grid {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .detail-container {
        padding: 30px;
    }
    
    .detail-inner,
    .glass-style .detail-inner {
        flex-direction: column;
        gap: 30px;
    }
    
    .detail-content,
    .glass-content,
    .detail-image-wrapper,
    .glass-style .detail-image-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .detail-image {
        max-height: 400px;
    }
    
    .detail-title {
        font-size: 1.8em;
    }
    
    #authors .detail-inner {
        flex-direction: column;
    }
    
    #authors .detail-image-wrapper,
    #authors .detail-content {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    
    #authors .detail-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    #authors .detail-content {
        padding: 30px;
    }
    
    #authors .detail-title {
        font-size: 2em;
        text-align: center;
    }
    
    .method-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seminars-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .nav-main {
        display: none;
    }
    
    section.grid-showcase {
        display: none;
    }
    
    .main-header {
        padding: 5px 15px;
    }
    
    .header-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo-main {
        gap: 8px;
        justify-content: center;
    }
    
    .logo-icon-wrapper img {
        width: 35px;
        height: auto;
    }
    
    .logo-caption {
        font-size: 6px;
        letter-spacing: 0.5px;
    }
    
    .logo-text h1 {
        font-size: 1.1em;
        margin: 0;
    }
    
    .logo-text p {
        font-size: 0.7em;
        margin: 0;
    }
    
    .hero-section {
        padding: 120px 15px 80px;
        min-height: 80vh;
    }
    
    .hero-image-container {
        width: 200px;
        height: 200px;
        margin-bottom: 30px;
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero, .btn-hero-outline {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .icons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .icons-showcase {
        padding: 20px 20px 10px;
    }
    
    .icon-item .icon-label {
        font-size: 12px;
        padding: 12px 5px 8px;
    }
    
    .method-kapsid-section .method-kapsid-title {
        font-size: 2em;
    }
    
    .method-kapsid-section .method-kapsid-subtitle {
        font-size: 1.1em;
        margin: 10px auto 30px;
        padding: 0 15px;
    }
    
    .detail-container {
        padding: 2px;
        border-radius: 30px;
    }
    
    .detail-content,
    .glass-content {
        padding: 25px;
    }
    
    .detail-features-block,
    .glass-features {
        padding: 25px;
    }
    
    .detail-image {
        height: 250px;
        max-height: 250px;
    }
    
    .detail-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    
    .detail-description {
        font-size: 0.95em;
        line-height: 1.5;
    }
    
    .detail-description p {
        margin-bottom: 12px;
    }
    
    .detail-features li {
        font-size: 0.9em;
        margin-bottom: 12px;
        gap: 10px;
    }
    
    .detail-features li i {
        font-size: 1.1em;
        width: 22px;
    }
    
    .gold-btn,
    .detail-btn {
        font-size: 0.95em;
        padding: 12px 20px;
    }
    
    #authors .detail-content {
        padding: 25px;
    }
    
    #authors .detail-title {
        font-size: 1.8em;
    }
    
    #authors .detail-description {
        font-size: 0.95em;
    }
    
    .glass-form,
    #authors .authors-form {
        padding: 20px;
    }
    
    .glass-form h3 {
        font-size: 1.3em;
    }
    
    .form-input {
        padding: 12px;
        font-size: 0.95em;
    }
    
    .gold-btn,
    .form-button {
        padding: 14px;
        font-size: 1em;
    }
    
    .form-consent label {
        font-size: 0.8em;
    }
    
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .seminars-section .container {
        padding: 30px 20px;
    }
    
    .seminars-section .form-row {
        grid-template-columns: 1fr;
    }
    
    .seminars-section .subscribe-form {
        padding: 30px 20px;
    }
    
    .seminars-section .subscribe-form h3 {
        font-size: 1.5em;
    }
    
    /* ============ МОБИЛЬНЫЙ ФУТЕР ============ */
    .main-footer {
        padding: 15px 20px 0;
        background: rgba(0, 0, 0, 0.4);
        margin-top: 30px;
        text-align: center;
    }
    
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 5px;
        padding-bottom: 0;
    }
    
    /* Скрываем все колонки кроме первой */
    .footer-column:not(:first-child) {
        display: none;
    }
    
    /* Первая колонка - видна */
    .footer-column:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 400px;
        margin: 0;
        padding: 0;
    }
    
    /* Скрываем лишние элементы */
    .footer-logo p,
    .footer-description,
    .social-links,
    .footer-links,
    .footer-contacts,
    .footer-column h4 {
        display: none;
    }
    
    /* Стили логотипа */
    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 5px;
        gap: 5px;
    }
    
    .footer-logo img {
        height: 60px;
        width: auto;
        margin: 0;
    }
    
    .footer-logo h3 {
        font-size: 1.5em;
        color: white;
        margin: 5px 0;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
    
    /* Показываем мобильные элементы */
    .footer-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin: 10px 0 5px;
        width: 100%;
    }
    
    .footer-mobile-email {
        display: inline-block;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.85em;
        margin: 5px 0 10px;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .footer-mobile-email:hover {
        color: var(--gold);
    }
    
    .btn-footer-icon {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--accent), #764ba2);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 1.1em;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .btn-footer-icon:hover {
        transform: translateY(-3px) scale(1.05);
        background: linear-gradient(135deg, #764ba2, var(--accent));
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    }
    
    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 5px;
        padding: 8px 0;
    }
    
    .footer-bottom .container {
        text-align: center;
        padding: 0 10px;
    }
    
    .footer-bottom p {
        font-size: 0.7em;
        color: rgba(255, 255, 255, 0.6);
        margin: 0;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 15px;
    }
    
    .hero-image-container {
        width: 170px;
        height: 170px;
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .subscribe-form {
        padding: 30px 20px;
    }
    
    .hero-image-final.show {
        width: 250px;
        height: 147px;
        margin-left: -125px;
    }
    
    .icons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .icon-item .icon-label {
        font-size: 11px;
        padding: 10px 3px 6px;
    }
    
    .method-kapsid-section .method-kapsid-title {
        font-size: 1.6em;
    }
    
    .method-kapsid-section .method-kapsid-subtitle {
        font-size: 1em;
        margin: 10px auto 25px;
    }
    
    .detail-title {
        font-size: 1.4em;
    }
    
    .detail-description {
        font-size: 0.9em;
    }
    
    .detail-features li {
        font-size: 0.85em;
    }
    
    .gold-btn,
    .detail-btn {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    
    .detail-features-block,
    .glass-features {
        padding: 15px;
    }
    
    .detail-image {
        max-height: 200px;
    }
    
    #authors .detail-content {
        padding: 20px;
    }
    
    #authors .detail-title {
        font-size: 1.5em;
    }
    
    #authors .detail-description {
        font-size: 0.9em;
    }
    
    .glass-form,
    #authors .authors-form {
        padding: 15px;
    }
    
    .glass-form h3 {
        font-size: 1.2em;
    }
    
    .form-input {
        padding: 10px;
    }
    
    .gold-btn,
    .form-button {
        padding: 12px;
    }
    
    /* Мобильный футер для 480px */
    .footer-logo img {
        height: 55px;
    }
    
    .footer-logo h3 {
        font-size: 1.4em;
    }
    
    .footer-actions {
        gap: 8px;
    }
    
    .btn-footer-icon {
        width: 38px;
        height: 38px;
        font-size: 1em;
    }
    
    .footer-mobile-email {
        font-size: 0.8em;
    }
    
    .footer-bottom p {
        font-size: 0.65em;
    }
}

/* Анимация для кнопок */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.btn-footer-icon {
    animation: pulse 3s infinite;
}

.btn-footer-icon:hover {
    animation: none;
}
/* ============ ВОССТАНОВЛЕНИЕ ПОРЯДКА ДЛЯ МОБИЛЬНЫХ КОНТЕЙНЕРОВ ============ */

@media (max-width: 992px) {
    /* Сброс порядка для четных */
    #detail-2 .detail-image-wrapper,
    #detail-4 .detail-image-wrapper,
    #detail-6 .detail-image-wrapper {
        order: 0;
    }
    
    /* Для ВСЕХ detail-container на мобилке */
    .detail-containers-section .detail-container .detail-inner {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    /* 1. Контент - первым */
    .detail-containers-section .detail-container .detail-content,
    .detail-containers-section .detail-container .glass-content {
        order: 1;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    /* 2. Image-wrapper - вторым */
    .detail-containers-section .detail-container .detail-image-wrapper {
        order: 2;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    /* Изображение внутри wrapper */
    .detail-containers-section .detail-container .detail-image {
        order: 1;
        width: 100%;
        max-height: 300px;
    }
    
    /* Features внутри wrapper */
    .detail-containers-section .detail-container .detail-features-block,
    .detail-containers-section .detail-container .glass-features {
        order: 2;
    }
    
    /* Переопределяем для четных */
    .detail-containers-section #detail-2 .detail-image-wrapper,
    .detail-containers-section #detail-4 .detail-image-wrapper,
    .detail-containers-section #detail-6 .detail-image-wrapper {
        order: 2;
    }
}
/* Адаптация финального изображения Леонардо на мобильных устройствах */
@media (max-width: 768px) {
    .hero-image-final.show {
        width: 280px;
        height: 165px;
        margin-left: -140px;
    }
    
    .hero-image-final.show img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Переопределяем анимацию для мобильных */
    @keyframes transformToRectangle {
        0% { width: 100%; height: 100%; border-radius: 50%; transform: scale(0.8); left: 0; margin-left: 0; }
        30% { width: 200px; height: 140px; border-radius: 25%; transform: scale(1); left: 50%; margin-left: -100px; }
        60% { width: 250px; height: 150px; border-radius: 15%; transform: scale(1.05); left: 50%; margin-left: -125px; }
        100% { width: 280px; height: 165px; border-radius: 10px; transform: scale(1); left: 50%; margin-left: -140px; }
    }
}

@media (max-width: 480px) {
    .hero-image-final.show {
        width: 220px;
        height: 130px;
        margin-left: -110px;
    }
    
    .hero-image-final.show img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Переопределяем анимацию для маленьких телефонов */
    @keyframes transformToRectangle {
        0% { width: 100%; height: 100%; border-radius: 50%; transform: scale(0.8); left: 0; margin-left: 0; }
        30% { width: 160px; height: 110px; border-radius: 25%; transform: scale(1); left: 50%; margin-left: -80px; }
        60% { width: 200px; height: 120px; border-radius: 15%; transform: scale(1.05); left: 50%; margin-left: -100px; }
        100% { width: 220px; height: 130px; border-radius: 10px; transform: scale(1); left: 50%; margin-left: -110px; }
    }
}
/* ===== ДВЕ КОЛОНКИ ДЛЯ ИЗОБРАЖЕНИЯ И ТЕКСТА ===== */
.connections-two-columns {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 20px 0 30px;
}

.connections-two-columns .connections-image-container {
    flex: 0 0 40%;
    max-width: 40%;
    margin: 0;
}

.connections-two-columns .connections-image-card {
    max-width: 100%;
}

.connections-two-columns .connections-text-right {
    flex: 1;
    margin: 0;
}

/* Адаптация для планшетов и мобильных */
@media (max-width: 992px) {
    .connections-two-columns {
        flex-direction: column;
        gap: 30px;
    }
    
    .connections-two-columns .connections-image-container {
        flex: 0 0 auto;
        max-width: 60%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .connections-two-columns .connections-image-container {
        max-width: 80%;
    }
}

@media (max-width: 576px) {
    .connections-two-columns .connections-image-container {
        max-width: 100%;
    }
}
/* ============ МОДАЛКА: АНОНС СЕМИНАРА ============ */
.seminar-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.seminar-modal.show {
    display: flex;
}

.seminar-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.seminar-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    padding: 40px 32px 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.2);
    animation: slideUp 0.4s ease;
    text-align: center;
    color: #fff;
}

.seminar-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
}

.seminar-modal-close:hover {
    color: #d4af37;
}

.seminar-modal-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.seminar-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #d4af37;
    margin: 0 0 8px;
}

.seminar-modal-date {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px;
    font-weight: 500;
}

.seminar-modal-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px;
}

.seminar-modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
    display: inline-block;
}

.seminar-modal-list li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 0 6px 24px;
    position: relative;
}

.seminar-modal-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: 700;
}

.seminar-modal-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #1a1a2e;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.seminar-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Мобильная адаптация */
@media (max-width: 540px) {
    .seminar-modal-content {
        padding: 32px 20px 24px;
        border-radius: 12px;
    }
    .seminar-modal-title {
        font-size: 22px;
    }
    .seminar-modal-text {
        font-size: 14px;
    }
    .seminar-modal-btn {
        width: 100%;
        padding: 14px 20px;
    }
}