/* V212 – staging homepage only; does not style the live root page. */
body:has(.polka-home-v212) { background: #fbf8f3 !important; }
body:has(.polka-home-v212) .workarea { display:block!important; background:#fbf8f3!important; }
body:has(.polka-home-v212) .workarea>.container {width:100%;max-width:1600px;padding:0 34px;}
body:has(.polka-home-v212) .workarea>.container>.row {margin:0}
body:has(.polka-home-v212) .workarea .bx-content {float:none;width:100%;padding:0!important;}
body:has(.polka-home-v212) .sidebar {display:none!important}
.polka-home-v212 {--wine:#730d21;--text:#261c1b;--muted:#746866;--line:#e9dfd6;--paper:#fffaf6;color:var(--text);font-family:Arial,"Helvetica Neue",sans-serif;max-width:1480px;margin:0 auto;padding:32px 0 72px;font-size:16px}
.polka-home-v212 *{box-sizing:border-box}
.polka-home-v212 a{transition:color .15s ease,background .15s ease,transform .15s ease}
.polka-home-v212 .pv212-intro{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(265px,.8fr);background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;min-height:380px}
.polka-home-v212 .pv212-intro__copy{padding:48px clamp(24px,5vw,74px)}
.polka-home-v212 .pv212-kicker{font-size:11px;letter-spacing:.16em;font-weight:700;color:var(--wine);display:flex;gap:10px;align-items:center}
.polka-home-v212 .pv212-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#8d1128}
.polka-home-v212 .pv212-intro h1{font:normal clamp(38px,4.1vw,68px)/1.08 Georgia,'Times New Roman',serif;letter-spacing:-.025em;margin:24px 0 20px;color:#2a171a}
.polka-home-v212 .pv212-intro h1 em{color:var(--wine);font-weight:400}
.polka-home-v212 .pv212-intro p{max-width:620px;font-size:17px;line-height:1.65;color:#5b4d4a;margin:0 0 28px}
.polka-home-v212 .pv212-intro__actions{display:flex;gap:23px;align-items:center;flex-wrap:wrap}
.polka-home-v212 .pv212-button{display:inline-flex;align-items:center;gap:24px;justify-content:center;padding:15px 25px;border-radius:9px;background:var(--wine);color:#fff!important;text-decoration:none;font-weight:600}
.polka-home-v212 .pv212-button:hover{background:#570a19;text-decoration:none}
.polka-home-v212 .pv212-text-link{color:var(--wine);border-bottom:1px solid #c4a2a8;text-decoration:none;padding-bottom:4px}
.polka-home-v212 .pv212-intro__facts{margin-top:36px;display:flex;gap:13px 25px;flex-wrap:wrap;font-size:12px;color:#675959}
.polka-home-v212 .pv212-intro__facts span:before{content:'✓';color:var(--wine);margin-right:6px}
.polka-home-v212 .pv212-intro__note{display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,#e9d6c1 0%,#cfb293 45%,#825e4d 100%);padding:36px;color:#3b2422;position:relative;isolation:isolate}
.polka-home-v212 .pv212-intro__note:after{content:'';position:absolute;width:240px;height:240px;border:28px solid rgba(255,255,255,.16);border-radius:50%;right:-100px;bottom:-75px;z-index:-1}
.polka-home-v212 .pv212-intro__note-number{text-transform:uppercase;font-size:12px;letter-spacing:.2em}
.polka-home-v212 .pv212-intro__note-title{font:normal clamp(29px,2.6vw,43px)/1.18 Georgia,serif;max-width:330px}
.polka-home-v212 .pv212-intro__note-bottom{letter-spacing:.06em;font-size:12px}
.polka-home-v212 .pv212-slider{margin:26px 0 34px;border-radius:14px;overflow:hidden}
.polka-home-v212 .pv212-slider img{max-width:100%;height:auto}
.polka-home-v212 .pv212-section{padding:44px 0 36px;border-top:1px solid var(--line);margin:0!important;background:transparent!important}
.polka-home-v212 .polka-home-v24__heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:26px}
.polka-home-v212 .polka-home-v24__eyebrow{font-size:12px;font-weight:700;letter-spacing:.17em;text-transform:uppercase;color:var(--wine);margin-bottom:9px}
.polka-home-v212 h2{font:normal clamp(28px,3vw,42px)/1.18 Georgia,serif;margin:0;color:#321b1e;letter-spacing:-.018em}
.polka-home-v212 .polka-home-v24__all-link{color:var(--wine);text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap;padding-bottom:7px}
.polka-home-v212 .polka-home-v24__all-link:hover{text-decoration:underline}
/* Existing Bitrix product cards: keep links, prices, SKU, JS and cart behavior intact */
.polka-home-v212 .product-item{background:white;border:1px solid var(--line);border-radius:12px;padding:16px;box-shadow:none!important;min-height:100%}
.polka-home-v212 .product-item:hover{border-color:#d5bac0}
.polka-home-v212 .product-item-title,.polka-home-v212 .product-item-title a{color:#2d2120!important;line-height:1.45}
.polka-home-v212 .product-item-price-current{color:var(--wine)!important}
.polka-home-v212 .btn.btn-default,.polka-home-v212 .product-item-button-container .btn{background:var(--wine);color:white;border-color:var(--wine);border-radius:7px}
.polka-home-v212 .product-item-image-wrapper img{max-width:100%}
.polka-home-v212 .pv212-choice{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(120px,.5fr);align-items:center;gap:20px;background:#f1e8df;border:1px solid #e6d9cf;border-radius:16px;padding:46px clamp(24px,5vw,70px);margin:24px 0 36px}
.polka-home-v212 .pv212-choice p{color:#635452;line-height:1.65;max-width:710px;margin:18px 0 23px}
.polka-home-v212 .polka-home-v24__choice-actions{display:flex;gap:12px;flex-wrap:wrap}
.polka-home-v212 .polka-home-v24__button{display:inline-flex;background:var(--wine);padding:13px 19px;border-radius:8px;text-decoration:none;color:#fff!important}
.polka-home-v212 .polka-home-v24__button--ghost{background:transparent;color:var(--wine)!important;border:1px solid var(--wine)}
.polka-home-v212 .polka-home-v24__choice-mark{font:bold clamp(38px,5vw,78px)/.95 Georgia,serif;color:rgba(115,13,33,.16);text-align:center}
.polka-home-v212 .pv212-benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-top:20px}
.polka-home-v212 .pv212-benefits .polka-home-v24__benefit{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:23px 21px;min-height:123px}
.polka-home-v212 .pv212-benefits b{font-weight:600;color:#3d2026}
.polka-home-v212 .pv212-benefits span{font-size:14px;line-height:1.5;color:#746765}
@media (max-width:1000px){.polka-home-v212 .pv212-benefits{grid-template-columns:repeat(2,1fr)}.polka-home-v212 .pv212-intro{grid-template-columns:1fr 250px}}
@media (max-width:767px){body:has(.polka-home-v212) .workarea>.container{padding:0 16px}.polka-home-v212{padding:18px 0 38px}.polka-home-v212 .pv212-intro{grid-template-columns:1fr}.polka-home-v212 .pv212-intro__copy{padding:28px 24px}.polka-home-v212 .pv212-intro__note{min-height:155px;gap:22px}.polka-home-v212 .pv212-intro__note-title{font-size:26px}.polka-home-v212 .pv212-intro h1{font-size:39px}.polka-home-v212 .pv212-intro p{font-size:15px}.polka-home-v212 .pv212-intro__facts{margin-top:23px}.polka-home-v212 .pv212-section{padding:30px 0}.polka-home-v212 .polka-home-v24__heading{align-items:flex-start}.polka-home-v212 h2{font-size:29px}.polka-home-v212 .pv212-choice{grid-template-columns:1fr;padding:28px 23px}.polka-home-v212 .polka-home-v24__choice-mark{display:none}.polka-home-v212 .pv212-benefits{grid-template-columns:1fr 1fr}.polka-home-v212 .pv212-benefits .polka-home-v24__benefit{padding:16px}}
@media (max-width:460px){.polka-home-v212 .pv212-benefits{grid-template-columns:1fr}.polka-home-v212 .pv212-intro h1{font-size:34px}}

/* V214: stable V212 components + requested adjustments, scoped to /new-main/ */
.polka-home-v214{padding-top:8px}
.polka-home-v214 .pv212-slider{margin-top:0;overflow:hidden;border-radius:16px;background:#f6ede6}
/* Banner templates may render img or background, preserve original aspect ratio. */
.polka-home-v214 .pv212-slider img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain}
.polka-home-v214 .pv212-slider [style*="background-image"]{background-size:contain!important;background-position:center center!important;background-repeat:no-repeat!important}
.polka-home-v214 .pv212-section:first-of-type{border-top:0}
.polka-home-v214 .pv212-section .polka-home-v24__heading:has(>div:empty){justify-content:flex-end}
.polka-home-v214 .pv212-section .polka-home-v24__heading>div:empty{display:none}
/* Make categories more visual without changing the component template or its links. */
.polka-home-v214 .catalog-section-list-item{background:#fff;border:1px solid #e9dfd6;border-radius:16px;overflow:hidden;box-shadow:0 7px 20px rgba(75,34,37,.06);transition:box-shadow .2s ease,transform .2s ease}
.polka-home-v214 .catalog-section-list-item:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(75,34,37,.1)}
.polka-home-v214 .catalog-section-list-item-icon,.polka-home-v214 .catalog-section-list-item-image{min-height:220px;padding:16px;background:#f7efe7;display:flex;align-items:center;justify-content:center}
.polka-home-v214 .catalog-section-list-item-icon img,.polka-home-v214 .catalog-section-list-item-image img{width:100%;height:200px;object-fit:contain}
.polka-home-v214 .catalog-section-list-item-count,.polka-home-v214 .catalog-section-list-item .count,.polka-home-v214 .catalog-section-list-item small{display:none!important}
/* Compact product images without modifying price, basket or SKU JS. */
.polka-home-v214 .product-item-image-wrapper{max-height:210px;overflow:hidden}
.polka-home-v214 .product-item-image-container{max-height:210px;overflow:hidden}
.polka-home-v214 .product-item-image-wrapper img{max-width:100%;max-height:205px;object-fit:contain}
.polka-home-v214 .product-item{padding:12px;min-height:0}
.polka-home-v214 .product-item-title{line-height:1.35}
/* Compact feature strip with Font Awesome already included by the site header. */
.polka-home-v214 .pv212-benefits{gap:10px}
.polka-home-v214 .pv212-benefits .polka-home-v24__benefit{flex-direction:row;align-items:flex-start;gap:11px;min-height:0;padding:13px}
.polka-home-v214 .pv214-benefit-icon{flex:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#f8edef;color:#730d21;font-size:17px}
.polka-home-v214 .pv214-benefit-text{min-width:0;display:flex;flex-direction:column;gap:4px}
.polka-home-v214 .pv212-benefits b{font-size:14px;line-height:1.3}
.polka-home-v214 .pv212-benefits span{font-size:12px;line-height:1.35}
@media(max-width:767px){.polka-home-v214 .catalog-section-list-item-icon,.polka-home-v214 .catalog-section-list-item-image{min-height:160px}.polka-home-v214 .catalog-section-list-item-icon img,.polka-home-v214 .catalog-section-list-item-image img{height:145px}.polka-home-v214 .pv212-benefits .polka-home-v24__benefit{padding:12px}}


/* V215: selectors matched to actual Bitrix component templates supplied by the site owner. */
.polka-home-v215{padding-top:0}
.polka-home-v215 .pv212-slider{margin-top:0!important;overflow:hidden;border-radius:18px;background:#f7eee8}
.polka-home-v215 .polka-v24-banner,.polka-home-v215 .polka-v24-banner__slider,.polka-home-v215 .polka-v24-banner__item{width:100%;max-width:100%}
.polka-home-v215 .polka-v24-banner__link{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);min-height:330px;align-items:center;gap:12px;background:linear-gradient(130deg,#f3e7db,#fff9f4);text-decoration:none}
.polka-home-v215 .polka-v24-banner__content{padding:30px clamp(20px,4vw,60px);min-width:0}
.polka-home-v215 .polka-v24-banner__kicker{color:#89152d;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.polka-home-v215 .polka-v24-banner__title{font:normal clamp(29px,3.4vw,48px)/1.14 Georgia,serif;color:#321d22;margin:14px 0}
.polka-home-v215 .polka-v24-banner__text{color:#6e5b59;line-height:1.55}
.polka-home-v215 .polka-v24-banner__price{color:#7b1028;font-weight:700}
.polka-home-v215 .polka-v24-banner__cta{display:inline-block;margin-top:15px;padding:12px 18px;background:#7b1028;border-radius:8px;color:white}
.polka-home-v215 .polka-v24-banner__media{height:330px!important;min-height:0!important;display:flex!important;align-items:center;justify-content:center;padding:16px;overflow:hidden;background:transparent}
.polka-home-v215 .polka-v24-banner__media img{display:block!important;position:static!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform:none!important}
.polka-home-v215 .polka-home-v24__heading:has(+ .polka-v24-categories){align-items:center}
.polka-home-v215 .polka-home-v24__eyebrow{color:#7b1028}
.polka-home-v215 .polka-v24-categories{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 22px}
.polka-home-v215 .polka-v24-category{display:flex!important;flex-direction:column-reverse;justify-content:flex-end;background:#fff;border:1px solid #eaded4;border-radius:19px;min-width:0;overflow:hidden;text-decoration:none!important;box-shadow:0 6px 18px rgba(40,20,24,.05);transition:transform .2s,box-shadow .2s}
.polka-home-v215 .polka-v24-category:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(40,20,24,.1)}
.polka-home-v215 .polka-v24-category__picture{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:290px!important;min-height:290px!important;padding:15px!important;background:linear-gradient(180deg,#faf3ed,#f1e6dd);overflow:hidden}
.polka-home-v215 .polka-v24-category__picture img{display:block!important;width:100%!important;height:100%!important;max-height:100%!important;max-width:100%!important;object-fit:contain!important;transform:none!important}
.polka-home-v215 .polka-v24-category__text{padding:18px 22px 20px!important;display:block!important}
.polka-home-v215 .polka-v24-category__name{font-size:19px!important;line-height:1.3;color:#332327;font-weight:650}
.polka-home-v215 .polka-v24-category__count{display:none!important}
.polka-home-v215 .polka-v24-products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 25px}
.polka-home-v215 .polka-v24-product{display:flex!important;flex-direction:column;min-width:0;border:1px solid #e9ddd6;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 4px 14px rgba(48,24,26,.04)}
.polka-home-v215 .polka-v24-product__image{position:relative;display:flex!important;align-items:center;justify-content:center;height:190px!important;min-height:0!important;max-height:190px!important;padding:12px;background:#faf5f1;overflow:hidden}
.polka-home-v215 .polka-v24-product__image img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;max-width:100%!important;max-height:100%!important;transform:none!important}
.polka-home-v215 .polka-v24-product__body{padding:14px!important;display:flex;flex-direction:column;flex:1}
.polka-home-v215 .polka-v24-product__name{font-size:14px!important;line-height:1.4;min-height:40px;max-height:62px;overflow:hidden;color:#322528}
.polka-home-v215 .polka-v24-product__price-row{margin-top:auto;padding-top:10px}
.polka-home-v215 .polka-v24-product__price{color:#7b1028;font-size:20px!important}
.polka-home-v215 .polka-v24-product__button{border-radius:8px;background:#7b1028;color:#fff!important;padding:9px 12px;display:inline-block;text-align:center;text-decoration:none}
@media(max-width:1080px){.polka-home-v215 .polka-v24-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.polka-home-v215 .polka-v24-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.polka-home-v215 .polka-v24-banner__link{grid-template-columns:1fr;gap:0}.polka-home-v215 .polka-v24-banner__content{padding:24px}.polka-home-v215 .polka-v24-banner__media{height:220px!important}.polka-home-v215 .polka-v24-categories{gap:12px}.polka-home-v215 .polka-v24-category__picture{height:195px!important;min-height:195px!important}.polka-home-v215 .polka-v24-category__name{font-size:15px!important}.polka-home-v215 .polka-v24-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.polka-home-v215 .polka-v24-product__image{height:145px!important;max-height:145px!important}.polka-home-v215 .polka-v24-product__body{padding:10px!important}.polka-home-v215 .polka-v24-product__price{font-size:17px!important}}
@media(max-width:440px){.polka-home-v215 .polka-v24-categories{grid-template-columns:1fr}.polka-home-v215 .polka-v24-category__picture{height:215px!important;min-height:215px!important}}

/* V216 – deliberate compact catalogue tiles; products remain at V215 dimensions. */
.polka-home-v216 .polka-v24-categories {grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:10px!important;margin-bottom:22px!important}
.polka-home-v216 .polka-v24-category {border-radius:12px!important;box-shadow:0 3px 10px rgba(40,20,24,.045)!important}
.polka-home-v216 .polka-v24-category__picture {height:112px!important;min-height:112px!important;padding:8px!important}
.polka-home-v216 .polka-v24-category__picture img {max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.polka-home-v216 .polka-v24-category__text {padding:9px 8px 11px!important}
.polka-home-v216 .polka-v24-category__name {font-size:12px!important;line-height:1.25!important;font-weight:600!important;overflow-wrap:anywhere}
.polka-home-v216 .polka-v24-category__count {display:none!important}
/* Use the actual live homepage banner template and let its established layout drive image sizing. */
.polka-home-v216 .pv212-slider {overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important}
@media(max-width:1199px){.polka-home-v216 .polka-v24-categories{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
@media(max-width:899px){.polka-home-v216 .polka-v24-categories{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:560px){.polka-home-v216 .polka-v24-categories{grid-template-columns:repeat(2,minmax(0,1fr))!important}.polka-home-v216 .polka-v24-category__picture{height:140px!important;min-height:140px!important}.polka-home-v216 .polka-v24-category__name{font-size:13px!important}}


/* V217: increase height only for the /new-main/ original carousel.
   Its underlying banner_main/style.css forces 205px !important on multiple slides. */
@media (min-width: 768px) {
 .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many,
 .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .polka-v151-track,
 .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .polka-v151-slide,
 .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .promo-slider-list__label,
 .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .promo-slider__layout {
   height:390px!important;
   min-height:390px!important;
   max-height:390px!important;
 }
}
@media (max-width:767px) {
 .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many,
 .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .polka-v151-track,
 .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .polka-v151-slide,
 .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .promo-slider-list__label,
 .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .promo-slider__layout {
   height:280px!important;
   min-height:280px!important;
   max-height:280px!important;
 }
}
/* For hero-type images disable the old cover crop. */
.polka-home-v216 .pv212-slider .promo-slider-list__picture,
.polka-home-v216 .pv212-slider .polka-v151-slide.banner .promo-slider-list__picture {
 position:absolute!important;
 inset:0!important;
 display:block!important;
 width:100%!important;
 height:100%!important;
}
.polka-home-v216 .pv212-slider .promo-slider-list__img,
.polka-home-v216 .pv212-slider .polka-v151-slide.banner .promo-slider-list__img {
 width:100%!important;
 height:100%!important;
 min-width:0!important;
 min-height:0!important;
 max-width:100%!important;
 max-height:100%!important;
 object-fit:contain!important;
 object-position:center!important;
}

/* V218 — catalogue tiles about 30% larger than V217, product picture sizes unchanged. */
.polka-home-v216 .polka-v24-categories{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:13px!important}
.polka-home-v216 .polka-v24-category__picture{height:150px!important;min-height:150px!important;padding:10px!important}
.polka-home-v216 .polka-v24-category__text{padding:11px 10px 13px!important}
.polka-home-v216 .polka-v24-category__name{font-size:14px!important;line-height:1.32!important}
.polka-home-v216 .polka-v24-category__count{display:none!important}
/* Product option panel appears on hover; touch and keyboard users can always reach it. */
.polka-home-v216 .polka-v24-product__actions.pv218-actions{display:block!important;max-height:0;opacity:0;visibility:hidden;overflow:hidden;margin-top:0;transition:max-height .22s ease,opacity .18s ease,margin .18s ease}
.polka-home-v216 .polka-v24-product:hover .pv218-actions,
.polka-home-v216 .polka-v24-product:focus-within .pv218-actions{max-height:150px;opacity:1;visibility:visible;margin-top:10px;overflow:visible}
.polka-home-v216 .pv218-offer-label{display:block;font-size:12px;color:#67565a;margin-bottom:5px}
.polka-home-v216 .pv218-offer-select{display:block;width:100%;height:36px;margin:0 0 8px;background:#fff;color:#34262a;border:1px solid #ddcbd0;border-radius:7px;padding:5px 8px;font-size:13px}
.polka-home-v216 .pv218-buy{display:block!important;width:100%}
.polka-home-v216 .polka-v24-product__badge{display:inline-block;background:#7b1028;color:#fff;border-radius:6px;padding:5px 9px;font-size:13px;font-weight:700}
.polka-home-v216 .polka-v24-product__old-price:not(:empty){text-decoration:line-through;color:#938588;margin-left:8px;font-size:14px}
@media (hover:none), (pointer:coarse){.polka-home-v216 .polka-v24-product__actions.pv218-actions{max-height:150px;opacity:1;visibility:visible;overflow:visible;margin-top:10px}}
@media(max-width:1199px){.polka-home-v216 .polka-v24-categories{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(max-width:899px){.polka-home-v216 .polka-v24-categories{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:560px){.polka-home-v216 .polka-v24-categories{grid-template-columns:repeat(2,minmax(0,1fr))!important}.polka-home-v216 .polka-v24-category__picture{height:150px!important;min-height:150px!important}}

/* V219: allow enough room for SKU selector in card hover layer */
.polka-home-v216 .polka-v24-product:hover .pv218-actions,
.polka-home-v216 .polka-v24-product:focus-within .pv218-actions{max-height:210px!important;visibility:visible!important;opacity:1!important;overflow:visible!important}
@media(hover:none),(pointer:coarse){.polka-home-v216 .pv218-actions{max-height:210px!important;visibility:visible!important;opacity:1!important;overflow:visible!important}}

/* V220: display SKU and buy panel on hover/focus without altering the initial card dimensions. */
.polka-home-v216 .polka-v24-product{position:relative;overflow:visible}
@media(hover:hover) and (pointer:fine){
 .polka-home-v216 .polka-v24-product .pv218-actions{position:absolute;z-index:15;left:-1px;right:-1px;top:calc(100% - 1px);margin:0!important;background:#fff;border:1px solid #e9ddd6;border-top:0;padding:0 14px 14px;border-radius:0 0 16px 16px;box-shadow:0 12px 24px rgba(48,24,26,.1);max-height:0!important;opacity:0!important;visibility:hidden!important;overflow:hidden!important;transition:opacity .15s ease}
 .polka-home-v216 .polka-v24-product:hover .pv218-actions,.polka-home-v216 .polka-v24-product:focus-within .pv218-actions{padding-top:12px;max-height:280px!important;opacity:1!important;visibility:visible!important;overflow:visible!important}
 .polka-home-v216 .polka-v24-product:hover,.polka-home-v216 .polka-v24-product:focus-within{z-index:20}
}
@media(hover:none),(pointer:coarse){.polka-home-v216 .polka-v24-product .pv218-actions{max-height:none!important;opacity:1!important;visibility:visible!important;overflow:visible!important;margin-top:10px!important}}

/* V221: square SKU choices like the current homepage, no dropdown. */
.polka-home-v216 .pv221-offer-group{margin:3px 0 12px}
.polka-home-v216 .pv221-offer-title{font-size:13px;color:#554449;margin-bottom:6px}
.polka-home-v216 .pv221-offers{display:flex;flex-wrap:wrap;gap:7px}
.polka-home-v216 .pv221-swatch{cursor:pointer;width:35px;height:35px;padding:3px;border:1px solid #c8bec0;border-radius:0;background:#fff;display:inline-flex;align-items:center;justify-content:center}
.polka-home-v216 .pv221-swatch.is-selected{border:2px solid #8b0f2b;padding:2px}
.polka-home-v216 .pv221-swatch-inner{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#e6e0da;color:#6d5960;font-size:15px;line-height:1}
.polka-home-v216 .pv221-swatch:focus-visible{outline:2px solid #7b1028;outline-offset:2px}
.polka-home-v216 .polka-v24-product:hover .pv218-actions,.polka-home-v216 .polka-v24-product:focus-within .pv218-actions{max-height:310px!important}

/* V222: штатная карточка catalog.section/.default, без самописного SKU/корзины */
.polka-home-v212 .product-item { position:relative; }
.polka-home-v212 .product-item .product-item-info-container {max-width:100%;}
.polka-home-v212 .product-item .product-item-scu-item-list {display:flex;flex-wrap:wrap;gap:3px;margin:0;}
.polka-home-v212 .product-item .product-item-scu-item-color-container,
.polka-home-v212 .product-item .product-item-scu-item-text-container {padding:4px 3px;}
.polka-home-v212 .product-item .product-item-scu-item-color-block,
.polka-home-v212 .product-item .product-item-scu-item-text-block {border-radius:3px;}
.polka-home-v212 .product-item .product-item-price-current {color:#790f28!important;}
.polka-home-v212 .product-item .product-item-price-old {text-decoration:line-through;}
.polka-home-v212 .product-item .btn.btn-default {background:#790f28;border-color:#790f28;color:#fff;}


/* V223 — presentation changes only. Bitrix native SKU/cart behavior is untouched. */
.polka-home-v212 .product-item-container {position:relative;overflow:visible!important;}
.polka-home-v212 .product-item-container .product-item {overflow:visible!important;}
.polka-home-v212 .product-item-container .product-item-info-container {overflow:visible!important;}
.polka-home-v212 .product-item-container:hover,
.polka-home-v212 .product-item-container:focus-within {z-index:60!important;}
.polka-home-v212 .product-item-container:hover .product-item,
.polka-home-v212 .product-item-container:focus-within .product-item,
.polka-home-v212 .product-item:hover,
.polka-home-v212 .product-item:focus-within {position:relative;z-index:65!important;box-shadow:0 18px 42px rgba(68,25,31,.22)!important;border-color:#d5bac0!important;background:#fff!important;}
/* The expanding native shopping panel should stay clearly above neighbouring cards. */
.polka-home-v212 .product-item-container:hover .product-item-info,
.polka-home-v212 .product-item-container:focus-within .product-item-info,
.polka-home-v212 .product-item:hover .product-item-info {box-shadow:0 18px 42px rgba(68,25,31,.18)!important;background:#fff!important;border-radius:12px;}
.polka-home-v212 .product-item .product-item-price-current {font-size:25px!important;line-height:1.25!important;font-weight:700!important;color:#790f28!important;}
.polka-home-v212 .product-item .product-item-price-old {font-size:14px!important;text-decoration:line-through!important;}
.polka-home-v212 .product-item .product-item-button-container .btn,
.polka-home-v212 .product-item .btn.product-item-buy-button,
.polka-home-v212 .product-item .btn.btn-default {width:100%!important;min-height:45px!important;height:auto!important;align-items:center!important;justify-content:center!important;padding:11px 15px!important;font-size:16px!important;font-weight:600!important;line-height:1.4!important;border-radius:8px!important;background:#790f28!important;border-color:#790f28!important;color:#fff!important;}
.polka-home-v212 .product-item .product-item-button-container .btn:hover,
.polka-home-v212 .product-item .btn.btn-default:hover {background:#600c1f!important;border-color:#600c1f!important;}
/* Native Bitrix percent badge: avoid the original circle being clipped at the image edge. */
.polka-home-v212 .product-item .product-item-label-ring,
.polka-home-v212 .product-item .product-item-label-text {z-index:30!important;}
.polka-home-v212 .product-item .product-item-label-ring {top:12px!important;right:12px!important;left:auto!important;bottom:auto!important;width:auto!important;min-width:54px!important;height:auto!important;min-height:36px!important;padding:7px 10px!important;border-radius:7px!important;background:#790f28!important;color:#fff!important;font-size:16px!important;line-height:1.4!important;font-weight:700!important;transform:none!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;}
.polka-home-v212 .product-item .product-item-label-ring span {font-size:inherit!important;line-height:inherit!important;}
.polka-home-v212 .product-item .product-item-label-text span {background:#790f28!important;color:#fff!important;}
.polka-home-v212 .product-item .product-item-image-wrapper,
.polka-home-v212 .product-item .product-item-image-container {overflow:visible!important;}
@media(max-width:767px){
 .polka-home-v212 .product-item .product-item-price-current {font-size:21px!important;}
 .polka-home-v212 .product-item .product-item-label-ring {font-size:13px!important;min-width:44px!important;min-height:30px!important;padding:5px 8px!important;}
}

/* V224: centered price, native discount visibility and availability states. */
.polka-home-v212 .product-item .product-item-price-container,
.polka-home-v212 .product-item .product-item-price-current,
.polka-home-v212 .product-item .product-item-price-old,
.polka-home-v212 .product-item .product-item-price {
  text-align:center!important;
}
.polka-home-v212 .product-item .product-item-label-ring:empty,
.polka-home-v212 .product-item .product-item-label-text:empty,
.polka-home-v212 .product-item .product-item-label-ring[style*="display: none"],
.polka-home-v212 .product-item .product-item-label-ring[style*="display:none"] {display:none!important;}
/* Native bitrix availability buttons get their visibility from JS; do not force-display them. */
.polka-home-v212 .product-item .product-item-button-container .btn[style*="display:none"],
.polka-home-v212 .product-item .product-item-button-container .btn[style*="display: none"] {display:none!important;}


/* V242: image geometry only. Visibility and slide layout belong to catalog.item. */
.polka-home-v212 .product-item-container .product-item .product-item-image-wrapper {
    height:320px;
    min-height:320px;
    max-height:none;
    padding:0;
}
@media (max-width:1199px) {
    .polka-home-v212 .product-item-container .product-item .product-item-image-wrapper {height:280px;min-height:280px;}
}
@media (max-width:767px) {
    .polka-home-v212 .product-item-container .product-item .product-item-image-wrapper {height:240px;min-height:240px;}
}

/* V232: keep exactly the same card width and horizontal padding before and after Bitrix hover expansion.
   Native catalog.item makes .product-item absolute with -15px offsets and runs
   product-item-hover keyframes. Override only geometry/animation, not SKU or hidden controls. */
.polka-home-v212 .product-item-container {
    position:relative!important;
    min-width:0!important;
}
.polka-home-v212 .product-item-container > .product-item {
    box-sizing:border-box!important;
    width:100%!important;
    left:0!important;
    right:0!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:12px!important;
    padding-right:12px!important;
    transform:none!important;
}
.bx-no-touch .polka-home-v212 .product-item-container.hover > .product-item,
.bx-no-touch .polka-home-v212 .product-item-container:hover > .product-item,
.polka-home-v212 .product-item-container.hover > .product-item,
.polka-home-v212 .product-item-container:focus-within > .product-item {
    position:absolute!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding-left:12px!important;
    padding-right:12px!important;
    transform:none!important;
    -webkit-animation:none!important;
    animation:none!important;
    transition:box-shadow .16s ease,border-color .16s ease!important;
}

/* V234: temporarily hide Telegram and MAX links only while /new-main/ is rendered.
   Match URL targets rather than unrelated phone/social links. */
body:has(.polka-home-v212) a[href*="t.me/"],
body:has(.polka-home-v212) a[href*="telegram.me/"],
body:has(.polka-home-v212) a[href*="telegram.org/"],
body:has(.polka-home-v212) a[href*="max.ru/"],
body:has(.polka-home-v212) a[href*="web.max.ru/"],
body:has(.polka-home-v212) a[href^="tg://"] {display:none!important;}


/* V236: staging homepage carousel frame follows actual banner height; reduce gap to products.
   V217 forced a 390px frame, leaving a blank area under the 1300x326 banner. */
@media (min-width:768px) {
  .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many,
  .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .polka-v151-track,
  .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .polka-v151-slide,
  .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .promo-slider-list__label,
  .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .promo-slider__layout {
    height:326px!important;
    min-height:326px!important;
    max-height:326px!important;
  }
}
.polka-home-v216 .pv212-slider {
  margin-top:0!important;
  margin-bottom:8px!important;
}
.polka-home-v216 .pv212-slider + .pv212-section {
  padding-top:12px!important;
  padding-bottom:16px!important;
  border-top:0!important;
}
.polka-home-v216 .pv212-slider + .pv212-section .polka-home-v24__heading {
  margin-top:0!important;
  margin-bottom:10px!important;
}
@media(max-width:767px) {
  .polka-home-v216 .pv212-slider { margin-bottom:6px!important; }
  .polka-home-v216 .pv212-slider + .pv212-section { padding-top:8px!important; }
}

/* V237: compact controller of optional homepage sections, hidden by default. */
.polka-home-v212 #pv237-categories[hidden],
.polka-home-v212 #pv237-choice[hidden] { display:none!important; }
.polka-home-v212 .pv237-toggle-row {display:flex;justify-content:flex-end;align-items:center;margin:0 0 4px;padding:0 3px;}
.polka-home-v212 .pv237-toggle {display:inline-flex;align-items:center;gap:5px;min-width:0;min-height:24px;padding:2px 7px;border:1px solid #e7dce0;border-radius:5px;background:transparent;color:#82757a;font-size:11px;font-weight:400;line-height:1.25;cursor:pointer;opacity:.72;transition:opacity .15s ease,color .15s ease,border-color .15s ease;}
.polka-home-v212 .pv237-toggle:hover,.polka-home-v212 .pv237-toggle:focus-visible {opacity:1;color:#790f28;border-color:#b8939d;}
.polka-home-v212 .pv237-toggle-symbol {font-size:15px;line-height:1;font-weight:400;}
.polka-home-v212 .pv237-toggle[aria-expanded="true"] {color:#790f28;}
.polka-home-v212 #pv237-categories {padding-top:8px!important;padding-bottom:12px!important;border-top:0!important;}
.polka-home-v212 #pv237-categories .polka-home-v24__heading {margin-top:0!important;}
@media(max-width:767px){.polka-home-v212 .pv237-toggle-row{margin-bottom:3px;}}

/* V238: the optional bottom choice section has its own discreet toggle. */
.polka-home-v212 .pv238-choice-toggle-row {margin-top:10px!important;margin-bottom:5px!important;}
.polka-home-v212 .pv238-choice-toggle-row .pv237-toggle {font-size:11px!important;}


/* V243: live homepage mobile banner viewport follows the banner image ratio.
   Both portrait and landscape phone orientations use the same fluid geometry.
   Previous rules force 280px tall slides on screens <= 767px. */
@media (max-width: 767px) {
  .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many {
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:1300 / 326;
  }
  .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .polka-v151-track,
  .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .polka-v151-slide,
  .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .promo-slider-list__label,
  .polka-home-v216 .pv212-slider .polka-v151-viewport.polka-main-carousel_has-many .promo-slider__layout {
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
  }
}
