.school-event h1 {
    font-size: 28px;
    max-width: 390px;
    line-height: 2.3rem;
}   
.school-event img.school-main-img {
    position: absolute;
    right: 0;
    top: 2px;
    max-height: 575px;
}
.school-event .top {
    position: relative;
}
.school-event .top-flex {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.school-event .top-left {
    display: block;
    z-index: 10;
    flex: 1;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 9px 11px 14px 0px rgba(0, 0, 0, 0.25);
    padding: 38px 25px;
}
.school-event .top-left, .school-event .top-right {
    display: block;
    z-index: 10;
    flex: 2;
}
.school-event .top-left {
    z-index: 20;
}

.gap20 {
    gap: 20px;
}



.school-event .split {
    background-color: #253F73;
    width: 115px;
    height: 2px;
}

.school-event .nearest-event {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 45px;
    margin: 30px 0;
}
.school-event .nearest-event > div {
    min-width: 133px;
}

.school-event .nearest-event .flagship__cart-title {
    margin-top: 0.35rem;
    font-size: 16px;
    font-weight: bold;
} 

.school-event .btn-block {
    margin: 90px 0 0 0;
    display: flex;
    gap: 20px;
}
.school-event .btn-block a {
    padding: 0rem 0.7rem;
}
.school-event .top-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.school-event .top-right .circles, .school-event .subtitles {
    display: flex;
    gap: 20px;
}

.school-event .top-right .subtitles {
    gap: 7px 15px;
    flex-wrap: wrap;
}

.school-event .subtitles .btn {
    height: 1.7rem;
    font-weight: normal;
}
.school-event .subtitles .btn:hover {
    background: var(--sky-blue);
    color: var(--white);
}

.school-event .top-right .circles > div {
    display: block;
    width: 155px;
    height: 155px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    padding: 40px 0 0 20px;
    color: #253F73;
    font-size: 38px;
    font-weight: bold;
}
.school-event .top-right .circles > div span {
    font-size: 16px;
    font-weight: normal;
}

.school-event .organizers__header::before, .school-event .organizers__header::after {
    width: calc(50%);
}

.school-event .events-list {
    margin-top: 20px;
}
.school-event .events-list a > div {
    margin: 20px 0;
}
.school-event .events-list a > div span {
    display: block;
}
.school-event .events-list a {
    display: flex;
    margin-bottom: 20px;
    background: #FFF;
    gap: 20px;
}

.school-event .events-list a:hover {
    box-shadow: 3px 3px 6px 0px rgba(0, 0, 0, 0.25);
}

.school-event .events-list a .date {
    background: var(--sky-blue); 
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    height: 58px;
    width: 132px;
    text-align: center;
    color: #fff;
    padding-top: 6px;
    font-size: 28px;
}
.school-event .events-list a .date span{
    font-size: 16px;
}
.school-event .events-list a .name {
    flex: 2;
    padding-top: 5px;
    line-height: 20px;
}
.school-event .events-list a .name span {
    font-size: 12px;
    color: #000;
}
.school-event .events-list a .active {
    font-size: 12px;
    color: #999;
    padding-right: 20px;
}
.school-event .peoples {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 30px;
    flex-wrap: wrap;
}
.school-event .peoples > div {
    width: 220px;
    border: 1px solid #EAEAEA;
    display: flex;
    flex-direction: column;
    padding: 25px;
    text-align: center;
    align-items: center;
    font-size: 10px;
    gap: 20px;
    justify-content: center;
}
.school-event .peoples > div .img {
    flex: 2;
    display: flex;
    align-items: center;
}
.school-event .peoples > div img {
    width: fit-content;
    max-width: 150px;
    object-fit: cover;
    max-height: 150px;
}

.polezno {
    max-width: 345px;
    color: var(--navy-blue);
}
.polezno h2, .coordinator h3, .speakers h3 {
    font-size: 34px;
    text-wrap-mode: wrap;
    line-height: 1.1;
    margin: 0;
    color: var(--navy-blue);
}
.polezno > div {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 15px 0;
    line-height: 1.6;
}

.in-program h3, .dop-mat h3 {
    color: var(--navy-blue);
}

.in-program > div {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.in-program > div > div, .light-blue {
    width: 370px;
    background-color: #16C5DB;
    border: 1px solid #fff;
    box-shadow: 3px 3px 6px 0px rgba(0, 0, 0, 0.25);
    padding: 20px;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}

.in-program h4, .light-blue h4 {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section__header {
    margin-bottom: 30px;
}
.speakers {
    display: flex;
    padding: 40px 0;
    gap: 40px 70px;
    justify-content: center;
    background: #fff;
}

.speakers > div {
    display: flex;
    font-size: 12px;
    line-height: 1.3;
    flex: 1;
}
.speakers .photo {
    gap: 20px;
}
.speakers .question {
}

.speakers .photo img {
    width: 250px;
}
.speakers .photo .title {
    flex: 2;
}
.speakers > div.photo > div {
    width: 50%;
}

.speakers div.photo .img {
    width: 250px;
    height: 250px;
    background-size: contain;
    background-position: center center;
    margin-bottom: 20px;
    position: relative;
    background-repeat: no-repeat;
}

.speakers h5 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.speaker-subtitle {
    position: absolute;
    background-color: #16C5DB;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    color: #fff;
    font-size: 14px;
    padding: 2px 16px;
    bottom: 20px;
}
 
.dop-mat {
    display: flex;
    justify-content: space-evenly;
}
.dop-mat > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    text-align: center;
    justify-content: space-between;
}
.dop-mat  img {
    width: 100px;
}
.dop-mat h3 {
    flex: 2;
    margin: 10px 0;
}
.digital {
    background-color: #16C5DB; 
    padding: 73px 0; 
    margin-bottom: 40px; 
    background-image: url('../img/school-bottom-bg.png');
    background-repeat: no-repeat;
    background-position: center center;
}
.digital2 {
    display: flex;
    color: #fff;
    justify-content: flex-start;
    align-items: center;
    gap: 116px;
}
.digital2 h3 {
    font-size: 39px;
    max-width: 315px;
    line-height: 1.2;
}
.ellipse {
    background: url('../img/digital2.png') no-repeat;
    width: 139px;
    height: 139px;
    font-size: 56px;
    font-weight: bold;
    padding: 35px 0 0 40px
}
.ellipse span {
    font-size: 17px;
    font-weight: normal;
}
.coordinator {
    display: flex;
    margin: 20px auto 40px auto;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}
.coordinator > div {
    flex: 2;
}

.coordinator p {
    line-height: 1.2rem;
}
.coordinator a {
    max-width: 160px;
}
.light-blue {
    padding: 30px;
}
.contact p {
    margin: -8px 0 18 0;
}

.school-event .partners  {
    margin-top: unset;
    padding-bottom: 50px;
}
.school-event .partners > div {
    width: 180px;
    height: 180px;
    padding: 18px;
}

.btn-bottom {
    display: flex;
    background-color: #16C5DB; 
    padding: 60px 0; 
    justify-content: center;
    gap: 20px;
}
.btn-bottom a {
    border: 1px solid #fff;
}
.btn-bottom a.btn-br {
    background: #fff; 
}
.btn-bottom a:hover.btn-br {
    background: #16C5DB;  
}
.btn-bottom a:hover.btn {
    background: #fff;  
}
.section-polezno {
    gap: 40px;
}


.school-event .split-full-width {
    width: 100%;
    margin-top: 24px;
}

.date-selector {
    position: relative;
    cursor: pointer;
    min-width: 160px;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: var(--sky-blue);
}

.arrow.rotate {
    transform: rotate(180deg);
}

.date-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--sky-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    min-width: 200px;
}

.date-dropdown.show {
    display: block;
}

.date-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    font-weight: normal;
}

