.wp-site-blocks,
.wp-block-post-content {
    margin: 0;
    padding: 0;
}

body {
    background: #fff;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: contents;
}

.woocommerce .button.add_to_cart_button,
.woocommerce .button.product_type_simple {
    background: #121212;
    color: #fff;
    border: none;
    font-size: 16px;
    padding: 10px 24px;
}

.woocommerce-notices-wrapper {
    max-width: 1568px;
    margin: 0 auto;
    padding: 0 64px;
}

@media only screen and (max-width: 768px) {
    .woocommerce-notices-wrapper {
        padding: 0 32px;
    }
}

/* WooCommerce pagination inside prod .lnkPages wrapper */
.lnkPages {
    text-align: center;
}

.lnkPages .woocommerce-pagination {
    display: inline-block;
}

.lnkPages ul.page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.lnkPages ul.page-numbers li {
    margin: 0;
    padding: 0;
}

.lnkPages .page-numbers {
    display: inline-block;
    padding: 5px;
    border: 1px solid #ccc;
    min-width: 32px;
    text-align: center;
    border-radius: 5px;
    line-height: 22px;
    box-sizing: border-box;
    text-decoration: none;
    color: #121212;
}

.lnkPages a.page-numbers:hover {
    text-decoration: none;
    border-color: #605f5f;
}

.lnkPages span.page-numbers.current {
    background: #ccc;
    color: #fff;
    border-color: #ccc;
}

.lnkPages span.page-numbers.dots {
    border: none;
    min-width: auto;
    padding: 5px 2px;
}

/* Homepage store panel — modern redesign */
.txt_index.cd-store-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    margin-top: 64px;
    min-height: 560px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow:
        0 24px 48px rgba(0, 26, 77, 0.14),
        0 4px 16px rgba(0, 0, 0, 0.06);
}

.txt_index.cd-store-panel > * {
    width: auto;
}

.cd-store-panel__visual {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background-color: #001a4d;
    /* Dive shop interior (Wikimedia Commons, 玄史生, CC0) — 4928×3264. */
    background-image:
        linear-gradient(135deg, rgba(0, 26, 77, 0.12) 0%, rgba(0, 54, 152, 0.04) 100%),
        url(/mockup/img/index/store_panel.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.cd-store-panel__visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
}

.cd-store-panel__visual-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, transparent 55%, rgba(0, 26, 77, 0.55) 100%),
        linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
}

.cd-store-panel__content {
    position: relative;
    padding: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.65;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(246, 203, 22, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 20% 100%, rgba(0, 180, 255, 0.08) 0%, transparent 45%),
        linear-gradient(145deg, #001a4d 0%, #003698 42%, #0048a8 100%);
}

.cd-store-panel__content::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cpath d='M0 30 Q30 10 60 30 T120 30' fill='none' stroke='%23ffffff' stroke-width='0.6' opacity='0.25'/%3E%3Cpath d='M0 45 Q30 25 60 45 T120 45' fill='none' stroke='%23ffffff' stroke-width='0.6' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 120px 60px;
    pointer-events: none;
}

.cd-store-panel__inner {
    position: relative;
    z-index: 1;
    padding: 48px 56px 52px;
    max-width: 720px;
}

.cd-store-panel__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #003698;
    background: linear-gradient(135deg, #f6cb16 0%, #ffe066 100%);
    box-shadow: 0 4px 14px rgba(246, 203, 22, 0.35);
}

.cd-store-panel__content h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.cd-store-panel__lead {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
}

.cd-store-panel__subtitle {
    margin: 0 0 18px;
    color: #f6cb16;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cd-store-panel__subtitle strong {
    font-weight: inherit;
}

.cd-store-panel__benefits {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cd-store-panel__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.cd-store-panel__benefits li:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(246, 203, 22, 0.35);
    transform: translateY(-2px);
}

.cd-store-panel__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #f6cb16;
    background: rgba(246, 203, 22, 0.12);
}

.cd-store-panel__icon svg {
    width: 20px;
    height: 20px;
}

