/* Стили для страниц, скопированных с текущего сайта */

/* Общие стили для контента страниц */
.klb-page .klb-post,
.page-content {
    max-width: 100%;
}

.klb-page .klb-post img,
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Стили для выравнивания изображений */
.klb-page .klb-post img.alignleft,
.page-content img.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
    max-width: 300px;
}

.klb-page .klb-post img.alignright,
.page-content img.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    max-width: 300px;
}

.klb-page .klb-post img.aligncenter,
.page-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Очистка float */
.klb-page .klb-post::after,
.page-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Стили для заголовков */
.klb-page .klb-post h1,
.klb-page .klb-post h2,
.klb-page .klb-post h3,
.klb-page .klb-post h4,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.klb-page .klb-post h2,
.page-content h2 {
    font-size: 28px;
}

.klb-page .klb-post h3,
.page-content h3 {
    font-size: 24px;
}

/* Стили для параграфов */
.klb-page .klb-post p,
.page-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Стили для списков */
.klb-page .klb-post ul,
.klb-page .klb-post ol,
.page-content ul,
.page-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.klb-page .klb-post li,
.page-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Стили для видео */
.klb-page .klb-post .lazy-video,
.page-content .lazy-video {
    margin: 30px 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.klb-page .klb-post .lazy-video iframe,
.klb-page .klb-post .lazy-video video,
.page-content .lazy-video iframe,
.page-content .lazy-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Стили для секций */
.klb-page .klb-post section,
.page-content section {
    margin: 40px 0;
}

/* Стили для контейнеров */
.klb-page .klb-post .container,
.page-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .klb-page .klb-post img.alignleft,
    .klb-page .klb-post img.alignright,
    .page-content img.alignleft,
    .page-content img.alignright {
        float: none;
        display: block;
        margin: 20px auto;
        max-width: 100%;
    }
    
    .klb-page .klb-post h2,
    .page-content h2 {
        font-size: 24px;
    }
    
    .klb-page .klb-post h3,
    .page-content h3 {
        font-size: 20px;
    }
}

/* Скрываем breadcrumbs и лишние заголовки на странице Доставка */
.offer-header-section .breadcrumbs,
.offer-header-section .offer-breadcrumbs,
.offer-header-section h1 {
    display: none !important;
}

/* Стили для элементов услуг в ряд - применяется ко всем страницам */
.offer-layout .relevant-list-section,
.relevant-list-section,
.page .relevant-list-section,
.klb-page .relevant-list-section {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    display: block !important;
    width: 100% !important;
}

.relevant-list-section h2,
.relevant-list-section h2.py-4 {
    margin-bottom: 30px !important;
    font-size: 28px !important;
    font-weight: 600 !important;
}

.relevant-list-section .relevant-list,
.offer-layout .relevant-list-section .relevant-list,
.page .relevant-list-section .relevant-list,
.klb-page .relevant-list-section .relevant-list,
body .relevant-list-section .relevant-list,
body .offer-layout .relevant-list-section .relevant-list,
ul.relevant-list,
.relevant-list-section ul.relevant-list,
.offer-layout .relevant-list-section ul.relevant-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.relevant-list-section .relevant-list li,
.offer-layout .relevant-list-section .relevant-list li,
.page .relevant-list-section .relevant-list li,
.klb-page .relevant-list-section .relevant-list li,
body .relevant-list-section .relevant-list li,
body .offer-layout .relevant-list-section .relevant-list li,
ul.relevant-list li,
.relevant-list-section ul.relevant-list li,
.offer-layout .relevant-list-section ul.relevant-list li {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    width: 100% !important;
}

.relevant-list-section .relevant-list .offer-card,
.offer-layout .relevant-list-section .relevant-list .offer-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.relevant-list-section .relevant-list .offer-card img,
.offer-layout .relevant-list-section .relevant-list .offer-card img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}

