/* /css/sections/about.css */

/* Стили для Hero-секции "О нас" */
.about-section-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 2rem 0px;
    box-sizing: border-box;
    background-color: #ffffff05 !important;
    overflow: hidden;
}

.about-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 4rem;
}

.about-hero-content {
    flex: 1 1 50%;
    max-width: 550px;
}

.about-hero-title {
    font-family: 'Sansation';
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
}

.about-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-color-muted);
    max-width: 450px;
}

.about-hero-visual {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-hero-image {
    position: relative;
    width: 150%;
    left: -40px;
    height: auto;
    border-radius: 1rem;
}

.about-hero-visual.animated-element {
    transform: translateY(30px) scale(0.95);
}

.is-visible .about-hero-visual.animated-element {
    transform: translateY(0) scale(1);
}

@media (max-width: 900px) {
    .about-section-hero {
        padding: 80px 2rem;
    }

    .about-hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .about-hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: -80px;
    }

    .about-hero-visual {
        order: 1;
        width: 100%;
    }

    .about-hero-image {
        width: 100%;
        max-width: 380px;
        left: auto;
    }

    .about-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Стили для интерактивной секции "О нас" */
#about {
    
    padding: 120px 2rem;
    background-color: var(--bg-color) !important;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
}

#about::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.about-interactive-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-interactive-title {
    font-family: "sansation", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-interactive-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-color-muted);
    max-width: 800px;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
}

.about-panels-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    height: 200px;
    
}

.about-panel {
    flex: 1;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: flex 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
    background-size: cover;
    background-position: center;
    border: 3px solid rgb(33 33 33);
}

.about-panel:not(.active) {
    filter: brightness(0.6) saturate(0.7);
}

.about-panel:hover:not(.active) {
    filter: brightness(0.8) saturate(1);
}

.about-panel.active {
    flex: 5;
    filter: none;

}

.panel-plaque {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Измените padding-left, чтобы освободить место для иконки */
    padding: 1.5rem 1.5rem 1.5rem calc(24px + 60px + 24px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(to top, rgb(10 10 10 / 89%) 0%, rgb(10 10 10 / 55%) 50%, rgb(10 10 10 / 22%) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
    transform: translateY(calc(100% - 159px));
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-panel.active .panel-plaque {
    min-height: 115px /* <-- ДОБАВЬТЕ ЭТО СВОЙСТВО */
    /* УБЕДИТЕСЬ, ЧТО ЗДЕСЬ НЕТ 'top: 0;' */
}

.panel-icon {
    position: absolute;
    /* Делаем позиционирование независимым */
    top: 12px;
    left: 8px;
    z-index: 3;
    width: clamp(75px, 11.3vw, 146px);

    height: 132px;
    /* Уменьшаем высоту для лучшего вида */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    /* <-- Делаем иконку всегда видимой */
    transition: transform 0.4s ease;
    transition: all 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.paneltext {
    font-family: 'sansation', sans-serif;
    font-size: 2rem;
    font-weight: 900;
}

/* @media (max-width: 1120px) {
    .panel-icon {
        width: 122px;
    }
}

@media (max-width: 1080px) {
    .panel-icon {
        width: 113px;
    }
}

@media (max-width: 1024px) {
    .panel-icon {
        width: 94px;
    }
} */




.about-panel.active .panel-icon {
    opacity: 1;
    filter: blur(0px);
    top: 29px;
    left: 22px;
    width: 69px;
    height: 99px;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-color);
}

.panel-text {
    text-align: left;
    width: 100%;
}

.panel-text h3 {
    font-family: "sansation", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text-color);
    line-height: 1.2;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.6s ease 0.3s, filter 0.6s ease 0.3s;
}

.panel-text p {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.6s ease 0.3s, filter 0.6s ease 0.3s;
}

.about-panel.active .panel-text h3,
.about-panel.active .panel-text p {
    opacity: 1;
    filter: blur(0px);
}



@media (max-width: 900px) {
    #about {
        padding: 120px 1rem;
    }

    .about-panels-container {
        flex-direction: column;
        height: auto; /* <-- ЭТО СВОЙСТВО ВЫЗЫВАЕТ ПРОБЛЕМУ */
        min-height: 550px; /* <-- ДОБАВЬ ЭТО (округлил для ровного счета) */
        gap: 1rem;
    }

    .about-panel {
        flex: none;
        height: 80px;
        border-radius: 1rem;
        transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        filter: none !important;
    }

    .about-panel.active#about1{
        height: 175px;
    }
    .about-panel.active#about2{
        height: 240px;
    }
    .about-panel.active#about3{
        height: 220px;
    }

    .about-panel.active {
 /* <-- УВЕЛИЧЬТЕ ВЫСОТУ АКТИВНОЙ ПАНЕЛИ */
        filter: none;
        flex: none !important;
    }

    .panel-plaque {
        position: relative;
        transform: translateY(0);
        height: 100%;
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
        align-items: flex-start;
        backdrop-filter: blur(12px);
        inset: auto;
        border-top: none;
        padding-left: calc(16px + 48px + 16px);
    }

    .panel-icon {
        top: 13px;
        left: 15px;
        width: 50px;
        height: 50px;
        border-radius: 0.75rem;
        
    }

    .about-panel.active .panel-icon {
        opacity: 1;
        filter: blur(0px);
        top: 13px;
        left: 15px;
        width: 50px;
        height: 50px;
        transition: all 1.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .panel-icon svg {
        width: 20px;
        height: 20px;
    }

    .panel-text {
        overflow: hidden;
        width: 100%;
    }

    .panel-text h3 {
        font-size: 1.1rem;
        margin: 0;
        padding-top: 0;
        max-width: 120px;
    }
    .panel-text h3 {

        opacity: 1;
        filter: blur(0);

    }

    .panel-text p {
        padding-top: 0.5rem;
        filter: blur(3px);
        line-height: 1.3;
    }
}