/* Страница /services/zamena-steklopaketa/ (Structure270.php) */

/* Общая обёртка секций: свой класс вместо .container, чтобы не ловить
   правила сайта вида .container h2 / .container p */
.zs-container {
    max-width: 1170px;
    margin: 0 auto;
}

.zs-accent {
    color: #F16C00;
}

/* ---------- Баннер ---------- */
.zs-banner {
    /* body на template27 имеет padding: 20px — растягиваем фон на всю ширину */
    margin: 0 -20px;
    padding: 30px 20px 50px;
    background: #1d2329 url(/images/zamena-steklopaketa/banner.jpg) center right / cover no-repeat;
    color: #fff;
}

.zs-banner .container {
    max-width: 1170px;
    margin: 0 auto;
}

.zs-banner .breadcrumbs {
    margin-bottom: 30px;
}

.zs-banner .breadcrumbs__item-link,
.zs-banner .breadcrumbs__item-link span {
    color: rgba(255, 255, 255, .7);
}

.zs-banner .breadcrumbs__item-link:hover,
.zs-banner .breadcrumbs__item-link:hover span {
    color: #fff;
}

.zs-banner .breadcrumbs__item-head,
.zs-banner .breadcrumbs__item-head span {
    color: #fff;
}

.zs-banner .zs-banner__title {
    max-width: 640px;
    margin: 0 0 30px;
    font-size: 44px;
    line-height: 1.15;
    color: #fff;
    text-align: left;
}

.zs-banner .zs-banner__utp {
    max-width: 768px;
    margin: 0;
    padding: 24px 30px;
    list-style: none;
    background: rgba(241, 108, 0, .2);
    border-radius: 12px;
}

.zs-banner .zs-banner__utp-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: #fff;
}

.zs-banner .zs-banner__utp-item + .zs-banner__utp-item {
    margin-top: 18px;
}

.zs-banner .zs-banner__utp-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
}

.zs-banner .zs-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 768px;
    margin-top: 30px;
}

.zs-banner .zs-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 325px;
    height: 51px;
    padding: 0 28px;
    border: 0;
    border-radius: 26px;
    background: #F16C00;
    font-family: "Conv_ProximaNova-Bold", sans-serif;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s;
}

.zs-banner .zs-banner__btn:hover,
.zs-banner .zs-banner__btn:focus {
    background: #d65f00;
    color: #fff;
    text-decoration: none;
}

.zs-banner .zs-banner__btn img {
    flex: none;
    /* на мобильных общие правила сайта ставят img margin: auto — во flex это разносит иконку и текст */
    margin: 0 !important;
}

.zs-banner .zs-banner__btn .svg_button {
    width: 20px;
    height: 20px;
}

/* ---------- Текстовый блок с картинкой ---------- */
.zs-about {
    margin: 0 -20px;
    padding: 50px 20px;
    background: #FFF7F0;
}

.zs-about .zs-container {
    display: flow-root; /* держит float внутри секции */
}

/* float и отступы — на обёртке: до 1000px сайт ставит любому img
   margin: 0 auto !important и снимает float */
.zs-about .zs-about__media {
    float: left;
    width: 540px;
    max-width: 46%;
    margin: 0 30px 20px 0;
}

.zs-about .zs-about__media img {
    display: block;
    width: 100%;
    height: auto;
}

.zs-about .zs-about__text,
.zs-about .zs-about__list li {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.55;
    color: #1f2937;
}

.zs-about .zs-about__title {
    margin: 28px 0 12px;
    font-family: "Conv_ProximaNova-Bold", sans-serif;
    font-size: 26px;
    line-height: 1.25;
    color: #0E2F4F;
    text-align: left;
}

.zs-about .zs-about__list {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.zs-about .zs-about__list li {
    position: relative;
    padding-left: 22px;
}

.zs-about .zs-about__list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F16C00;
}

/* ---------- Таблица цен (по образцу .bs_prices-table, template265) ---------- */
.zs-prices {
    margin: 0 -20px;
    padding: 60px 20px;
    background: #d4d7dc;
}

.zs-prices .zs-prices__title {
    margin: 0 0 30px;
    font-size: 36px;
    text-align: center;
    text-transform: uppercase;
}

.zs-prices .zs-prices__card {
    padding: 24px;
    background: #fff;
    border-radius: 24px;
}

.zs-prices .zs-prices__wrap {
    overflow-x: auto;
}

.zs-prices .zs-prices__wrap + .zs-prices__wrap {
    margin-top: 24px;
}

.zs-prices .zs-prices__table {
    width: 100%;
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 8px;
}

.zs-prices .zs-prices__table caption {
    padding: 12px 16px;
    margin: 0 8px;
    background: #ff8a00;
    border-radius: 14px;
    font-family: "Conv_ProximaNova-Bold", sans-serif;
    font-size: 18px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
}

.zs-prices .zs-prices__table th {
    padding: 12px 16px;
    background: #ff8a00;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    white-space: nowrap;
}

.zs-prices .zs-prices__table td {
    padding: 12px 16px;
    background: #fff7f0;
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
}

