
.content {

    margin-bottom: 50px;

    @media screen and (max-width: 500px) {
        margin-bottom: 20px;
    }

    #map-container {
        height: 520px;
        position: relative;

        .map-container-info-block {
            border: 1px solid rgba(50, 51, 51, 0.02);
            width: calc(100% - 30px);
            background: rgba(0, 0, 0, 0.6);
            padding: 10px 15px;
            border-radius: 6px;
            position: absolute;
            z-index: 999;
            bottom: 20px;
            left: 15px;

            li {
                color: white;
            }
        }
    }

    .title-wrapper {

        margin-top: 100px;

        @media screen and (max-width: 500px) {
            margin-top: 30px;
        }

        .title {
            font-weight: 700;
            font-size: 42px;
            line-height: 120%;
            color: var(--primary-text-color);
            @media screen and (max-width: 500px) {
                font-size: 24px;
            }
        }

        .description {
            font-size: 16px;
            font-weight: 400;
            color: var(--secondary-text-color);
            margin-top: 40px;
            @media screen and (max-width: 500px) {
                margin-top: 30px;
            }
        }
    }

    .info-cards {
        margin-top: 120px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;

        @media screen and (max-width: 500px) {
            margin-top: 30px;
            display: flex;
            overflow-x: auto;
        }

        .card {
            padding: 12px;
            display: flex;
            gap: 15px;
            cursor: pointer;
            transition: box-shadow 0.3s ease-in-out;

            @media screen and (max-width: 500px) {
                min-width: 100%;
            }

            &:hover {
            }

            &:hover {
                box-shadow: 0 4px 8px 0 rgba(8, 35, 48, 0.06),
                0 0 4px 0 rgba(8, 35, 48, 0.04);
            }

            .circle {
                border-radius: 50%;
                width: 44px;
                height: 44px;
                background: rgba(0, 171, 194, 0.08);
                border: 1px solid rgba(0, 171, 194, 0.08);
                flex-shrink: 0;
                display: flex;
                justify-content: center;
                align-items: center;
            }

            .card-texts {
                display: flex;
                flex-direction: column;
                gap: 5px;

                :nth-child(1) {
                    font-size: 16px;
                    font-weight: 600;
                    color: var(--primary-text-color);
                }

                :nth-child(2) {
                    color: var(--secondary-text-color);
                    font-weight: 400;
                    font-size: 14px;
                }
            }
        }
    }

    .last-events {
        .event-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;

            @media screen and (max-width: 500px) {
                display: block;
            }
        }

        .event-row {
            cursor: pointer;
            border-radius: 12px;
            padding: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;

            .left-sector {
                :nth-child(1) {
                    font-weight: 400;
                    color: var(--secondary-text-color);
                    font-size: 14px;
                }

                :nth-child(2) {
                    font-weight: 400;
                    color: var(--primary-text-color);
                    font-size: 16px;
                }
            }

            .right-sector {
                display: flex;
                align-items: center;
                gap: 10px;

                @media screen and (max-width: 500px) {
                    flex-direction: column;
                    gap: 3px;
                }
            }

            &:hover {
                background: var(--hover-background-color);
            }
        }

        .event-row-active {
            background: rgba(0, 171, 194, 0.08);
        }
    }

    .training-center {
        display: flex;
        gap: 20px;
        padding: 10px 25px;

        @media screen and (max-width: 500px) {
            flex-direction: column;
            padding: 10px;
        }

        img {
            width: 370px;
            @media screen and (max-width: 500px) {
                width: 100%;
            }
        }

        .text-block {
            display: flex;
            flex-direction: column;
            gap: 20px;

            > div:nth-child(1) {
                font-size: 20px;
                font-weight: 600;
                color: #000000;
            }

            > div:nth-child(2) {
                font-size: 16px;
                font-weight: 400;
                color: var(--primary-text-color);
            }
        }
    }

    .about-center {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;

        @media screen and (max-width: 500px) {
            display: flex;
            flex-direction: column;
        }

        .mobile-images {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            height: 240px;

            > img {
                min-width: 100%;
                object-fit: cover;
            }
        }

        .about-text {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        div {
            font-weight: 400;
            font-size: 16px;
        }

        > div span {
            font-weight: 700;
        }

        ul {
            padding-left: 30px;
        }

        li::marker {
            font-size: 10px;
        }

        .about-images-grid {
            display: grid;
            grid-template-rows:  repeat(2, 1fr);
            gap: 10px;

            img {
                width: 100%;
                object-fit: cover;
                height: 240px;
                border-radius: 12px;
            }

            .images-row {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
        }
    }

    .resources-block {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;

        @media screen and (max-width: 500px) {
            display: flex;
            overflow-x: auto;
        }

        .resource-item {
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-items: center;
            cursor: pointer;

            @media screen and (max-width: 500px) {
                .resource-text {
                    width: 210px;
                }
            }

            &:hover {
                .resource-icon {
                    box-shadow: 0 4px 8px 0 rgba(8, 35, 48, 0.06);
                }

                .resource-text {
                    color: var(--primary-text-color) !important;
                }
            }

            .resource-text {
                font-weight: 400;
                font-size: 14px;
                color: var(--secondary-text-color);
                text-align: center;
            }

            .resource-icon {
                height: 56px;
                padding: 7px;
                border-radius: 12px;
                background: var(--card-background-color);
                border: 1px solid var(--card-border-color);
                display: flex;
                justify-content: center;
                align-items: center;
                transition: box-shadow 0.3s ease-in-out;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }
            }
        }
    }
}

