body {

    color: #1C0202;
}

.wpcf7-spinner {
    display: none;
}

.wpcf7 form .wpcf7-response-output {
    margin: 10px 0;
}

a {
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.block-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .block-padding {
        padding: 60px 0;
    }
}

.form-control {
    font-size: small;
}

.menu-item {
    list-style: none;
    font-weight: 700;
}

.menu-item-has-children {
    position: relative;
}

.menu-item a {
    text-decoration: none;
    color: white;
    display: block;
}

.title-bold {
    font-weight: 800;
}

.main-color {
    color: #751917 !important;
}

.text-main {
    color: #1C0202 !important;
}

.btn-primary,
.btn-primary {
    background-color: #0077FF;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #075E54;
    color: #fff;
}

.text-success,
.link-success,
.custom-category a {
    color: #1A7517 !important;
}

.link-success:hover,
.custom-category a:hover {
    color: #083f06 !important;
}

.bg-grey {
    background-color: #f7f7f7;
}

.bg-red-gradient {
    background-image: linear-gradient(185deg,
            hsl(1deg 67% 27%) 0%,
            hsl(1deg 67% 31%) 11%,
            hsl(1deg 67% 35%) 25%,
            hsl(1deg 67% 39%) 43%,
            hsl(1deg 67% 43%) 65%,
            hsl(1deg 67% 47%) 85%,
            hsl(1deg 71% 51%) 100%);
    color: #fff;
}

.img-60 {
    width: 60px;
    height: auto;
    object-fit: cover;
}

/* header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 150;
    transition: all 500ms ease;
    box-shadow: 0 10px 9px rgba(130, 130, 130, 0.07);
}

.icon {
    width: 25px;
}

.burger-menu {
    display: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 20px 10px;
}

.burger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #1C0202;
    margin-bottom: 5px;
}

.burger-line:last-child {
    margin-bottom: 0;
}

.burger-menu.active .burger-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

.menu-mobile {
    display: none;
}

.top-header {
    gap: 10px;
    background-color: #fff;
}

.site-branding .custom-logo {
    width: 140px;
    height: auto;
}

.site-branding .site-title a {
    color: #751917;
    font-weight: 800;
}

.site-branding .site-description {
    max-width: 200px;
    font-size: smaller;
}

.main-navigation,
.hours-address {
    background-color: #751917;
}

.hours-address {
    font-size: smaller;
}


.main-navigation .menu {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-navigation .menu .menu-item a {
    padding: 10px 16px;
    transition: all 0.15s ease-in-out;
}

.main-navigation .menu .menu-item a:hover {
    background-color: #531118;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-navigation .menu .sub-menu {
    position: absolute;
    padding: 0;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    background-color: #751917;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease-in-out;
}

.main-navigation .menu .sub-menu .menu-item a {
    transition: all 0.15s ease-in-out;
}

.main-navigation .menu .sub-menu .menu-item a:hover {
    background-color: #531118;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-navigation .menu .sub-menu .menu-item {
    width: 100%;
    text-align: end;
}

.menu-item-has-children:hover .sub-menu {
    display: flex;
}

@media (max-width: 1024px) {
    .site-branding .custom-logo {
        width: 120px;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation .menu {
        flex-direction: column;
        align-items: center;
        box-shadow: unset;
    }

    .main-navigation.active {
        display: flex;
        position: absolute;
        width: 100%;
        gap: 20px;
        flex-direction: column;
        padding-bottom: 20px !important;
    }

    .main-navigation .menu .sub-menu {
        position: relative;
        display: flex;
        background-color: unset;
        box-shadow: unset;
    }

    .main-navigation .menu .menu-item {
        width: 100%;
    }

    .main-navigation .menu .menu-item a {
        width: 75%;
        margin: 0 auto;
        text-align: center;
    }

    .main-navigation .menu .sub-menu .menu-item {
        text-align: center;
    }

}

@media (max-width: 435px) {
    .top-header {
        column-gap: 0;
    }

    .site-branding .custom-logo {
        width: 100px;
    }

    .site-branding .site-title a {
        font-size: small;
    }

    .site-branding .site-description {
        font-size: 10px;
        width: 150px;
    }
}

/* first screen */

.first-screen {
    background-image: url('../img/first-screen-background.webp');
    background-size: cover;
    min-height: 400px;
}

.first-screen h1 {
    font-weight: 800;
    /* text-shadow: 1px 1px 4px #00000054; */
}

.first-screen .offer p {
    font-weight: 500;
    /* text-shadow: 1px 1px 4px #00000054; */
}

.btn {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.06rem;
    font-size: small;
}