.cd-store-panel__benefits li > span:last-child {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.cd-store-panel__footer {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cd-store-panel__footer p {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.cd-store-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: #003698;
    text-decoration: none;
    background: linear-gradient(135deg, #f6cb16 0%, #ffe066 100%);
    box-shadow: 0 8px 24px rgba(246, 203, 22, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cd-store-panel__cta:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(246, 203, 22, 0.4);
}

.cd-store-panel__cta::after {
    content: "→";
    font-size: 18px;
    line-height: 1;
}

@media only screen and (max-width: 1200px) {
    .cd-store-panel__inner {
        padding: 40px 40px 44px;
    }

    .cd-store-panel__benefits {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 992px) {
    .txt_index.cd-store-panel {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 16px;
    }

    .cd-store-panel__visual {
        display: block;
        min-height: 280px;
    }

    .cd-store-panel__visual-shade {
        background:
            linear-gradient(180deg, transparent 40%, rgba(0, 26, 77, 0.7) 100%);
    }

    .cd-store-panel__inner {
        padding: 32px 28px 36px;
    }
}

@media only screen and (max-width: 576px) {
    .txt_index.cd-store-panel {
        margin-top: 40px;
        border-radius: 12px;
    }

    .cd-store-panel__visual {
        min-height: 220px;
    }

    .cd-store-panel__inner {
        padding: 24px 20px 28px;
    }

    .cd-store-panel__content h1 {
        font-size: 24px;
    }

    .cd-store-panel__cta {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* Homepage SEO block — structured cards (not a text wall) */
.cd-home-seo {
    margin-top: 48px;
    margin-bottom: 32px;
}

.cd-home-seo__wrap {
    display: grid;
    gap: 20px;
}

.cd-home-seo__lead {
    margin: 0;
    padding: 22px 26px;
    border-radius: 16px;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    color: #001a4d;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(246, 203, 22, 0.14) 0%, transparent 55%),
        linear-gradient(135deg, #f7f9fc 0%, #ffffff 55%);
    border: 1px solid rgba(0, 54, 152, 0.12);
    border-left: 4px solid #f6cb16;
    box-shadow: 0 8px 24px rgba(0, 26, 77, 0.05);
}

.cd-home-seo__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cd-home-seo__card {
    margin: 0;
    padding: 0 0 22px;
    overflow: hidden;
    border-radius: 16px;
    background:
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 42%),
        #fff;
    border: 1px solid rgba(0, 54, 152, 0.12);
    box-shadow: 0 8px 24px rgba(0, 26, 77, 0.05);
}

.cd-home-seo__card--wide {
    padding: 26px 28px 28px;
    border-left: 4px solid #003698;
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(0, 54, 152, 0.06) 0%, transparent 55%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 50%);
}

.cd-home-seo__figure {
    margin: 0 0 18px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #001a4d;
}

.cd-home-seo__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cd-home-seo__card h2 {
    margin: 0 22px 12px;
    color: #003698;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.cd-home-seo__card--wide h2 {
    margin: 0 0 14px;
}

.cd-home-seo__card p {
    margin: 0 22px 12px;
    max-width: 70ch;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.65;
}

.cd-home-seo__card--wide p {
    margin: 0 0 12px;
}

.cd-home-seo__card p:last-child {
    margin-bottom: 0;
}

.cd-home-seo__card a {
    color: #003698;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(246, 203, 22, 0.7);
    text-underline-offset: 2px;
}

.cd-home-seo__card a:hover {
    color: #001a4d;
    text-decoration-color: #f6cb16;
}

.cd-home-seo__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 0 !important;
}

.cd-home-seo__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #003698 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #f6cb16 0%, #ffe066 100%);
    box-shadow: 0 6px 18px rgba(246, 203, 22, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cd-home-seo__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(246, 203, 22, 0.38);
}

.cd-home-seo__cta--ghost {
    color: #003698 !important;
    background: #fff;
    border: 1px solid rgba(0, 54, 152, 0.22);
    box-shadow: none;
}

.cd-home-seo__cta--ghost:hover {
    border-color: #f6cb16;
    box-shadow: 0 6px 16px rgba(0, 26, 77, 0.08);
}

@media only screen and (max-width: 900px) {
    .cd-home-seo__cards {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 576px) {
    .cd-home-seo {
        margin-top: 32px;
    }

    .cd-home-seo__lead,
    .cd-home-seo__card--wide {
        padding: 18px 16px 20px;
        border-radius: 12px;
    }

    .cd-home-seo__card h2,
    .cd-home-seo__card p {
        margin-left: 16px;
        margin-right: 16px;
    }

    .cd-home-seo__card--wide h2,
    .cd-home-seo__card--wide p {
        margin-left: 0;
        margin-right: 0;
    }

    .cd-home-seo__cta {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Sharper product-card photos: cards are ~408px tall; prefer contain + crisp scaling */
.goods_items li .img {
    position: relative;
    z-index: 2;
}

.goods_items li .img a,
.goods_items li .img a.cd-card-img {
    display: block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: none;
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 54, 152, 0.12);
}

/* Visually hide label text but keep a real hit target for mobile browsers */
.goods_items li .img a.cd-card-img .cd-card-img__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Info must not steal taps from the photo link when blocks overlap */
.goods_items li .info {
    z-index: 1;
    pointer-events: none;
}

.goods_items li .info a,
.goods_items li .info button,
.goods_items li .info .btn,
.goods_items li .info input,
.goods_items li .info select {
    pointer-events: auto;
}

/* Badge must not intercept taps on image/title links */
.goods_items li .skidka {
    pointer-events: none;
    z-index: 3;
}

.goods_items li .info .name {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 54, 152, 0.12);
}

.good_page .imgs img,
.good_page .imgs_block li {
    image-rendering: auto;
}

/* —— Product description: cards / readable blocks (blue + gold) —— */
.good_page .description {
    padding: 0 64px;
    margin-top: 8px;
}

.good_page .description > .h2 {
    margin: 40px 0 20px;
    color: #001a4d;
}

.good_page .description .cd-product-desc {
    display: grid;
    gap: 16px;
    max-width: 920px;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.7;
}

.good_page .description .cd-desc-card {
    margin: 0;
    padding: 22px 26px 24px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 48%),
        #fff;
    border: 1px solid rgba(0, 54, 152, 0.12);
    border-left: 4px solid #003698;
    box-shadow: 0 6px 18px rgba(0, 26, 77, 0.05);
}

.good_page .description .cd-desc-card:nth-child(even) {
    border-left-color: #f6cb16;
    background:
        linear-gradient(180deg, #fffdf3 0%, #ffffff 50%),
        #fff;
}

.good_page .description .cd-desc-card__title,
.good_page .description .cd-desc-card h3 {
    margin: 0 0 12px;
    padding: 0;
    color: #003698;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.good_page .description .cd-desc-card p {
    margin: 0 0 12px;
    max-width: 70ch;
}

.good_page .description .cd-desc-card p:last-child {
    margin-bottom: 0;
}

.good_page .description .cd-desc-card ul,
.good_page .description .cd-desc-card ol {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.good_page .description .cd-desc-card ul li,
.good_page .description .cd-desc-card ol li {
    position: relative;
    margin: 0;
    padding: 10px 14px 10px 36px;
    border-radius: 10px;
    background: rgba(0, 54, 152, 0.04);
    border: 1px solid rgba(0, 54, 152, 0.08);
    line-height: 1.5;
}

.good_page .description .cd-desc-card ul li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 1.05em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6cb16 0%, #ffe066 100%);
    box-shadow: 0 0 0 2px rgba(0, 54, 152, 0.15);
}

.good_page .description .cd-desc-card ol {
    counter-reset: cd-desc;
}

.good_page .description .cd-desc-card ol li {
    counter-increment: cd-desc;
    padding-left: 42px;
}

.good_page .description .cd-desc-card ol li::before {
    content: counter(cd-desc);
    position: absolute;
    left: 12px;
    top: 10px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #003698;
    color: #f6cb16;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.good_page .description .cd-desc-card table {
    width: 100%;
    margin: 8px 0 0;
    border-collapse: collapse;
    font-size: 15px;
    overflow: hidden;
    border-radius: 10px;
}

.good_page .description .cd-desc-card table th,
.good_page .description .cd-desc-card table td {
    padding: 10px 12px;
    border: 1px solid rgba(0, 54, 152, 0.12);
    text-align: left;
    vertical-align: top;
}

.good_page .description .cd-desc-card table th {
    background: rgba(0, 54, 152, 0.08);
    color: #001a4d;
    font-weight: 700;
}

.good_page .description .cd-desc-card table tr:nth-child(even) td {
    background: rgba(0, 54, 152, 0.03);
}

.good_page .description .cd-desc-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 8px 0;
}

@media only screen and (max-width: 991px) {
    .good_page .description {
        padding: 0;
    }

    .good_page .description > .h2 {
        margin: 32px 0 16px;
    }

    .good_page .description .cd-desc-card {
        padding: 18px 16px 20px;
        border-radius: 12px;
    }

    .good_page .description .cd-product-desc {
        font-size: 15px;
        gap: 12px;
    }
}

/* Footer: delivery link in .adr was inheriting body link color (dark on dark bg) */
footer .top .contacty .info .adr,
footer .top .contacty .info .adr a {
    color: #fff;
}

footer .bot a {
    color: #fff;
}

/* Header: broken-image alt text must stay light on blue header */
header .logo,
header .logo img,
header a.logo {
    color: #fff;
}

header img[alt] {
    color: #fff;
}

/* Popular category tiles: larger product photos (was ~50% / contain — looked tiny) */
.index_cats_top a {
    background-size: 68% auto;
    background-position: right 4px center;
    background-repeat: no-repeat;
    min-height: 132px;
    padding: 24px 12px;
    box-sizing: border-box;
}

.index_cats_top a > div {
    width: 40%;
    max-width: 42%;
}

.index_cats_top a:nth-child(1) {
    min-height: 280px;
}

/* Homepage: unified white studio look for categories + product cards */
.index_cats_top.cd-home-unified a.cd-home-cat {
    background-color: #ffffff !important;
    background-size: 72% auto !important;
    background-position: right 2px center !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 0 0 0 1px rgba(0, 54, 152, 0.06);
    min-height: 148px;
    padding: 28px 12px;
}

.index_cats_top.cd-home-unified a.cd-home-cat > div {
    width: 38%;
    max-width: 40%;
}

.index_cats_top.cd-home-unified a.cd-home-cat:nth-child(1) {
    min-height: 310px;
}

.zak_gr.cd-home-unified ul.goods_items > li .img {
    background: #ffffff !important;
}

.zak_gr.cd-home-unified ul.goods_items > li .img > a {
    background-color: #ffffff !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.zak_gr.cd-home-unified ul.goods_items > li .article {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Homepage hits («Хит продаж»): full product visible — contain, no zoom-crop */
.zak_gr.cd-home-unified > div:last-child > .zak:first-child ul.goods_items > li .img {
    overflow: hidden;
}

.zak_gr.cd-home-unified > div:last-child > .zak:first-child ul.goods_items > li .img > a {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transform: none;
    image-rendering: auto;
}

/* Cards: allow grid columns to shrink so long SKUs don't force horizontal scroll */
ul.goods_items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

ul.goods_items > li {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

ul.goods_items > li .info,
ul.goods_items > li .info .p16 {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

ul.goods_items > li .info .article {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    box-sizing: border-box;
}

ul.goods_items > li .info .name {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

ul.goods_items > li .info .price,
ul.goods_items > li .info .price_old,
ul.goods_items > li .info .nalich {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile: keep product/category text inside cards */
@media only screen and (max-width: 991px) {
    ul.goods_items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .zak_gr.cd-home-unified > div:last-child > .zak:first-child ul.goods_items > li .img > a {
        background-size: contain !important;
        transform: none;
    }

    .index_cats_top a,
    .index_cats_top.cd-home-unified a.cd-home-cat {
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
        min-height: 110px;
        background-size: 58% auto !important;
        padding: 18px 10px;
    }

    .index_cats_top a:nth-child(1),
    .index_cats_top.cd-home-unified a.cd-home-cat:nth-child(1) {
        min-height: 160px;
    }

    .index_cats_top a div,
    .index_cats_top.cd-home-unified a.cd-home-cat > div {
        width: 48%;
        max-width: 52%;
        overflow-wrap: break-word;
        word-break: break-word;
        line-height: 1.15;
    }

    .index_makers ul li {
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

@media only screen and (max-width: 576px) {
    ul.goods_items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zak_gr.cd-home-unified > div:last-child > .zak:first-child ul.goods_items > li .img > a {
        background-size: contain !important;
        transform: none;
    }

    ul.goods_items > li .info .name {
        font-size: 13px;
        height: auto;
        min-height: 36px;
        max-height: 40px;
    }

    ul.goods_items > li .info .price {
        font-size: 16px;
        white-space: nowrap;
    }

    ul.goods_items > li .info .price_old,
    ul.goods_items > li .info .nalich {
        white-space: nowrap;
    }

    .index_cats_top a div {
        width: 58%;
        font-size: 15px;
        line-height: 1.2;
    }
}

/* ===== Checkout (prod-like payment + layout) ===== */
.cd-checkout-page .tpl_content {
    padding-bottom: 48px;
}

.cd-payment-banner {
    margin: 0 0 28px;
    padding: 20px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #001a4d 0%, #003698 55%, #0048a8 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 26, 77, 0.18);
}

.cd-payment-banner__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #f6cb16;
}

.cd-payment-banner p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.cd-payment-banner__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.cd-payment-banner__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cd-pay-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.cd-pay-badge--qr {
    background: #f6cb16;
    color: #003698;
}

.cd-pay-badge--bank {
    background: rgba(255, 255, 255, 0.2);
}

.cd-pay-badge--cod {
    background: rgba(255, 255, 255, 0.12);
}

.cd-min-order-note {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff8e1;
    border-left: 4px solid #f6cb16;
    font-size: 14px;
}

.cd-checkout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.cd-checkout__card {
    background: #fff;
    border: 1px solid #e5e8ec;
    border-radius: 14px;
    padding: 24px 28px 28px;
    box-shadow: 0 6px 20px rgba(18, 18, 18, 0.05);
}

.cd-checkout__card-title {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f6cb16;
    font-size: 20px;
    font-weight: 700;
    color: #121212;
}

.cd-checkout .woocommerce-billing-fields > h3,
.cd-checkout .woocommerce-shipping-fields > h3,
.cd-checkout .woocommerce-additional-fields > h3,
.cd-checkout #ship-to-different-address {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 14px;
}

.cd-checkout .form-row {
    margin: 0 0 14px;
    padding: 0;
}

.cd-checkout .form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.cd-checkout .form-row .required {
    color: #c0392b;
    text-decoration: none;
}

.cd-checkout .input-text,
.cd-checkout select,
.cd-checkout textarea,
.cd-checkout .select2-container .select2-selection--single {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #ccd2d9;
    border-radius: 10px;
    background: #fafbfc;
    font-size: 15px;
    color: #121212;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cd-checkout .input-text:focus,
.cd-checkout select:focus,
.cd-checkout textarea:focus {
    outline: none;
    border-color: #003698;
    box-shadow: 0 0 0 3px rgba(0, 54, 152, 0.12);
    background: #fff;
}

.cd-checkout textarea {
    min-height: 90px;
    resize: vertical;
}

.cd-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.cd-checkout .woocommerce-checkout-review-order-table th,
.cd-checkout .woocommerce-checkout-review-order-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eceef0;
    font-size: 14px;
    text-align: left;
}

.cd-checkout .woocommerce-checkout-review-order-table .order-total th,
.cd-checkout .woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px;
    font-weight: 700;
    border-bottom: none;
    padding-top: 14px;
}

.cd-checkout #payment {
    background: transparent;
    border: none;
    padding: 0;
}

.cd-checkout #payment ul.payment_methods {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    border: none;
}

.cd-checkout #payment ul.payment_methods li {
    margin: 0 0 10px;
    padding: 0;
    border: none;
    background: transparent;
}

.cd-checkout #payment ul.payment_methods li > label {
    display: block;
    margin: 0;
    padding: 14px 16px 14px 44px;
    border: 1px solid #d7dce2;
    border-radius: 12px;
    background: #f7f8fa;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cd-checkout #payment ul.payment_methods li > input {
    position: absolute;
    margin: 16px 0 0 16px;
    z-index: 1;
}

.cd-checkout #payment ul.payment_methods li > input:checked + label {
    border-color: #003698;
    background: #eef3fb;
    box-shadow: 0 0 0 2px rgba(0, 54, 152, 0.12);
}

.cd-checkout #payment div.payment_box {
    margin: 8px 0 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e8ec;
    font-size: 13px;
    line-height: 1.5;
    color: #444;
}

.cd-checkout #payment div.payment_box::before {
    display: none;
}

.cd-checkout #place_order,
.cd-checkout .woocommerce-checkout #payment #place_order {
    display: block;
    width: 100%;
    margin: 8px 0 0;
    padding: 16px 24px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6cb16 0%, #ffe066 100%);
    color: #003698;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(246, 203, 22, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cd-checkout #place_order:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(246, 203, 22, 0.45);
}

.cd-checkout .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

.cd-checkout .woocommerce-privacy-policy-text a {
    color: #003698;
}

.cd-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    border-top: none;
    border-left: 4px solid #003698;
    background: #f0f4fa;
}