#export-modal {
    width: 360px;
    @media screen and (max-width: 500px) {
        width: 100%;
    }
}

.main-page-modal-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.active-element {
    color: var(--primary-color);
}

/* Контейнер */
.lang-switcher {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1.2;
}

/* если обёрнут в .custom-select */
.lang-switcher.custom-select {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Верхняя «кнопка» выбранного языка */
.lang-switcher .header-links-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0; /* убрал отступы, чтобы не было рамки/пилюли */
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    user-select: none;
}

/* Ховер/актив — без рамки */
.lang-switcher .header-links-item:hover,
.lang-switcher .header-links-item[aria-expanded="true"] {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Фокус */
.lang-switcher .header-links-item:focus,
.lang-switcher .header-links-item:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Иконки */
.lang-switcher .header-links-item img:first-child,
.lang-switcher .dropdown img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    display: inline-block;
}

/* Стрелка */
.lang-switcher .small_arrow {
    width: 12px;
    height: 12px;
    transition: transform .2s ease;
}
.lang-switcher .header-links-item[aria-expanded="true"] .small_arrow {
    transform: rotate(180deg);
}

/* Дропдаун */
.lang-switcher .dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 6px;
    z-index: 1000;

    display: none; /* скрыт по умолчанию */
}
.lang-switcher .dropdown.is-open { display: block; }

/* Сбросы списка */
.lang-switcher .dropdown,
.lang-switcher .dropdown ul,
.lang-switcher .dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Пункты */
.lang-switcher .dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #222;
    white-space: nowrap;
}
.lang-switcher .dropdown li a:hover {
    background: #f5f7fb;
}

/* Текст языка */
.lang-switcher .dropdown li span,
.lang-switcher .header-links-item span {
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* На всякий пожарный: убираем маркер у li внутри админ-бара */
#wpadminbar .lang-switcher .dropdown li {
    list-style-type: none;
}

.outline-button,
.outline-button:hover {
    text-decoration: none;
}

#mobile-menu-modal { display:none; }
#mobile-menu-modal.is-open { display:flex; }
body.no-scroll { overflow:hidden; }

/* === УБИРАЕМ НАТИВНЫЙ КРЕСТИК У type=search (Chrome/Safari/Edge) === */
.search-block-container .search-field {
    -webkit-appearance: none;
    appearance: none;
}
.search-block-container .search-field::-webkit-search-cancel-button,
.search-block-container .search-field::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
/* (на всякий для старых Edge/IE) */
.search-block-container .search-field::-ms-clear {
    display: none; width: 0; height: 0;
}

/* === РЕСЕТ ДЛЯ ИКОНОК-КНОПОК, ЧТОБЫ НЕ БЫЛО РАМКИ/ОКАНТОВКИ === */
.search-block-container .buttons-wrapper button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 0;
    cursor: pointer;
    /* убираем системный вид */
    -webkit-appearance: none;
    appearance: none;
    /* убираем странные focus-бордеры в некоторых браузерах */
    outline: none;
}
.search-block-container .buttons-wrapper button:focus-visible {
    outline: 2px solid rgba(0,171,194,.6);
    outline-offset: 2px;
}
.search-block-container .buttons-wrapper img {
    display: block;
    border: 0;       /* на всякий случай, если где-то глобально задано */
}

/* базовый контейнер слайда */
.earth-shake-swiper .swiper-slide {
    position: relative;
    border: 2px solid transparent;   /* ← одна граница, по умолчанию прозрачная */
    border-radius: 14px;
    overflow: hidden;                 /* чтобы картинка не выглядывала за радиус */
    background: #fff;                 /* на случай прозрачных PNG */
    padding: 0;                       /* никакого внутреннего «поле-рамки» */
    box-shadow: none;                 /* убираем внешние тени */
}

/* картинка: без собственных скруглений и без рамок */
.earth-shake-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;                 /* важно, чтобы не было второй дуги */
    border: 0;
    filter: grayscale(100%) brightness(0.9) contrast(0.9);
    transition: filter 160ms ease, transform 160ms ease;
}

/* выбранный слайд — одна цветная рамка и цветное изображение */
.earth-shake-swiper .swiper-slide.is-selected {
    border-color: #2aa3b0;            /* твой фирменный оттенок */
}
.earth-shake-swiper .swiper-slide.is-selected img {
    filter: none;
}

/* hover — лёгкое увеличение без теней */
.earth-shake-swiper .swiper-slide:hover img {
    transform: scale(1.02);
}

/* курсор */
.earth-shake-swiper .swiper-slide { cursor: pointer; }

/* (опционально) если был оверлей — убери, чтобы не казалось «двух рамок» */
.earth-shake-swiper .swiper-slide::after { content: none !important; }

.earthshake-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}

.site-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}

#earth-shake-modal {
    position: fixed;
    z-index: 1000; /* всегда выше фона */
    /* остальное оформление */
}

.main-page-card-link {
    text-decoration: none !important;
    color: inherit !important;
}

.header-links-wrapper {
    display:flex;
    flex-wrap:nowrap;
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;           /* критично для проверки переполнения */
    gap:15px;                  /* если используешь отступы между пунктами */
}
.header-links-wrapper > .is-hidden { display:none !important; }
#header-overflow-menu .dropdown a.is-hidden { display:none !important; }

#header-overflow-menu { display:none; flex:0 0 auto; }
#header-overflow-menu.has-overflow { display:block; }

.header-links-wrapper > .is-hidden{ display:none !important; }
#header-overflow-menu .dropdown a.is-hidden{ display:none !important; }


