/* Контент страниц под новую шапку */

.container.beliy1,
.container.pd-page {
    margin-top: 0;
    padding: 28px 15px 56px;
    background: #fff;
}

.container.beliy1 .breadcrumb {
    margin: 0 0 20px;
    padding: 0 0 14px;
    background: transparent;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 0;
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    color: #666;
}

.container.beliy1 .breadcrumb > li + li::before {
    color: #aaa;
}

.container.beliy1 .breadcrumb a {
    color: #555;
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
}

.container.beliy1 .breadcrumb a:hover {
    color: #cf4104;
    text-decoration: underline;
}

.container.beliy1 .breadcrumb > .active {
    color: #222;
}

.container.beliy1 > h1,
.container.beliy1 > .row > .col-xs-12 > h1,
.container.beliy1 .pd-page__title {
    margin: 0 0 28px;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    text-transform: uppercase;
    color: #0f141a;
}

/* Фото работ */

.pd-foto-cats {
    margin-bottom: 8px;
}

.pd-foto-cats .foto {
    margin-bottom: 10px;
}

.pd-foto-cats .foto a {
    display: inline-block;
    color: #333;
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
    border-bottom: 1px dashed #c8c8c8;
    transition: color 0.2s, border-color 0.2s;
}

.pd-foto-cats .foto a:hover {
    color: #cf4104;
    border-bottom-color: #cf4104;
}

.pd-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    width: 100%;
    margin: 24px 0 32px;
    overflow: visible;
}

.pd-gallery .ramka {
    float: none;
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    transition: box-shadow 0.2s, transform 0.2s;
}

.pd-gallery .ramka:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.pd-gallery .ramka a {
    display: block;
}

.pd-gallery img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
    padding: 0;
    border: 0;
}

/* Пагинация */

.container.beliy1 .pagination_wrapper {
    margin-top: 8px;
    text-align: center;
}

.container.beliy1 .pagination > li > a,
.container.beliy1 .pagination > li > span {
    color: #444;
}

.container.beliy1 .pagination > .active > a {
    background: #8b3d2f;
    border-color: #8b3d2f;
}

/* Контент без лишних col вне row */

.container.beliy1 > .col-xs-12 {
    float: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.container.beliy1 .pd-page__content-end {
    margin-top: 24px;
    line-height: 1.6;
    color: #333;
}

.container.beliy1 .pd-page__content-end img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .container.beliy1,
    .container.pd-page {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .container.beliy1 > h1,
    .container.beliy1 .pd-page__title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .pd-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pd-gallery img {
        height: 140px;
    }
}