.cd-thankyou-note {
    margin: 1.5em 0;
    padding: 16px 20px;
    border-radius: 12px;
    background: #eceef0;
}

@media only screen and (max-width: 992px) {
    .cd-checkout__grid {
        grid-template-columns: 1fr;
    }

    .cd-checkout__sidebar {
        order: -1;
    }
}

@media only screen and (max-width: 576px) {
    .cd-checkout__card {
        padding: 18px 16px 22px;
    }

    .cd-payment-banner {
        padding: 16px;
    }

    .cd-payment-banner__list {
        flex-direction: column;
    }
}

/* MAX messenger icon in header — keep square & level */
header .cd-max-link {
    display: inline-block;
    vertical-align: middle;
    line-height: 0;
    margin-left: 6px;
}

header .cd-max-link img {
    display: block;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 0;
    transform: none !important;
    object-fit: contain;
    image-rendering: auto;
}

/* Info pages: О нас / Новости / Доставка / Контакты — readable on all breakpoints */
.cd-info-page {
    padding-bottom: 48px;
}

.cd-info-page .tpl_rubric h1 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cd-info-content {
    display: grid;
    gap: 22px;
    max-width: 920px;
    margin: 0 auto;
    font-size: clamp(17px, 1.7vw, 19px);
    line-height: 1.75;
    color: #1a1a1a;
}