.zs-prices .zs-prices__table td:first-child {
    text-align: left;
}

/* одинаковые колонки у обеих таблиц */
.zs-prices .zs-prices__table th:nth-child(1) {
    width: 55%;
}

.zs-prices .zs-prices__table th:nth-child(2) {
    width: 11%;
}

.zs-prices .zs-prices__table th:nth-child(3),
.zs-prices .zs-prices__table th:nth-child(4) {
    width: 17%;
}

.zs-prices .zs-prices__note {
    margin: 20px 0 0;
    font-size: 16px;
    color: #4b5563;
    text-align: center;
}

/* ---------- Этапы работы (по образцу .pd-steps, Structure220) ---------- */
.zs-steps {
    margin: 0 -20px;
    padding: 60px 20px;
    background: #FFF7F0;
}

.zs-steps .zs-steps__title {
    margin: 0 0 40px;
    font-size: 36px;
    text-align: center;
}

/* flex вместо grid: 5 карточек, неполный второй ряд центрируется */
.zs-steps .zs-steps__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 24px;
}

.zs-steps .zs-steps__item {
    flex: 0 0 calc((100% - 48px) / 3);
    text-align: center;
}

.zs-steps .zs-steps__icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border: 1px solid #F07C00;
    border-radius: 50%;
}

.zs-steps .zs-steps__icon {
    width: 32px;
    height: 32px;
}

.zs-steps .zs-steps__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0e2f4f;
    font-family: "Conv_ProximaNova-Bold", sans-serif;
    font-size: 12px;
    color: #fff;
}

.zs-steps .zs-steps__item-title {
    margin: 0 0 8px;
    font-family: "Conv_ProximaNova-Bold", sans-serif;
    font-size: 18px;
    color: #0e2f4f;
}

.zs-steps .zs-steps__text {
    max-width: 340px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

/* ---------- Наши лучшие мастера (слайдер owl) ---------- */
.zs-masters {
    margin: 0 -20px;
    padding: 60px 20px;
    background: #d4d7dc;
}

.zs-masters .zs-masters__title {
    margin: 0 0 40px;
    font-size: 36px;
    text-align: center;
}

.zs-masters .zs-masters__slider {
    position: relative;
    max-width: 930px;
    margin: 0 auto;
}

.zs-masters .zs-masters__card {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px 40px;
    background: #f3f4f6;
    border: 1px solid #c3c7cd;
    border-radius: 4px;
}

.zs-masters .zs-masters__person {
    flex: 0 0 200px;
    text-align: center;
}

.zs-masters .zs-masters__photo {
    width: 170px;
    height: 170px;
    margin: 0 auto 14px;
    overflow: hidden;
    border-radius: 50%;
}

.zs-masters .zs-masters__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* фото вертикальные 2:3 — в круге показываем верхнюю часть, чтобы влезала голова */
    object-position: 50% 15%;
}

.zs-masters .zs-masters__name {
    font-family: "Conv_ProximaNova-Bold", sans-serif;
    font-size: 18px;
    color: #0e2f4f;
}

.zs-masters .zs-masters__specialty {
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;
}

.zs-masters .zs-masters__info {
    flex: 1 1 auto;
}

.zs-masters .zs-masters__row {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.45;
    color: #374151;
}

.zs-masters .zs-masters__row b {
    color: #0e2f4f;
}

.zs-masters .zs-masters__quote {
    margin: 14px 0 0;
    font-size: 15px;
    font-style: italic;
    line-height: 1.5;
    color: #1f2937;
}

/* стрелки как в «Примерах работ» на странице дверей;
   общие стили сайта прячут .owl-nav на мобильных — здесь стрелки нужны всегда */
.zs-masters .owl-nav {
    display: block !important;
}

.zs-masters .owl-nav .owl-prev,
.zs-masters .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 24px;
    margin-top: -12px;
    background: url(/img/arrow1-left.png) center / contain no-repeat;
    font-size: 0;
}

.zs-masters .owl-nav .owl-prev {
    left: -62px;
}

.zs-masters .owl-nav .owl-next {
    right: -62px;
    background-image: url(/img/arrow1-right.png);
}

.zs-masters .owl-dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.zs-masters .owl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #9aa3ae;
}

.zs-masters .owl-dot.active {
    background: #354052;
}

