.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* HERO */
.hero {
    position: relative;
    height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ECEFF1;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: #fff;
    margin-top: 30px;
}
.hero-content h1 {
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: 22px;
    color: #fff;
    line-height: 1.18;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.hero-buttons .nav-link {
    border-radius: 7px !important;
}

/* ABOUT */
.about-main {
    margin-top: 44px;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
}
.about-block {
    background: rgba(255,255,255,0.96);
    border-radius: 48px;
    box-shadow: 0 6px 56px rgba(0,0,0,0.09);
    padding: 38px 52px;
    max-width: 1250px;
}
.about-block h2 {
    color: #2E3B4E;
    font-size: 2.4rem;
    margin-bottom: 12px;
}
.about-block p {
    color: #455A64;
    font-size: 1.16rem;
}
.about-highlight {
    color: #195A8A;
    font-weight: 700;
    margin-top: 15px;
}

/* BENEFITS */
.main-benefits {
    margin-top: 30px;
    margin-bottom: 60px;
}
.benefits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
}
.benefit {
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 4px 16px #B0C4DE44;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 20px 20px 20px;
    text-align: center;
    min-width: 220px;
    max-width: 260px;
    min-height: 170px;
    transition: transform 0.17s, box-shadow 0.18s;
}
.benefit-icon {
    width: 2.1rem;
    height: 2.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #195A8A;
}
.benefit-title {
    color: #195A8A;
    font-size: 1.06rem;
    font-weight: 700;
    margin-bottom: 9px;
}
.benefit-desc {
    color: #455A64;
    font-size: 0.98rem;
    line-height: 1.28;
}

/* GALLERY — горизонтальная прокрутка */
.gallery-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.gallery-row-horizontal {
    display: flex;
    gap: 56px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 0 0;
}
.gallery-imgblock {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-row-horizontal img {
    border-radius: 18px;
    width: 400px;
    height: 220px;
    object-fit: cover;
    box-shadow: 0 4px 20px #0002;
}
.gallery-caption {
    color: #455A64;
    font-size: 1.1rem;
    margin-top: 18px;
    text-align: center;
    max-width: 340px;
    font-weight: 500;
    line-height: 1.18;
}

/* PARTNERS - INLINE LOGOS */
.partners-section {
    margin: 70px 0 48px 0;
    width: 100%;
    background: #f4f6f8;
    padding: 48px 0 56px 0;
}
.partners-title {
    text-align: center;
    color: #2E3B4E;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 42px;
    letter-spacing: 0.03em;
}
.partners-carousel-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    margin-top: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: none;
}
.partners-carousel-wrapper::-webkit-scrollbar {
    display: none;
}
.partners-carousel {
    display: flex;
    gap: 56px;
    align-items: center;
    justify-content: center;
    padding-bottom: 6px;
    user-select: none;
    cursor: grab;
    background: none;
    box-shadow: none;
}
.partner-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 2px 14px #B0C4DE33;
    border: none;
    min-width: 170px;
    min-height: 120px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.18s, background 0.2s;
    outline: none;
}
.partner-card:focus {
    outline: none;
}
.partner-card:hover,
.partner-card:focus {
    background: #fafdff;
    box-shadow: 0 6px 32px #195A8A18;
}
.partner-card img {
    display: block;
    max-width: 135px;
    max-height: 90px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.94);
    transition: filter 0.3s;
    background: none;
}
.partner-card:hover img,
.partner-card:focus img {
    filter: grayscale(0) brightness(1.04);
    background: none;
}
/* Для очень светлых лого */
.partner-card img.kpi-logo {
    filter: drop-shadow(0 1px 0 #aaa) grayscale(1) brightness(0.88);
}
.partner-card:hover img.kpi-logo,
.partner-card:focus img.kpi-logo {
    filter: drop-shadow(0 1px 0 #77c8ff) grayscale(0) brightness(1.08);
}

/* MOBILE GALLERY: ВЕРТИКАЛЬНО БЕЗ СКРОЛЛА */
@media (max-width: 900px) {
    .gallery-horizontal, .gallery-row-horizontal {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        overflow-x: unset !important;
        width: 100%;
        padding: 0 !important;
    }
    .gallery-row-horizontal {
        display: flex !important;
    }
    .gallery-imgblock {
        margin-bottom: 26px;
        width: 96vw;
        max-width: 440px;
        box-sizing: border-box;
    }
    .gallery-row-horizontal img {
        width: 100%;
        height: auto;
        max-width: 100vw;
        border-radius: 16px;
        margin: 0 auto;
        box-shadow: 0 4px 20px #0001;
    }
    .gallery-caption {
        font-size: 1.01em;
        margin-top: 10px;
        margin-bottom: 6px;
        text-align: center;
        width: 100%;
    }
    .partners-carousel {
        gap: 28px;
    }
    .partner-card {
        min-width: 90px;
        min-height: 70px;
        padding: 8px 10px;
    }
    .partner-card img {
        max-width: 70px;
        max-height: 38px;
    }
}
.container,
.gallery-horizontal,
.gallery-row-horizontal,
.partners-carousel-wrapper {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}