.relevant-list-section .relevant-list .offer-card figcaption,
.offer-layout .relevant-list-section .relevant-list .offer-card figcaption {
    margin-top: 15px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.relevant-list-section .relevant-list .offer-card h3,
.offer-layout .relevant-list-section .relevant-list .offer-card h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.relevant-list-section .relevant-list .offer-card h3 a,
.offer-layout .relevant-list-section .relevant-list .offer-card h3 a {
    text-decoration: none !important;
    color: #333 !important;
}

.relevant-list-section .relevant-list .offer-card h3 a:hover,
.offer-layout .relevant-list-section .relevant-list .offer-card h3 a:hover {
    color: #006699 !important;
}

/* Переопределяем любые другие стили, которые могут делать элементы в столбик */
.relevant-list-section .relevant-list li {
    display: flex !important;
    flex-direction: column !important;
}

/* FAQ archive page: /voprosy-i-otvety/ */
body.page-id-42012 {
    background: linear-gradient(rgb(247, 251, 255) 0%, rgb(255, 255, 255) 220px);
}

body.page-id-42012 .elementor-widget-theme-post-title {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 24px;
}

body.page-id-42012 .elementor-widget-theme-post-title .elementor-heading-title,
body.page-id-42012 .blog-post-page > h1,
body.page-id-42012 .blog-post-page > h3,
body.page-id-42012 .faq-index-card__title,
body.category-faq .elementor-widget-theme-archive-title .elementor-heading-title,
body.category-faq .elementor-post__title a {
    font-family: Montserrat, sans-serif;
    font-weight: 700 !important;
}

body.page-id-42012 .elementor-location-single.post-42012 {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 10px;
}

body.page-id-42012 .elementor-location-single.post-42012 > .e-con-boxed {
    margin-top: 0 !important;
}

body.page-id-42012 .elementor-location-single.post-42012 > .e-con-boxed + .e-con-boxed {
    margin-top: 0 !important;
}

body.page-id-42012 .elementor-widget-theme-post-title .elementor-heading-title {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 12px 28px;
    border-radius: 999px;
    background: none !important;
    color: rgb(15, 61, 95) !important;
    box-shadow: rgba(15, 23, 42, 0.06) 0px 16px 40px 0px;
    font-size: 42px !important;
    line-height: 42px !important;
    font-weight: 400;
    letter-spacing: -0.04em;
    text-shadow: none;
}

body.page-id-42012 .elementor-widget-theme-post-title .elementor-heading-title::before {
    content: none;
}

body.page-id-42012 .blog-post-page > h1 {
    display: none !important;
}

body.page-id-42012 .blog-layout {
    position: relative;
}

body.page-id-42012 .blog-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 88px;
}

body.page-id-42012 .breadcrumbs-container {
    margin: 0 0 24px;
}

body.page-id-42012 .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 14px 18px;
    border: 1px solid rgba(21, 32, 75, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 30px rgba(21, 32, 75, 0.06);
}

body.page-id-42012 .blog-post-page {
    padding-top: 34px;
}

body.page-id-42012 .breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5b667a;
    font-size: 14px;
    line-height: 1.4;
}

body.page-id-42012 .breadcrumbs li + li::before {
    content: '/';
    color: rgba(91, 102, 122, 0.55);
}

body.page-id-42012 .breadcrumbs a {
    color: #1f3f89;
    font-weight: 600;
    text-decoration: none;
}

body.page-id-42012 .breadcrumbs a:hover {
    color: #e4573d;
}

body.page-id-42012 .wp-post {
    margin: 0;
}

body.page-id-42012 .wp-post .blog-post-page {
    padding: 34px clamp(18px, 3vw, 32px) 28px;
    border: 1px solid rgba(21, 32, 75, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 56px rgba(21, 32, 75, 0.08);
}

body.page-id-42012 .blog-post-page > h1 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3.6vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #17224a;
}