.cd-info-lead,
.cd-info-card {
    margin: 0;
    padding: 26px 28px 28px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(246, 203, 22, 0.12) 0%, transparent 55%),
        linear-gradient(165deg, #f7f9fc 0%, #ffffff 48%);
    border: 1px solid rgba(0, 54, 152, 0.12);
    box-shadow: 0 10px 28px rgba(0, 26, 77, 0.06);
}

.cd-info-card {
    border-left: 4px solid #003698;
    background:
        radial-gradient(ellipse 55% 50% at 0% 0%, rgba(0, 54, 152, 0.07) 0%, transparent 55%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 52%);
}

.cd-info-lead {
    border-left: 4px solid #f6cb16;
}

.cd-info-content .cd-seo-figure {
    margin: 0 0 18px;
    text-align: left;
}

.cd-info-content .cd-seo-figure img {
    display: block;
    width: min(240px, 55%);
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

.cd-info-content h2,
.cd-info-content h3 {
    margin: 0 0 14px;
    color: #003698;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.3;
}

.cd-info-content h3 {
    font-size: clamp(18px, 2vw, 22px);
}

.cd-info-content p {
    margin: 0 0 14px;
    max-width: 68ch;
    font-size: inherit;
    line-height: inherit;
    color: #1a1a1a;
}

.cd-info-content p:last-child {
    margin-bottom: 0;
}

.cd-info-content p strong {
    color: #001a4d;
    font-weight: 700;
}

.cd-info-content a {
    color: #003698;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(246, 203, 22, 0.75);
    text-underline-offset: 3px;
}

.cd-info-content a:hover {
    color: #001a4d;
    text-decoration-color: #f6cb16;
}

.cd-info-content .cd-info-list,
.cd-info-content ul,
.cd-info-content ol {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.cd-info-content .cd-info-list li,
.cd-info-content ul li,
.cd-info-content ol li {
    position: relative;
    margin: 0;
    padding: 12px 14px 12px 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 54, 152, 0.1);
    font-size: inherit;
    line-height: 1.55;
}

.cd-info-content .cd-info-list li::before,
.cd-info-content ul li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-radius: 50%;
    background: #f6cb16;
    box-shadow: 0 0 0 3px rgba(0, 54, 152, 0.12);
}