@media (max-width: 991px) {
    .zs-banner .zs-banner__title {
        font-size: 36px;
    }

    .zs-masters .zs-masters__slider {
        max-width: calc(100% - 80px);
    }

    .zs-masters .owl-nav .owl-prev {
        left: -36px;
    }

    .zs-masters .owl-nav .owl-next {
        right: -36px;
    }

    .zs-steps .zs-steps__item {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (max-width: 768px) {
    .zs-prices {
        padding: 40px 20px;
    }

    .zs-prices .zs-prices__title {
        font-size: 24px;
    }

    .zs-prices .zs-prices__card {
        padding: 16px;
    }

    .zs-steps {
        padding: 40px 20px;
    }

    .zs-steps .zs-steps__title {
        margin-bottom: 30px;
        font-size: 24px;
    }

    .zs-steps .zs-steps__grid {
        gap: 30px;
    }

    .zs-steps .zs-steps__item {
        flex-basis: 100%;
    }

    .zs-masters {
        padding: 40px 20px;
    }

    .zs-masters .zs-masters__title {
        margin-bottom: 24px;
        font-size: 24px;
    }

    .zs-masters .zs-masters__card {
        flex-direction: column;
        gap: 16px;
        padding: 20px 16px;
    }

    .zs-masters .zs-masters__person {
        flex-basis: auto;
    }

    .zs-masters .zs-masters__photo {
        width: 130px;
        height: 130px;
    }

    .zs-masters .zs-masters__row,
    .zs-masters .zs-masters__quote {
        font-size: 14px;
    }
}

/* мобильный: строки таблицы превращаются в карточки с подписями из data-label */
@media (max-width: 576px) {
    .zs-prices .zs-prices__wrap {
        overflow: visible;
    }

    .zs-prices .zs-prices__table {
        min-width: 0;
        border-spacing: 0;
    }

    .zs-prices .zs-prices__table thead {
        display: none;
    }

    .zs-prices .zs-prices__table,
    .zs-prices .zs-prices__table caption,
    .zs-prices .zs-prices__table tbody,
    .zs-prices .zs-prices__table tr,
    .zs-prices .zs-prices__table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .zs-prices .zs-prices__table caption {
        margin: 0 0 12px;
        font-size: 15px;
    }

    .zs-prices .zs-prices__table tr {
        padding: 12px;
        margin-bottom: 12px;
        background: #f4f7fb;
        border-radius: 16px;
    }

    .zs-prices .zs-prices__table tr:last-child {
        margin-bottom: 0;
    }

    .zs-prices .zs-prices__table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        background: transparent;
        border-radius: 0;
        font-size: 14px;
        text-align: left;
    }

    .zs-prices .zs-prices__table td:not(:last-child) {
        border-bottom: 1px dotted rgba(0, 0, 0, .08);
    }

    .zs-prices .zs-prices__table td:last-child {
        font-weight: 700;
        color: #ff8a00;
    }

    .zs-prices .zs-prices__table td::before {
        content: attr(data-label);
        flex: 0 0 45%;
        font-weight: 700;
        color: #000;
    }

    .zs-prices .zs-prices__table td:first-child {
        display: block;
        font-weight: 600;
    }

    .zs-prices .zs-prices__table td:first-child::before {
        content: none;
    }

    .zs-prices .zs-prices__note {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .zs-banner {
        padding: 20px 20px 30px;
        background-image: url(/images/zamena-steklopaketa/banner-sm.jpg);
    }

    .zs-banner .breadcrumbs {
        margin-bottom: 20px;
    }

    .zs-banner .zs-banner__title {
        margin-bottom: 20px;
        font-size: 28px;
    }

    .zs-banner .zs-banner__utp {
        padding: 16px;
        background: rgba(29, 35, 41, .75);
        border: 1px solid rgba(241, 108, 0, .5);
    }

    .zs-banner .zs-banner__utp-item {
        gap: 12px;
        font-size: 15px;
    }

    .zs-banner .zs-banner__utp-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .zs-banner .zs-banner__buttons {
        gap: 12px;
        margin-top: 20px;
    }

    .zs-banner .zs-banner__btn {
        width: 100%;
        min-width: 0;
        padding: 0 16px;
        font-size: 15px;
    }

    .zs-about {
        padding: 30px 20px;
    }

    .zs-about .zs-about__media {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px;
    }

    .zs-about .zs-about__text,
    .zs-about .zs-about__list li {
        font-size: 15px;
    }

    .zs-about .zs-about__title {
        margin-top: 22px;
        font-size: 21px;
    }
}

/* ---------- Видеогалерея ---------- */
.zs-video {
    margin: 0 -20px;
    padding: 60px 20px;
    background: #fff;
}

.zs-video .zs-video__title {
    margin: 0 0 40px;
    font-size: 36px;
    text-align: center;
}

.zs-video .zs-video__grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.zs-video .zs-video__card {
    flex: 0 1 300px;
    padding: 16px;
    background: #FFF7F0;
    border: 1px solid #F9B98A;
    border-radius: 12px;
}

.zs-video .zs-video__media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 8px;
    background: #1d2329;
}

.zs-video .zs-video__player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.zs-video .zs-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform .2s, opacity .2s;
}

.zs-video .zs-video__play:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.zs-video .zs-video__card.is-playing .zs-video__play {
    opacity: 0;
    pointer-events: none;
}

.zs-video .zs-video__caption {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

@media (max-width: 768px) {
    .zs-video {
        padding: 40px 20px;
    }

    .zs-video .zs-video__title {
        margin-bottom: 24px;
        font-size: 24px;
    }

    .zs-video .zs-video__grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .zs-video .zs-video__card {
        flex-basis: auto;
        width: 100%;
        max-width: 360px;
    }
}