body.page-id-42012 .blog-post-page > h3 {
    margin: 28px 0 0;
    padding: 18px 20px 0;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #1e2d59;
    border-top: 1px solid rgba(21, 32, 75, 0.08);
}

body.page-id-42012 .blog-post-page > h3:first-of-type {
    margin-top: 4px;
    border-top: 0;
    padding-top: 0;
}

body.page-id-42012 .blog-post-page > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

body.page-id-42012 .blog-post-page > ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.page-id-42012 .blog-post-page > ul li a {
    display: block;
    min-height: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(21, 32, 75, 0.09);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #24304f;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(21, 32, 75, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    line-height: 1.45;
    text-wrap: balance;
}

body.page-id-42012 .blog-post-page > ul li a:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 63, 137, 0.28);
    box-shadow: 0 16px 30px rgba(21, 32, 75, 0.10);
    color: #1f3f89;
}

body.page-id-42012 .blog-post-page > ul li a:focus-visible {
    outline: 3px solid rgba(31, 63, 137, 0.22);
    outline-offset: 2px;
}

body.page-id-42012 .blog-post-page > p:last-child {
    margin-bottom: 0;
}

body.page-id-42012 .faq-index__summary {
    margin: 0 0 18px;
    color: #566079;
    font-size: 15px;
    line-height: 1.6;
}

body.page-id-42012 .faq-index-shell {
    display: grid;
    gap: 18px;
}

body.page-id-42012 .faq-index__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

body.page-id-42012 .faq-index-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(21, 32, 75, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 34px rgba(21, 32, 75, 0.06);
}

body.page-id-42012 .blog-post-page > h1 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(21, 32, 75, 0.96), rgba(40, 77, 156, 0.96));
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(21, 32, 75, 0.16);
    font-size: clamp(28px, 4.2vw, 56px);
    line-height: 1;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

body.page-id-42012 .blog-post-page > h1::before {
    content: 'Полезные материалы';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.page-id-42012 details.faq-index-card > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
}

body.page-id-42012 details.faq-index-card > summary::-webkit-details-marker {
    display: none;
}

body.page-id-42012 .faq-index-card__toggle {
    margin-left: auto;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 999px;
    background: rgba(31, 63, 137, 0.08);
    position: relative;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

body.page-id-42012 .faq-index-card__toggle::before,
body.page-id-42012 .faq-index-card__toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    margin-top: -1px;
    margin-left: -7px;
    border-radius: 999px;
    background: #1f3f89;
}

body.page-id-42012 .faq-index-card__toggle::after {
    transform: rotate(90deg);
}

body.page-id-42012 details.faq-index-card[open] .faq-index-card__toggle {
    background: rgba(31, 63, 137, 0.14);
    transform: rotate(180deg);
}

body.page-id-42012 .faq-index-card__panel {
    display: block;
}

body.page-id-42012 .faq-index-card__head {
    display: contents;
}

body.page-id-42012 .faq-index-card__image {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(21, 32, 75, 0.10);
}

body.page-id-42012 .faq-index-card__body {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    flex: 1 1 auto;
}

body.page-id-42012 .faq-index-card__kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(31, 63, 137, 0.08);
    color: #1f3f89;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.page-id-42012 .faq-index-card__title {
    margin: 0;
    color: #17224a;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.22;
    letter-spacing: -0.03em;
    font-weight: 700 !important;
}

body.page-id-42012 .faq-index-card__count {
    display: inline-flex;
    margin-top: 8px;
    color: #6c758a;
    font-size: 12px;
}

body.page-id-42012 .faq-index-card__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.page-id-42012 .faq-index-card__links li {
    margin: 0;
    padding: 0;
}

