/* --- HERO СЕКЦІЯ ПРО НАС --- */
.about-hero {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(to right, rgba(15, 19, 25, 1) 0%, rgba(15, 19, 25, 0.7) 50%, rgba(15, 19, 25, 0.3) 100%), url(../image/about-hero-bg.png) no-repeat right top;
    background-size: cover;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    padding: 80px 0 0;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--text-white);
    background: none;
    -webkit-text-fill-color: var(--text-white);
}

.about-hero h1 .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4rem;
    font-weight: 500;
    display: block;
}

.about-hero p {
    font-size: 1.2rem;
    color: var(--text-white);
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 30px;
}

.h1.multi-line-gradient {
    background: none;
    -webkit-text-fill-color: var(--text-white);
    color: var(--text-white);
    line-height: 1.1;
    padding: 0px 20px;
    font-weight: 500;
}

/* --- ЗАСНОВНИК ТА ТРЕНЕР --- */
.founder-section {
    padding: 100px 0 50px;
    position: relative;
}

.founder-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
}

.founder-image {
    flex: 0.5;
    display: flex;
    justify-content: center;
    align-items: center; /* Або flex-end, якщо хочеш притиснути його до низу */
    position: relative;
    z-index: 1;
}

.founder-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Центруємо коло */
    width: 350px;  /* Розмір кола (змінюй за потреби) */
    height: 350px;
    border-radius: 50%;
    border: 2px solid var(--text-gold, #d4af37); /* Золота рамка */
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2); /* Світіння */
    z-index: -1; /* Ставимо коло ПІД картинку */
}

.founder-image img {
    position: relative;
    width: 329px; /* Робимо фотографію БІЛЬШОЮ за коло (300px) */
    max-width: none; /* Дозволяємо вилазити за межі контейнера */
    height: auto;
    object-fit: contain;
    z-index: 2; /* Фотографія ПОВЕРХ кола */
    
    /* Додаємо тінь не блоку, а самій фігурі людини */
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

.founder-info {
    flex: 1;
}

.section-subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: normal;
    background: none;
    -webkit-text-fill-color: var(--text-beige);
}

.founder-info .section-title {
    color: var(--text-gold);
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 30px;
}

.founder-info p {
    color: var(--text-white);
    font-size: 1.1rem;
    line-height: 1.8;
}

.founder-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.stat-item span {
    color: var(--text-white);
    font-size: 1.1rem;
    line-height: 1.4;
}

/* --- НАША КОМАНДА ТРЕНЕРІВ --- */
.team-section {
    padding: 50px 0;
}

.team-box {
    position: relative;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 15px 35px var(--glass-shadow);
    padding: 40px 40% 40px 40px;
    overflow: hidden;
    background: transparent;
}

.team-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(../image/team-king.png) no-repeat center center / cover;
    opacity: 0.5;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: inherit;
    z-index: 0;
}

.team-content h2 {
    color: var(--text-gold);
    font-size: 2rem;
    margin-bottom: 20px;
}

.team-box > * {
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

.team-info .section-title {
    text-align: left;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.team-info p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.7;
}

.team-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.team-image img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
}

/* --- РОЗВИТОК ОСОБИСТОСТІ (ГОРИЗОНТАЛЬНИЙ АКОРДЕОН) --- */
.about-timeline-section {
    padding: 100px 0;
    position: relative;
    /* background-color: var(--bg-dark); */
}

.accordion-container {
    display: flex;
    gap: 16px;
    height: 350px; /* Фіксована висота для гарного ефекту */
    width: 100%;
}

.accordion-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