.date-option:last-child {
    border-bottom: none;
}

.date-option:hover {
    background-color: #f0f8ff;
}

.date-option.selected {
    background-color: var(--sky-blue);
    color: white;
}

/* Стили для скроллбара */
.date-dropdown::-webkit-scrollbar {
    width: 4px;
}

.date-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-bottom-right-radius: 8px;
}

.date-dropdown::-webkit-scrollbar-thumb {
    background: var(--sky-blue);
    border-radius: 4px;
}

.date-dropdown::-webkit-scrollbar-thumb:hover {
    background: #1a9a94;
}



@media screen and (max-width: 800px) {

    .speakers .photo {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .speakers .photo .title {
        flex: 2;
        width: 100%;
    }
    .archive-btns {
        display: flex;
        gap: 15px;
    }
    .speakers .question {
        width: 100%;
    }
    .archive-btns a {
        flex: 1;
        padding: 20px 10px
    }
    .school-event .top-left {
        padding: 38px 20px;
    }
    .speakers .photo .img {
        flex: unset;
    }
    .school-event .btn-block {
        margin: 30px 0 0 0;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .school-event .top-flex {
        margin: 40px 0;
        flex-wrap: wrap;
    }
    .school-event .nearest-event {
        flex-wrap: wrap;
        gap: 30px 50px;
        margin: 30px 0;
    }
    .mt60 {
        margin-top: 30px;
    }
    .school-event .subtitles {
        flex-wrap: wrap;
    }
    .school-event .top-right .circles, .digital {
        display: none;
    }
    .school-event img.school-main-img {
        left: -214px;
    }

    .school-event .events-list a .name {
        flex: unset;
        order: 3;
        padding: 0 20px;
        margin-top: 0px;
    }
    .school-event .events-list a {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 5px;
        box-shadow: 3px 3px 6px 0px rgba(0, 0, 0, 0.25);
    }
    .school-event .peoples {
        flex-wrap: wrap;
    }
    .section-polezno {
        flex-wrap: wrap;
        gap: 20px
    }
    .speakers {
        flex-wrap: wrap;
        justify-content: center;
    }
    .dop-mat {
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
    .coordinator {
        flex-wrap: wrap;
        margin: 40px auto 40px auto;
    }
    .btn-bottom {
        flex-wrap: wrap;
    }
}