.pagecontainer {
    background: none !important;
    border: none !important;;
    box-shadow: none !important;;

    .breadcrub ul.bcrumbs li a, .breadcrub {
        display: flex;
        color: white;
        font-size: 14px;
        @media (max-width: 767px) {
            font-size: 12px;
        }
    }

    .backbtn.right {

    }

    .bcrumbs li:first-of-type {
        margin-left: 0;
    }
}

.thebg {
    background: linear-gradient(180deg, rgba(17, 114, 160, 1) 0%, rgba(65, 143, 183, 1) 50%) !important;
}

/* Основные переменные и сброс */
.detail-cont-new.detail-city {
    --primary: #428BCA;
    --bg: #FFFFFF;
    --text-color: #333333;

    --card-bg: #EEEEEE;
    --card-stroke: #00000010;

    padding-right: 0;
    padding-left: 0;

    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background: var(--bg);

    a {
        font-family: 'Open Sans', sans-serif;
    }

    .central-container {

        @media (max-width: 1200px) {
            padding: 0 30px;
        }
        @media (max-width: 1023px) {
            padding: 0 10px;
        }
        @media (max-width: 425px) {
            padding: 0 5px;
        }
    }
}

.detail-cont-new * {
    box-sizing: border-box;
}

/* Заголовки и текст */
.detail-cont-new .section-title {
    font-family: 'Helvetica Neue', 'Open Sans', sans-serif;
    font-weight: 500; /* Medium */
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.detail-cont-new .block-title {
    font-weight: 700; /* Bold */
    font-size: 20px;
    color: var(--text-color);
    margin: 30px 0 15px;
}

.detail-cont-new p,
.detail-cont-new .buy-info p {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* ---------- КАРТА ---------- */
.map-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-stroke);
    padding: 5px;
    background: var(--card-bg);

    #map, iframe {
        border-radius: 5px;
        border: 1px solid var(--card-stroke);
        overflow: hidden;
        width: 100% !important;
        height: 100% !important;
    }
}

/* ---------- КОНТАКТЫ (СЕТКА) ---------- */
.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--card-bg);
    border: solid 1px var(--card-stroke);
    border-radius: 10px;
    padding: 10px;
    /* легкая тень для выделения карточек */
    width: 100%;
}

.contact-card .card-icon {
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-card .card-content {
    flex: 1;
}

.contact-card .card-title {
    font-weight: 700; /* bold */
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-card .card-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.contact-card a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-card.button-card {
    background: none;
    padding: 0;

    a, a button {
        width: 100%;
        margin-top: 0;
    }
}

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.benefits-section {
    position: relative;
}

.benefits-bg {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
}

.benefits-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.benefits-grid .benefit-item {
    flex: 1 1 100%;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 60px;
    flex: 1 1 100%;
    padding: 12px 0;

    @media (max-width: 767px) {
        gap: 10px;
    }
    @media (max-width: 425px) {
        align-items: flex-start;
    }
}

.benefit-item .benefit-icon {
    color: var(--primary);
    font-size: 64px;
    line-height: normal;
    flex-shrink: 0;
    opacity: 0.2;
    @media (max-width: 767px) {
        opacity: 1;
    }
}

.benefit-item .benefit-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

/* ---------- СОТРУДНИКИ (Owl) ---------- */
.staff-section {
    background: #FFFFFF;
    margin-bottom: 30px;

}

.staff-section-center-desktop {
    @media (min-width: 1024px) {
        .owl-stage-outer {
            display: flex;
            justify-content: center;
        }
    }
}

.staff-section-center-tablet {
    @media (min-width: 768px) {
        .owl-stage-outer {
            display: flex;
            justify-content: center;
        }
    }
}

.staff-item {
    text-align: center;
    border-radius: 20px;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--card-stroke);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.staff-item img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--card-stroke);
    display: block;
    aspect-ratio: 1/1;
    height: fit-content;
    object-fit: cover;
}

.staff-item .staff-name {
    font-size: 16px;
}

.staff-item .staff-role {
    font-size: 14px;
    font-weight: 400;
    color: #555;
}

/* ---------- ДРУГИЕ ГОРОДА ---------- */
.cities-grid {
    flex-wrap: wrap;
    gap: 15px;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(4, 1fr);

    @media (max-width: 767px) {
        grid-template-columns: repeat(2, 1fr);
    }
    @media (max-width: 450px) {
        gap: 10px;
    }
    @media (max-width: 400px) {
        grid-template-columns: repeat(1, 1fr);
    }
}

.city-card {
    background: var(--card-bg);
    border: solid 1px var(--card-stroke);
    border-radius: 15px;
    padding: 15px;
    text-align: left;
}

.city-card .city-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.city-card .city-phones,
.city-card .city-email {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 5px;

    @media (min-width: 400px) and (max-width: 450px) {
        font-size: 12px;
    }
}

.city-btn {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;

    i {
        line-height: normal
    }
}

.contacts-map-container {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;

    .map-wrapper {
        grid-area: 1 / 1 / 3 / 3;
        align-self: flex-start;
    }

    .contacts-grid.contact-info,
    .contacts-grid.parking-info {
        grid-area: auto; /* или не указываем */
    }

    @media (max-width: 767px) {
        display: flex;
        flex-direction: column;

        .contacts-grid.contact-info {
            order: 0
        }

        .map-wrapper {
            order: 1;
            height: 300px;
            margin-bottom: 0px;
        }

        .contacts-grid.parking-info {
            order: 2
        }
    }
}

/* ---------- АДАПТИВНОСТЬ ---------- */

