* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f2ed;
    color: #292725;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

















.back-link {
    color: #6f6256;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.catalog-main,
.product-page-main,
.legal-page {
    padding-top: 34px;
    padding-bottom: 56px;
}

.catalog-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 18px;
}

.catalog-heading h1,
.catalog-heading h2,
.legal-page h1,
.product-summary h1,
.order-copy h2,
.product-description h2 {
    margin: 0;
}

.catalog-heading h1,
.catalog-heading h2 {
    font-size: clamp(30px, 3vw, 38px);
    line-height: 1.08;
}

.catalog-heading > p {
    margin: 0;
    color: #665f59;
}

.eyebrow {
    margin: 0 0 5px;
    color: #8b6d55;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}


.catalog-title {
    margin: 0 0 14px;
    font-size: clamp(24px, 2.5vw, 32px);
    line-height: 1.15;
}

.catalog-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    gap: 34px;
    align-items: center;
    margin-top: 38px;
    padding: 28px 0 0;
    border-top: 1px solid rgba(92, 66, 43, 0.16);
}

.catalog-about h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.catalog-about p:last-child {
    margin: 0;
    color: #665f59;
}

.catalog-about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-content: center;
}

.catalog-about-links a {
    color: #4f443b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.catalog-about-links a:hover {
    color: #8b6d55;
}

.catalog-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.catalog-section-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid rgba(139, 109, 85, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    color: #4f443b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.catalog-section-link:hover {
    border-color: #bfa487;
    background: #fbf6ef;
    text-decoration: none;
}

.catalog-section-link.is-active {
    border-color: #9b7047;
    background: #9b7047;
    color: #fff;
}

.catalog-empty-section {
    padding: 34px 0 18px;
    max-width: 620px;
}

.catalog-empty-section h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.catalog-empty-section p {
    margin: 0 0 18px;
    color: #665f59;
}

.catalog-sort {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: -4px 0 20px;
}

.catalog-sort-label {
    color: #665f59;
    font-size: 14px;
    font-weight: 700;
}

.catalog-sort-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-sort-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid #d8c9bb;
    border-radius: 999px;
    background: transparent;
    color: #4f443b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.catalog-sort-button:hover {
    border-color: #bfa487;
    background: #fbf6ef;
    box-shadow: 0 3px 10px rgba(89, 65, 45, .08);
    text-decoration: none;
}

.catalog-sort-button:active {
    transform: translateY(1px);
}

.catalog-sort-button.is-active {
    border-color: #9b7047;
    background: #9b7047;
    color: #fff;
}

@media (max-width: 720px) {
    .catalog-sort {
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .catalog-sort-buttons {
        width: 100%;
    }

    .catalog-sort-button {
        flex: 1 1 auto;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd8d1;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(49, 41, 34, .04);
}

.product-card-image {
    display: flex;
    aspect-ratio: 4 / 5;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #faf9f7;
    border-bottom: 1px solid #eee9e3;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-no-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8b837b;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
}

.product-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.3;
}

.product-card h3 a {
    text-decoration: none;
}

.product-card h3 a:hover {
    text-decoration: underline;
}

.product-card p {
    margin: 0;
    color: #6a645e;
    font-size: 14px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price,
.product-detail-price {
    font-weight: 700;
}

.price {
    font-size: 22px;
}

.button-link,
button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 0;
    border-radius: 9px;
    background: #302c29;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-link:hover,
button:hover {
    filter: brightness(.94);
}

.button-link-light {
    background: #eee7df;
    color: #342f2b;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.product-visual {
    min-width: 0;
}

.product-main-image {
    display: flex;
    min-height: 420px;
    max-height: 720px;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #fff;
    border: 1px solid #ddd8d1;
    border-radius: 20px;
}

.product-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 680px;
    object-fit: contain;
}

.product-main-image-placeholder {
    color: #8b837b;
    border-style: dashed;
    background: #faf9f7;
}
.product-main-image-placeholder .product-no-image {
    font-size: 16px;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 96px));
    gap: 10px;
    margin-top: 12px;
}

.product-thumb {
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 5px;
    background: #fff;
    border: 1px solid #d9d3cc;
    border-radius: 10px;
}

.product-thumb.active {
    border: 2px solid #5d4c3e;
    padding: 4px;
}

.product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-summary {
    position: sticky;
    top: 24px;
    padding-top: 12px;
}

.product-summary h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.product-detail-price {
    margin-top: 22px;
    font-size: 34px;
}

.handmade-note {
    margin: 22px 0 0;
    padding: 16px 18px;
    background: #ece5dc;
    border-radius: 12px;
    color: #544a42;
}

.product-order-jump {
    width: 100%;
    margin-top: 22px;
}

.simple-card,
.order-form-card {
    background: #fff;
    border: 1px solid #ddd8d1;
    border-radius: 18px;
}

.product-description {
    margin-top: 34px;
    padding: 28px;
}

.product-description h2 {
    font-size: 28px;
}

.product-description-text {
    max-width: 900px;
    margin-top: 16px;
    color: #4d4843;
    font-size: 16px;
}

.muted-public {
    color: #817a73;
}

.order-section {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
    margin-top: 34px;
    padding: 36px;
    background: #e9e1d8;
    border-radius: 20px;
}

.order-copy h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.order-copy > p:last-child {
    color: #5e554e;
}

.order-form-card {
    padding: 24px;
}

.order-form {
    display: grid;
    gap: 16px;
}

.order-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.order-form small {
    font-weight: 400;
}

input,
textarea,
select {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid #bdb6af;
    border-radius: 9px;
    background: #fff;
    color: #292725;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #b69b84;
    outline-offset: 1px;
}

.form-legal-note {
    margin: 0;
    color: #68615b;
    font-size: 13px;
}

.consent-check {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px !important;
    font-size: 13px;
    font-weight: 400 !important;
    line-height: 1.45;
}

.consent-check input {
    width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    flex: 0 0 18px;
}

