/* About page — Raymed block: logo left, text right; avoid overflow */
.banner-left-section.swarna-bg-about .left-banner-inner .container .about-cstm {
    left: 0 !important;
    position: relative;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
}

.banner-left-section.swarna-bg-about .about-cstm .images-about {
    margin: 0 0 1rem 0 !important;
    flex: 0 0 auto;
}

.banner-left-section.swarna-bg-about .about-cstm .images-about img {
    max-width: 220px;
    height: auto;
    display: block;
}

.banner-left-section.swarna-bg-about .about-cstm .banner-title-wrapper.content-about {
    flex: 1 1 280px !important;
    min-width: 0;
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
}

.header-desktop .lang-switcher {
    margin-left: 0.5rem;
}

.header-desktop .lang-switcher a {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
}

.header-desktop .lang-switcher a:hover {
    text-decoration: underline;
}

.offcanvas-body .lang-switcher-mobile {
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0.5rem;
}

.offcanvas-body .lang-switcher-mobile a {
    color: #ffc107;
    font-weight: 600;
}

/* --- Russian mobile layout: longer words and labels --- */
html {
    overflow-wrap: anywhere;
    word-break: normal;
}

body.body-black {
    overflow-x: hidden;
}

/* Mobile nav: long RU menu labels */
header .header-mobile-section .mobile-header-inner-wrapper .mobile-section-right .offcanvas .offcanvas-body ul li a {
    letter-spacing: 0.35px;
    line-height: 1.4;
}

/* Hero: RU CTAs (“Зарегистрироваться”) need full width when stacked */
@media (max-width: 640px) {
    .hero-slider-wrapper .hero-slider .carousel-inner .carousel-item .carousel-caption {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-slider-wrapper .hero-slider .carousel-inner .carousel-item .image-logo {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
        max-width: 85%;
    }

    .hero-slider-wrapper .hero-slider .carousel-inner .carousel-item .buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        padding: 0 4px;
        box-sizing: border-box;
    }

    .hero-slider-wrapper .hero-slider .carousel-inner .carousel-item .buttons .btn-second {
        margin: 0 !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        font-size: 15px;
        line-height: 1.35;
        padding: 10px 14px !important;
    }
}

/* Welcome block + gallery: long RU titles and paragraphs */
@media (max-width: 767px) {
    .home-about-paragraph .home-about-inner {
        padding: 0 16px;
        box-sizing: border-box;
        min-width: 0;
    }

    .home-about-paragraph .home-about-inner .title-main {
        font-size: clamp(1.35rem, 5vw, 2rem);
        line-height: 1.2;
        hyphens: auto;
    }

    .home-about-paragraph .home-about-inner .about-para {
        text-align: left;
        hyphens: auto;
    }

    .pcr-seminar-gallery-section .section-header {
        padding: 0 12px;
    }

    .pcr-seminar-gallery-section .section-title {
        font-size: clamp(1.15rem, 4.2vw, 1.65rem);
        line-height: 1.25;
        hyphens: auto;
    }

    .pcr-seminar-gallery-section .section-subtitle {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
        line-height: 1.45;
    }

    .pcr-seminar-gallery-section .gallery-description p {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .seminar-gallery-container {
        padding: 16px;
        box-sizing: border-box;
    }
}

/* Team: long RU bios — single column below tablet width */
@media (max-width: 767px) {
    .banner-right-section .right-banner-inner .banner-right-inner .team[class*="team-count-"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 576px) {
    .banner-right-section .right-banner-inner .banner-right-inner .subtitle {
        font-size: clamp(1.15rem, 5vw, 1.75rem);
        line-height: 1.25;
        padding: 0 8px;
        hyphens: auto;
    }

    .banner-right-section .right-banner-inner .banner-right-inner .member .description,
    .banner-right-section .right-banner-inner .banner-right-inner .member .name {
        overflow-wrap: anywhere;
    }

    .banner-right-section .right-banner-inner .banner-right-inner .buttons {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }
}

/* “Join us” strip: info cards — tighten labels and spacing */
@media (max-width: 991px) {
    .banner-right-section .right-banner-inner .banner-right-inner .banner-title-wrapper {
        padding: 28px 18px 32px 18px;
        box-sizing: border-box;
        min-width: 0;
    }

    .banner-right-section .right-banner-inner .banner-right-inner .banner-title-wrapper h5 {
        line-height: 1.3;
        hyphens: auto;
    }

    .banner-right-section .right-banner-inner .banner-right-inner .banner-title-wrapper h2 {
        font-size: clamp(1.25rem, 4vw, 2.25rem);
        line-height: 1.2;
        hyphens: auto;
    }

    .banner-right-section .right-banner-inner .banner-right-inner .banner-title-wrapper .info-flex .info-box {
        margin: 14px 0;
        min-width: 0;
    }

    .banner-right-section .right-banner-inner .banner-right-inner .banner-title-wrapper .info-flex .info-box span {
        font-size: 15px;
        padding: 8px 12px;
        margin: 0 0 12px 0;
        max-width: 100%;
        box-sizing: border-box;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .banner-right-section .right-banner-inner .banner-right-inner .banner-title-wrapper .details,
    .banner-right-section .right-banner-inner .banner-right-inner .banner-title-wrapper .info-flex .info-box .details a {
        font-size: 16px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }
}

/* Organizing committee heading */
@media (max-width: 576px) {
    .banner-left-section .left-banner-inner .banner-left-inner h1 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
        line-height: 1.25;
        padding: 32px 16px;
        hyphens: auto;
    }
}

/* Countdown chip: keep on-screen; RU label fits */
@media (max-width: 768px) {
    .pcr-countdown-widget {
        right: 10px;
        width: 118px;
        transform: translateY(-50%);
    }

    .pcr-countdown-widget:hover {
        right: 10px;
    }

    .widget-inner {
        padding: 18px 12px;
    }

    .widget-header h3 {
        font-size: 12px;
        letter-spacing: 0.4px;
    }

    .label {
        letter-spacing: 0.6px;
    }
}