body.page-id-42012 .faq-index-card__links a {
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(21, 32, 75, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #24304f;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(21, 32, 75, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.page-id-42012 .faq-index-card__links a:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 63, 137, 0.26);
    box-shadow: 0 10px 22px rgba(21, 32, 75, 0.08);
    color: #1f3f89;
}

body.page-id-42012 .faq-index-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

body.page-id-42012 .faq-index-pager__numbers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.page-id-42012 .faq-index-pager__button {
    appearance: none;
    border: 1px solid rgba(21, 32, 75, 0.10);
    border-radius: 999px;
    background: #ffffff;
    color: #17224a;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
    box-shadow: 0 8px 18px rgba(21, 32, 75, 0.05);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.page-id-42012 .faq-index-pager__button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(31, 63, 137, 0.24);
    box-shadow: 0 12px 24px rgba(21, 32, 75, 0.09);
}

body.page-id-42012 .faq-index-pager__button.is-active {
    background: linear-gradient(135deg, #1f3f89, #3765cf);
    border-color: transparent;
    color: #ffffff;
}

body.page-id-42012 .faq-index-pager__button:disabled {
    opacity: 0.48;
    cursor: default;
    transform: none;
}

body.page-id-42012 .xs_social_share_widget,
body.page-id-42012 .elementor-post-navigation {
    display: none !important;
}

@media (max-width: 767px) {
    body.page-id-42012 .elementor-widget-theme-post-title,
    body.page-id-42012 .blog-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.page-id-42012 .blog-post-page {
        padding: 24px 16px 20px;
        border-radius: 24px;
    }

    body.page-id-42012 .blog-post-page > h1 {
        width: 100%;
        justify-content: flex-start;
        font-size: clamp(24px, 8vw, 40px);
    }

    body.page-id-42012 .faq-index__content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body.page-id-42012 .faq-index-card {
        border-radius: 20px;
    }

    body.page-id-42012 details.faq-index-card > summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 18px 16px;
    }

    body.page-id-42012 .faq-index-card__image {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    body.page-id-42012 .faq-index-card__body {
        width: 100%;
    }

    body.page-id-42012 .faq-index-card__title {
        font-size: 17px;
    }

    body.page-id-42012 .faq-index-card__count {
        margin-top: 6px;
    }

    body.page-id-42012 .faq-index-card__links {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body.page-id-42012 .elementor-widget-theme-post-title .elementor-heading-title {
        width: 100%;
        justify-content: flex-start;
        font-size: clamp(24px, 8vw, 40px);
    }
}

/* FAQ archive page: /blog/faq/ */
body.category-faq {
    background:
        radial-gradient(circle at top left, rgba(78, 151, 253, 0.10), transparent 34%),
        radial-gradient(circle at top right, rgba(228, 87, 61, 0.08), transparent 30%),
        #f5f8fc;
}

body.category-faq .elementor-widget-theme-archive-title {
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 24px;
}

body.category-faq .elementor-widget-theme-archive-title .elementor-heading-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(21, 32, 75, 0.96), rgba(40, 77, 156, 0.96));
    color: #ffffff !important;
    box-shadow: 0 16px 36px rgba(21, 32, 75, 0.16);
    font-size: clamp(28px, 4.2vw, 58px);
    line-height: 1;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    font-weight: 600 !important;
}

body.category-faq .elementor-widget-theme-archive-title .elementor-heading-title::before {
    content: 'Полезные материалы';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.category-faq .elementor-location-archive {
    position: relative;
}

body.category-faq .e-con-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 88px;
}

body.category-faq .elementor-widget-archive-posts {
    width: 100%;
}

body.category-faq .elementor-posts-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
}

body.category-faq article.elementor-post {
    display: grid;
    grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
    gap: 0;
    border: 1px solid rgba(21, 32, 75, 0.08);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 34px rgba(21, 32, 75, 0.06);
}

body.category-faq .elementor-post__thumbnail__link {
    display: block;
    height: 100%;
    min-height: 230px;
}

body.category-faq .elementor-post__thumbnail {
    height: 100%;
}

body.category-faq .elementor-post__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.category-faq .elementor-post__text {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 26px;
}

body.category-faq .elementor-location-archive .elementor-posts-container article.elementor-post h3.elementor-post__title {
    margin: 0;
    font-weight: 700 !important;
}

