/* для кастомных стилей */

@media (max-width: 767px) {
    .partners__slider {
        padding-left: 0;
        padding-right: 0;
    }
}

.accordion-item .accordion-button.noflex_btn {
    display: block;
}

.accordion-item .accordion-button.noflex_btn .program__btns {
    margin-top: 0;
    margin-bottom: 40px;
}

.modal-body .program__btns {
    padding-left: 0;
}

.modal-body .program__btns a {
    justify-content: center;
}

.accordion-nobutton::after {
    display: none;
}

.partners__image {
    padding: 0 30px;
    min-width: 200px;
}

.slick-slide.partners__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100vw;
}

.page {
    background: none;
}

.events-filter {
    z-index: initial;
}

.schema::before {
    z-index: -1;
}

.contacts::before {
    display: none;
    aspect-ratio: 354/3296;
    width: 18.45vw;
    filter: none;
    left: 0;
    right: auto;
    opacity: 1;
    top: -38vw;
    z-index: -1;
}

.contacts__title {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: center;
}

.contacts__title>span:first-child {
    min-width: 50%;
}

.contacts__title>span:last-child {
    position: relative;
    width: 90px;
    height: 30px;
    display: flex;
    align-items: center;
}

.contacts__title .schema__decor {
    right: auto;
    left: auto;
    top: 0;
    position: relative;
}

.menu {
    flex-grow: 1;
}

.banner__quote {
    display: block;
    position: absolute;
    left: 49.3%;
    bottom: 94.6%;
    width: 37.7%;
}

.banner__dots {
    display: block;
    position: absolute;
    right: 3%;
    bottom: -0.85%;
    width: 45%;
}

.banner__quote img,
.banner__dots img {
    width: 100%;
    display: block;
}

.banner__title {
    text-shadow: -0.08em -0.08em 0 #fff, 0.08em -0.08em 0 #fff, -0.08em 0.08em 0 #fff, 0.08em 0.08em 0 #fff, 0 -0.08em 0 #fff, 0 0.08em 0 #fff, -0.08em 0 0 #fff, 0.08em 0 0 #fff;
    position: relative;
    z-index: 5;
}


.banner {
    overflow: visible;
}

/* --- баннер: боковые фото — корневые значения = десктопный макет 1920 (как на new2026):
       левое фото 470px, правое 312px. Действуют на ≥1501px;
       ниже по каскаду переопределяются слоями 768–1500, 1199–1500 и ≤767 --- */
.banner__image_left {
    left: -55.5px;
    bottom: -12.1px;
    width: auto;
}

.banner__image_left img {
    width: 470px;
}

.banner__image_right {
    right: 111.1px;
    bottom: -7.4px;
    width: auto;
}

.banner__image_right img {
    width: 312px;
}

/* eur 2026: фото в секции программы */
.program::before {
    aspect-ratio: 1233/712;
    top: 22px;
    width: 32%;
}

.events-filter__decor {
    width: clamp(54px, calc(0.69vw + 49px), 62px);
    top: 0;
    right: calc(6.51vw - 55px);
}

/* --- фильтр стран: звёздочка — по умолчанию скрыта (на ширине >1199 не показываем);
       включается слоями 768–1199 и ≤767 --- */
.events-filter__asterisk {
    display: none;
}

.row_relative {
    position: relative;
}

.map__asterisk {
    position: absolute;
    right: 0;
    width: auto;
    top: -68%;
}

.map__asterisk img {
    width: 300px;
}

.min768-max1500-show {
    display: none !important;
}

@media (max-width: 940px) {
    .map__asterisk img {
        width: 150px;
    }

    .map__asterisk {
        top: -42%;
    }
}

@media (max-width: 440px) {
    .map__asterisk img {
        width: 90px;
    }

    .map__asterisk {
        top: -28%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {

    /* --- мероприятия: нижний отступ 122px под карточками + 120px до следующей секции --- */
    .events {
        padding-bottom: 122px;
        margin-bottom: 50px;
    }

    /* --- фильтр стран: звёздочка 136px слева внизу секции --- */
    .events-filter__asterisk {
        display: block;
        position: absolute;
        pointer-events: none;
        left: 20px;
        bottom: -40px;
        width: auto;
    }

    .events-filter__asterisk img {
        width: 136px;
        display: block;
    }

    /* --- программа: декор-фото 246px@768 → 359px@1199 --- */
    .program::before {
        width: clamp(246px, 46.7vw, 359px);
        top: -6.5vw;
    }
}

@media (min-width: 768px) {

    .banner__content {
        padding-top: clamp(50px, calc(6.94vw - 3px), 130px);
        padding-bottom: 160px;
    }

    .banner__title .large {
        font-size: clamp(68px, calc(4.61vw + 33px), 121px);
    }

    .banner__title {
        font-size: clamp(68px, calc(2.09vw + 52px), 92px);
        padding-bottom: clamp(10px, 2.6vw, 40px);
    }
}

/* --- баннер: боковые фото 768–1500 --- */
@media (min-width: 768px) and (max-width: 1500px) {

    .min768-max1500-show {
        display: inherit !important;
    }

    .min768-max1500-hidden {
        display: none !important;
    }

    .banner__image_left {
        left: -256px;
        bottom: 52px;
        width: auto;
    }

    .banner__image_left img {
        position: relative;
        left: 0;
        width: clamp(320px, calc(11.02vw + 220px), 470px);
    }

    .banner__image_right {
        right: 71px;
        bottom: 72px;
        width: auto;
    }

    .banner__image_right img {
        width: 171px;
    }

    .events-filter {
        padding-bottom: 130px;
    }
}

@media screen and (max-width: 1500px) and (min-width: 1199px) {
    .banner__image_left img {
        position: relative;
        left: 56px;
        width: clamp(320px, calc(11.02vw + 220px), 470px);
    }

    .banner__image_right img {
        position: relative;
        right: -74px;
        bottom: 48px;
        width: clamp(171px, calc(11.24vw + 77px), 312px);
    }

    .banner__image_right {
        right: -7px;
    }
}

@media (max-width: 767px) {

    .banner__content {
        padding-top: 20px;
        padding-bottom: calc(31.86vw - 84.7px);
        z-index: 0;
    }

    .banner__logos {
        position: relative;
        /* якорь правого фото */
        max-width: calc(5.15vw + 276px);
    }

    .banner__bottom {
        position: relative;
    }

    .banner__image_left {
        left: -22px;
        top: 16.5px;
        bottom: auto;
        transform: translate(-50%, -50%);
        z-index: -1;
        pointer-events: none;
        width: calc(41.9vw - 2px);
        height: auto;
        background: none;
    }

    .banner__image_right {
        right: -30px;
        top: calc(100% + 21.7px);
        bottom: auto;
        transform: none;
        z-index: -1;
        pointer-events: none;
        width: calc(25.5vw - 25px);
        height: auto;
        background: none;
    }

    .banner__image img {
        opacity: 1;
        width: 100%;
    }

    /* --- фильтр стран: звёздочка слева внизу секции, 76px@360 → 186px@768 (видимая графика).
           position:absolute обязателен: без него бокс висит в потоке сверху секции --- */
    .events-filter__asterisk {
        display: block;
        position: absolute;
        pointer-events: none;
        left: calc(2px - 5.18vw);
        bottom: -51px;
        width: calc(32.26vw - 25.5px);
    }

    .program::before {
        width: calc(35.05vw + 89.8px);
        top: -40px;
        left: auto;
        right: calc(9.56vw - 73.4px);
        opacity: 1;
    }
}