.cd-info-content ol {
    counter-reset: cd-info;
}

.cd-info-content ol li {
    counter-increment: cd-info;
}

.cd-info-content ol li::before {
    content: counter(cd-info);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    margin: 0;
    border-radius: 50%;
    background: #003698;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    box-shadow: none;
}

/* Contacts: highlight tel/mail */
.cd-info-page .cd-info-content a[href^="tel:"],
.cd-info-page .cd-info-content a[href^="mailto:"] {
    display: inline-block;
    padding: 2px 0;
    font-size: 1.05em;
}

@media only screen and (max-width: 768px) {
    .cd-info-page {
        padding-bottom: 36px;
    }

    .cd-info-content {
        gap: 16px;
        font-size: 17px;
        line-height: 1.7;
    }

    .cd-info-lead,
    .cd-info-card {
        padding: 20px 18px 22px;
        border-radius: 14px;
    }

    .cd-info-content .cd-info-list li,
    .cd-info-content ul li,
    .cd-info-content ol li {
        padding: 12px 12px 12px 40px;
    }
}

@media only screen and (max-width: 480px) {
    .cd-info-page .tpl_rubric h1 {
        font-size: 26px;
    }

    .cd-info-content {
        font-size: 16.5px;
    }

    .cd-info-lead,
    .cd-info-card {
        padding: 16px 14px 18px;
        border-radius: 12px;
    }

    .cd-info-content .cd-seo-figure img {
        width: min(200px, 70%);
    }
}

