/* Легкие стили отзывов в стиле Bootstrap 3 */
/* Компактный первый экран (без full-screen) */
header {
    padding: 70px 0 60px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    min-height: auto;
    display: block;
}

.reviews-section { background: #f7f7f7; padding: 40px 0 30px; }
.reviews-kicker { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: #b62d37; margin-bottom: 5px; }
.reviews-subtitle { color: #555; font-size: 15px; }
.reviews-head-cta { margin-top: 10px; }
.reviews-head-cta .btn { margin-right: 10px; }
.review-tile { background: #fff; border-radius: 6px; padding: 30px; border: 1px solid #e7e7e7; height: 100%; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.review-tile p { text-align: left; }
.review-meta { margin: 0 0 5px; font-weight: 600; line-height: 1.4; }
.review-source { color: #888; font-size: 12px; display: block; }
.review-date { color: #999; font-size: 12px; display: block; }
.review-rating { color: #f5a623; font-size: 14px; }
.review-text { font-size: 14px; line-height: 1.6; margin: 0; min-height: 110px; text-align: left; }
.review-job { margin-top: 5px; font-size: 13px; color: #555; min-height: 20px; }
.reviews-gallery .thumbnail { margin-bottom: 15px; }
.reviews-page-hero {padding: 80px 0 45px; text-align: center;}
.reviews-filter { margin: 20px 0; }
.reviews-filter .btn { margin-right: 8px; margin-bottom: 8px; }
.reviews-grid { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; }
.reviews-grid .review-card { padding: 0 15px 30px; flex: 0 0 33.3333%; box-sizing: border-box; display: flex; }
.reviews-grid .review-tile { width: 100%; }
@media (max-width: 991px) {
    .reviews-grid .review-card { flex: 0 0 50%; }
}
@media (max-width: 767px) {
    .reviews-grid { margin-left: 0; margin-right: 0; }
    .reviews-grid .review-card { flex: 0 0 100%; padding: 0 0 20px; }
}
.reviews-grid .review-card { margin-bottom: 30px; }

.reviews-page {
    background: #f4f4f4;
}

/* Главная: слайдер отзывов */
.reviews-slider-main .owl-dots { text-align: center; margin-top: 15px; }
.reviews-slider-main .owl-dot span {
    width: 12px;
    height: 12px;
    margin: 5px 4px;
    background: #d3d3d3;
    border-radius: 50%;
    display: block;
    transition: all .2s;
}
.reviews-slider-main .owl-dot.active span {
    background: #b62d37;
    width: 14px;
    height: 14px;
}
.reviews-section .owl-dots { text-align: center; margin-top: 12px; }
.reviews-section .owl-dot span {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
    transition: all .2s;
}
.reviews-section .owl-dot.active span {
    background: #b62d37;
    width: 14px;
    height: 14px;
}
.reviews-section .owl-dots { display: block !important; position: static; }
.works-slider-related .owl-dots { text-align: center; margin-top: 12px; }
.works-slider-related .owl-dot span {
    width: 10px;
    height: 10px;
    background: #d3d3d3;
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
    transition: all .2s;
}
.works-slider-related .owl-dot.active span {
    background: #b62d37;
    width: 12px;
    height: 12px;
}

/* Наши работы */
.works-section { padding: 60px 0; background: #f7f7f7; }
.works-head-cta .btn { margin-top: 10px; }
.works-filter { margin: 0; display: none; }
.works-grid .work-card { margin-bottom: 20px; display: flex; }
.work-link {
    display: block;
    color: inherit;
    text-decoration: none;
    width: 100%;
}
.work-tile { background: #fff; border: 1px solid #e7e7e7; border-radius: 6px; overflow: hidden; width: 100%; box-shadow: 0 6px 18px rgba(0,0,0,.06); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; height: 100%; }
.work-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.work-thumb { padding-top: 62%; background-size: cover; background-position: center; }
.work-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; height: 100%; flex: 1; justify-content: space-between; }
.work-location { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .04em; }
.work-title { margin: 0; font-size: 16px; font-weight: 700; min-height: 48px; }
.work-price { font-size: 14px; color: #333; }
.work-credit { color: #888; }
.work-tags .label {
    margin-right: 6px;
    margin-bottom: 4px;
    background: #fff;
    color: #b62d37;
    border: 1px solid #b62d37;
    border-radius: 8px;
    font-weight: 600;
    padding: 5px 10px;
}
@media (max-width: 767px) {
    .works-section { padding: 40px 0; }
    .works-grid .work-card { margin-bottom: 15px; }
}

/* Пагинация под стиль сайта */
.pagination>li>a,
.pagination>li>span {
    color: #b62d37;
    border: 1px solid #b62d37;
    border-radius: 8px !important;
    padding: 10px 16px;
    font-weight: 600;
    margin: 0 4px;
}
.pagination>li>a:focus,
.pagination>li>a:hover,
.pagination>li>span:focus,
.pagination>li>span:hover {
    color: #b62d37;
    background-color: #fff;
    border-color: #b62d37;
}
.pagination>.active>a,
.pagination>.active>span,
.pagination>.active>a:focus,
.pagination>.active>span:focus,
.pagination>.active>a:hover,
.pagination>.active>span:hover {
    background-color: #b62d37;
    border-color: #b62d37;
    color: #fff;
}

/* Карточка работы (детальная) */
.work-hero {
    background: #f7f7f7;
    padding: 50px 0 35px;
    text-align: center;
}
.work-hero h1 { margin-bottom: 10px; }
.work-hero .work-meta {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}
.work-hero .work-pill {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 600;
    color: #555;
}
.work-detail {
    margin-top: 40px;
    margin-bottom: 50px;
}
.work-gallery-wrapper {
    max-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}
.work-gallery-main {
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    aspect-ratio: 16 / 10;
    max-height: calc(100vh - 300px);
}
.work-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.work-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #b62d37;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #b62d37;
    font-size: 18px;
}
.work-gallery-nav:hover {
    background: #b62d37;
    color: #fff;
}
.work-gallery-prev {
    left: 15px;
}
.work-gallery-next {
    right: 15px;
}
.work-thumbs {
    margin-top: 12px;
}
.work-thumbs .owl-stage-outer {
    max-height: 120px;
    overflow: hidden;
}
.work-thumbs .owl-dots {
    margin-top: 10px !important;
    display: block !important;
    position: static !important;
}
.work-thumbs a img {
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    margin-bottom: 10px;
    max-height: 100px;
    object-fit: cover;
    width: 100%;
}
@media (max-width: 991px) {
    .work-gallery-wrapper {
        max-height: calc(100vh - 150px);
    }
    .work-gallery-main {
        max-height: calc(100vh - 250px);
        aspect-ratio: 4 / 3;
    }
}
@media (max-width: 767px) {
    .work-gallery-wrapper {
        max-height: calc(100vh - 120px);
    }
    .work-gallery-main {
        max-height: calc(100vh - 220px);
        aspect-ratio: 1 / 1;
    }
    .work-gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .work-gallery-prev {
        left: 10px;
    }
    .work-gallery-next {
        right: 10px;
    }
}
@media (orientation: landscape) and (max-width: 991px) {
    .work-gallery-wrapper {
        max-height: calc(100vh - 100px);
    }
    .work-gallery-main {
        max-height: calc(100vh - 200px);
        aspect-ratio: 16 / 9;
    }
    .work-thumbs {
        max-height: 80px;
    }
    .work-thumbs .owl-stage-outer {
        max-height: 80px;
    }
    .work-thumbs a img {
        max-height: 70px;
    }
}
.work-thumbs a img {
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    margin-bottom: 10px;
}
.reviews-slider-main .owl-dots,
.works-slider-related .owl-dots,
.work-thumbs .owl-dots,
.reviews-section .owl-dots {
    text-align: center;
    margin-top: 12px;
    display: block !important;
    position: static !important;
}
.reviews-slider-main .owl-dot span,
.works-slider-related .owl-dot span,
.work-thumbs .owl-dot span,
.reviews-section .owl-dot span {
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    transition: all .2s;
}
.reviews-slider-main .owl-dot.active span,
.works-slider-related .owl-dot.active span,
.work-thumbs .owl-dot.active span,
.reviews-section .owl-dot.active span {
    background: #b62d37;
    width: 14px;
    height: 14px;
}
.work-summary {
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    padding: 20px 22px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.work-summary h3 { margin-top: 0; margin-bottom: 12px; }
.work-meta-grid { margin: 0 -7px; }
.work-meta-grid .col-sm-6 { display: flex; }
.work-meta-slider {
    margin: 0 -7px;
}
.work-meta-slider .work-meta-card {
    margin: 0 7px;
}
.work-meta-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    height: 100%;
    min-height: 110px;
    flex: 1;
}
.work-meta-slider .owl-dots {
    text-align: center;
    margin-top: 15px;
    display: block !important;
    position: static !important;
}
.work-meta-slider .owl-dot span {
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    transition: all .2s;
}
.work-meta-slider .owl-dot.active span {
    background: #b62d37;
    width: 14px;
    height: 14px;
}
.work-meta-card i { color: #b62d37; margin-top: 2px; }
.work-meta-card strong { display: block; font-weight: 700; }
.work-meta-card span { display: block; font-weight: 500; color: #555; }
.work-checklist { padding-left: 0; list-style: none; margin-bottom: 0; }
.work-checklist li {
    margin-bottom: 8px;
    color: #444;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    min-height: 48px;
}
.work-checklist i { color: #b62d37; margin-right: 6px; }
.work-actions .btn {
    margin-right: 8px;
    margin-top: 8px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.work-actions .btn i { margin-right: 6px; }
.work-actions .btn-lg-block {
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
}
.work-actions .btn-half {
    width: 48%;
}
@media (max-width: 767px) {
    .work-actions .btn-half { width: 100%; margin-right: 0; }
}
.work-thumbs a.active img { border-color: #b62d37; box-shadow: 0 0 0 2px #b62d37; }



/* Блок материалов - выравнивание высоты */
.materials-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.materials-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}
.materials-row .bigform-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}





@media (max-width: 768px) {
    .materials-row > [class*="col-6"] {
        display: flex;
        flex-direction: column;
        width: 50%;
    }
    
    .materials-row .bigform-form {
        padding: 10px !important;
    }
    
    .materials-row .bigform-form .form-title {
        font-size: 14px !important;
    }
    
    .materials-row .bigform-form a {
        word-break: break-word;
        white-space: normal;
    }
    
    .materials-row .bigform-form .cta-btn:before, .materials-row .bigform-form svg {
        display:none;
    }
}

.form-title {
    line-height: inherit !important;
}