.order-submit {
    width: 100%;
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.order-success {
    padding: 6px;
}

.order-success h3 {
    margin-top: 0;
    font-size: 24px;
}

.notice {
    padding: 12px 15px;
    border-radius: 9px;
}

.ok {
    background: #e4f4e8;
}

.error {
    background: #f8dfdf;
    color: #672c2c;
}

.empty {
    padding: 22px;
    background: #fff;
    border: 1px solid #ddd8d1;
    border-radius: 14px;
}

.site-footer {
    margin-top: 24px;
    background: #2f2b28;
    color: #eee9e4;
}

.site-footer-inner {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 14px;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a {
    color: inherit;
}


.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.social-icon-badge--vk {
    background: #0077ff;
}

.social-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.social-inline-link:hover {
    text-decoration: none;
}

.social-inline-link .social-icon-badge {
    flex: 0 0 auto;
}

.legal-page {
    max-width: 980px;
}

.legal-page h1 {
    font-size: clamp(30px, 4vw, 44px);
}

.legal-page h2 {
    margin-top: 30px;
    font-size: 22px;
}

.legal-page p,
.legal-page li {
    color: #4d4843;
}

.legal-updated {
    color: #7d756e !important;
}

.legal-warning {
    margin-bottom: 24px;
    padding: 16px 18px;
    background: #fff1c9;
    border: 1px solid #d9b968;
    border-radius: 10px;
}

.legal-warning code {
    word-break: break-word;
}

.danger {
    background: #a62f2f;
}

@media (max-width: 860px) {
    .catalog-heading,
    .product-detail,
    .order-section {
        grid-template-columns: 1fr;
    }

    .product-summary {
        position: static;
        padding-top: 0;
    }

    .product-main-image {
        min-height: 320px;
    }

    .order-section {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .wrap {
        width: min(100% - 22px, 1240px);
    }

    

    

    

    .catalog-main,
    .product-page-main,
    .legal-page {
        padding-top: 24px;
        padding-bottom: 40px;
    }

  .catalog-heading {
        gap: 14px;
        align-items: start;
    }

    .catalog-about {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px 0 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-card-image {
        padding: 5px;
    }

    .product-card-body {
        gap: 12px;
        padding: 12px;
    }

    .product-card h3 {
        font-size: 15px;
    }

    .product-card p {
        display: none;
    }

    .product-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .price {
        font-size: 18px;
    }

    .button-link-light {
        width: 100%;
    }

    .product-main-image {
        min-height: 260px;
        padding: 8px;
        border-radius: 14px;
    }

    .product-description,
    .order-form-card {
        padding: 18px;
    }

    .order-section {
        padding: 18px;
        border-radius: 14px;
    }

    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}

/* In-page product photo viewer */
.product-main-image {
    width: 100%;
    cursor: zoom-in;
    font: inherit;
}
.product-main-image:hover { filter: none; }
.product-image-hint {
    margin: 7px 0 0;
    color: #7d756e;
    font-size: 13px;
    text-align: center;
}
body.lightbox-open { overflow: hidden; }
.product-lightbox[hidden] { display: none; }
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 72px;
    background: rgba(22, 20, 18, .92);
}
.product-lightbox img {
    display: block;
    max-width: min(1200px, 100%);
    max-height: calc(100vh - 112px);
    object-fit: contain;
    border-radius: 10px;
}
.product-lightbox-close,
.product-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
    background: rgba(255, 255, 255, .92);
    color: #28231f;
    border: 0;
    border-radius: 50%;
    line-height: 1;
}
.product-lightbox-close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 30px;
}
.product-lightbox-nav {
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    font-size: 42px;
}
.product-lightbox-prev { left: 16px; }
.product-lightbox-next { right: 16px; }
.product-lightbox-close:hover,
.product-lightbox-nav:hover { filter: brightness(.9); }

@media (max-width: 640px) {
    .product-lightbox { padding: 60px 12px 18px; }
    .product-lightbox img { max-height: calc(100vh - 78px); }
    .product-lightbox-nav {
        top: auto;
        bottom: 14px;
        transform: none;
        width: 44px;
        height: 44px;
    }
    .product-lightbox-prev { left: calc(50% - 54px); }
    .product-lightbox-next { right: calc(50% - 54px); }
}

/* Public header contacts */


















/* Refined public header */




















/* Product availability + handmade markers */
.product-card-badges,
.product-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.product-card-badges {
    margin-bottom: 10px;
}

.product-detail-badges {
    margin-bottom: 14px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.product-badge.is-handmade {
    background: #efe7de;
    color: #765944;
}

.product-badge.is-in-stock {
    background: #e4f3e7;
    color: #2e6a3c;
}

.product-badge.is-preorder {
    background: #fff0cf;
    color: #7a5a16;
}

.availability-note {
    margin: 20px 0 0;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 14px;
}

.availability-note.is-in-stock {
    background: #edf7ef;
    color: #315e3a;
}

.availability-note.is-preorder {
    background: #fff5dd;
    color: #6d5420;
}

.handmade-disclaimer {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding: 15px 16px;
    background: #f6f1eb;
    border: 1px solid #e4d9ce;
    border-radius: 12px;
    color: #544a42;
    font-size: 14px;
}

.handmade-disclaimer strong {
    color: #3d342e;
}

.order-handmade-reminder {
    margin: 0;
    padding: 12px 14px;
    background: #f6f1eb;
    border-radius: 10px;
    color: #5f554d;
    font-size: 13px;
}





/* Unified product photo frames: original photos are not cropped or modified. */
.product-card-image { aspect-ratio: 1 / 1; padding: 12px; background: #f8f6f3; }
.product-card-image img { object-fit: contain; }
.product-main-image { aspect-ratio: 4 / 3; min-height: 0; max-height: none; }
.product-main-image img { max-height: 100%; object-fit: contain; }

/* Order form: customer + integrated pickup-point selection */
.order-fields-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.order-field-full { grid-column:1 / -1; }
.delivery-choice-block { display:grid; gap:12px; padding:16px; border:1px solid #ddd5cd; border-radius:14px; background:#faf8f5; }
.delivery-choice-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.delivery-choice-heading > div { display:grid; gap:2px; }
.delivery-choice-heading span { color:#746b63; font-size:13px; }
.delivery-free { flex:0 0 auto; padding:5px 9px; border-radius:999px; background:#e4f3e7; color:#2e6a3c !important; font-weight:700; }
.delivery-provider-list { display:grid; gap:8px; }
.delivery-provider-button { width:100%; min-height:0; display:grid; justify-items:start; gap:2px; padding:13px 14px; background:#fff; color:#292725; border:1px solid #d8d0c8; border-radius:11px; text-align:left; }
.delivery-provider-button span { color:#716860; font-size:13px; font-weight:400; }
.delivery-provider-button.is-selected { border-color:#6b5848; box-shadow:0 0 0 1px #6b5848; }
.delivery-selected { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 14px; background:#eef6ef; border:1px solid #cfe2d2; border-radius:11px; }
.delivery-selected > div { display:grid; gap:3px; }
.delivery-selected span { color:#4e5e51; font-size:13px; }
.delivery-change { flex:0 0 auto; min-height:34px; padding:7px 10px; background:#fff; color:#3c493e; border:1px solid #bdd2c1; font-size:13px; }
.order-submit:disabled { opacity:.55; cursor:not-allowed; }
body.delivery-modal-open { overflow:hidden; }
.delivery-modal[hidden] { display:none; }
.delivery-modal { position:fixed; inset:0; z-index:2500; display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(24,21,19,.72); }
.delivery-modal-panel { width:min(780px,100%); max-height:min(760px,calc(100vh - 48px)); overflow:auto; padding:24px; background:#fff; border-radius:18px; box-shadow:0 24px 80px rgba(0,0,0,.22); }
.delivery-modal-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.delivery-modal-header h3 { margin:0; font-size:26px; }
.delivery-modal-close { width:40px; height:40px; min-height:40px; padding:0; border-radius:50%; background:#f0ece7; color:#302c29; font-size:26px; }
.delivery-location-search { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:end; margin-top:18px; }
.delivery-location-search label, .delivery-point-search label { display:grid; gap:6px; font-weight:700; }
.delivery-modal-message { margin:16px 0 10px; color:#665f59; }
.delivery-location-list { display:flex; flex-wrap:wrap; gap:8px; }
.delivery-location-button { min-height:36px; padding:8px 12px; background:#eee8e1; color:#302c29; }
.delivery-point-search { margin-top:16px; }
.delivery-point-list { display:grid; gap:9px; margin-top:12px; }
.delivery-point-card { width:100%; min-height:0; display:grid; grid-template-columns:1fr auto; gap:3px 14px; padding:13px 14px; background:#fff; color:#292725; border:1px solid #ddd5cd; border-radius:11px; text-align:left; }
.delivery-point-card strong, .delivery-point-card span { grid-column:1; }
.delivery-point-card span { color:#6d655e; font-size:13px; font-weight:400; }
.delivery-point-card em { grid-column:2; grid-row:1 / span 2; align-self:center; color:#7b604b; font-size:13px; font-style:normal; }
@media (max-width:640px) {
  .order-fields-grid { grid-template-columns:1fr; }
  .order-field-full { grid-column:auto; }
  .delivery-choice-heading, .delivery-selected { align-items:flex-start; flex-direction:column; }
  .delivery-modal { padding:10px; align-items:flex-end; }
  .delivery-modal-panel { max-height:90vh; padding:18px; border-radius:18px 18px 0 0; }
  .delivery-location-search { grid-template-columns:1fr; }
}

/* 2026-09-14: unified catalogue thumbnails + pickup point map */
.product-card-image {
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    background: #f8f6f3;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.delivery-provider-button {
    position: relative;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
}
.delivery-provider-button strong,
.delivery-provider-button span { grid-column: 1; }
.delivery-provider-button em {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: #7b604b;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}
.delivery-provider-button.is-selected em { display: none; }
.delivery-modal-panel { width: min(1120px, 100%); }
.delivery-point-workspace {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
    min-height: 460px;
}
.delivery-point-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.delivery-point-search { margin-top: 0; }
.delivery-point-list {
    max-height: 410px;
    overflow: auto;
    padding-right: 4px;
}
.delivery-map-column {
    min-width: 0;
    min-height: 460px;
    overflow: hidden;
    border: 1px solid #ddd5cd;
    border-radius: 12px;
    background: #f3f0ec;
}
.delivery-map { width: 100%; height: 100%; min-height: 460px; }
.delivery-map-popup {
    display: grid;
    gap: 6px;
    min-width: 210px;
    color: #292725;
}
.delivery-map-popup span { color: #665f59; font-size: 13px; line-height: 1.35; }
.delivery-map-popup button {
    min-height: 34px;
    margin-top: 2px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: #302c29;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
@media (max-width: 820px) {
    .delivery-point-workspace { grid-template-columns: 1fr; min-height: 0; }
    .delivery-point-list { max-height: 300px; }
    .delivery-map-column, .delivery-map { min-height: 340px; }
}
@media (max-width: 640px) {
    .delivery-provider-button { grid-template-columns: 1fr; }
    .delivery-provider-button em { grid-column: 1; grid-row: auto; margin-top: 4px; }
    .delivery-map-column, .delivery-map { min-height: 300px; }
}

/* Hidden blocks must stay hidden even when their base class sets display:flex/grid. */
.delivery-selected[hidden],
.delivery-point-workspace[hidden] { display:none !important; }

.delivery-map-tooltip { display:grid; gap:3px; min-width:180px; max-width:280px; }
.delivery-map-tooltip strong { font-size:13px; line-height:1.3; }
.delivery-map-tooltip span { color:#665f59; font-size:12px; line-height:1.35; }

/* 2026-09-14: Yandex Maps v3 pickup selector */
.delivery-modal-panel {
    width: min(1120px, 100%);
    max-height: min(820px, calc(100vh - 42px));
    overflow: auto;
}
.delivery-location-autocomplete {
    position: relative;
    margin-top: 18px;
    max-width: 100%;
}
.delivery-location-autocomplete > label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}
.delivery-city-input-wrap {
    position: relative;
}
.delivery-city-input-wrap input {
    width: 100%;
    padding-right: 46px;
}
.delivery-city-spinner {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid #ded6ce;
    border-top-color: #6e5a49;
    border-radius: 50%;
    animation: delivery-spin .75s linear infinite;
}
@keyframes delivery-spin { to { transform: rotate(360deg); } }
.delivery-city-suggestions {
    position: absolute;
    z-index: 2700;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid #d9d1c9;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(49, 42, 36, .16);
}
.delivery-city-suggestions[hidden] { display: none !important; }
.delivery-city-suggestion {
    display: grid;
    width: 100%;
    min-height: 0;
    gap: 2px;
    padding: 10px 12px;
    background: transparent;
    color: #282522;
    border: 0;
    border-radius: 8px;
    text-align: left;
}
.delivery-city-suggestion:hover,
.delivery-city-suggestion:focus-visible {
    background: #f2ece6;
}
.delivery-city-suggestion strong {
    font-size: 14px;
    line-height: 1.35;
}
.delivery-city-suggestion span,
.delivery-city-no-results {
    color: #766d65;
    font-size: 12px;
    line-height: 1.35;
}
.delivery-city-no-results { padding: 12px; }
.delivery-modal-message {
    min-height: 22px;
    margin: 12px 0 10px;
}
.delivery-modal-message.is-error { color: #a12d2d; }
.delivery-modal-message.is-success { color: #3d6a45; }
.delivery-point-workspace {
    display: grid;
    grid-template-columns: minmax(300px, 38%) minmax(0, 1fr);
    gap: 14px;
    min-height: 500px;
    margin-top: 8px;
}
.delivery-point-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #f7f3ef;
    border: 1px solid #e0d8d0;
    border-radius: 14px;
}
.delivery-point-search {
    margin: 0 0 10px;
}
.delivery-point-search[hidden] { display: none !important; }
.delivery-point-search input { width: 100%; }
.delivery-point-list {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 3px;
    margin-top: 0;
}
.delivery-empty-state {
    display: grid;
    place-content: center;
    gap: 5px;
    min-height: 170px;
    padding: 24px 18px;
    color: #6d655e;
    text-align: center;
}
.delivery-empty-state strong { color: #342f2b; }
.delivery-empty-state span { font-size: 13px; line-height: 1.45; }
.delivery-empty-state.is-loading { opacity: .8; }
.delivery-point-card {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd4cc;
    border-radius: 11px;
    text-align: left;
}
.delivery-point-card-main {
    min-width: 0;
    min-height: 0;
    display: grid;
    gap: 3px;
    padding: 11px 0 11px 12px;
    background: transparent;
    color: #292725;
    border: 0;
    text-align: left;
}
.delivery-point-card-main strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.delivery-point-card-main span {
    color: #6d655e;
    font-size: 12px;
    line-height: 1.35;
}
.delivery-point-card-main:hover { background: #faf7f4; }
.delivery-point-card-select {
    min-height: 34px;
    margin-right: 10px;
    padding: 7px 10px;
    background: #f0e8df;
    color: #4d3d31;
    border: 1px solid #decfc1;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
}
.delivery-point-card-select:hover { background: #e8ddd2; }
.delivery-map-column {
    position: relative;
    min-width: 0;
    min-height: 500px;
    overflow: hidden;
    background: #f1eee9;
    border: 1px solid #ded7cf;
    border-radius: 14px;
}
.delivery-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}
.delivery-map-loading {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(245, 242, 238, .94);
    color: #5f5750;
    text-align: center;
}
.delivery-map-loading[hidden] { display: none !important; }
.delivery-map-controls {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    display: grid;
    gap: 1px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,.11);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.delivery-map-controls button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    background: #fff;
    color: #292725;
    border: 0;
    border-radius: 0;
    font-size: 22px;
    line-height: 1;
}
.delivery-map-controls button + button { border-top: 1px solid #ece7e2; }
.delivery-map-controls button:hover { background: #f5f2ee; }
.delivery-map-cluster {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    transform: translate(-50%, -50%);
    background: #ffdc60;
    color: #2c2926;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0,0,0,.24);
    font-weight: 800;
    cursor: pointer;
}
.delivery-map-preview {
    position: absolute;
    z-index: 6;
    left: 14px;
    right: 66px;
    bottom: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 14px;
    align-items: center;
    padding: 13px 14px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.16);
    backdrop-filter: blur(4px);
}
.delivery-map-preview[hidden] { display: none !important; }
.delivery-map-preview strong,
.delivery-map-preview span {
    grid-column: 1;
    min-width: 0;
}
.delivery-map-preview strong { font-size: 14px; line-height: 1.3; }
.delivery-map-preview span { color: #675f58; font-size: 12px; line-height: 1.35; }
.delivery-map-preview > button:not(.delivery-map-preview-close) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    min-height: 36px;
    padding: 8px 12px;
    background: #2f2a26;
    color: #fff;
    border-radius: 9px;
    font-size: 12px;
}
.delivery-map-preview-close {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    background: #fff;
    color: #4c4640;
    border: 1px solid #ddd4cc;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

@media (max-width: 860px) {
    .delivery-point-workspace {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .delivery-point-column { order: 2; }
    .delivery-map-column {
        order: 1;
        min-height: 360px;
    }
    .delivery-map { min-height: 360px; }
    .delivery-point-list { max-height: 320px; }
}

@media (max-width: 560px) {
    .delivery-modal { padding: 0; align-items: stretch; }
    .delivery-modal-panel {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        padding: 16px;
        border-radius: 0;
    }
    .delivery-map-column,
    .delivery-map { min-height: 320px; }
    .delivery-map-preview {
        right: 14px;
        grid-template-columns: 1fr;
    }
    .delivery-map-preview > button:not(.delivery-map-preview-close) {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
    }
}

/* 2026-09-14: stable Yandex Maps 2.1 pickup selector refinements */
.delivery-map-controls { display: none !important; }
.delivery-point-workspace {
    grid-template-columns: minmax(330px, 40%) minmax(0, 1fr);
    min-height: 520px;
}
.delivery-point-column {
    background: #fbf9f7;
    padding: 14px;
}
.delivery-point-list {
    gap: 10px;
    max-height: 445px;
    padding-right: 5px;
}
.delivery-point-card-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: #fff;
    border: 1px solid #e3ddd7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(40, 34, 29, .03);
}
.delivery-point-card-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}
.delivery-point-card-copy strong {
    color: #2f2a26;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}
.delivery-point-card-copy span {
    color: #7a7169;
    font-size: 12px;
    line-height: 1.35;
}
.delivery-point-card-actions {
    display: grid;
    gap: 7px;
}
.delivery-point-card-actions button {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
}
.delivery-point-card-map {
    background: #f2ede8;
    color: #51463e;
    border: 1px solid #e1d8cf;
}
.delivery-point-card-select {
    margin: 0;
    background: #302c29;
    color: #fff;
    border: 1px solid #302c29;
}
.delivery-map-column {
    min-height: 520px;
    background: #eeeae5;
}
.delivery-map {
    min-height: 520px;
}
.delivery-map-loading {
    z-index: 8;
    padding: 28px;
    font-size: 14px;
    line-height: 1.5;
}
.delivery-city-suggestions {
    max-height: 230px;
    padding: 5px;
}
.delivery-city-suggestion {
    padding: 9px 11px;
}
.delivery-city-suggestion strong {
    font-size: 13px;
}
.delivery-modal-message {
    margin: 10px 0 8px;
    font-size: 13px;
}
@media (max-width: 860px) {
    .delivery-point-workspace { grid-template-columns: 1fr; }
    .delivery-map-column,
    .delivery-map { min-height: 360px; }
    .delivery-point-card-v2 { grid-template-columns: 1fr; }
    .delivery-point-card-actions { grid-template-columns: 1fr 1fr; }
}

/* 2026-09-14: final visual cleanup for pickup selector. Keep this block last. */
.delivery-location-autocomplete {
    max-width: none;
}

.delivery-city-suggestions {
    top: calc(100% + 8px) !important;
    max-height: 320px !important;
    padding: 6px !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid #ddd5cd !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 44px rgba(42, 35, 29, .16) !important;
}

.delivery-city-suggestion {
    width: 100% !important;
    min-height: 58px !important;
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) 22px !important;
    align-items: center !important;
    justify-content: initial !important;
    gap: 10px !important;
    padding: 9px 10px !important;
    margin: 0 !important;
    background: #fff !important;
    color: #2f2a26 !important;
    border: 0 !important;
    border-radius: 10px !important;
    text-align: left !important;
    line-height: 1.25 !important;
    box-shadow: none !important;
}

.delivery-city-suggestion + .delivery-city-suggestion {
    border-top: 1px solid #f0ebe6 !important;
    border-radius: 0 !important;
}

.delivery-city-suggestion:hover,
.delivery-city-suggestion:focus-visible {
    background: #f7f2ed !important;
    filter: none !important;
    outline: none !important;
}

.delivery-city-suggestion-pin {
    width: 30px !important;
    height: 30px !important;
    display: inline-grid !important;
    place-items: center !important;
    align-self: center !important;
    background: #efe7df !important;
    color: #795f4b !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    font-weight: 400 !important;
}

.delivery-city-suggestion-copy {
    min-width: 0 !important;
    display: grid !important;
    gap: 2px !important;
    text-align: left !important;
}

.delivery-city-suggestion-copy strong {
    display: block !important;
    color: #2f2a26 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
}

.delivery-city-suggestion-copy > span {
    display: block !important;
    color: #81776e !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.delivery-city-suggestion-arrow {
    justify-self: end !important;
    color: #a09387 !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.delivery-city-no-results {
    display: grid !important;
    gap: 3px !important;
    padding: 14px !important;
    color: #7c726a !important;
    text-align: left !important;
}
.delivery-city-no-results strong { color: #342f2b !important; }
.delivery-city-no-results span { font-size: 12px !important; }

.delivery-point-column {
    padding: 12px !important;
    background: #f7f3ef !important;
}

.delivery-point-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    max-height: 445px !important;
    padding: 0 5px 0 0 !important;
    margin: 0 !important;
    overflow-y: auto !important;
    align-content: initial !important;
}

.delivery-point-item {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 96px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    gap: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #ded6ce !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(42, 35, 29, .035) !important;
}

.delivery-point-item:hover {
    border-color: #cdbdac !important;
    box-shadow: 0 5px 14px rgba(42, 35, 29, .07) !important;
}

.delivery-point-item-main {
    all: unset !important;
    min-width: 0 !important;
    display: grid !important;
    align-content: center !important;
    gap: 4px !important;
    padding: 12px 14px !important;
    color: #2f2a26 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.delivery-point-item-main:hover {
    background: #fbf8f5 !important;
}

.delivery-point-item-provider {
    display: block !important;
    color: #806752 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    white-space: normal !important;
}

.delivery-point-item-address {
    display: block !important;
    color: #2f2a26 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.delivery-point-item-map-hint {
    display: block !important;
    color: #8a8179 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
}

.delivery-point-item-select {
    align-self: center !important;
    min-width: 86px !important;
    min-height: 38px !important;
    margin: 0 12px !important;
    padding: 8px 12px !important;
    background: #302c29 !important;
    color: #fff !important;
    border: 1px solid #302c29 !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.delivery-point-item-select:hover {
    background: #1f1c1a !important;
    filter: none !important;
}

@media (max-width: 860px) {
    .delivery-point-item {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }
}

@media (max-width: 560px) {
    .delivery-city-suggestion {
        grid-template-columns: 28px minmax(0, 1fr) 18px !important;
        min-height: 54px !important;
        padding: 8px !important;
    }
    .delivery-city-suggestion-pin {
        width: 28px !important;
        height: 28px !important;
    }
    .delivery-point-item {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }
    .delivery-point-item-select {
        width: calc(100% - 24px) !important;
        margin: 0 12px 12px !important;
    }
}

/* ===== Shared public header: one layout and one stylesheet for every public page ===== */
.site-header {
    padding: 22px 0 24px;
    background: #fff;
    border-bottom: 1px solid #ece5dc;
}

.site-header .header-shell {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 122px;
    padding: 14px 18px;
    border: 1px solid #e3d9ce;
    border-radius: 16px;
    background: #fbf9f6;
}

.site-header .header-brand-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.site-header .brand-logo-link {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.site-header .site-logo {
    display: block;
    width: 92px;
    height: 92px;
    max-width: none;
    object-fit: cover;
    border-radius: 8px;
}

.site-header .header-brand-copy {
    min-width: 0;
}

.site-header .site-name-heading {
    margin: 0;
    color: #171513;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.02em;
}

.site-header .brand-title-link {
    color: inherit;
    text-decoration: none;
}

.site-header .site-tagline {
    margin-top: 8px;
    color: #9b6844;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}

.site-header-actions .site-header-contacts {
    display: flex;
    align-items: center;
    gap: 26px;
    min-width: 0;
}

.site-header-actions .site-header-contact {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 64px;
    color: #2c2722;
    text-decoration: none;
}

.site-header-contact-icon,
.header-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #7e572e;
}

.site-header-contact-icon {
    width: 24px;
    height: 24px;
}

.site-header-contact-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.site-header-contact-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.site-header-contact-label {
    color: #796d63;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
}

.site-header-contact strong {
    color: #211d19;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
}

.site-header-contact:hover strong {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.header-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 64px;
    margin-left: 4px;
    padding: 0 18px;
    border: 1px solid #e5ddd4;
    border-radius: 12px;
    background: #eee6dc;
    color: #1f1b17;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.header-cart-link::before {
    content: "";
    position: absolute;
    left: -13px;
    top: 9px;
    bottom: 9px;
    width: 1px;
    background: #dfd4c8;
}

.header-cart-link:hover {
    background: #e7dbce;
}

.header-cart-icon {
    width: 24px;
    height: 24px;
}

.header-cart-icon svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.header-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 29px;
    height: 29px;
    padding: 0 7px;
    border-radius: 999px;
    background: #bd9252;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

/* Primary public actions use the workshop's warm brown accent.
   Do not recolor every <button>: delivery selectors, modal controls,
   destructive actions and gallery controls keep their own component styles. */
.button-link:not(.button-link-light),
.order-submit,
.delivery-map-popup button,
.delivery-map-preview > button:not(.delivery-map-preview-close) {
    background: #8b6d55;
    color: #fff;
}

.button-link:not(.button-link-light):hover,
.order-submit:hover,
.delivery-map-popup button:hover,
.delivery-map-preview > button:not(.delivery-map-preview-close):hover {
    filter: none;
    background: #765b47;
    color: #fff;
}

.button-link-light {
    background: #eee7df;
    color: #342f2b;
}

.button-link-light:hover {
    filter: none;
    background: #e4d9ce;
    color: #342f2b;
}

@media (max-width: 1160px) {
    .site-header .header-shell {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .site-header-actions {
        justify-content: space-between;
        padding-top: 14px;
        border-top: 1px solid #e7ded4;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 12px 0 16px;
    }

    .site-header .header-shell {
        min-height: 0;
        padding: 14px;
    }

    .site-header .site-logo {
        width: 72px;
        height: 72px;
    }

    .site-header .site-name-heading {
        font-size: 20px;
    }

    .site-header .site-tagline {
        margin-top: 5px;
        font-size: 11px;
    }

    .site-header-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-header-actions .site-header-contacts {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        overflow: hidden;
        border: 1px solid #e5ddd4;
        border-radius: 12px;
        background: #f7f4f0;
    }

    .site-header-actions .site-header-contact {
        min-height: 50px;
        padding: 0 14px;
    }

    .site-header-actions .site-header-contact + .site-header-contact {
        border-top: 1px solid #e5ddd4;
    }

    .header-cart-link {
        width: 100%;
        min-height: 50px;
        margin: 0;
    }

    .header-cart-link::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-header .header-brand-main {
        gap: 12px;
    }

    .site-header .site-logo {
        width: 62px;
        height: 62px;
    }

    .site-header .site-name-heading {
        font-size: 18px;
    }
}


/* Shared public cookie notice */
.cookie-notice[hidden] {
    display: none !important;
}

.cookie-notice {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1200;
    pointer-events: none;
}

.cookie-notice-inner {
    width: min(760px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #d9cfc4;
    border-radius: 14px;
    background: #fffdfb;
    color: #3d3834;
    box-shadow: 0 12px 34px rgba(47, 43, 40, 0.18);
    pointer-events: auto;
}

.cookie-notice-copy {
    font-size: 14px;
    line-height: 1.5;
}

.cookie-notice-copy a {
    white-space: nowrap;
}

.cookie-notice-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #8b6d55;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cookie-notice-button:hover,
.cookie-notice-button:focus-visible {
    background: #765b47;
    color: #fff;
}

@media (max-width: 640px) {
    .cookie-notice {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .cookie-notice-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .cookie-notice-button {
        width: 100%;
    }
}

/* Карточка товара: структурированные характеристики */
.product-characteristics {
    margin-top: 24px;
    padding: 28px;
}

.product-characteristics h2 {
    margin: 0;
    font-size: 28px;
}

.product-characteristics-list {
    margin: 16px 0 0;
    display: grid;
    gap: 0;
}

.product-characteristic-row {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid rgba(92, 66, 43, 0.14);
}

.product-characteristic-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.product-characteristic-row dt {
    font-weight: 700;
}

.product-characteristic-row dd {
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .product-characteristics {
        padding: 18px;
    }

    .product-characteristic-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* Ratings and reviews */
.product-reviews,
.review-form-card,
.reviews-heading,
.order-reviews { margin-top: 24px; padding: 28px; }
.product-reviews h2,
.review-form-card h2,
.order-reviews h2 { margin-top: 0; }
.review-summary { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:8px 0 0; }
.review-stars { color:#b87b22; letter-spacing:1px; font-size:18px; white-space:nowrap; }
.reviews-grid { display:grid; gap:14px; margin-top:16px; }
.review-card { padding:18px; border:1px solid rgba(92,66,43,.14); border-radius:14px; background:#fff; }
.review-card p { margin-bottom:8px; line-height:1.55; }
.review-card-top { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:6px; }
.verified-purchase { display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:999px; background:#e9f6ec; color:#28643a; font-size:12px; font-weight:700; white-space:nowrap; }
.review-public-form { margin-top:18px; border-top:1px solid rgba(92,66,43,.14); padding-top:16px; }
.review-public-form summary { cursor:pointer; font-weight:700; }
.review-form { display:grid; gap:14px; margin-top:14px; }
.review-form label { display:grid; gap:6px; font-weight:600; }
.review-form input[type="text"], .review-form textarea { width:100%; box-sizing:border-box; padding:11px 12px; border:1px solid #cfc6bc; border-radius:10px; font:inherit; background:#fff; }
.review-form fieldset { border:0; padding:0; margin:0; }
.review-form legend { font-weight:700; margin-bottom:7px; }
.review-rating-input { display:flex; gap:8px; flex-wrap:wrap; }
.review-rating-input label { display:block; }
.review-rating-input input { position:absolute; opacity:0; pointer-events:none; }
.review-rating-input span { display:block; padding:8px 10px; border:1px solid #d6cdc3; border-radius:9px; cursor:pointer; background:#fff; font-weight:600; }
.review-rating-input input:checked + span { border-color:#9a6420; box-shadow:0 0 0 2px rgba(154,100,32,.12); background:#fff8eb; }
.review-hp { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; opacity:0 !important; }
.reviews-page-main { padding-bottom:36px; }
.order-review-options { display:grid; gap:18px; margin-top:18px; }
.order-review-item { padding:16px; border:1px solid rgba(92,66,43,.14); border-radius:12px; }
.order-review-item h3 { margin-top:0; }
.compact-review-form { margin-top:8px; }
@media (max-width:640px) {
  .product-reviews,.review-form-card,.reviews-heading,.order-reviews { padding:18px; }
  .review-rating-input { gap:6px; }
  .review-rating-input span { padding:7px 8px; }
}
.product-card-rating { display:inline-flex; align-items:center; gap:5px; margin-top:6px; text-decoration:none; color:inherit; font-size:14px; }
.product-card-rating .review-stars { font-size:15px; }

.product-detail-rating {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin: 8px 0 2px;
    color: #665f59;
    font-size: 14px;
    text-decoration: none;
}
.product-detail-rating:hover { text-decoration: underline; }
.product-detail-rating .review-stars { font-size: 16px; }


/* Review photo/video attachments */
.review-media-field small { font-weight: 400; color: #756b62; }
.review-media-field input[type="file"] { width:100%; box-sizing:border-box; padding:10px; border:1px dashed #cfc6bc; border-radius:10px; background:#fff; font:inherit; }
.review-media-field > span { font-weight:400; }
.review-media-preview { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; }
.review-media-preview:empty { display:none; }
.review-media-preview-item { position:relative; min-height:90px; border:1px solid rgba(92,66,43,.14); border-radius:10px; overflow:hidden; background:#f7f4f0; }
.review-media-preview img, .review-media-preview video { display:block; width:100%; height:120px; object-fit:cover; }
.review-media-preview span { display:block; padding:7px 8px; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.review-media-preview-error { padding:10px 12px; border-radius:9px; background:#f9dddd; color:#8a352d; font-size:13px; }
.review-media-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,200px)); gap:10px; margin-top:12px; }
.review-media-grid a { display:block; }
.review-media-grid img, .review-media-grid video { display:block; width:100%; height:160px; object-fit:cover; border-radius:10px; border:1px solid rgba(92,66,43,.14); background:#111; }
@media (max-width:620px) {
  .review-media-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .review-media-grid img, .review-media-grid video { height:140px; }
}

/* Каталог: тонкое меню разделов под шапкой */
.site-catalog-nav {
    margin: 0;
    background: #fff;
}
.site-catalog-nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    min-height: 32px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.site-catalog-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 24px;
    padding: 2px 10px;
    border-radius: 999px;
    color: #51473f;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.site-catalog-nav-link:hover {
    background: #f4eee8;
    text-decoration: none;
}
.site-catalog-nav-link.is-active {
    background: #9b7047;
    color: #fff;
}

.catalog-more-wrap {
    display: flex;
    justify-content: center;
    margin: 28px 0 4px;
}
.catalog-more-button {
    min-width: 190px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid #9b7047;
    border-radius: 999px;
    background: #fff;
    color: #765338;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.catalog-more-button:hover {
    background: #f7f0e9;
}
.catalog-more-button:disabled {
    cursor: wait;
    opacity: .65;
}
.catalog-category-about {
    margin-top: 42px;
}

@media (max-width: 760px) {
    .site-catalog-nav-inner {
        justify-content: flex-start;
        width: 100%;
        min-height: 32px;
        padding: 0 12px;
    }
    .site-catalog-nav-link {
        min-height: 24px;
        padding-inline: 9px;
        font-size: 13px;
    }
}


/* Каталог: симметричные отступы у меню под шапкой */
.site-header-with-catalog-nav {
    padding-bottom: 6px;
}
.site-header-with-catalog-nav .site-catalog-nav {
    margin: 6px 0 0;
}
.site-header-with-catalog-nav .site-catalog-nav-inner {
    min-height: 0;
    padding-top: 4px;
    padding-bottom: 4px;
}
@media (max-width: 760px) {
    .site-header-with-catalog-nav {
        padding-bottom: 5px;
    }
    .site-header-with-catalog-nav .site-catalog-nav {
        margin-top: 5px;
    }
    .site-header-with-catalog-nav .site-catalog-nav-inner {
        padding-top: 4px;
        padding-bottom: 4px;
    }
}

/* Каталог: чуть крупнее пункты меню без увеличения белой полосы */
.site-catalog-nav-link {
    min-height: 26px;
    padding: 3px 12px;
    font-size: 14px;
    line-height: 1.1;
}
@media (max-width: 760px) {
    .site-catalog-nav-link {
        min-height: 26px;
        padding: 3px 11px;
        font-size: 14px;
    }
}


/* Каталог: меню разделов остаётся видимым при прокрутке */
.site-catalog-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    margin: 0;
    background: #fff;
}
.site-header-with-catalog-nav {
    padding-bottom: 6px;
}
.site-catalog-nav .site-catalog-nav-inner {
    min-height: 0;
    padding-top: 4px;
    padding-bottom: 4px;
}
@media (max-width: 760px) {
    .site-header-with-catalog-nav {
        padding-bottom: 5px;
    }
    .site-catalog-nav .site-catalog-nav-inner {
        padding-top: 4px;
        padding-bottom: 4px;
    }
}


/* Каталог: на мобильных вместо горизонтальной прокрутки — выпадающее меню */
.site-catalog-nav-mobile-wrap,
.site-catalog-nav-mobile {
    display: none;
}

@media (max-width: 760px) {
    .site-catalog-nav-desktop {
        display: none;
    }
    .site-catalog-nav-mobile-wrap {
        display: block;
        padding: 4px 12px;
    }
    .site-catalog-nav-mobile {
        display: block;
        position: relative;
    }
    .site-catalog-nav-mobile > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 34px;
        padding: 5px 12px;
        border: 1px solid rgba(92, 66, 43, .18);
        border-radius: 9px;
        background: #fff;
        color: #51473f;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
        user-select: none;
    }
    .site-catalog-nav-mobile > summary::-webkit-details-marker {
        display: none;
    }
    .site-catalog-nav-chevron {
        width: 8px;
        height: 8px;
        flex: 0 0 auto;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transition: transform .18s ease;
    }
    .site-catalog-nav-mobile[open] .site-catalog-nav-chevron {
        transform: rotate(225deg) translate(-2px, -2px);
    }
    .site-catalog-nav-mobile-list {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        right: 0;
        z-index: 90;
        display: grid;
        gap: 2px;
        padding: 6px;
        border: 1px solid rgba(92, 66, 43, .16);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 10px 28px rgba(58, 45, 34, .14);
    }
    .site-catalog-nav-mobile-link {
        display: block;
        padding: 9px 10px;
        border-radius: 7px;
        color: #51473f;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 700;
        text-decoration: none;
    }
    .site-catalog-nav-mobile-link:hover {
        background: #f4eee8;
        text-decoration: none;
    }
    .site-catalog-nav-mobile-link.is-active {
        background: #9b7047;
        color: #fff;
    }
}

/* Content hub / articles */
.content-hub-main,
.article-page-main { padding-top: 26px; padding-bottom: 42px; }
.content-breadcrumbs { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:18px; font-size:14px; color:#756b62; }
.content-breadcrumbs a { color:inherit; }
.content-hub-hero { max-width:780px; margin-bottom:22px; }
.content-hub-hero h1,
.article-page-header h1 { margin:4px 0 10px; }
.content-hub-hero > p:last-child { font-size:18px; line-height:1.6; color:#5f554d; }
.content-category-nav { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 24px; }
.content-category-nav a { padding:8px 12px; border:1px solid #d8d0c8; border-radius:999px; background:#fff; color:#4e463f; font-weight:700; text-decoration:none; }
.content-category-nav a.is-active { background:#2e2a27; border-color:#2e2a27; color:#fff; }
.article-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; }
.article-card { display:flex; flex-direction:column; min-height:240px; padding:22px; border:1px solid #e0d8d0; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(60,45,32,.05); }
.article-card-meta,
.article-page-category { margin-bottom:8px; color:#8a6748; font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.article-card h2 { margin:0 0 10px; font-size:22px; line-height:1.25; }
.article-card h2 a { color:inherit; text-decoration:none; }
.article-card p { margin:0 0 16px; color:#62584f; line-height:1.55; }
.article-card-link { margin-top:auto; font-weight:800; }
.content-catalog-cta,
.article-catalog-box { display:flex; justify-content:space-between; gap:24px; align-items:center; margin-top:28px; padding:22px; border-radius:16px; background:#f6f0ea; }
.content-catalog-cta h2 { margin:4px 0 8px; }
.content-catalog-cta p,
.article-catalog-box p { margin:0; }
.content-cta-button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:9px 16px; border-radius:10px; background:#2e2a27; color:#fff; font-weight:800; text-decoration:none; white-space:nowrap; }
.article-page { max-width:820px; margin:0 auto; }
.article-page-header { margin-bottom:24px; }
.article-page-lead { margin:0; font-size:19px; line-height:1.6; color:#5f554d; }
.article-page-body { font-size:17px; line-height:1.72; color:#403a35; }
.article-page-body h2 { margin:30px 0 10px; font-size:26px; }
.article-page-body h3 { margin:24px 0 8px; font-size:21px; }
.article-page-body p { margin:0 0 16px; }
.article-page-body ul { margin:0 0 18px; padding-left:22px; }
.article-page-body li { margin:6px 0; }
.article-catalog-box { max-width:820px; margin-left:auto; margin-right:auto; }
.content-empty { padding:28px; border:1px dashed #d7cec5; border-radius:14px; background:#fff; }
@media (max-width:700px) {
    .content-hub-main,.article-page-main { padding-top:18px; }
    .content-hub-hero > p:last-child,.article-page-lead { font-size:16px; }
    .article-card { min-height:0; padding:18px; }
    .content-catalog-cta,.article-catalog-box { align-items:stretch; flex-direction:column; }
    .content-cta-button { width:100%; }
}

/* Articles: richer editorial layout with optional real workshop photos */
.article-layout { display:grid; grid-template-columns:190px minmax(0,1fr) 250px; gap:24px; align-items:start; }
.article-topic-sidebar,.article-related-sidebar { position:sticky; top:16px; }
.article-topic-sidebar h2,.article-side-block h2 { margin:0 0 12px; font-size:20px; }
.article-topic-sidebar nav,.article-side-block { padding:16px; border:1px solid #e5ddd5; border-radius:14px; background:#fff; }
.article-topic-sidebar nav { display:grid; gap:5px; }
.article-topic-sidebar nav a { display:block; padding:9px 10px; border-radius:9px; color:#554c44; text-decoration:none; font-size:14px; font-weight:700; }
.article-topic-sidebar nav a:hover,.article-topic-sidebar nav a.is-active { background:#f4ebe2; color:#83522e; }
.article-side-promo { margin-top:14px; padding:16px; border-radius:14px; background:#f6efe8; }
.article-side-promo p { margin:7px 0 10px; color:#685d54; font-size:14px; line-height:1.45; }
.article-side-promo a { font-weight:800; }
.article-layout .article-page { width:100%; max-width:none; margin:0; min-width:0; }
.article-cover { margin:0 0 24px; }
.article-cover img { display:block; width:100%; max-height:520px; object-fit:cover; border-radius:16px; }
.article-cover figcaption,.article-inline-image figcaption,.article-gallery figcaption { margin-top:7px; color:#756b62; font-size:13px; line-height:1.4; }
.article-inline-image { margin:24px 0; }
.article-inline-image img { display:block; width:100%; max-height:560px; object-fit:contain; border-radius:14px; background:#f6f1ec; }
.article-gallery-section { margin-top:34px; }
.article-gallery-section h2 { margin:0 0 14px; }
.article-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.article-gallery figure { margin:0; }
.article-gallery img { display:block; width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:12px; }
.article-related-sidebar { display:grid; gap:16px; }
.article-related-link { display:grid; grid-template-columns:72px 1fr; gap:10px; align-items:center; padding:10px 0; border-top:1px solid #eee7e0; color:#3f3934; text-decoration:none; font-size:14px; font-weight:700; line-height:1.35; }
.article-related-link:first-of-type { border-top:0; padding-top:0; }
.article-related-link img { width:72px; height:58px; object-fit:cover; border-radius:8px; }
.article-related-products { display:grid; gap:10px; }
.article-related-product { display:grid; grid-template-columns:78px 1fr; gap:10px; align-items:center; color:#39332e; text-decoration:none; }
.article-related-product img { width:78px; height:78px; object-fit:cover; border-radius:9px; background:#f4eee8; }
.article-related-product span { min-width:0; }
.article-related-product strong { display:block; font-size:13px; line-height:1.3; }
.article-related-product b { display:block; margin-top:5px; font-size:14px; }
.article-card { padding:0; overflow:hidden; }
.article-card-image { display:block; aspect-ratio:16/9; overflow:hidden; background:#f4eee8; }
.article-card-image img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .2s ease; }
.article-card:hover .article-card-image img { transform:scale(1.02); }
.article-card-content { display:flex; flex:1; flex-direction:column; padding:20px 22px 22px; }
@media (max-width:1050px) {
    .article-layout { grid-template-columns:170px minmax(0,1fr); }
    .article-related-sidebar { grid-column:1/-1; position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
    .article-layout { display:block; }
    .article-topic-sidebar,.article-related-sidebar { position:static; }
    .article-topic-sidebar { margin-bottom:20px; }
    .article-topic-sidebar nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .article-side-promo { display:none; }
    .article-related-sidebar { display:grid; grid-template-columns:1fr; margin-top:28px; }
    .article-gallery { grid-template-columns:1fr; }
    .article-cover img { max-height:none; }
}


/* Articles index: distinguish from product cards with wide editorial blocks */
.article-stream { display:grid; gap:18px; }
.article-row {
    display:grid;
    grid-template-columns: 320px minmax(0,1fr);
    gap:20px;
    align-items:stretch;
    border:1px solid #e2d9d1;
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 26px rgba(60,45,32,.05);
    overflow:hidden;
}
.article-row-image {
    display:block;
    min-height:100%;
    background:#f4eee8;
}
.article-row-image img {
    width:100%;
    height:100%;
    min-height:220px;
    display:block;
    object-fit:cover;
}
.article-row-content {
    display:flex;
    min-width:0;
    flex-direction:column;
    justify-content:center;
    padding:22px 24px 22px 0;
}
.article-row-content h2 { margin:0 0 10px; font-size:32px; line-height:1.18; }
.article-row-content h2 a { color:inherit; text-decoration:none; }
.article-row-content p { margin:0 0 16px; color:#62584f; font-size:17px; line-height:1.6; }
.article-row .article-card-link { margin-top:auto; display:inline-flex; align-items:center; gap:6px; font-size:15px; }
.article-row--no-image { grid-template-columns:1fr; }
.article-row--no-image .article-row-content { padding-left:24px; }

/* neutralize older card treatment on index */
.article-card-grid { display:block; }

@media (max-width:980px) {
    .article-row { grid-template-columns: 240px minmax(0,1fr); }
    .article-row-content h2 { font-size:28px; }
}
@media (max-width:700px) {
    .article-stream { gap:14px; }
    .article-row { grid-template-columns:1fr; }
    .article-row-image img { min-height:190px; }
    .article-row-content,
    .article-row--no-image .article-row-content { padding:18px; }
    .article-row-content h2 { font-size:24px; }
    .article-row-content p { font-size:16px; }
}


/* Articles index refinement: compact image, richer text preview */
.article-row {
    grid-template-columns: 220px minmax(0,1fr);
    min-height: 210px;
}
.article-row-image {
    min-height: 210px;
}
.article-row-image img {
    min-height: 210px;
    max-height: 230px;
    object-fit: cover;
}
.article-row-content {
    justify-content:flex-start;
    padding:20px 24px;
}
.article-row-content h2 {
    margin-bottom:8px;
    font-size:28px;
}
.article-row-content > p:not(.article-row-preview) {
    margin-bottom:8px;
    font-size:16px;
}
.article-row-preview {
    margin:0 0 14px !important;
    color:#766b61 !important;
    font-size:15px !important;
    line-height:1.55 !important;
}
.article-row .article-card-link {
    margin-top:auto;
}
@media (max-width:980px) {
    .article-row { grid-template-columns: 190px minmax(0,1fr); }
    .article-row-image,
    .article-row-image img { min-height:190px; max-height:210px; }
    .article-row-content h2 { font-size:25px; }
}
@media (max-width:700px) {
    .article-row { grid-template-columns:1fr; }
    .article-row-image,
    .article-row-image img { min-height:0; max-height:220px; }
    .article-row-content { padding:18px; }
    .article-row-content h2 { font-size:23px; }
    .article-row-preview { font-size:14px !important; }
}

/* Articles index: keep compact width, but fill each row height */
@media (min-width:701px) {
    .article-row { align-items:stretch; }
    .article-row-image {
        height:100%;
        min-height:100%;
    }
    .article-row-image img {
        width:100%;
        height:100%;
        min-height:100%;
        max-height:none;
        object-fit:cover;
    }
}
@media (max-width:700px) {
    .article-row-image { height:auto; min-height:0; }
    .article-row-image img {
        width:100%;
        height:auto;
        min-height:0;
        max-height:none;
        aspect-ratio:16/9;
        object-fit:cover;
    }
}

/* Fix article page overflow and metadata spacing */
.article-page-meta {
    display:flex;
    flex-wrap:wrap;
    gap:6px 14px;
    align-items:center;
    margin:10px 0 10px;
    color:#756b62;
    font-size:14px;
    line-height:1.4;
}
.article-page-meta span {
    display:inline-flex;
    align-items:center;
    white-space:nowrap;
}
.article-side-promo {
    overflow:hidden;
}
.article-side-promo > img {
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    max-height:150px;
    margin:0 0 12px;
    object-fit:cover;
    border-radius:10px;
}
.article-topic-sidebar img,
.article-related-sidebar img,
.article-page img {
    max-width:100%;
}
.article-page,
.article-page-body,
.article-inline-image,
.article-cover {
    min-width:0;
    max-width:100%;
}
.article-inline-image img,
.article-cover img {
    width:100%;
    max-width:100%;
    height:auto;
}
@media (max-width:760px) {
    .article-page-meta {
        gap:5px 10px;
        font-size:13px;
    }
}

/* Article sidebar products: clear hover/focus affordance */
.article-related-product {
    padding:7px;
    margin:-7px;
    border-radius:10px;
    transition:background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.article-related-product:hover,
.article-related-product:focus-visible {
    background:#f4ebe2;
    box-shadow:0 0 0 1px rgba(138,103,72,.16);
    transform:translateY(-1px);
    outline:none;
}
.article-related-product:hover strong,
.article-related-product:focus-visible strong { color:#7a4f2e; }

/* Related articles: interactive hover/focus state */
.article-related-link {
    margin:0 -8px;
    padding:9px 8px;
    border-radius:9px;
    transition:background-color .15s ease, color .15s ease, transform .15s ease;
}
.article-related-link:first-of-type { padding-top:9px; }
.article-related-link:hover,
.article-related-link:focus-visible {
    background:#f5ede5;
    color:#7a4f2e;
    text-decoration:none;
    transform:translateX(2px);
    outline:none;
}
.article-related-link:hover img,
.article-related-link:focus-visible img { box-shadow:0 0 0 2px rgba(138,103,72,.18); }

/* Hide public Yandex.Metrica informer; analytics counter remains active */
img[src*="informer.yandex.ru/informer/"],
a[href*="metrika.yandex.ru/stat"][href*="from=informer"],
a:has(> img[src*="informer.yandex.ru/informer/"]),
.ym-informer,
[class*="ym-informer"] {
    display:none !important;
}

/* Hide Yandex.Metrica/Webvisor debugger opener shown to site owner; analytics remain active */
.__ymDebugger,
.__ymDebuggerOpener,
.__ymOpenerImageContainer,
.__ymHighlighter {
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
}


/* Переключатель службы доставки внутри окна выбора ПВЗ */
.delivery-modal-provider-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.delivery-modal-provider-button {
    appearance: none;
    border: 1px solid #d8d0c8;
    background: #fff;
    color: #413b36;
    border-radius: 999px;
    min-height: 38px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.delivery-modal-provider-button:hover,
.delivery-modal-provider-button:focus-visible {
    border-color: #8c7765;
    outline: none;
}
.delivery-modal-provider-button.is-active {
    background: #f4eee8;
    border-color: #6b5848;
    box-shadow: 0 0 0 1px #6b5848;
}
@media (max-width: 640px) {
    .delivery-modal-provider-switch {
        display: grid;
        grid-template-columns: 1fr;
    }
    .delivery-modal-provider-button {
        width: 100%;
        border-radius: 10px;
        text-align: left;
    }
}