body.category-faq .elementor-location-archive .elementor-posts-container article.elementor-post h3.elementor-post__title a {
    color: #17224a;
    font-size: clamp(22px, 2.1vw, 32px);
    line-height: 1.18;
    letter-spacing: -0.03em;
    text-decoration: none;
    font-weight: 700 !important;
}

body.category-faq .elementor-post__title a:hover {
    color: #e4573d;
}

body.category-faq .elementor-post__excerpt p {
    margin: 0;
    color: #55617a;
    line-height: 1.7;
    font-size: 16px;
}

body.category-faq .elementor-post__read-more {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(31, 63, 137, 0.08);
    color: #1f3f89;
    font-weight: 700;
    text-decoration: none;
}

body.category-faq .elementor-post__read-more:hover {
    background: rgba(31, 63, 137, 0.14);
    color: #17224a;
}

body.category-faq .elementor-posts-nothing-found {
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(21, 32, 75, 0.06);
}

@media (max-width: 767px) {
    body.category-faq .elementor-widget-theme-archive-title,
    body.category-faq .e-con-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.category-faq .elementor-widget-theme-archive-title .elementor-heading-title {
        width: 100%;
        justify-content: flex-start;
        font-size: clamp(24px, 8vw, 40px);
    }

    body.category-faq article.elementor-post {
        grid-template-columns: 1fr;
    }

    body.category-faq .elementor-post__thumbnail__link {
        min-height: 210px;
    }

    body.category-faq .elementor-post__text {
        padding: 20px;
    }

    body.category-faq .elementor-post__title a {
        font-size: 20px;
    }

    body.category-faq .elementor-post__excerpt p {
        font-size: 15px;
    }
}

