
main#primary.site-main, .site-content, #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


:root {
   
    --page-bg: #fbfbfb; 
    
    --main-green: #7fb98d;
    --main-orange: #f89f73;
    --main-beige: #f3f2ee;
    --main-heading: #2f3030; 
    --main-text: #0e0f14;    
    --text-light-gray: #64748b;
}


html, body, #page, .site, .site-inner, .site-content-contain {
    background-color: var(--page-bg) !important;
}

/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&subset=cyrillic,cyrillic-ext&display=swap');
body, h1, h2, h3, h4, h5, h6, p, span, a, div, li {
    font-family: 'Montserrat', sans-serif !important;
    color: var(--main-text);
}
h1, h2, h3, h4, h5, h6, .service-single-title, .widget-title {
     color: var(--main-heading) !important;
}
.review-info h4 { color: #fff !important; }


.single-service-wrapper {
    width: 100%;
    max-width: 1308px;
    margin: 0 auto;
    padding: 40px 20px;
}


.service-header-strip {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: transparent;
    padding: 40px 0 20px 0;
    margin-bottom: 20px;
}

.service-header-inner {
    width: 100%;
    max-width: 1308px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-single-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.service-single-divider {
    height: 4px;
    width: 80px;
    background-color: #7fb98d;
    border-radius: 2px;
    margin-bottom: 0;
}


.single-service-container {
    display: grid;
    grid-template-columns: 1fr 400px; 
    gap: 30px; 
    align-items: start; 
}


.service-content-column { min-width: 0; }

.service-single-image {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 450px;
    width: 100%;
    position: relative;
}
.service-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-single-body {
    font-size: 18px;
    line-height: 1.7;
    color: #0e0f14;
    margin-bottom: 60px;
    /* Белая карточка контента */
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.service-single-body h2 { margin-top: 30px; margin-bottom: 15px; color: #2f3030; }
.service-single-body p { margin-bottom: 20px; }
.service-single-body ul { padding-left: 20px; margin-bottom: 20px; }
.service-single-body li { margin-bottom: 10px; }


.blog-single-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    border-radius: 50px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #7fb98d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
    letter-spacing: 0.5px;
}
.blog-single-badge.case { color: #f89f73; }
.blog-single-date {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 600;
    display: block;
}
.blog-single-date::before { content: "Опубликовано: "; }
:lang(uk) .blog-single-date::before { content: "Опубліковано: "; }


.service-sidebar-column {
    padding: 0;
    height: fit-content;
}


.widget { 
    margin-bottom: 30px; 
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.widget:last-child { margin-bottom: 0; }


.widget-title {
    font-size: 20px;
    font-weight: 800;
    color: #2f3030;
    line-height: 1.2;
    background-color: #f3f2ee; 
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    position: relative;
}
.widget-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #7fb98d;
    border-radius: 2px;
    margin-top: 8px;
}


.widget ul, .widget > div:not(.widget-title), .sbmenu {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 15px 25px !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.sbmenu br { display: none; }


.widget li, .sbmenu a {
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0;
    margin: 0;
    display: block;
}
.widget li:last-child, .sbmenu a:last-child { border-bottom: none !important; }

.widget a, .sbmenu a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #0e0f14;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    left: 0;
}

.widget li a { border-bottom: none !important; }

.widget a:hover, .sbmenu a:hover {
    color: #7fb98d;
    left: 5px;
    border-bottom-color: #7fb98d;
}

.sbmenu {
    font-family: 'Montserrat', sans-serif !important;
    white-space: normal !important;
}


.local-block.cta-compact-wrapper,
.local-block.reviews-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
    position: static !important;
    background: transparent !important;
    display: block !important; 
}


.local-block .cta-compact-card {
    max-width: 100% !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    background: #f3f2ee;
    border-radius: 16px;
    border: 1px solid rgba(127, 185, 141, 0.3);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}
.local-block .cta-compact-text { flex: 1; }
.local-block .cta-compact-title { 
    font-size: 20px; font-weight: 700; color: #2f3030; margin: 0; line-height: 1.2; 
}
.local-block .cta-compact-buttons { display: flex; gap: 12px; }
.cta-btn-small {
    display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; 
    text-decoration: none !important; font-weight: 600; font-size: 13px; color: #fff !important; 
    transition: 0.3s; box-shadow: 0 2px 6px rgba(0,0,0,0.1); white-space: nowrap;
    background: #229ED9;
}
.cta-btn-small.telegram { background: #229ED9; }
.cta-btn-small.telegram:hover { background: #1b8ac0; transform: translateY(-2px); }
.cta-btn-small.whatsapp { background: #25D366; }
.cta-btn-small.whatsapp:hover { background: #1ebc57; transform: translateY(-2px); }
.cta-btn-small svg { width: 16px; height: 16px; fill: currentColor; }

/* Reviews */
.local-block .reviews-header { margin-bottom: 20px; text-align: left; }
.local-block .reviews-title { font-size: 2rem; font-weight: 700; color: #2f3030; margin: 0 0 10px 0; line-height: 1.1; }
.local-block .reviews-divider { height: 4px; width: 80px; background-color: #7fb98d; border-radius: 2px; margin-bottom: 20px; }

.custom-slider-viewport { overflow: hidden; position: relative; padding: 10px 0 20px 0; margin: -10px 0; }
.custom-slider-track { display: flex; transition: transform 0.5s ease-in-out; width: 100%; align-items: stretch; }
.custom-slide { flex-shrink: 0; padding: 0 10px; box-sizing: border-box; display: flex; height: auto; }

.review-card {
    background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; width: 100%; 
    display: flex; flex-direction: column; position: relative; overflow: hidden; 
    transition: 0.3s; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02); 
    min-height: 300px; height: 100%;
}
.review-card:hover { border-color: #7fb98d; box-shadow: 0 8px 25px rgba(127, 185, 141, 0.15); }
.review-card.video-type { padding: 0; background: #000; cursor: pointer; }
.video-facade { position: relative; width: 100%; height: 100%; min-height: 340px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
.video-thumb-cover, .video-thumb-contain { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; transition: opacity 0.3s; object-fit: cover; }
.play-btn { width: 70px; height: 70px; background: rgba(255, 255, 255, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 10; transition: transform 0.3s, background 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.play-btn svg { width: 28px; height: 28px; fill: #7fb98d; margin-left: 4px; }
.video-facade:hover .play-btn { transform: scale(1.1); background: #fff; }
.video-facade:hover .play-btn svg { fill: #f89f73; }
.video-active iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 20; border: 0; background: #000; }
.video-active .video-thumb-cover, .video-active .video-thumb-contain, .video-active .play-btn { display: none; }

.review-head { background-color: #7fb98d; padding: 25px 30px; display: flex; align-items: center; gap: 15px; position: relative; z-index: 2; min-height: 100px; }
.review-card.text-type::after { content: '”'; position: absolute; top: -10px; right: 20px; font-size: 120px; line-height: 1; color: #fff; font-family: serif; opacity: 0.2; pointer-events: none; z-index: 3; }
.review-avatar { width: 50px; height: 50px; background: #fff; color: #7fb98d; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.review-info h4 { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.review-info span { font-size: 14px; color: rgba(255, 255, 255, 0.9); }
.review-content-wrapper { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; background: #fff; position: relative; z-index: 2; justify-content: space-between; }
.review-body { font-size: 16px; line-height: 1.6; color: var(--main-text); position: relative; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; transition: max-height 0.5s ease; margin-bottom: 15px; max-height: 160px; }
.review-body.expanded { -webkit-line-clamp: unset; overflow: visible; max-height: 1000px; }
span.read-more-btn { display: none; color: #7fb98d !important; font-weight: 700 !important; font-size: 14px !important; cursor: pointer; border-bottom: 1px dashed #7fb98d !important; align-self: flex-start; transition: 0.3s; background: none !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; text-transform: none !important; line-height: normal !important; }
span.read-more-btn:hover { color: #f89f73 !important; border-bottom-color: #f89f73 !important; }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 50; cursor: pointer; width: 44px; height: 44px; background: #7fb98d; border-radius: 50%; color: #fff; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transition: 0.3s; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; }
.slider-btn:hover { background: #f89f73; color: #fff; border-color: #f89f73; }
.slider-btn-prev { left: -10px; }
.slider-btn-next { right: -10px; }
.slider-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }


.blog-classic-list { display: flex; flex-direction: column; gap: 40px; }

.blog-classic-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s;
}
.blog-classic-item:hover { box-shadow: 0 10px 20px rgba(127, 185, 141, 0.15); border-color: #7fb98d; }

.blog-classic-image {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}
.blog-classic-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-classic-item:hover .blog-classic-image img { transform: scale(1.05); }

.blog-classic-body { padding: 30px; }

.blog-classic-title { font-size: 24px; font-weight: 700; margin: 0 0 15px 0; line-height: 1.3; }
.blog-classic-title a { text-decoration: none; transition: color 0.3s; color: var(--main-heading) !important; }
.blog-classic-title a:hover { color: #7fb98d !important; }

.blog-classic-date { font-size: 14px; color: #64748b; font-weight: 600; margin-bottom: 15px; display: block; }

.blog-classic-excerpt { font-size: 16px; line-height: 1.6; color: var(--main-text); margin-bottom: 25px; }

.blog-btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px;
    background: #f89f73; color: #fff !important; border-radius: 8px; text-decoration: none !important;
    font-weight: 700; font-size: 14px; transition: 0.3s; box-shadow: 0 4px 10px rgba(248, 159, 115, 0.3);
}
.blog-btn:hover { background: #7fb98d; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(127, 185, 141, 0.3); }


.services-pagination {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.services-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--main-text);
    font-weight: 600;
    transition: 0.3s;
    background: #fff;
    font-size: 14px;
}
.services-pagination .page-numbers.current, .services-pagination .page-numbers:hover {
    background: #7fb98d;
    color: #fff !important;
    border-color: #7fb98d;
}
.services-pagination ul, .services-pagination li { list-style: none; margin: 0; padding: 0; display: contents; }


@media (max-width: 900px) {
    .single-service-container {
        grid-template-columns: 1fr; 
    }
    .service-sidebar-column {
        margin-top: 40px;
        border-top: none; 
        padding-top: 0;
    }
    .widget { width: 100%; }
}

@media (max-width: 600px) {
    .service-single-image { height: 225px; margin-bottom: 20px; }
    .service-single-body { font-size: 16px; padding: 20px; }
    .service-single-title { font-size: 2rem; }
    .local-block .cta-compact-card { flex-direction: column; text-align: center; }
    .local-block .cta-compact-buttons { width: 100%; flex-direction: column; }
    .local-block .cta-btn-small { width: 100%; justify-content: center; }
    
    .blog-classic-image { height: 220px; }
    .blog-classic-body { padding: 20px; }
    .blog-classic-title { font-size: 20px; }
    
    .slider-btn { width: 30px; height: 30px; }
    .slider-btn-prev { left: 0; }
    .slider-btn-next { right: 0; }
}