/* Мобильная версия (до 450px) — всё в 1 колонку */
@media (max-width: 450px) {
    .contact-card {
        padding: 8px; /* 5-10px согласно ТЗ */
    }

    .cities-grid .city-card {
        flex: 1 1 100%;
    }

    .detail-cont-new {
        padding-top: 10px
    }

    .staff-carousel.owl-carousel .owl-nav {
        display: none
    }

    .staff-carousel.owl-carousel .owl-dots {
        display: block
    }
}

/* Планшетная версия (451px - 1023px) — для промежуточного варианта */
@media (min-width: 451px) and (max-width: 1023px) {
    /* Контакты: сделаем 2 колонки, чтобы не выглядело разбито */
    .contact-card {
        flex: 1 1 100%;
    }

    .contact-card.button-card {
        flex: 1 1 calc(50% - 15px);
    }

    .benefit-item {
        flex: 1 1 calc(50% - 15px);
    }

    .city-card {
        flex: 1 1 calc(50% - 15px);
    }

    .staff-carousel.owl-carousel .owl-nav {
        display: none
    }

    .staff-carousel.owl-carousel .owl-dots {
        display: block
    }
}

/* ПК версия (от 1024px) — специфичный порядок карточек */
@media (min-width: 1024px) {
    /* Карточки контактов: 1, 1, 2, 2, 1 */
    .contact-card {
        flex: 1 1 100%;
    }

    .contact-card.button-card {
        flex: 1 1 calc(50% - 15px);
    }

    /* Преимущества — 2 колонки */
    .benefit-item {
        flex: 1 1 calc(50% - 15px);
    }

    /* Города — 4 колонки */
    .city-card {
        flex: 1 1 calc(25% - 15px);
    }

    .detail-cont-new {
        padding-top: 30px
    }

    .staff-carousel {
        padding: 0 60px
    }

    .staff-carousel.owl-carousel .owl-nav {
        display: block
    }

    .staff-carousel.owl-carousel .owl-dots {
        display: none
    }
}

.special-container {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    @media (min-width: 1024px) {
        max-width: 1300px;
    }

    @media (max-width: 1023px) {
        max-width: 738px;
        padding: 0 10px;
    }
}

.banner-container {
    margin-top: 60px;
    position: relative;
    background: #428BCA;
    overflow-x: clip;
    height: fit-content;

    .banner-bg {
        z-index: 1;
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
    }

    .banner-plane {
        position: absolute;
        right: -218px;
        top: -55px;
        z-index: -1;
        pointer-events: none;


        @media (max-width: 500px) {
            right: 0;
            top: 0;
            max-height: 130px;
            transform: rotate(-13.1deg) translate(0, -100%);
        }
        @media (min-width: 501px) and (max-width: 767px) {
            right: 8px;
            top: 0;
            max-height: 175px;
            transform: rotate(-8.1deg) translate(0, -100%);
        }
        @media (min-width: 768px) and (max-width: 1023px) {
            right: -125px;
            top: 48px;
            max-height: 258px;
            transform: rotate(-18.1deg) translate(0, -100%);
        }
        @media (min-width: 1024px) and (max-width: 1400px) {
            right: -40px;
            max-height: 450px;
        }
    }

    .central-container {
        position: relative;

        @media (max-width: 1023px) {
            padding: 20px;
        }
    }

    color: white;

    .banner-title {
        font-size: 128px;
        font-weight: 800;
        position: absolute;
        line-height: normal;
        width: max-content;
        text-align: center;
        left: 50%;
        transform: translate(-50%, 0);

        @media (max-width: 505px) {
            font-size: 24px;
        }
        @media (min-width: 501px) and (max-width: 1023px) {
            font-size: 40px;
        }
        @media (max-width: 1023px) {
            position: static;
            transform: none;
        }
        @media (min-width: 1024px) and (max-width: 1400px) {
            font-size: 99px;
        }
    }

    .banner-phones {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        font-size: 32px;
        line-height: normal;
        justify-content: flex-end;
        padding: 40px 20px;
        height: auto;

        @media (max-width: 500px) {
            margin-top: 80px;
            font-size: 20px;
            padding-top: 5px;
        }
        @media (min-width: 501px) and (max-width: 767px) {
            margin-top: 110px;
            font-size: 26px;
            padding-top: 5px;
        }
        @media (min-width: 768px) and (max-width: 1023px) {
            margin-top: 70px;
            padding: 0;
            font-size: 26px;
        }
        @media (min-width: 1024px) {
            padding-top: 300px;
        }

        a {
            color: white;
        }
    }
}

.staff-carousel.owl-carousel .owl-dots {
    opacity: 1 !important;
    text-align: center;
    margin-top: 15px; /* Отступ от картинки */
}

.staff-carousel.owl-carousel .owl-dot {
    display: inline-block !important;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background: #3C3C43 !important; /* Серый цвет для неактивных */
    opacity: 0.3;
}

.staff-carousel.owl-carousel .owl-dot.active {
    opacity: 1;
}

.staff-carousel.owl-carousel .owl-nav {
    width: fit-content;
    position: absolute;
    top: -15px;
    right: -60px;
    transform: translate(-100%, -100%);

    button {
        display: inline-block !important;
        width: auto;
        height: auto;
        aspect-ratio: 1/1;
        margin: 0 5px;
        border-radius: 5px;
        padding: 5px;
        background: var(--card-bg) !important; /* Серый цвет для неактивных */
        border: 1px solid var(--card-stroke) !important;
        color: #333 !important;
        font-size: 24px !important;
    }
}