.relevant-list-section .relevant-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .relevant-list-section .relevant-list,
    .offer-layout .relevant-list-section .relevant-list,
    body .relevant-list-section .relevant-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    .relevant-list-section .relevant-list,
    .offer-layout .relevant-list-section .relevant-list,
    body .relevant-list-section .relevant-list {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Стили для блоков установки на странице доставки - в ряд с высотой 100px */
.klb-page .klb-post figure,
.page-content figure,
.klb-page .klb-post .wp-block-image,
.page-content .wp-block-image {
    margin: 15px 0 !important;
}

/* Контейнер для блоков установки в ряд */
.klb-page .klb-post .delivery-installation-blocks,
.page-content .delivery-installation-blocks,
.klb-page .klb-post .installation-row,
.page-content .installation-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin: 30px 0 !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

/* Блоки установки - каждый блок */
.klb-page .klb-post .delivery-installation-blocks figure,
.page-content .delivery-installation-blocks figure,
.klb-page .klb-post .installation-row figure,
.page-content .installation-row figure,
.klb-page .klb-post .delivery-installation-blocks .wp-block-image,
.page-content .delivery-installation-blocks .wp-block-image,
.klb-page .klb-post .installation-row .wp-block-image,
.page-content .installation-row .wp-block-image {
    flex: 1 1 calc(25% - 20px) !important;
    min-width: 200px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Изображения в блоках установки - высота 100px */
.klb-page .klb-post .delivery-installation-blocks img,
.page-content .delivery-installation-blocks img,
.klb-page .klb-post .installation-row img,
.page-content .installation-row img,
.klb-page .klb-post .delivery-installation-blocks figure img,
.page-content .delivery-installation-blocks figure img,
.klb-page .klb-post .installation-row figure img,
.page-content .installation-row figure img {
    width: 100% !important;
    height: 100px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}

/* Заголовки под изображениями */
.klb-page .klb-post .delivery-installation-blocks figcaption,
.page-content .delivery-installation-blocks figcaption,
.klb-page .klb-post .installation-row figcaption,
.page-content .installation-row figcaption,
.klb-page .klb-post .delivery-installation-blocks h3,
.page-content .delivery-installation-blocks h3,
.klb-page .klb-post .installation-row h3,
.page-content .installation-row h3 {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

/* Автоматическое определение блоков установки по заголовкам */
.klb-page .klb-post h3:has(+ figure img),
.page-content h3:has(+ figure img),
.klb-page .klb-post h3:has(+ .wp-block-image img),
.page-content h3:has(+ .wp-block-image img) {
    display: none !important;
}

/* Альтернативный способ - находим все figure после определенных заголовков */
.klb-page .klb-post h3:contains("Занос мини бассейна"),
.klb-page .klb-post h3:contains("Установка свим СПА"),
.klb-page .klb-post h3:contains("Установка плавательного"),
.klb-page .klb-post h3:contains("Встраивание уличного") {
    display: none !important;
}

/* Стили для всех figure на странице доставки - группируем в ряд */
body.page-slug-dostavka .klb-page .klb-post figure,
body.page-slug-dostavka .page-content figure {
    display: inline-block !important;
    vertical-align: top !important;
    width: calc(25% - 20px) !important;
    margin: 0 10px 20px 10px !important;
}

body.page-slug-dostavka .klb-page .klb-post figure img,
body.page-slug-dostavka .page-content figure img {
    width: 100% !important;
    height: 100px !important;
    object-fit: cover !important;
    display: block !important;
}

body.page-slug-dostavka .klb-page .klb-post figure figcaption,
body.page-slug-dostavka .page-content figure figcaption {
    margin-top: 10px !important;
    font-size: 14px !important;
    text-align: center !important;
}

/* Обертка для всех figure на странице доставки */
body.page-slug-dostavka .klb-page .klb-post,
body.page-slug-dostavka .page-content {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

/* Более специфичный селектор для блоков установки */
.klb-page .klb-post figure:has(img[alt*="Занос"]),
.klb-page .klb-post figure:has(img[alt*="манипулятором"]),
.klb-page .klb-post figure:has(img[alt*="плавательного"]),
.klb-page .klb-post figure:has(img[alt*="уличного"]),
.page-content figure:has(img[alt*="Занос"]),
.page-content figure:has(img[alt*="манипулятором"]),
.page-content figure:has(img[alt*="плавательного"]),
.page-content figure:has(img[alt*="уличного"]) {
    flex: 1 1 calc(25% - 20px) !important;
    min-width: 200px !important;
    margin: 0 !important;
}

.klb-page .klb-post figure:has(img[alt*="Занос"]) img,
.klb-page .klb-post figure:has(img[alt*="манипулятором"]) img,
.klb-page .klb-post figure:has(img[alt*="плавательного"]) img,
.klb-page .klb-post figure:has(img[alt*="уличного"]) img,
.page-content figure:has(img[alt*="Занос"]) img,
.page-content figure:has(img[alt*="манипулятором"]) img,
.page-content figure:has(img[alt*="плавательного"]) img,
.page-content figure:has(img[alt*="уличного"]) img {
    height: 100px !important;
    object-fit: cover !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .klb-page .klb-post .delivery-installation-blocks figure,
    .page-content .delivery-installation-blocks figure,
    .klb-page .klb-post .installation-row figure,
    .page-content .installation-row figure,
    body.page-slug-dostavka .klb-page .klb-post figure,
    body.page-slug-dostavka .page-content figure {
        flex: 1 1 calc(50% - 10px) !important;
        min-width: 150px !important;
    }
}

@media (max-width: 480px) {
    .klb-page .klb-post .delivery-installation-blocks figure,
    .page-content .delivery-installation-blocks figure,
    .klb-page .klb-post .installation-row figure,
    .page-content .installation-row figure,
    body.page-slug-dostavka .klb-page .klb-post figure,
    body.page-slug-dostavka .page-content figure {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
}


/* Fix product grid snagging caused by uneven product heights on category archive pages */
.klb-product.product {
    display: flex !important;
    flex-direction: column !important;
    float: none !important; /* Disable float which causes the snagging */
}

.klb-product.product .spabest-product-card {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    height: 100% !important;
}

.klb-product.product .spabest-product-info {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.klb-product.product .spabest-details-wrap {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.klb-product.product .spabest-categories {
    margin-top: auto !important;
}

/* Ensure the row uses flexbox to align items of the same row */
.row.products, 
ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Ensure columns don't collapse when float is removed */
.klb-product.col-xl-4, 
.klb-product.col-lg-4, 
.klb-product.col-md-6 {
    margin-bottom: 30px !important;
}

/* Restoration of Mobile Product Grid Styles (moved from content-product.php) */
@media (max-width: 767.98px) {
    .sh0p-area .shop1-sidebar,
    .sh0p-area .product-filters {
        display: none !important;
        width: 0 !important;
        max-width: 0 !important;
        flex: 0 0 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .sh0p-area .col-xl-3,
    .sh0p-area .col-lg-3,
    .sh0p-area .col-xl-9,
    .sh0p-area .col-lg-9,
    .sh0p-area [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .sh0p-area .col-xl-9.col-lg-9,
    .sh0p-area .col-xl-9,
    .sh0p-area .col-lg-9 {
        width: calc(100vw - 40px) !important;
        max-width: calc(100vw - 40px) !important;
        flex: 0 0 calc(100vw - 40px) !important;
    }

    .sh0p-area .container {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
    
    .sh0p-area .row {
        display: block !important; /* Only on mobile */
        margin: 0 !important;
    }

    .sh0p-area .pro-ful-tab,
    .sh0p-area .product-tab-content,
    .sh0p-area .woocommerce,
    .sh0p-area .woocommerce-products-header {
        width: calc(100vw - 40px) !important;
        max-width: calc(100vw - 40px) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    .sh0p-area .klb-product {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        box-sizing: border-box !important;
        clear: both !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .sh0p-area .product-tab-content > .row > .klb-product,
    .sh0p-area .row > .klb-product,
    .sh0p-area ul.products li.product {
        width: calc(100vw - 40px) !important;
        max-width: calc(100vw - 40px) !important;
        flex: 0 0 calc(100vw - 40px) !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        float: none !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

    .sh0p-area .klb-product.product .spabest-product-card,
    .sh0p-area ul.products li.product .spabest-product-card,
    .sh0p-area .spabest-product-card {
        width: calc(100vw - 40px) !important;
        max-width: calc(100vw - 40px) !important;
        margin: 0 !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }

    .sh0p-area .spabest-product-info {
        flex: 1 1 auto !important;
        min-height: 0 !important;
    }

    .sh0p-area .spabest-details-wrap {
        margin-top: auto !important;
    }
    
    .sh0p-area .spabest-product-footer {
        width: 100% !important;
        padding: 10px 0 !important;
        margin: 0 !important;
    }
    
    .sh0p-area .klb-product img,
    .sh0p-area .spabest-product-card img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: cover !important;
    }

    .header .klb-mobile-filter,
    .sh0p-area .klbgridlist li.klb-mobile-filter {
        position: fixed !important;
        top: 15px !important;
        right: 10px !important;
        z-index: 99999 !important;
        background: rgba(255,255,255,0.95) !important;
        border-radius: 50% !important;
        width: 50px !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
}

/* Force 3 products per row on Desktop (>= 1200px) and fixed 2 on Tablet (>= 768px) */
@media (min-width: 1200px) {
  .sh0p-area .product-tab-content > .row > .klb-product,
  .sh0p-area .row > .klb-product {
    width: 33.3333% !important;
    max-width: 33.3333% !important;
    flex: 0 0 33.3333% !important;
        display: flex !important;
        flex-direction: column !important;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .sh0p-area .product-tab-content > .row > .klb-product,
  .sh0p-area .row > .klb-product {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
        display: flex !important;
        flex-direction: column !important;
  }
}
