/* ---------- La Calce del Brenta: fixes + responsive ---------- */

img { max-width: 100%; height: auto; }

/* Forms */
.lc-form p { padding-bottom: 15px; }
.lc-form label { display: block; font-size: 14px; color: #666; padding-bottom: 5px; }
.lc-form input[type=text],
.lc-form input[type=email],
.lc-form textarea {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 3px;
    padding: 8px 12px;
    font-size: 15px;
    color: #333;
    background: #fff;
}
.lc-form input[type=submit],
.lc-form .submit {
    cursor: pointer;
    background-color: #eee;
    border: none;
    border-bottom: 1px solid #333;
    border-radius: 3px;
    padding: 6px 20px;
    font-size: 15px;
    color: #333;
}
.lc-form input[type=submit]:hover { background-color: #ddd; }
.lc-form-sent { padding: 5px 0 25px; }
.lc-form-sent p { color: #2e7d32; font-size: 16px; }

/* Fixed image boxes (same as the old site) */
.pos-item .left-part .img img {
    width: 165px;
    height: 130px;
    object-fit: cover;
    display: block;
}
.squares .var-img .for-fancy img {
    width: 250px;
    height: 185px;
    object-fit: cover;
    display: block;
}
.gallery-item .big-img img {
    width: 445px;
    height: 355px;
    object-fit: cover;
    display: block;
}
.gallery-item .sm-img img {
    width: 130px;
    height: 100px;
    object-fit: cover;
    display: block;
}
.gallery-item .sm-img a { display: block; cursor: zoom-in; }
.gallery-item .txt {
    width: 100%;
    float: none;
    padding: 15px 0 0;
}
.gallery-item .txt .zag,
.gallery-item .txt .zag a {
    color: #a00202 !important;
}
.gallery-item .txt .zag a:hover { text-decoration: underline; }

/* Gallery lightbox */
.lc-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}
.lc-lightbox.is-open { display: flex; }
.lc-lightbox img {
    width: 94vw;
    height: 90vh;
    max-width: 94vw;
    max-height: 90vh;
    object-fit: contain;
}
.lc-lightbox.is-sample img {
    width: auto;
    height: auto;
    max-width: min(640px, 90vw);
    max-height: 75vh;
    object-fit: contain;
}

.lc-lb-btn {
    position: absolute;
    z-index: 2;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    line-height: 46px;
    text-align: center;
    font-size: 26px;
    user-select: none;
    text-decoration: none;
}
.lc-lb-btn:hover { background: rgba(0, 0, 0, 0.75); }
.lc-lb-close { top: 18px; right: 18px; }
.lc-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lc-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lc-lb-counter {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
}
body.lc-lb-active { overflow: hidden; }

/* Product page (old modal layout) */
.podboroda { padding: 0 0 20px; display: block; }
.podboroda .main-image { width: 456px; height: 470px; overflow: hidden; }
.podboroda .main-image img { width: 456px; height: 470px; object-fit: cover; display: block; cursor: zoom-in; }
.podboroda .cubes { width: 430px; }
.podboroda .lc-product-left { width: 456px; }
.podboroda .lc-file-link { padding-top: 15px; text-align: center; }
.podboroda .lc-file-link a { margin-left: 0; }
.podboroda .color-picker { margin-bottom: 10px; }
.podboroda .cube img { width: 74px; height: 74px; object-fit: cover; display: block; }
.podboroda .cube.active { outline: 2px solid #a00202; outline-offset: 2px; }
.podboroda .entry-content { font-size: 14px; }
.lc-product-rubric { padding-bottom: 10px; }
.lc-product-rubric a { color: #a00202; text-decoration: none; }
.lc-product-rubric a:hover { text-decoration: underline; }

/* Legacy content tables (company page): images should touch cell edges */
.base .entry-content table { border-collapse: collapse; }
.base .entry-content table td { vertical-align: top; }
.base .entry-content table img { max-width: none; display: block; }

/* Product grid: equal-height cards, "Описание" pinned to the bottom */
.positions {
    display: flex;
    flex-wrap: wrap;
    margin-left: -28px;
}
.positions .pos-item {
    display: flex;
    float: none;
    width: 440px;
    margin-left: 28px;
}
.positions .pos-item > .cl {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.positions .pos-item > .cl:after { display: none; }
.positions .pos-item .txt {
    display: flex;
    flex-direction: column;
}
.positions .pos-item .txt .buy { margin-top: auto; }

/* Back arrow in breadcrumbs */
.breadcrumbs .wrap { position: relative; }
.breadcrumbs .lc-back {
    float: right;
    font-size: 26px;
    line-height: 52px;
    color: #666;
    text-decoration: none;
    padding: 0 4px;
}
.breadcrumbs .lc-back:hover { color: #a00202; }

/* Catalog-style top logo */
.lc-logo-text {
    display: block;
    width: 100%;
    margin: 0;
    padding: 85px 0 55px;
    text-align: center;
    font-family: 'brandserif';
    font-size: 88px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
    color: #a00202 !important;
    text-decoration: none !important;
}
.lc-logo-text sup {
    font-size: 0.35em;
    letter-spacing: 0.06em;
    vertical-align: super;
}
@media (max-width: 820px) {
    .lc-logo-text { font-size: 30px; padding: 12px 0 8px; }
}

/* Catalog-style footer brand */
#footer .lc-bot-brand {
    display: inline-block;
    float: left;
    margin-right: 20px;
    font-family: 'brandserif';
    font-size: 28px;
    line-height: 1;
    letter-spacing: 1px;
    color: #a00202 !important;
    text-decoration: none !important;
    white-space: nowrap;
}
#footer .lc-bot-brand sup {
    font-size: 0.45em;
    letter-spacing: 0.05em;
    vertical-align: super;
}
@media (max-width: 820px) {
    #footer .lc-bot-brand { float: none !important; display: block; margin: 0 auto 15px; text-align: center; font-size: 22px; }
}

/* Rubric submenu: fit all items and wrap if needed */
.add-menu {
    height: auto;
    line-height: normal;
    padding: 8px 0;
}
.add-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}
.add-menu ul li { float: none; }
.add-menu ul li a {
    padding: 5px 11px;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 1.5;
    border-left: none !important;
    border-right: none !important;
}

/* Material names in captions and cards — catalog serif */
.pos-item .txt h4,
.pos-item .txt h4 a,
.gallery-item .txt .zag,
.squares .var-img .txt,
body.single-product #box h1,
.add-menu ul li a {
    font-family: 'brandserif' !important;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Catalog-style brand label in section headers */
.squares .h3.lc-h3 { position: relative; margin-bottom: 35px; }
.squares .h3 .lc-brand-label {
    display: block;
    font-family: 'brandserif';
    font-size: 22px;
    letter-spacing: 0.01em;
    color: #a00202;
    padding-bottom: 14px;
}
.squares .h3 .lc-brand-label sup {
    font-size: 0.55em;
    letter-spacing: 0.04em;
    vertical-align: super;
}
.squares .h3 h3 {
    font-family: 'brandserif';
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 36px;
    padding-left: 0;
    padding-bottom: 12px;
    margin: 0;
}

/* Squares */
.squares-more { padding-top: 10px; }
.squares-link {
    display: inline-block;
    color: #666;
    padding: 5px 14px;
    border-radius: 3px;
    background: #eee;
    border-bottom: 1px solid #333;
    font-size: 14px;
    text-decoration: none;
}
.squares-link:hover { background: #ddd; }

/* Product single */
.lc-product-image { width: 456px; max-width: 100%; margin-bottom: 25px; }
.lc-product-image .for-fancy { width: 100%; height: auto; max-height: 470px; }
.lc-product-image .for-fancy img { max-width: 100%; }
.lc-product-text { width: 430px; max-width: 100%; }
.lc-product-rubric a { color: #a00202; text-decoration: none; }
.lc-product-rubric a:hover { text-decoration: underline; }

/* Pagination */
.lc-pagination { padding: 25px 0; text-align: center; }
.lc-pagination .page-numbers {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 2px;
    border-radius: 3px;
    background: #eee;
    color: #666;
    text-decoration: none;
}
.lc-pagination .page-numbers.current { background: #a00202; color: #fff; }

/* Posts */
.lc-post { padding-bottom: 20px; }
.lc-post h4 { padding-bottom: 5px; }
.lc-post h4 a { color: #a00202; text-decoration: none; }
.lc-post-date { font-size: 13px; color: #999; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .wrap { width: auto; max-width: 970px; padding-left: 15px; padding-right: 15px; box-sizing: border-box; }
    .inner-wrap { padding: 20px 0; }
    .squares .ann { width: auto; max-width: 60%; }
    .loyalty .round { width: 28%; height: 0; padding-bottom: 28%; }
    .loyalty .above { width: 30%; margin-left: 3%; padding: 0 5px; box-sizing: border-box; }
    .loyalty .above:first-child { margin-left: 0; }
}

@media (max-width: 820px) {
    #header .top { height: auto; padding: 6px 0; line-height: 1.4; }
    .s-l-p { text-align: center; }
    .s-l-p .search { float: none !important; display: inline-block; vertical-align: middle; }
    .s-l-p .adr { float: none !important; display: block; width: 100%; text-align: center; margin-top: 8px; }
    .s-l-p .logo { width: auto; max-width: 100%; margin-top: 10px; }
    .s-l-p .logo img { max-width: 100%; height: auto; }

    .menu { padding: 10px 0; }
    .menu ul { display: block; }
    .menu ul li { display: block; border-left: none; border-top: 1px solid #eee; padding: 6px 0; }
    .menu ul li:first-child { border-top: none; }

    .statica ul li { width: 100%; display: block; border-left: none; border-top: 1px solid #eee; padding: 8px 0; }
    .statica ul li:first-child { border-top: none; }

    #top-slider, #top-slider .item { height: 300px; }
    #top-slider .item h2 { font-size: 46px; line-height: 46px; padding: 25px 0 15px; }
    #top-slider .item .ann { font-size: 20px; }
    .sl-wrap h2 { font-size: 32px; }

    .loyalty .round { display: none; }
    .loyalty .above { width: 100%; margin: 0 0 20px; padding: 0; }

    .squares .h3 h3 { padding-left: 0; }
    .squares .h3 img { position: static; padding: 0 0 10px; }
    .squares .ann { max-width: 100%; width: 100%; }
    .squares .top-sq .var-img { float: none !important; margin-top: 20px; }

    .pos-item { width: 100%; margin-left: 0; clear: both; }
    .positions { display: block; margin-left: 0; }
    .positions .pos-item { display: block; width: 100%; margin-left: 0; }
    .positions .pos-item > .cl { display: block; }
    .positions .pos-item > .cl:after { display: block; }
    .positions .pos-item .txt { display: block; }
    .pos-item .left-part, .pos-item .txt { width: 100%; float: none !important; }
    .pos-item .left-part .img { width: 100%; height: auto; max-height: 260px; }
    .pos-item .left-part .img img { width: 100%; height: auto; }

    .gallery-item { width: 100%; float: none; clear: both; margin-bottom: 35px; display: flex; flex-direction: column; }
    .gallery-item .big-img { width: 100%; height: auto; order: 2; }
    .gallery-item .big-img img { width: 100%; height: auto; }
    .gallery-item .sm-img { width: 100%; height: auto; margin: 0 0 15px; float: none; }
    .gallery-item .sm-img img { width: 100%; height: auto; }
    .gallery-item .txt { width: 100%; float: none; padding-right: 0; display: contents; }
    .gallery-item .txt .zag { order: 1; }
    .gallery-item .txt .desc { order: 3; color: #666; font-size: 14px; margin-top: 10px; }

    .squares .var-img { width: 100%; max-width: 250px; }
    .squares .var-img .for-fancy img { width: 100%; height: auto; }

    .lc-product-image, .lc-product-text { width: 100%; float: none !important; }
    .podboroda .lc-product-left { width: 100% !important; float: none !important; }
    .podboroda .main-image { width: 100% !important; max-width: 320px; height: auto !important; margin: 0 auto; }
    .podboroda .main-image img { width: 100% !important; height: auto !important; }
    .podboroda .cubes { width: 100%; float: none !important; }
    .podboroda .color-picker { text-align: center; margin-top: 22px; }
    .podboroda .cubes .cube { float: none !important; display: inline-block; vertical-align: top; margin: 0 6px 12px; }

    .base .entry-content table { width: 100% !important; }
    .base .entry-content table tr,
    .base .entry-content table td { display: block; width: 100% !important; }
    .base .entry-content table tr { display: flex !important; flex-direction: column; }
    .base .entry-content table tr:nth-child(even) { flex-direction: column-reverse; }
    .base .entry-content table td { margin-bottom: 14px; }
    .base .entry-content table img { max-width: 100%; width: 100% !important; height: auto !important; float: none !important; }

    #footer .bot-menu ul { width: 48%; margin: 0 1% 20px; box-sizing: border-box; }
    #footer .top { text-align: center; }
    #footer .bot-logo, #footer .who, #footer .bot-phone { float: none !important; display: block; margin: 0 auto 15px; text-align: center; }
    #footer .bot-phone .phone { color: #a00202 !important; }
    #footer .bot-logo img { display: inline-block; }
    #footer .copy span { float: none !important; text-align: center; margin: 0 auto 8px; }
    #footer .copy span.center { width: auto; }

    .breadcrumbs .lc-back { float: none; display: inline-block; margin: 6px 0; }
}

@media (max-width: 520px) {
    #top-slider, #top-slider .item { height: 240px; }
    #top-slider .item h2 { font-size: 32px; line-height: 34px; padding: 20px 0 10px; }
    #top-slider .item .ann { font-size: 16px; }
    #footer .bot-menu ul { width: 100%; margin-left: 0; }
}

/* ---------- Photo numbering (samples & interiors) ---------- */
.lc-pnum {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 6;
    min-width: 24px;
    padding: 2px 7px;
    background: rgba(160, 0, 32, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 3px;
    color: #fff !important;
    font: 700 13px/1.25 Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.pos-item .left-part .img,
.pos-item .left-part .img a,
.squares .var-img .for-fancy,
.gallery-item .big-img a,
.podboroda .main-image a,
.podboroda .cube { position: relative; display: block; }

.squares .var-img .lc-pnum { top: 10px; left: 10px; font-size: 18px; padding: 3px 9px; }
.gallery-item .big-img .lc-pnum { top: 10px; left: 10px; font-size: 18px; padding: 3px 9px; }
.podboroda .main-image .lc-pnum { top: 10px; left: 10px; font-size: 20px; padding: 3px 10px; }
.podboroda .cube .lc-pnum { top: 2px; left: 2px; min-width: 0; padding: 1px 4px; font-size: 10px; border-width: 0; }
.pos-item .left-part .img .lc-pnum { font-size: 11px; padding: 1px 5px; top: 4px; left: 4px; }

/* Lightbox photo number */
.lc-lb-num {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 6px 14px;
    background: rgba(160, 0, 32, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    color: #fff;
    font: 700 18px/1.2 Arial, Helvetica, sans-serif;
}

/* Photo review page (/?lc_photos=1) */
.lc-pi-intro { max-width: 780px; padding: 2px 0 18px; color: #444; }
.lc-pi-intro p { padding-bottom: 8px; font-size: 15px; line-height: 1.5; }
.lc-pi-group { padding: 24px 0 8px; border-top: 1px solid #e2ded7; }
.lc-pi-group h4 {
    font-family: 'brandserif';
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #a00202;
    padding-bottom: 16px;
}
.lc-pi-group h4 small {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #9a9a9a;
    padding-left: 8px;
}
.lc-pi-group h4 em {
    float: right;
    font: normal 12px Arial, Helvetica, sans-serif;
    color: #8a8a8a;
    letter-spacing: 0;
}
.lc-pi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 22px 18px;
}
.lc-pi-item { margin: 0; }
.lc-pi-item a { position: relative; display: block; cursor: zoom-in; }
.lc-pi-item img { width: 100%; height: 130px; object-fit: cover; display: block; }
.lc-pi-item figcaption { padding-top: 7px; font: 12px/1.45 Arial, Helvetica, sans-serif; color: #555; }
.lc-pi-item figcaption b { color: #a00202; font-size: 14px; }
.lc-pi-item figcaption span { display: block; color: #8a8a8a; }
.lc-pi-item .lc-pnum-lg { font-size: 17px; padding: 3px 9px; top: 8px; left: 8px; }

@media (max-width: 620px) {
    .lc-pi-grid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 16px 12px; }
    .lc-pi-item img { height: 105px; }
}

/* Content links use the brand dark red (was green) */
.base a,
.pos-item .left-part .tool a {
    color: #a00202;
}

/* Tools: all sections stay open; submenu jumps to the needed one */
html { scroll-behavior: smooth; }
.squares[id^="rubric-"] { scroll-margin-top: 16px; }

/* Zoom icon must stay small (it inherited the big image size) */
.squares .var-img .for-fancy .zoom,
.squares .var-img .for-fancy .zoom img,
.base .for-fancy .zoom,
.base .for-fancy .zoom img,
.gallery-item .zoom,
.gallery-item .zoom img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
}

/* Gallery page: top menu stays fixed while scrolling */
.lc-menu-placeholder { display: none; }
#header .menu.lc-menu-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9990;
    padding: 12px 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}
#header .menu.lc-menu-fixed ul { width: 100%; max-width: 970px; margin: 0 auto; }
#header .menu.lc-menu-fixed ul li a { font-size: 15px; }
@media (max-width: 1000px) {
    #header .menu.lc-menu-fixed ul { max-width: 94%; }
    #header .menu.lc-menu-fixed ul li a { font-size: 13px; }
}

/* Rubric submenu stays under the fixed main menu */
#header .add-menu.lc-sub-fixed {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9989;
    margin: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
#header .add-menu.lc-sub-fixed .wrap { width: 100%; }

/* No height animation while the menu is fixed (keeps the gray bar glued to it) */
#header .menu.lc-menu-fixed { transition: none !important; }

/* Fire slide: red caption is unreadable — use black */
#top-slider .item.lc-slide-fire .ann {
    color: #000 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.45);
}

/* "Back to home" next to the back arrow */
.breadcrumbs .lc-crumb-actions {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}
.breadcrumbs .lc-home {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #bbb;
    line-height: 1.35;
}
.breadcrumbs .lc-home:hover { color: #a00202; border-bottom-color: #a00202; }
.breadcrumbs .lc-crumb-actions .lc-back { float: none; line-height: 1; }
@media (max-width: 820px) {
    .breadcrumbs .lc-crumb-actions { position: static; justify-content: flex-end; padding: 6px 0 2px; }
}

/* Floating "back to top" button */
.lc-to-top {
    position: fixed;
    right: 26px;
    bottom: 28px;
    z-index: 9995;
    width: 48px;
    height: 48px;
    line-height: 44px;
    text-align: center;
    font-size: 24px;
    color: #a00202;
    background: #fff;
    border: 1px solid #d8d3cb;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.lc-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.lc-to-top:hover { background: #a00202; color: #fff; border-color: #a00202; }
@media (max-width: 620px) {
    .lc-to-top { right: 14px; bottom: 16px; width: 42px; height: 42px; line-height: 38px; font-size: 20px; }
}

/* Prominent "back to top" pill */
.lc-to-top {
    width: auto !important;
    height: 44px !important;
    padding: 0 20px !important;
    line-height: 44px !important;
    font: 14px/44px Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.02em;
    color: #fff !important;
    background: #a00202 !important;
    border: none !important;
    border-radius: 22px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
    white-space: nowrap;
}
.lc-to-top:hover { background: #7d011a !important; color: #fff !important; }
@media (max-width: 620px) {
    .lc-to-top { height: 40px !important; line-height: 40px !important; font-size: 13px !important; padding: 0 15px !important; }
}

/* Back to top: bottom centre, closer to the content column */
.lc-to-top {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(8px) !important;
}
.lc-to-top.is-visible {
    transform: translateX(-50%) translateY(0) !important;
}

/* Back to top: quiet side tab, vertically centred */
.lc-to-top {
    left: auto !important;
    right: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    height: 40px !important;
    line-height: 38px !important;
    padding: 0 16px 0 18px !important;
    font-size: 13px !important;
    border-radius: 20px 0 0 20px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #8a6a6f !important;
    border: 1px solid #ddd6ce !important;
    border-right: none !important;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.10) !important;
    transform: translateY(-50%) translateX(100%) !important;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s, background 0.2s, color 0.2s !important;
}
.lc-to-top.is-visible { transform: translateY(-50%) translateX(0) !important; }
.lc-to-top:hover { background: #a00202 !important; color: #fff !important; }
@media (max-width: 620px) {
    .lc-to-top { height: 36px !important; line-height: 34px !important; font-size: 12px !important; padding: 0 12px 0 14px !important; }
}

/* Back to top: a bit brighter */
.lc-to-top {
    background: #fff !important;
    color: #a00202 !important;
    border-color: #cfc5b9 !important;
    box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.14) !important;
}

/* Tool name in cards: one line, no wrapping */
.pos-item .left-part .tool {
    width: 430px;
    max-width: 430px;
}
.pos-item .left-part .tool a {
    white-space: nowrap;
}

/* Round arrow on product-card samples: hints that samples + description are inside */
.pos-item .left-part .img a { position: relative; display: block; }
.pos-item .left-part .img a::after {
    content: '→';
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 26px;
    height: 26px;
    font: 16px/24px Arial, Helvetica, sans-serif;
    text-align: center;
    color: #a00202;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(160, 2, 2, 0.35);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    transition: background 0.2s ease, color 0.2s ease;
    pointer-events: none;
}
.pos-item .left-part .img a:hover::after { background: #a00202; color: #fff; }

/* Replace round arrow with a clear caption under the sample */
.pos-item .left-part .img a::after { content: none !important; }
.pos-item .left-part .img .lc-more {
    display: block;
    padding-top: 7px;
    font: 11px/1.3 Arial, Helvetica, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a00202;
    text-decoration: none;
}
.pos-item .left-part .img .lc-more:hover { text-decoration: underline; }

/* Caption under the sample (outside the cropped image box) */
.pos-item .left-part > .lc-more {
    display: block;
    width: 165px;
    padding: 7px 0 2px;
    font: 11px/1.3 Arial, Helvetica, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a00202;
    text-decoration: none;
}
.pos-item .left-part > .lc-more:hover { text-decoration: underline; }

/* Original-style zoom circle on the card sample */
.pos-item .left-part .img .zoom {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 26px;
    height: 26px;
    display: block;
    opacity: 0.55;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.pos-item .left-part .img .zoom img {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    display: block;
}
.pos-item .left-part .img a:hover .zoom { opacity: 1; }

/* Caption under samples removed */
.pos-item .left-part .lc-more,
.pos-item .left-part > .lc-more { display: none !important; }

/* Original-style colour wheel on card samples */
.pos-item .left-part .img .zoom { display: none !important; }
.pos-item .left-part .img .color-select {
    position: absolute;
    right: 9px;
    bottom: 9px;
    width: 28px;
    height: 28px;
    display: block;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.pos-item .left-part .img .color-select img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    display: block;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}
.pos-item .left-part .img a:hover .color-select { opacity: 1; transform: scale(1.08); }

/* "В интерьере" image +30% on desktop */
@media (min-width: 821px) {
    .squares .var-img { width: 325px; }
    .squares .var-img .for-fancy { width: 325px; height: 240px; }
    .squares .var-img .for-fancy img {
        width: 325px;
        height: 240px;
        max-width: 325px;
        object-fit: cover;
    }
}

/* "В интерьере" image a bit larger again */
@media (min-width: 821px) {
    .squares .var-img { width: 360px; }
    .squares .var-img .for-fancy { width: 360px; height: 266px; }
    .squares .var-img .for-fancy img {
        width: 360px;
        height: 266px;
        max-width: 360px;
    }
}

/* "В интерьере" — slightly smaller than the last step */
@media (min-width: 821px) {
    .squares .var-img { width: 345px; }
    .squares .var-img .for-fancy { width: 345px; height: 255px; }
    .squares .var-img .for-fancy img {
        width: 345px;
        height: 255px;
        max-width: 345px;
    }
}

/* "… в интерьере" caption is a link too */
.squares .var-img .txt a {
    color: inherit;
    text-decoration: none;
}
.squares .var-img .txt a:hover { text-decoration: underline; }

/* ---------- Mobile version ---------- */
.lc-burger { display: none; }

@media (max-width: 820px) {
    /* burger + full-screen menu */
    .lc-burger {
        display: block;
        position: fixed;
        right: 12px;
        top: 54px;
        width: 42px;
        height: 38px;
        z-index: 10001;
        padding: 6px 8px;
        box-sizing: border-box;
    }
    .lc-burger span {
        display: block;
        height: 3px;
        margin: 5px 0;
        background: #a00202;
        border-radius: 2px;
    }
    body.lc-menu-open { overflow: hidden; }
    #header .menu { display: none; }
    body.lc-menu-open #header .menu {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: #fff;
        padding: 78px 22px 30px;
        overflow: auto;
        border: 0;
    }
    body.lc-menu-open #header .menu ul { display: block; width: 100%; }
    body.lc-menu-open #header .menu ul li {
        display: block;
        width: 100%;
        border: 0;
        border-bottom: 1px solid #eee;
        padding: 12px 0;
        text-align: center;
    }
    body.lc-menu-open #header .menu ul li a { font-size: 18px; line-height: 1.3; }

    /* no sticky top menu on mobile (rubric submenu stays sticky) */
    #header .menu.lc-menu-fixed { position: static !important; box-shadow: none !important; }
    #header .add-menu.lc-sub-fixed {
        position: fixed !important;
        top: 0 !important;
        z-index: 9990;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
    }

    /* tool block must not overflow */
    .pos-item .left-part .tool { width: 100% !important; max-width: 100% !important; }
    .pos-item .left-part .tool a { white-space: normal; }

    /* logo a bit smaller */
    .lc-logo-text { font-size: 40px !important; }
    .lc-logo-text sup { font-size: 0.4em !important; }
}

@media (max-width: 620px) {
    .lc-logo-text { font-size: 32px !important; }
    .lc-burger { top: 50px; }

    #top-slider, #top-slider .item { height: 320px; }
    #top-slider .item h2 { font-size: 30px; line-height: 33px; padding: 26px 0 8px; }
    #top-slider .item .ann { font-size: 14px; line-height: 1.35; }

    /* hide back-to-top tab on phones */
    .lc-to-top { display: none !important; }
}

/* Home: pinned plaster names menu (mobile only) */
.lc-home-add-menu { display: none; }

@media (max-width: 820px) {
    .lc-home-add-menu {
        display: block;
        position: sticky;
        top: 0;
        z-index: 9985;
        padding-right: 56px;
        box-sizing: border-box;
    }
    .lc-home-add-menu .wrap { width: 100%; }
    .squares[id^="rubric-"] { scroll-margin-top: 155px; }
}

/* Burger button on mobile */
@media (max-width: 820px) {
    .lc-burger {
        top: 8px !important;
        right: 10px !important;
        width: 44px;
        height: 42px;
        padding: 10px;
        background: #fff;
        border: 1px solid #e7e7e7;
        border-radius: 6px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
        box-sizing: border-box;
    }
    .lc-burger span {
        height: 3px;
        margin: 4px 0;
        background: #a00202;
    }
}

/* Burger stays visible above the open menu */
body.lc-menu-open .lc-burger {
    position: fixed !important;
    top: 10px !important;
    right: 12px !important;
    z-index: 10002 !important;
    background: #fff;
    border-radius: 4px;
}
body.lc-menu-open .lc-burger span { background: #a00202 !important; }

@media (max-width: 620px) {
    #top-slider .item h2 { padding-bottom: 14px; }
    #top-slider .item .ann { margin-top: 4px; }
}

/* Mobile: bigger interior photo, smaller sample thumbnails */
@media (max-width: 620px) {
    .squares .var-img { width: 100% !important; max-width: 100% !important; }
    .squares .var-img .for-fancy {
        width: 100% !important;
        height: 230px !important;
        max-width: 100% !important;
    }
    .squares .var-img .for-fancy img {
        width: 100% !important;
        height: 230px !important;
        max-width: 100% !important;
        object-fit: cover;
    }
    .positions .pos-item > .cl { display: flex !important; flex-direction: column; }
    .pos-item .left-part { display: contents !important; }
    .positions .pos-item .txt { display: contents !important; }
    .pos-item .txt h4 { order: 1; padding-bottom: 8px; }
    .pos-item .left-part .img {
        order: 2;
        width: 248px !important;
        height: 195px !important;
        max-height: none !important;
        overflow: hidden;
        margin: 0 0 12px;
    }
    .pos-item .left-part .img img {
        width: 248px !important;
        height: 195px !important;
        object-fit: cover;
    }
    .pos-item .txt .lorem { order: 4; margin-top: 10px; }
    .pos-item .left-part .tool { order: 3; width: 100% !important; margin-top: 0; }
}
