/* === Общие стили для секций === */
.common-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    padding: 1rem;
    margin: 0 auto;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-height: 650px;
}

/* === Стили для секции "История" === */
.history-section .logo-float {
    float: left;
    margin: 0 1rem 1rem 0;
    max-width: 200px; 
    height: auto; 
}

.history-section .history-content p {
    text-align: justify;
    margin-bottom: 1rem;
    color: #333333;
    font-size: 18px;
}



/* === Стили для секции "Информация об учреждении" === */
.organization-info-section p {
    text-align: justify;
    margin-bottom: 1rem;
    color: #333333;
    font-size: 18px;
}

.organization-info-section strong {
    text-align: initial;
   
}

.organization-container {
    display: block;
}

.map-container {
    width: 100%;
    margin-top: 2rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}


.key-dates-section {
    background-color: #a0c3e3;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.key-dates-title {
    font-size: 1.8rem; 
    color: #333333; 
    font-weight: 800; 
    margin-bottom: 1rem; 
    text-align: center; 
}

.key-dates-list {
    list-style: none; 
    padding: 0; 
}

    .key-dates-list li {
        margin-bottom: 0.8rem; 
        padding: 0.5rem 1rem;
        border-left: 4px solid #007bff; 
        background-color: #f8f9fa; 
        border-radius: 5px; 
        font-size: 1rem;
        color: #333333; 
    }



/* === Мобильная адаптивность === */
@media (max-width: 768px) {
    

    .history-section .logo-float {
        float: none;
        margin: 0 auto 1rem; 
        display: block;
        max-width: 100%; 
        height: auto; 
    }

    .history-section .history-content p {
        font-size: 16px;
        line-height: 1.6;
        text-align: justify;
    }
    .organization-info-section p {
        line-height: 1.6;
        font-size: 16px;
    }
    .key-dates-title {
        font-size: 1.5rem;
    }

    .key-dates-list li {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.6rem;
    }

   
}

/* === Стиль для секции "Информация о сотруднике" === */
.custom-staff-intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 15px; 
}

.custom-intro-photo {
    width: 100%;
    max-width: 250px; 
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}

.custom-intro-text {
    flex: 1; 
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
    padding: 1rem; 
    box-sizing: border-box; 
}

/* === Адаптивность для мобильных устройств === */
@media (max-width: 768px) {
    .custom-staff-intro {
        flex-direction: column; 
        text-align: center; 
    }

    .custom-intro-photo {
        margin: 0 auto; 
    }

    .custom-intro-text {
        padding: 0;
    }
}

/* Сетка карточек */
.sprocket-strips-p-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 1rem;
    justify-content: center; 
    margin-bottom: 15px;
    padding: 0;
    list-style: none; 
}

.sprocket-strips-p-block {
    flex: 1 1 350px;
    width: 33%;
    max-width: 33%;
    background-color: #a0c3e3;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    text-align: left;
    overflow: hidden;
    padding-left: 10px;
    margin: 0;
    height: 250px;
}
    .sprocket-strips-p-block:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

.sprocket-strips-p-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.staff-photo {
    max-height: 225px;
    height: auto;
    border-radius: 10px;
}

.team_player_name {
    font-weight: 800;
    font-size: 1.2rem;
    color: #007bff;
    margin-bottom: 0.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.team_player_ampl {
    font-size: 1rem;
    color: #f8f9fa;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 769px) and (max-width: 1224px) {


    .sprocket-strips-p-block {
        width: unset;
        max-width: 80% ;
    }
}



@media (max-width: 768px) {


    .sprocket-strips-p-block {
        min-width: 100%;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        height: auto !important;
    }


    .sprocket-strips-p-item {
        flex-direction: column;
        text-align: center;
        max-width: 250px;
    }

    .staff-photo {
        margin: 0 auto 1rem auto;
        max-width: 200px;
        min-height: 150px;
    }
}

.song-lyrics {
    text-align: center;
    color: #333333;
}

.song-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    max-width: 900px;

}

/* ===== HISTORY DROPDOWN ===== */

.history-title-dropdown {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

    /* ===== DESKTOP ===== */

    .history-title-dropdown .dropdown-menu {
        display: none;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 100%;
        margin-top: 18px;
        min-width: 420px; /* увеличили ширину */
        padding: 0;
        background-color: #6a7685;
        border-radius: 16px; /* чуть мягче */
        overflow: hidden;
        box-shadow: 0 12px 28px rgba(0,0,0,0.2); /* глубже тень */
    }

    /* открытое состояние */
    .history-title-dropdown.open .dropdown-menu {
        display: block;
    }

    /* пункты */
    .history-title-dropdown .dropdown-item {
        padding: 18px 24px; /* больше воздуха */
        text-align: center;
        font-weight: 700;
        font-size: 1.7vh; /* крупнее текст */
        color: #f8f9fa;
        background: transparent;
    }

        /* hover */
        .history-title-dropdown .dropdown-item:hover {
            background-color: #a0c3e3;
            color: #007bff;
        }

        /* активный не подсвечиваем */
        .history-title-dropdown .dropdown-item.active {
            background: transparent;
            color: #f8f9fa;
        }

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .history-title-dropdown .dropdown-menu {
        position: relative; /* убираем absolute */
        left: unset;
        transform: none;
        top: unset;
        width: 100%; /* на всю ширину */
        min-width: 100%;
        margin-top: 12px;
        border-radius: 12px;
    }

    .history-title-dropdown .dropdown-item {
        font-size: 1.5vh;
        padding: 16px;
    }
}



.stadium-map {
    margin-top: 30px;
    text-align: center;
}

.stadium-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}