.btn-danger {
    background-color: #751917;
    border-color: #751917;
}

.btn-danger:hover {
    background-color: #531118;
    border-color: #531118;
}


@media (max-width: 992px) {
    .first-screen {
        background-image: url('../img/first-screen-background-tablet.webp');
    }
}

@media (max-width: 576px) {
    .first-screen {
        background-image: url('../img/first-screen-background-mobile.webp');
    }
}

/* Часто задаваемые вопросы */

.faq {
    background-image: url('../img/house-construction.webp');
    background-size: 400px;
    background-repeat: no-repeat;
    background-position: right 80%;
    min-height: 500px;
}

.accordion-button::after,
.accordion-button:not(.collapsed)::after {
    background-image: url('../img/icon/trangle.svg');
}

/* Галерея */

.grid-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.grid-cards .item {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.grid-cards .item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

@media (max-width: 1200px) {
    .grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-cards {
        gap: 5px;
    }
}

/* Modal styles */
.modal-gallery.modal,
.custom-single-product .modal {
    display: none;
    position: fixed;
    z-index: 160;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-gallery .modal-content-container,
.custom-single-product .modal-content-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100vh;
}

.modal-gallery .modal-content,
.custom-single-product .modal-content {
    display: block;
    max-width: 70%;
    width: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: unset;
}

.modal-gallery .modal-title,
.modal-gallery .modal-counter .custom-single-product .modal-title,
.custom-single-product .modal-counter {
    text-align: center;
    color: #fff;
}

.modal-gallery .modal-title,
.custom-single-product .modal-title {
    margin-top: 10px;
}

.modal-gallery .modal-counter,
.custom-single-product .modal-counter {
    font-size: 14px;
    color: white;
}

.modal-gallery .close,
.custom-single-product .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: normal;
    transition: 0.3s;
    z-index: 161;
}

.modal-gallery .close:hover,
.modal-gallery .close:focus,

.custom-single-product .close:hover,
.custom-single-product .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal-gallery .prev,
.modal-gallery .next {
    cursor: pointer;
    position: absolute;
    top: 51%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    display: flex;
}

.modal-gallery .prev {
    left: 5%;
    border-radius: 0 3px 3px 0;
    transform: translateY(-50%);
}

.modal-gallery .prev img {
    transform: rotate(180deg);
}

.modal-gallery .next {
    right: 5%;
    border-radius: 3px 0 0 3px;
    transform: translateY(-50%);
}

@media (max-width: 568px) {
    .modal-gallery .prev {
        left: 2%;
        border-radius: 0 3px 3px 0;
        transform: translateY(-50%);
    }

    .modal-gallery .next {
        right: 2%;
        border-radius: 3px 0 0 3px;
        transform: translateY(-50%);
    }
}

.modal-gallery .prev:hover,
.modal-gallery .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Woocommerce */

.product-gallery {
    position: absolute;
    top: 0;
    overflow: hidden;
}

.product-gallery-main {
    position: relative;
    width: 100%;
}

.product-gallery-thumbnails {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.product-gallery img {
    width: 100%;
}

.product-gallery .gallery-prev,
.product-gallery .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.product-gallery .gallery-prev {
    left: 0;
}

.product-gallery .gallery-next {
    right: 0;
}

.contacts {
    background-image: url('../img/house-construction-2.webp');
    background-size: 400px;
    background-repeat: no-repeat;
    background-position: left 80%;
    min-height: 500px;
}

.site-info {
    background-color: rgb(127, 15, 13);
    background: linear-gradient(138deg, rgba(127, 15, 13, 1) 0%, rgba(73, 11, 9, 1) 100%);
}

.site-footer .menu {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer .logo {
    max-width: 180px;
}

.site-footer .contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-info .content {
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
}

.footer-bottom {
    background-color: #200303;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
}

.footer-bottom .inn {
    gap: 5px;
}

.kerndigital,
.kerndigital a {
    font-size: 12px;
    color: #ffffff7f;

}

@media (max-width: 768px) {
    .site-info .content {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .site-info .content {
        gap: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .site-footer .logo {
        max-width: 120px;
    }
}

/* NEW */

.review__photo {
    width: 50px;
}

@media (max-width: 576px) {
    .review__photo {
        width: 40px;
    }
}

.review__src {
    width: 24px;
    height: 24px;
    background-size: contain;
}

.review-card {
    transition: all 0.15s ease-in-out;
}

.review-card:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, .2);
}

.slick-slide {
    margin: 0 10px;
}
.slick-list {
    margin: 0 -10px;
}

.reviews-layout-column .review-card {
    height: auto; /* Автоматическая высота для row */
}

.slick-prev,
.slick-next {
    display: none !important;
}

.slick-dots {
    position: relative !important;
    bottom: 0 !important;
}

.slick-dots li button:before {
    font-size: 10px !important;
    color: #1A7517 !important;
}


/* ---- */

.questions {
    background-image: url('../img/house-construction-3.png');
    background-size: 600px;
    background-repeat: no-repeat;
    background-position: right bottom;
}

.pagination .page-link {
    color: #1C0202;
}

.pagination .page-link.active,
.active>.page-link {
    color: #fff;
    background-color: #751917;
    border-color: #751917;
}

/* Single product */

.custom-single-product .woocommerce-product-gallery {
    position: relative;
}

.custom-single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: grid;
    flex-wrap: wrap;
    position: relative;
    grid-template-columns: repeat(5, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
}

.custom-single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    opacity: .7;
    transition: opacity 0.15s ease-in-out
}

.custom-single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.custom-single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover {
    opacity: 1;
    transition: opacity 0.15s ease-in-out
}

.custom-single-product .woocommerce-product-gallery .flex-viewport {
    margin-bottom: 6px;
}

.custom-single-product .woocommerce-product-gallery__trigger {
    position: absolute;
    top: .5em;
    right: .5em;
    font-size: 2em;
    z-index: 9;
    width: 36px;
    height: 36px;
    background: #fff;
    text-indent: -9999px;
    border-radius: 100%;
    box-sizing: content-box;
}

.custom-single-product .woocommerce-product-gallery__trigger::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid #000;
    border-radius: 100%;
    position: absolute;
    top: 9px;
    left: 9px;
    box-sizing: content-box;
}

