/* V14: RU legacy pages mobile overflow fix and language selector */
html,body{overflow-x:clip}
.header .ref-header{position:relative;padding-top:max(26px,1.2vw)!important;min-width:0}
.header .ref-header>*{min-width:0}
.header .ref-header .lang-switcher{position:absolute;right:10px;top:0;z-index:60;align-self:start;grid-column:auto;grid-row:auto}
.header .ref-header .lang-switcher details{position:relative}
.header .ref-header .lang-switcher summary{display:flex;gap:6px;align-items:center;justify-content:center;border-radius:8px;border:1px solid #5a6782;background:#1a2a43;padding:6px 10px;min-width:80px;cursor:pointer;color:#fff;font-size:11px;line-height:1.3;list-style:none}
.header .ref-header .lang-switcher summary::-webkit-details-marker{display:none}
.header .ref-header .lang-options{position:absolute;right:0;top:calc(100% + 5px);min-width:130px;display:grid;gap:2px;padding:6px;background:#fff;border:1px solid #dbe2ee;border-radius:11px;box-shadow:0 10px 24px #07102355}
.header .ref-header .lang-options a{padding:8px 11px;color:#12233a;border-radius:7px;font-size:12px;white-space:nowrap;text-decoration:none}
.header .ref-header .lang-options a:hover,.header .ref-header .lang-options a[aria-current]{background:#ffeaf0;color:#dd193f}
.ref-hero .hero-card,.ref-hero .hero-text,.ref-hero .hero-art{min-width:0;max-width:100%}
.ref-hero .hero-text h1{max-width:100%;word-break:normal;hyphens:auto;overflow-wrap:anywhere;line-height:1.1}
.ref-hero .hero-text h1 em{max-width:100%;overflow-wrap:anywhere;hyphens:auto}
.ref-hero .hero-mini-features{flex-wrap:wrap;min-width:0;max-width:100%}
.ref-hero .hero-mini-features span{max-width:100%;min-width:0;white-space:normal}
@media(max-width:850px){.header .ref-header{padding-top:39px!important}}
@media(max-width:600px){
 .header .ref-header{padding-top:38px!important;grid-template-columns:minmax(0,1fr) auto!important}
 .header .ref-header .lang-switcher{top:1px;right:7px}
 .ref-hero .hero-card{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
 .ref-hero .hero-text{width:100%;padding:24px 18px 4px!important;min-width:0!important;max-width:100%!important}
 .ref-hero .hero-text h1{font-size:clamp(25px,7.3vw,33px)!important;letter-spacing:-.6px!important;line-height:1.14!important;margin:15px 0 11px!important;overflow-wrap:anywhere!important;hyphens:auto!important}
 .ref-hero .hero-text h1 em{font-size:inherit!important;word-break:normal!important;overflow-wrap:anywhere!important;hyphens:auto!important;display:inline!important}
 .ref-hero .hero-text p{font-size:12px!important;line-height:1.55!important;max-width:100%!important;margin-bottom:10px!important}
 .ref-hero .hero-mini-features{display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin-bottom:11px!important;width:100%!important}
 .ref-hero .hero-mini-features span{display:inline-flex!important;flex:0 1 auto!important;max-width:100%!important;min-width:0!important}
 .ref-hero .hero-mini-features span b{font-size:9px!important;white-space:normal!important}
 .ref-hero .hero-red-cta{max-width:100%!important;white-space:normal!important}
 .ref-hero .hero-art{height:210px!important;min-height:0!important;max-height:220px!important;width:100%!important;flex-shrink:0}
 .ref-hero .hero-art img{position:absolute!important;bottom:0!important;right:0!important;width:100%!important;max-width:100%!important;height:210px!important;object-fit:contain!important;object-position:center bottom!important}
 .ref-hero .hero-side{max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:hidden}
}
@media(max-width:375px){.ref-hero .hero-text h1{font-size:25px!important}.ref-hero .hero-text{padding-inline:15px!important}}

/* V16 — Russian header: language menu in the TOPMOST dark strip at right. */
.topband{position:relative!important;z-index:90!important;overflow:visible!important}
.topband>.container{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:clamp(7px,1.2vw,19px)!important;min-height:40px!important;height:auto!important;overflow:visible!important}
.topband .top-market{margin-inline-start:auto!important;white-space:nowrap!important}
.topband .container:not(.top-information) .lang-switcher{margin-inline-start:auto!important}
.topband .lang-switcher{position:relative!important;top:auto!important;right:auto!important;left:auto!important;z-index:200!important;flex-shrink:0!important;white-space:nowrap!important;margin-inline-start:8px!important;color:#fff!important;direction:ltr!important;font-size:12px!important}
.topband .lang-switcher details{position:relative}
.topband .lang-switcher summary{display:flex!important;align-items:center;justify-content:center;gap:6px;min-width:86px;min-height:30px;padding:6px 10px!important;list-style:none;border:1px solid #526781;border-radius:9px;background:#172940;color:#fff;font-size:12px;line-height:1.1;cursor:pointer;white-space:nowrap}
.topband .lang-switcher summary::-webkit-details-marker{display:none}
.topband .lang-switcher summary span{display:inline!important}
.topband .lang-switcher summary:hover,.topband .lang-switcher summary:focus-visible{border-color:#b0bfd5;background:#243c59;color:#fff;outline-offset:2px}
.topband .lang-switcher .lang-options{position:absolute;top:calc(100% + 5px);right:0;left:auto;display:grid;gap:2px;min-width:160px;background:#fff;border:1px solid #dae4ef;border-radius:12px;padding:6px;box-shadow:0 14px 28px #09182b44;z-index:2000}
.topband .lang-switcher .lang-options a{display:block;padding:9px 11px;border-radius:8px;color:#0c1d32;font-size:13px;line-height:1.4;text-decoration:none}
.topband .lang-switcher .lang-options a:hover,.topband .lang-switcher .lang-options a:focus-visible,.topband .lang-switcher .lang-options a[aria-current]{background:#ffe8ed;color:#d5193c}
.topband .lang-switcher details:not([open]) .lang-options{display:none!important}
.header .ref-header{padding-top:12px!important}
@media(max-width:1280px){.topband .container>span:nth-child(3),.topband .container>span:nth-child(4){display:none!important}}
@media(max-width:850px){.header .ref-header{padding-top:12px!important}.topband .container>span:not(:first-child){display:none!important}.topband .lang-switcher{margin-inline-start:auto!important}.topband>.container{min-height:35px!important}.topband .container>span:first-child{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:600px){.header .ref-header{padding-top:12px!important}.topband .container{padding-inline:15px!important}.topband .container:not(.top-information){padding-inline:15px!important}.topband .lang-switcher summary{min-height:29px;padding:5px 8px!important;min-width:77px!important;font-size:11px!important}}
/* SEO templates (no JavaScript): language control stays absolutely anchored to the first strip. */
body.os-seo{position:relative}
body.os-seo>.lang-switcher{position:absolute!important;top:5px!important;right:max(24px,calc((100vw - 1220px)/2 + 24px))!important;left:auto!important;z-index:100!important;font-size:12px!important;color:white!important;direction:ltr!important}
body.os-seo>.lang-switcher details{position:relative}
body.os-seo>.lang-switcher summary{display:flex;align-items:center;justify-content:center;gap:5px;list-style:none;min-width:85px;min-height:31px;padding:5px 10px;border-radius:9px;border:1px solid #596982;background:#192c45;color:white;cursor:pointer;white-space:nowrap}
body.os-seo>.lang-switcher summary::-webkit-details-marker{display:none}
body.os-seo>.lang-switcher .lang-options{position:absolute;display:grid;top:calc(100% + 5px);right:0;min-width:160px;padding:6px;gap:2px;border-radius:11px;border:1px solid #dce4f0;background:white;box-shadow:0 10px 25px #07182b42}
body.os-seo>.lang-switcher .lang-options a{display:block;color:#12223b;padding:9px 10px;text-decoration:none;border-radius:7px}
body.os-seo>.lang-switcher .lang-options a:hover,body.os-seo>.lang-switcher .lang-options a[aria-current]{color:#d51b40;background:#ffedf1}
body.os-seo>.lang-switcher details:not([open]) .lang-options{display:none!important}
body.os-seo .os-seo-topin{padding-inline-end:130px!important;justify-content:space-between}
body.os-seo .os-seo-top{position:relative;z-index:70}
@media(max-width:620px){body.os-seo>.lang-switcher{right:14px!important;top:5px!important}body.os-seo .os-seo-topin{padding-inline-end:110px!important;justify-content:flex-start!important;flex-wrap:nowrap!important}body.os-seo .os-seo-topin>span{font-size:10px;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}body.os-seo .os-seo-topin>span+span{display:none!important}}

/* V18: phone-first Russian storefront — readable cards, buttons and forms */
@media(max-width:600px){
 .container{max-width:100%;min-width:0;padding-inline:14px}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .product-card{width:100%;max-width:100%;min-width:0}
 .product-visual{height:156px!important;min-height:156px!important;padding:18px 8px 8px!important}
 .product-visual img{height:128px!important;max-height:128px!important;width:100%;object-fit:contain}
 .product-copy{padding:10px 9px 12px!important;gap:6px}
 .product-title{display:block!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;line-height:1.35!important;font-size:11px!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
 .product-brand{font-size:8px!important;letter-spacing:1px!important}
 .product-price{font-size:18px!important;white-space:normal!important;letter-spacing:-.3px;line-height:1.16!important}
 .product-price small{font-size:9px!important;line-height:1.28!important}
 .specs-row{gap:4px!important;margin-bottom:10px!important}
 .specs-row span{font-size:8px!important;padding:4px 5px!important}
 .product-links{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px!important;gap:6px!important;width:100%;margin-top:10px}
 .product-links :is(a,button){min-width:0;max-width:100%;padding:7px 4px!important;font-size:9px!important;font-weight:800;line-height:1.22!important;min-height:40px!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;display:flex;align-items:center;justify-content:center;text-align:center}
 .product-links .add-to-cart{width:36px!important;max-width:36px}
 .catalog-toolbar{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
 .catalog-toolbar>*{min-width:0;max-width:100%}
 .filter-panel :is(input,select),.search-wrap input{min-width:0;max-width:100%}
 .ref-header .search-wrap{max-width:100%;width:100%}
 .detail-layout{grid-template-columns:minmax(0,1fr);gap:18px}
 .detail-layout>*{min-width:0}
 .detail-description h1{font-size:clamp(22px,6.5vw,27px);white-space:normal;overflow-wrap:anywhere}
 .detail-description .actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:100%}
 .detail-description .actions>:is(a,button),.detail-description .actions>.btn{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;max-width:100%;min-width:0;white-space:normal!important;overflow-wrap:anywhere!important;font-size:12px!important;line-height:1.32;padding:9px 7px!important}
 .content-card,.cart-wrap,.compare-wrap,.favorites-wrap{max-width:100%;min-width:0}
 .content-card :is(h1,h2,h3,p),.section-top :is(h1,h2,h3,p){overflow-wrap:anywhere;max-width:100%}
 .btn{white-space:normal;overflow-wrap:anywhere;line-height:1.35;text-align:center}
 .v12-task-grid .task-card,.v12-guides-grid .v12-guide{min-width:0;max-width:100%}
 .ref-hero .hero-side{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;gap:10px}
 .ref-hero .hero-promo{width:100%;min-width:0;min-height:162px!important;max-width:100%;overflow:hidden}
 .ref-hero .hero-promo .promo-content{width:62%!important;max-width:62%!important;min-width:0}
 .ref-hero .hero-promo h3{overflow-wrap:anywhere;white-space:normal;font-size:18px!important;line-height:1.15!important}
 .ref-hero .hero-promo p{overflow-wrap:anywhere;max-width:100%}
 .ref-hero .hero-promo .promo-art{width:57%!important;max-width:57%!important;right:-6%!important;object-fit:contain!important;object-position:center right}
 .os-seo-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .os-seo-grid .os-seo-product{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px;padding:12px!important}
 .os-seo-grid .os-seo-product figure{width:100%!important;height:130px!important;min-height:130px!important;flex:initial!important}
 .os-seo-grid .os-seo-product img{max-height:118px!important;width:100%!important}
 .os-seo-grid .os-seo-product b{font-size:11px!important;line-height:1.34!important}
 .os-seo-grid .os-seo-product span{font-size:10px!important;line-height:1.3!important}
 .os-seo-grid .os-seo-product .os-seo-price{font-size:16px!important;line-height:1.15!important}
}
@media(max-width:380px){
 .product-grid{gap:8px!important}
 .product-visual{height:148px!important;min-height:148px!important;padding:16px 7px 8px!important}
 .product-visual img{height:118px!important;max-height:118px!important}
 .product-copy{padding:9px 8px 11px!important}
 .product-title{font-size:10.4px!important;line-height:1.3!important}
 .product-price{font-size:17px!important}
 .product-price small{font-size:8px!important}
 .specs-row span{font-size:7.6px!important;padding:3px 4px!important}
 .product-links{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px!important;gap:5px!important}
 .product-links :is(a,button){font-size:8.4px!important;padding:6px 3px!important;min-height:38px!important}
 .os-seo-grid .os-seo-product figure{height:118px!important;min-height:118px!important}
 .os-seo-grid .os-seo-product img{max-height:106px!important}
 .os-seo-grid .os-seo-product b{font-size:10.4px!important}
}
@media(max-width:350px){
 .product-grid{grid-template-columns:minmax(0,1fr)!important}
 .os-seo-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:350px){.detail-description .actions{grid-template-columns:minmax(0,1fr)}}
/* V18: keep the add-to-cart icon inside the last fixed-width button column. */
@media(max-width:600px){
 .product-links .add-cart{grid-column:3;width:36px!important;max-width:36px!important;min-width:0!important;min-height:40px!important;font-size:20px!important;padding:4px!important;white-space:nowrap!important}
}
@media(max-width:380px){.product-links .add-cart{width:34px!important;max-width:34px!important;min-height:38px!important;font-size:18px!important}}
/* V18: promo image stays inside the clickable banner instead of expanding its scroll area. */
@media(max-width:600px){
 .ref-hero .hero-promo .promo-art{right:0!important;width:49%!important;max-width:49%!important;max-height:100%!important;object-fit:contain!important;object-position:center right}
}