/* Product page: breadcrumbs + SKU/brand must not overlap.
   Mockup goods.css pulls .art_brand up with margin-top:-30px (-15px @991),
   which collides when breadcrumbs wrap to multiple lines. */
.cd-breadcrumbs {
    display: block;
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.good_page .art_brand {
    position: relative;
    z-index: 0;
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.45;
    clear: both;
}

@media only screen and (max-width: 991px) {
    .good_page .art_brand {
        margin-top: 0;
    }
}

/* Fancybox callback popup */
.cd-fancy-callback .fancybox-content {
    padding: 28px 26px 24px;
    border-radius: 14px;
    background: #fff;
}

.cd-callback .btn,
.cd-callback .btn.w100 {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: #003698;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.cd-callback .btn:hover {
    background: #002a75;
}

/* Footer phones / callback link readability */
footer .top .contacty .info .call .phone,
footer .top .contacty .info .call a.fb-ajax {
    color: #fff;
}

footer .top .contacty .info .call a.fb-ajax {
    display: inline-block;
    margin-top: 6px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* /brands/ — soft rounded square frames (like product desc image frames) */
.cd-brands-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0 40px;
}

.cd-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 12px 16px;
    text-decoration: none;
    color: #001a4d;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 55%);
    border: 1px solid rgba(0, 54, 152, 0.1);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 26, 77, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cd-brand-card:hover {
    text-decoration: none;
    border-color: rgba(0, 54, 152, 0.22);
    box-shadow: 0 10px 24px rgba(0, 26, 77, 0.08);
    transform: translateY(-2px);
}

.cd-brand-card__frame {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 140px;
    border-radius: 12px;
    background: #fff center / contain no-repeat;
    border: 1px solid rgba(0, 54, 152, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.cd-brand-card__name {
    display: block;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

@media only screen and (max-width: 1100px) {
    .cd-brands-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 791px) {
    .cd-brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media only screen and (max-width: 520px) {
    .cd-brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd-brand-card {
        padding: 12px 10px 14px;
        border-radius: 12px;
    }

    .cd-brand-card__frame {
        border-radius: 10px;
        max-width: 120px;
    }
}