.custom-single-product .woocommerce-product-gallery__trigger::after {
    content: "";
    display: block;
    width: 2px;
    height: 8px;
    background: #000;
    border-radius: 6px;
    position: absolute;
    top: 19px;
    left: 22px;
    transform: rotate(-45deg);
    box-sizing: content-box;
}

.pswp__bg {
    background-color: rgba(0, 0, 0, 0.7);
}

/* ----- */

.custom-product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-product-gallery .large-image {
    position: relative;
    margin-bottom: 10px;
}

.custom-product-gallery .large-image img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-product-gallery .zoom-icon {
    position: absolute;
    top: .5em;
    right: .5em;
    font-size: 2em;
    z-index: 9;
    width: 36px;
    height: 36px;
    background: rgb(255 255 255 / 70%);
    text-indent: -9999px;
    border-radius: 100%;
    box-sizing: content-box;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.custom-product-gallery .zoom-icon:hover {
    background: rgb(255 255 255 / 100%);

}

.custom-product-gallery .zoom-icon::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid #000;
    border-radius: 100%;
    position: absolute;
    top: 9px;
    left: 9px;
    box-sizing: content-box;
}

.custom-product-gallery .zoom-icon::after {
    content: "";
    display: block;
    width: 2px;
    height: 8px;
    background: #000;
    border-radius: 6px;
    position: absolute;
    top: 19px;
    left: 22px;
    transform: rotate(-45deg);
    box-sizing: content-box;
}

.custom-product-gallery .thumbnails {
    display: grid;
    flex-wrap: wrap;
    gap: 10px;
    grid-template-columns: repeat(5, 1fr);
}

.custom-product-gallery .thumbnail {
    position: relative;
    cursor: pointer;
    opacity: .7;
    transition: all 0.15s ease-in-out;
}

.custom-product-gallery .thumbnail.active,
.custom-product-gallery .thumbnail:hover {
    opacity: 1;
}

.custom-product-gallery-container .modal-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
    position: absolute;
}

.custom-product-gallery-container .modal-navigation .prev,
.custom-product-gallery-container .modal-navigation .next {
    padding: 16px;
    font-size: 20px;
    transition: 0.6s ease;
    cursor: pointer;
}

.custom-product-gallery-container .modal-navigation .prev {
    transform: rotate(180deg);
    margin-left: 5%;
}

.custom-product-gallery-container .modal-navigation .next {
    margin-right: 5%;
}

.custom-product-gallery-container .modal-navigation .prev:hover,
.custom-product-gallery-container .modal-navigation .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Блог */

.post-categories a {
    color: inherit !important;
    text-decoration: none;
}

.widget-area {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
}

.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 150px;
    bottom: 30px;
    height: min-content;
}

@media (max-width: 992px) {
    .sticky-sidebar {
        position:relative;
        top: 0;
        bottom: 0;
    }
}

.post a {
    
}

.wpcf7-not-valid-tip {
    font-size: 10px;
    margin: 0 auto;
    margin-top: 4px;
    width: fit-content;
}
}