/* ФОНОВА КАРТИНКА (невидима у закритому стані, по центру з правого краю) */
.accordion-bg-image {
    position: absolute;
    top: 64%; /* Відцентровано по вертикалі */
    right: 0; /* Притиснуто до правого краю */
    width: 250px; /* Ширина картинки (можеш змінити під свій файл) */
    height: 250px; /* Висота картинки */
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    transform: translateY(-50%) translateX(20px); /* Початкове зміщення для анімації виїзду */
    opacity: 0; /* ПОВНІСТЮ ХОВАЄМО У ЗАКРИТОМУ СТАНІ */
    /* pointer-events: none; */
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.accordion-item:nth-child(1) .accordion-bg-image {background-image: url('../image/price-box-bg2.png');}
.accordion-item:nth-child(2) .accordion-bg-image {background-image: url('../image/price-box-bg3.png');}
.accordion-item:nth-child(3) .accordion-bg-image { background-image: url('../image/timeline-bg.png'); }
.accordion-item:nth-child(4) .accordion-bg-image {background-image: url('../image/price-box-bg1.png');}
.accordion-item:nth-child(5) .accordion-bg-image {background-image: url('../image/bg-about.png');}

/* Обгортка контенту */
.accordion-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Центруємо контент по вертикалі у закритому стані */
    width: 100%;
    height: 100%;
    padding: 25px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Іконка */
.accordion-icon {
    color: rgba(212, 175, 55, 0.5);
    margin-bottom: 40px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Заголовок */
.accordion-title {
    color: var(--text-white, #ffffff);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.35;
    transition: all 0.4s ease;
    margin: 0;
}

/* Опис */
.accordion-desc {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    text-align: left;
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: opacity 0.4s ease, max-height 0.4s ease, margin 0.4s ease;
}

.accordion-desc p {
    margin: 0;
}

.accordion-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* --- СТАН НАВЕДЕННЯ (HOVER) НА АКОРДЕОН --- */
.accordion-item:hover {
    flex: 3; /* Картка розширюється */
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.12) 0%, rgba(15, 19, 25, 0.95) 100%);
    border-color: var(--text-gold, #d4af37);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
}

.accordion-item:hover .accordion-bg-image {
    opacity: 0.3; /* ПРОЗОРІСТЬ КАРТИНКИ ПРИ ПОЯВІ (якщо картинка яскрава, ставимо 0.2, якщо вона сама по собі тьмяна - можеш поставити 1) */
    transform: translateY(-50%) translateX(0); /* Плавно стає на місце */
}

/* Перебудова контенту: зліва, ВІДЦЕНТРОВАНО ПО ВЕРТИКАЛІ */
.accordion-item:hover .accordion-content-wrapper {
    align-items: flex-start; /* Вирівнюємо по лівому краю */
    justify-content: center; /* ВІДЦЕНТРОВАНО ПО ВЕРТИКАЛІ */
    padding: 40px 30% 40px 40px;
}

.accordion-item:hover .accordion-icon {
    color: var(--text-gold, #d4af37);
    margin-bottom: 14px;
    transform: scale(1.1);
    transform-origin: left center;
}

.accordion-item:hover .accordion-title {
    text-align: left;
    color: var(--text-gold, #d4af37);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.accordion-item:hover .accordion-desc {
    opacity: 1;
    max-height: 150px;
    margin-top: 0;
}

/* --- ЦІННОСТІ (5 іконок) --- */
.values-section {
    padding: 60px 0 100px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
}

.value-item {
    padding: 20px 10px;
}

.value-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.value-item h4 {
    color: var(--text-gold);
    font-size: 1rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.value-item p {
    color: #999999;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* --- ФОНОВИЙ БЕКГРАУНД НАД ФУТЕРОМ --- */
.bottom-bg-wrapper {
    position: relative;
    z-index: 1;
}

.bottom-bg-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(../image/footer-bg.png) no-repeat center top / cover;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

.cta-section, .main-footer {
    position: relative;
    z-index: 2;
}

/* --- АДАПТИВНІСТЬ (МЕДІА-ЗАПИТИ) --- */
@media (max-width: 900px) {
    .founder-wrapper, .team-box {
        flex-direction: column;
        gap: 40px;
    }
    .founder-image {
        order: -1;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-hero h1 {
        font-size: 2rem;
    }
    .about-hero h1 .highlight {
        font-size: 2.5rem;
    }
    .founder-info .section-title {
        line-height: normal;
    }
    .team-box {
        padding: 30px;
        text-align: center;
    }
    .team-image img {
        height: 140px;
    }
    .team-content h2 {
        line-height: normal;
    }
    .team-section {
        padding-bottom: 0;
    }

    .accordion-icon img {
        width: 60px;
        height: 60px;
    }
    
    /* Адаптивність для акордеона */
    .accordion-container {
        flex-direction: column;
        height: auto;
    }
    .accordion-item {
        flex: none;
        width: 100%;
        height: 250px;
    }
    .accordion-item:hover {
        flex: none;
        height: 250px;
    }
    .accordion-bg-num {
        font-size: 8rem;
        right: 0;
    }
    .accordion-item:hover .accordion-content-wrapper {
        padding: 15px 15px;
    }
}

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    .founder-stats {
        flex-direction: column;
    }
}