@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* Misc layout and elements */
.sidebar.left290px { width: 260px; float: left; }
.content.left290px { margin-left: 290px; }

.sidebar.left340px { width: 340px; float: left; }
.content.left340px { margin-left: 340px; padding-left: 28px; }

.sidebar.right75px { width: 75px; float: right; }
.content.right75px { margin-right: 75px; padding-right: 28px; }
.sidebar p { line-height: 1.3em; }

.sidebar.right75px [class^="icon-"] { font-size: 3em; color: #996633; }

.breadcrumbs { overflow: hidden; font-size: 1em; height: 33px; line-height: 33px; border-bottom: 2px solid #eee; margin-bottom: 26px; text-transform: uppercase; }
.breadcrumbs a, .breadcrumbs b { float: left; color: #333; display: block; padding: 0 15px; text-decoration: none; }
.breadcrumbs b { font-weight: 100; color: #B3B3B3; }
.breadcrumbs span.rarr { opacity: 0.5; float: left; display: block; height: 33px; width: 11px; margin: 0; background: url('img/rarr2.png') no-repeat; }
.breadcrumbs .icon-home { color: #694B2B; }

div.cart { background: #FFF; padding: 15px 15px 15px; border: 2px solid #CFAD8B; border-radius: 5px; margin-bottom: 20px; }
div.cart .wa-form { margin: 10px 0 0 0; width: 100% !important; }
div.cart .wa-form .wa-field { width: 195px; float: left !important; margin-left: 10px; clear: none; }
div.cart .wa-form .wa-field input { font-size: 14px; min-width: 195px !important; margin-top: 0; }
div.cart .wa-form .wa-field .wa-value p { line-height: 1em; margin: 0; }
div.cart input[type="submit"],
.plugin_arrived-button > a { height: 38px; line-height: 38px; }

div.cart .wa-form .wa-field .wa-value.buttons { position: relative; }
div.cart .wa-form .wa-field .wa-value.buttons:after { content: "\e91d"; color: #73001D; position: absolute; top: -20px; left: -30px; font-size: 1.4em; }
div.cart .wa-form .wa-field.fld_hidden_name,
div.cart .wa-form .wa-field.fld_addrespage,
div.cart .wa-form .wa-field.fld_subject,
.fld_maska { display: none; }

div.cart select { background-color: transparent; border: 1px solid transparent; line-height: 30px; height: 30px; }
div.cart .services { line-height: 30px; }

.bonus { background: #ceb; padding: 2px 4px 1px; }
.plugin { margin-bottom: 20px; } /* shipping and payment plugins ouput */

.vendorcode { font-size: 12px; line-height: 22px; color: #999; }


/* Category */
h1.category-name { line-height: 0.9em; }
h1.category-name span { font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 0.7em; line-height: 1em; }

.tab-categories { border-bottom: 2px solid #ccc; }
.tab-categories.menu-h li { margin-left: 10px; }
.tab-categories.menu-h li a { padding: 10px 20px; margin-bottom: -2px; text-decoration: none; }
.tab-categories.menu-h li a h5 { margin: 0; }
.tab-categories.menu-h li a:hover h5 { color: #990126; }
.tab-categories.menu-h li a.selected:hover h5 { color: #130A4D; }
.tab-categories li a.selected { border: 2px solid #ccc; border-bottom: 2px solid #fff; }

.sub-categories { margin: 0; padding: 0; display: inline-block; width: 100%; }
.sub-categories li { margin: 0; padding: 0; width: 25%; height: 200px; float: left; display: block; text-align: center; }
.sub-categories li .circle { margin-bottom: 0px; display: inline-block; width: 111px; height: 111px; border: 1px solid #ccc; border-radius: 50%; overflow: hidden; }
.sub-categories li .circle i { line-height: 111px; font-size: 3em; color: #ccc; }
.sub-categories li a { text-decoration: none; }
.sub-categories li h4 { color: #990126; padding: 0 10px; }

.filters { background: #eed; width: 240px; padding: 15px; float: right; }
.filters input[type="text"] { font-size: 0.9em; width: 50px; text-align: right; }

/* Table */
.tftable {font-size:12px;color:#333333;width:100%;border-width: 1px;border-color: #bcaf91;border-collapse: collapse;}
.tftable th {font-size:12px;background-color:#ded0b0;border-width: 1px;padding: 8px;border-style: solid;border-color: #bcaf91;text-align:left;}
.tftable tr {background-color:#FFFBEC;}
.tftable td {font-size:12px;border-width: 1px;padding: 8px;border-style: solid;border-color: #bcaf91;}
.tftable tr:hover {background-color:#ffffff;}

/* Product info and lists */
.tags a { color: green; }
.tags.cloud { text-align: center; font-size: 0.9em; padding-top: 20px; margin-top: 30px; border-top: 1px solid #ccc; }

ul.skus { padding-left: 0; }
ul.skus li { list-style: none; }

.stocks { margin-top: 10px; margin-bottom: 15px; font-size: 0.9em; }
.stocks .stock-critical { color: #e00; }
.stocks .stock-low { color: #a80; }
.stocks .stock-high { color: #0a0; }
.stocks .stock-none { color: #aaa; }
.stocks .icon16 { margin-top: -0.25em; }

ul.menu-h.sorting { margin-left: 0; font-size: 12px; }
ul.menu-h.sorting li { padding-right: 5px; }

i.sort-desc { height: 0; width: 0; border: 4px solid transparent; border-bottom-color: #000; margin-bottom: 0.2em; display: inline-block; display: block\9; float: left\9; }
i.sort-asc { height: 0; width: 0; border: 4px solid transparent; border-top-color: #000; margin-top: 0; display: inline-block; display: block\9; float: left\9; }

.price { color: #333; font-weight: 600; font-family: 'Open Sans Condensed', sans-serif; font-size: 18px; }
.compare-at-price { text-decoration: line-through; color: #c66; margin: 0 3px; }
.out-of-stock { color: #a77; }
.disabled { color: #777; }
.description { margin-bottom: 20px; }
.error { color: #a33; }

.rating i.icon16 { margin-right: 0.13em; }
h1 .rating i.icon16 { margin-top: 0.37em; }

table.compare { width: 100%; }
table.compare td { text-align: center; line-height: 1em; padding: 10px 2px; }
table.compare th { text-align: left; }
table.compare td img { display: block; margin: 0 auto 10px; }

ul.thumbs {
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
ul.thumbs li { vertical-align:top; padding: 0; position: relative; display: block; }
ul.thumbs img { margin-bottom: 2px; }
ul.thumbs img.overhanging { position: absolute; left: -20px; }
ul.thumbs i.icon16.overhanging { position: absolute; left: -20px; margin: 0; top: 2px; }
ul.thumbs i.icon10.overhanging { position: absolute; margin-left: -17px; margin-right: 7px; }
ul.thumbs input { margin: 0 3px 0 0 /* for correct checkbox display */; }
ul.thumbs.li200px li { max-width: none; /* grid управляет шириной */ }
ul.thumbs li p { margin-bottom: 0; }
ul.thumbs li.selected { /* nothing! */ }
ul.thumbs li.selected img { border: 4px solid #FDDA3B; margin: -4px -2px -2px -4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }
ul.thumbs li.highlighted { background: inherit; }
ul.thumbs li.highlighted img { -moz-box-shadow: 0px 0px 10px #fe2; -webkit-box-shadow: 0px 0px 10px #fe2; box-shadow: 0px 0px 10px #fe2; }

ul.thumbs li .product-block { height: 340px; border: 2px solid #E8E8E8; padding: 14px; margin: 0; background: #fff; }
ul.thumbs li .product-block:hover { border-color: #990126; }
ul.thumbs li .product-block .image { text-align: center; }
ul.thumbs li .product-block a { text-decoration: none; }
ul.thumbs li .product-block .image-block { height: 200px; }
ul.thumbs li .product-block h5 { height: 65px; color: #0E025D; text-align: left; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-weight: 500; font-size: 13px; margin-bottom: 0; }
ul.thumbs li .product-block .price-block { padding: 5px 0; height: 20px; }
ul.thumbs li .product-block .button { font-size: 12px; padding: 0 7px; }
ul.thumbs li .product-block .button span.icon-like { color: #ccc; font-size: 10px; }
ul.thumbs li .product-block .button.gray:hover span.icon-like  { color: #999; }
ul.thumbs li .product-block .button.gray i.active { color: #989898; }
ul.thumbs li .product-block .button.gray i.active span.icon-like { color: #130A4D; }

ul.thumbs.sliderhome li .product-block,
ul.thumbs.sliderproduct li .product-block { margin: 0; }

table.table { margin-top: 25px; margin-left: -10px; width: 100%; border-spacing:0; border-collapse:collapse; }
table.table th { padding-left: 7px; padding-right: 7px; }
table.table td { padding: 10px 7px; border-bottom: 1px solid #ddd; }
table.table td.min-width { width: 1%; }
table.table td p { margin: 0; }
table.table td a.compare { text-decoration: none; }
table.table td a.compare i.active.icon-like { color: #130A4D; }
table.table td input.numerical { width: 50px; margin-right: 5px; text-align: right; }
table.table tr.no-border td { border: none; }
table.table tr.thin td { padding-top: 13px; padding-bottom: 0; }
table.table tr.service td { padding-top: 5px; padding-bottom: 5px; padding-left: 25px; font-size: 0.8em; color: #555; }
.related table.table { margin-top: 10px; }
.related table.table td { padding: 10px 7px 15px; border: none; }
.related h3 input { font-size: 14px; }

.table.list .button { height: 24px; line-height: 24px; font-size: 0.8em; }

.image { position: relative; display: inline-block; max-width: 100%; display: block\9; /* IE8- hack */ }
.image img { max-width: 100%; height: auto; }
.image .corner { position: absolute; z-index:10; font-size: 0.8em; color: #fff; font-weight: bold; }
.image .corner.top { top:-8px; }
.image .corner.bottom { bottom:-8px; }
.image .corner.left { left:-8px; }
.image .corner.right { right:-8px; }
.image .loading { opacity: 0.7; }

.image .image-b { border: 2px solid #EDEDED; border-radius: 5px; width: 342px; box-sizing: border-box; }
.image .image-b i { font-size: 5em; line-height: 300px; color: #ccc; }

ul.store-slider li { list-style: none; width: 130px; }
ul.store-slider li a { display: block; /*height: 350px;*/ line-height: 350px; }
ul.store-slider li a img { width: 100%; display: inline-block; vertical-align: middle; }

.badge { padding: 1px; font-size: 1.2em; border-radius: 50%; overflow: hidden; }
.badge span { display: block; border-radius: 50%; width: 50px; height: 50px; line-height: 50px; vertical-align: middle; text-align: center; border: 2px solid #fff; }
.badge.new { background: rgba(255, 238, 34, 0.58); color: #000; }
.badge.bestseller { background: rgba(173, 206, 130, 0.78); color: #030; }
.badge.low-price { background: rgba(245, 182, 197, 0.74); color: #300; }
.badge.percent { background: rgba(220, 78, 78, 0.85); }

ul.thumbs .badge { font-size: 1em;  }
ul.thumbs .badge span { line-height: 50px; }
table.table { margin: 20px 0; }
table.table .image { margin-right: 10px; width: 48px; }
table.table .badge { font-size: 0.8em; width: 24px; height: 24px; padding: 3px 3px 4px; border: 0; }
table.table .badge span { display: block; width: 24px; height: 24px; line-height: 24px; border: 0; overflow: hidden; padding: 0; }

table.cart { font-size: 13px; }
table.cart td { vertical-align: top; padding: 20px 7px 25px; }
table.cart td input.qty { max-width: 50px; text-align: right; }
table.cart td.total { font-size: 1.3em; }

table.cart .services { line-height: 30px; margin-bottom: 0; }
table.cart .services select { background-color: transparent; border: 1px solid transparent; line-height: 30px; height: 30px; }

.options { line-height: 1.8em; }
.services { margin-bottom: 20px; }
.add2cart { margin-bottom: 20px; }
.add2cart .price { font-size: 28px; margin-right: 30px; vertical-align: middle; }
.add2cart input[type="submit"],
.add2cart .plugin_arrived-button a { margin-right: 25px; font-size: 16px; text-transform: uppercase; height: 40px; line-height: 40px; }
.add2cart .qty { max-width: 50px; text-align: right; }
.add2cart .plugin_arrived-custom { display: inline-block; }

/* Tabs */
ul.mytabs { margin:0; margin-top: 18px; position:relative; z-index:2; width:100%; display: block; padding:0;border-radius:6px 6px 0 0; }
ul.mytabs, ul.mytabs li { list-style:none; float:left; }
ul.mytabs li { text-align:center; }
ul.mytabs li a, ul.mytabs li span { color: #990126; border-color: transparent; border-radius:4px; padding: 0 20px; margin-right: 10px; height: 28px; font-weight:500; line-height:30px; display:block; text-decoration:none;cursor:pointer; border-bottom: 2px solid transparent; }
ul.mytabs li a:hover, ul.mytabs li.current a, ul.mytabs li span:hover, ul.mytabs li.current span { color: #1A1A1A; background: #E7EDEE; border-bottom: 2px solid #BBBDBD; }
.mytabs-container { position:relative; z-index:1; border:1px solid #fff; top:-2px; background:#fff; min-height: 100px; overflow-x:auto; border-radius: 3px; margin-bottom: 30px; }
.box { display:none; }
.box.visible { display:block; }
.box .block, .box.block { padding: 30px 25px; }
.box table.features { width: 100%; margin-top: 20px; }
.box table.features td { padding: 12px 24px; border-bottom: 1px solid #E2E2E2; }
.box table.features tr:nth-child(2n) { background: #f0f0f0; } 


.aux { padding: 15px; }
table.features { border-spacing: 0; border-collapse: collapse; }
table.features td { padding: 5px 0 2px; }
table.features td.name { min-width: 145px; color: #777; vertical-align: top; }
table.features tr.divider td { border-bottom: 1px solid #ccc; padding-left: 0; padding-top: 15px; padding-bottom: 0; }

#product-categories ul.menu-h li a { font-size: 0.9em; background: #F7F7F7; text-decoration: none; line-height: 2em; margin-bottom: 4px; }
.article.float-right { margin-top: 10px; }

/* Checkout */
.checkout .wa-form .wa-field .wa-value input[type="text"],
.checkout .wa-form .wa-field .wa-value input[type="email"],
.checkout .wa-form .wa-field .wa-value input[type="password"],
.checkout .wa-form .wa-field .wa-value select { width: 30%; min-width: 300px;  margin:0;}


.checkout-header { margin: 0 90px; color: #999; }
.checkout-header h3 a { text-transform: uppercase; text-decoration: none; color: #777; }
.checkout-header h3 a:hover { color: #a00 !important; }
.checkout-header strong { color: #666; }
.checkout { margin: 0; }
.checkout ul.checkout-options { padding-left: 25px; }
.checkout ul.checkout-options li { list-style: none; position: relative; margin-bottom: 50px; clear: both; }
.checkout ul.checkout-options li h3 { font-weight: bold; margin-bottom: 10px; }
.checkout ul.checkout-options li h3 label { margin-right: 10px; }
.checkout ul.checkout-options li .rate { float: right; text-align: center; width: 250px; }
.checkout ul.checkout-options li p { width: 70%; }
.checkout ul.checkout-options li input[type="radio"] { position: absolute; top: 4px; left: -25px; }
.checkout ul.checkout-options li label input[type="radio"] { top: 4px; left: -20px; }
.checkout ul.checkout-options li img.method-logo { position: relative; float: left; margin-right: 10px; top: -6px; left: 0px; /* adjusted for default 60x32-px logos */ }
.checkout ul.checkout-options li .wa-form { margin-top: 0px; margin-bottom: 30px; }
.checkout ul.checkout-options li .wa-form label input[type="radio"] { position: static; }

.checkout .checkout-result { padding: 80px 0 60px; background: #fff; text-align: center; }
.checkout .checkout-result h1 { font-size: 4em; margin-bottom: 50px; }
.checkout .checkout-result.error h1 { color: red; }
.checkout .checkout-result .wa-form { margin: 10px auto 20px; width: 400px; float: none; text-align: left; }
.checkout .checkout-result .back { margin-top: 50px; }
.checkout .checkout-step { padding: 0; }
.checkout .checkout-step h2 { padding: 17px 20px 15px; text-transform: uppercase; font-weight: bold; background: #eee; margin: 0; }
.checkout .checkout-step h2 a { text-decoration: none; color: #000; }
.checkout .checkout-step h2 a:hover { color: #a00 !important; }
.checkout .checkout-step h2.upcoming a:hover { color: #000 !important; cursor: default; }
.checkout .checkout-step h2 a.hint { font-size: 0.5em; color: #aaa; text-decoration: underline; }
.checkout .checkout-step-content { padding: 20px; background: #fff; }
.checkout .checkout-step ul.menu-v { margin-left: 0; margin-top: 20px; }
.checkout .checkout-step #login-form h1 { display: none; }
.checkout .checkout-step input.large { font-size: 1.4em; }
.checkout .comment { width: 100%; height: 100px; margin-bottom: 20px; }
.checkout blockquote img { margin-right: 20px; float: left; }
.checkout blockquote p { margin-bottom: 10px; }
.checkout blockquote p span { color: #000; }

.checkout .errormsg.inline { display: inline; margin-left: 10px; }

/* Product reviews */
.write-review { margin: 10px 0 40px; }

.review { margin-bottom: 30px; }
.review .summary { font-size: 0.9em; color: #777; }
.review .summary h6 { color: #000; font-size: 1.1em; }
.review .summary a.username { color: #777; }
.review .summary a.username:hover { color: red; }
.review .summary a { display: inline; padding: 0; }
.review .summary .date { color:#aaa; }
.review p { margin-top: 5px; margin-bottom: 5px; line-height: 1.3em; }
.review .actions a { padding: 0 !important; }

.reviews { margin-bottom: 20px; }
.reviews ul { margin-left: 0; }
.reviews ul li ul { padding-left: 25px; }
.reviews ul li ul li .review h6 { color: #555; }
.reviews ul li .review-form { padding: 10px 30px; }
.reviews ul li .review-form textarea { min-height: 100px; }
.reviews ul.menu-h.auth-type { padding: 0 0 40px; margin-left: -5px; }
.reviews ul.menu-h.auth-type li { padding-right: 10px; }
.reviews ul.menu-h.auth-type li a { padding: 5px 6px; }
.reviews ul.menu-h.auth-type li a img { top: 0; }
.reviews textarea { height: 100px; min-height: 100px; width: 75%; margin-top: 0; }

.review-form { padding: 0; margin-bottom: 30px; }
.review-form h4 { margin: 0 0 20px; font-weight: normal; }
.review-form-fields p { margin: 0 0 10px; }
.review-form-fields p.review-field a { display: inline; padding: 0; text-decoration: none; }
.review-form-fields label { width: 160px; display: block; clear: left; float: left; margin: 0 10px 0 0; color: #aaa;}
.review-form-fields input[type="text"] { width: 20em;}
.review-form textarea { min-width: 100%; min-height: 160px; }
.review-form .review-submit { padding:0 0 20px 170px;}
.review-form .userpic { width: 20px; height: 20px; float: left; margin-right: 5px; }
.review-form ul.menu-h.auth-type li a img { float: left; margin-right: 3px; position: relative; top: 2px; }
.review-form ul.menu-h.auth-type { padding-bottom: 20px; }
.review-form label { width: 160px; display: block; clear: left; float: left; margin: 0 10px 0 0; color: #AAA; }
.reviews span.rate { line-height: 1.3em; display: block; margin: 0.5em 0; }
.reviews span.rate a { text-decoration: none !important; }
.reviews span.rate .icon10 { background-repeat: no-repeat; background-image: url(../../../../wa-content/img/icon10.png); height: 10px; width: 10px; display: inline-block; text-indent: -9999px; }
.reviews span.rate .icon10.star { background-position: -60px -40px; }
.reviews span.rate .icon10.star-empty { background-position: -80px -40px; }

input.error, textarea.error { border: 2px solid red; }
.errormsg { color: red; margin-left: 170px; display: block; }
.main-error { margin-top: 40px; }

/* Customer account */
.order-status { padding: 2px 5px; color: #fff; }
h1 .order-status { font-size: 0.75em; margin-left: 10px; }

/* Shop-Script icons */
.icon16.star,
.icon16.star-full { background-image: url("img/icons.png"); background-position:-16px 0; }
.icon16.star-half { background-image: url("img/icons.png"); background-position:-32px 0; }
.icon16.star-empty { background-image: url("img/icons.png"); background-position:-48px 0; }
.icon16.star-hover { background-image: url("img/icons.png"); background-position:-64px 0; }
.icon10.star,
.icon10.star-full { background-image: url("img/icons.png"); background-position:0 -16px; }
.icon10.star-half { background-image: url("img/icons.png"); background-position:-10px -16px; }
.icon10.star-empty { background-image: url("img/icons.png"); background-position:-20px -16px; }
.icon16.remove { background-image: url("img/icons.png"); background-position:-96px 0; }
.icon16.saved { background-image: url("img/icons.png");  background-position:-112px 0; }
.icon16.stock-red { background-image: url("img/icons.png"); background-position:-128px 0; }
.icon16.stock-yellow { background-image: url("img/icons.png"); background-position:-144px 0; }
.icon16.stock-green { background-image: url("img/icons.png"); background-position:-160px 0; }
.icon16.stock-transparent { background-image: url("img/icons.png"); background-position:-176px 0; }
.icon16.loading { background-image: url("img/loading16.gif"); background-position:0 0; }

/* Sidebar */
.sidebar .forma-service h4 { font-size: 17px; color: #6D659E; margin-bottom: 5px; }
.sidebar .forma-service p { margin-bottom: 15px; }
.sidebar .forma-service { background: #FFFBEC; color: #4D4D4D; border: 1px solid #EDEDED; border-radius: 6px; padding: 15px 20px; margin-top: 50px; }
.sidebar .forma-service .fld_subject { display: none; }
.sidebar .forma-service input[type="text"],
.sidebar .forma-service input[type="submit"] { min-width: 220px!important; }
.sidebar .forma-service input[type="submit"]:hover { background-color: #A2B4B7; }
.sidebar .forma-service .wa-form, 
.sidebar .forma-service .wa-form .wa-field { width: 100% !important; }
.sidebar .forma-service .wa-field .wa-value p { margin-bottom: 0; }
.sidebar .forma-service .wa-field.fld_type_checkbox .wa-name { width: 200px; font-size: 13px; font-weight: 600; }
.sidebar .forma-service .wa-field.fld_type_checkbox .wa-value { margin-top: -27px; }
.sidebar .forma-service .telnumber { font-size: 1.8em; font-family: 'Open Sans Condensed', sans-serif; margin-bottom: 0; }
.sidebar .forma-service .telnumber i { color: #999; font-size: 0.8em; }
.sidebar .forma-service input[type="submit"] { background-color: #607073; border-bottom: 2px solid #434E50; line-height: 38px; height: 38px; }
.sidebar .forma-service .wa-form .wa-field .wa-name { padding-top: 0; }

.sidebar .forma-service .wa-captcha input { min-width: 90px!important; float: left; }
.sidebar .forma-service .wa-captcha strong { display: none; }
.sidebar .forma-service .wa-captcha .wa-captcha-img {  margin-top: 0; }
.sidebar .forma-service .wa-captcha .errormsg { float: left; }

.mymenu.menu-h { margin-top: 20px; display: inline-block; }
.mymenu li { text-align: center; float: left; width: 33.33%; }
.mymenu li a { text-decoration: none; }
.mymenu li a i { color: #996633; font-size: 4em; margin-bottom: 10px; display: inline-block; }
.mymenu li a p { color: #333; }
 

/* Блок "Используется в категориях" — структурированный вывод */

.used-in {
    margin-top: 40px;
}

.used-in h5 {
    margin-bottom: 16px;
}

.used-in-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
}

.used-in-group {
    min-width: 260px;
    flex: 1 1 260px;
}

.used-in-group__title {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #130A4D;
}

.used-in-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.used-in-item {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.used-in-item a {
    text-decoration: none;
}

.used-in-sep {
    margin: 0 4px;
    color: #999;
}

/* Компактный вариант "под фото" — обёртка .used-in-wide */

.used-in-wide {
    margin: 30px 0 40px;
}

/* чтобы не было двойного отступа: обнуляем margin-top у .used-in внутри */
.used-in-wide .used-in {
    margin-top: 0;
}

.used-in-wide h5 {
    margin-bottom: 12px;
}

.used-in-wide .used-in-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    max-width: 1200px;
}

.used-in-wide .used-in-group__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.used-in-wide .used-in-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

/* Мобильная версия: одна колонка */
@media (max-width: 760px) {
    .used-in-groups,
    .used-in-wide .used-in-groups {
        flex-direction: column;
        gap: 16px;
    }
}

.price-request {
    margin-top: 15px;
    padding: 12px 15px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.price-request-text {
    margin-bottom: 10px;
}

.price-request-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
}


/* TABLET
========= */
@media screen and (min-width: 760px) and (max-width: 1024px) {
    ul.thumbs { grid-template-columns: repeat(3, 1fr); }
    .sub-categories li { width: 25%; }
}

/* MOBILE
========= */
@media screen and (max-width: 760px) {
    ul.thumbs { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    ul.thumbs li .product-block { height: auto; min-height: 280px; padding: 10px; }
    ul.thumbs li .product-block .image-block { height: 150px; }
    ul.thumbs li .product-block h5 { height: auto; max-height: 50px; font-size: 12px; overflow: hidden; }
}

/* SMALL MOBILE
=============== */
@media screen and (max-width: 480px) {
    ul.thumbs { grid-template-columns: 1fr; gap: 10px; }
    ul.thumbs li .product-block { min-height: 200px; display: flex; flex-direction: row; gap: 12px; }
    ul.thumbs li .product-block .image-block { height: 120px; width: 120px; flex-shrink: 0; }
    ul.thumbs li .product-block h5 { max-height: none; }
}

/* WIDE
========= */
@media screen and (min-width: 1300px) {
    ul.thumbs { grid-template-columns: repeat(5, 1fr); }
}
/* ===== Feedback Dialog Modal ===== */
.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}
.dialog.show {
    display: block;
}
.dialog .dialog-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    cursor: pointer;
}
.dialog .dialog-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.dialog .dialog-body {
    padding: 30px;
}
.dialog .dialog-buttons {
    position: absolute;
    top: 10px;
    right: 15px;
}
.dialog .dialog-buttons .cancel {
    cursor: pointer;
    font-size: 24px;
    color: #999;
}
.dialog .dialog-buttons .cancel:hover {
    color: #333;
}
.dialog .callback-body h3 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #333;
}
.dialog .callback-body .wa-form {
    width: 100% !important;
}
.dialog .callback-body .wa-field {
    width: 100% !important;
    margin-bottom: 15px;
}
.dialog .callback-body .wa-field .wa-value {
    margin-left: 0 !important;
}
.dialog .callback-body .wa-field input[type="text"],
.dialog .callback-body .wa-field input[type="email"],
.dialog .callback-body .wa-field textarea {
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}
.dialog .callback-body .wa-field textarea {
    height: 100px !important;
    resize: vertical;
}
.dialog .callback-body .wa-field input:focus,
.dialog .callback-body .wa-field textarea:focus {
    border-color: #8B0000;
    outline: none;
}
.dialog .callback-body input.button,
.dialog .callback-body button[type="submit"] {
    background: #8B0000;
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}
.dialog .callback-body input.button:hover {
    background: #6B0000;
}

/* Force show form fields */
.dialog .wa-form,
.dialog .wa-form * {
    visibility: visible !important;
    opacity: 1 !important;
}
.dialog .wa-form .wa-field {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}
.dialog .wa-form .wa-field.none .wa-value {
    margin-left: 0 !important;
}
.dialog .wa-form .wa-field.none .wa-value input,
.dialog .wa-form .wa-field.none .wa-value textarea {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    padding: 12px !important;
    margin-bottom: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
}
.dialog .wa-form .wa-field.none .wa-value p {
    margin: 0 !important;
}

/* ===== Feedback Dialog - Webasyst 2.0 ===== */
#feedback-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}
#feedback-dialog.is-opened {
    display: flex;
    align-items: center;
    justify-content: center;
}
#feedback-dialog .dialog-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    cursor: pointer;
}
#feedback-dialog .dialog-body { z-index: 100;
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    max-width: 420px;
    width: 90%;
    z-index: 1;
}
#feedback-dialog .dialog-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #999;
    text-decoration: none;
}
#feedback-dialog .dialog-close:hover {
    color: #333;
}
#feedback-dialog .dialog-header {
    padding: 25px 25px 0;
}
#feedback-dialog .dialog-header h1 {
    margin: 0;
    font-size: 22px;
    color: #333;
}
#feedback-dialog .dialog-content {
    padding: 25px;
}
#feedback-dialog .dialog-content p {
    margin: 0 0 15px;
}
#feedback-dialog .dialog-content a {
    color: #8B0000;
    text-decoration: none;
}
#feedback-dialog .dialog-content a:hover {
    text-decoration: underline;
}
#feedback-dialog .dialog-footer {
    padding: 0 25px 25px;
}
#feedback-dialog .dialog-footer .button {
    background: #8B0000;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
}
#feedback-dialog .dialog-footer .button:hover {
    background: #6B0000;
}

/* ===== HELPDESK FORM IN MODAL FIX ===== */
#feedback-dialog .dialog-content {
    background: #fff;
    color: #333;
}
#feedback-dialog .wa-form {
    width: 100% !important;
    max-width: 400px;
}
#feedback-dialog .wa-form input[type="text"],
#feedback-dialog .wa-form input[type="email"],
#feedback-dialog .wa-form textarea {
    width: 100% !important;
    min-width: unset !important;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}
#feedback-dialog .wa-form textarea {
    height: 100px;
    resize: vertical;
}
#feedback-dialog .wa-form .wa-field {
    width: 100% !important;
    margin-bottom: 15px;
}
#feedback-dialog .wa-form .wa-field.none .wa-value {
    margin-left: 0;
}
#feedback-dialog .wa-form input.button {
    background: #8B0000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}
#feedback-dialog .wa-form input.button:hover {
    background: #a00;
}
/* Скрываем поле "Маска ввода" — оно лишнее */
#feedback-dialog .wa-form .fld_maska {
    display: none;
}
#feedback-dialog .wa-form.box { display: block !important; }
#feedback-dialog .dialog-body { z-index: 100 !important; position: relative !important; }

/* Fix submit button in feedback dialog */
#feedback-dialog .wa-form input[type="submit"],
#feedback-dialog .wa-form input.button {
    display: inline-block !important;
    background: #8B0000 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 30px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
}

/* ===== CATEGORY CARDS — ВАРИАНТ А ===== */
.content--full {
    margin-left: 0 !important;
    max-width: 1200px;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    display: flex;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.2s ease;
    min-height: 90px;
}

.category-card:hover {
    border-color: #c41e3a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.category-card__accent {
    width: 6px;
    background: #c41e3a;
    flex-shrink: 0;
}

.category-card__body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.category-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    margin-bottom: 6px;
}

.category-card:hover .category-card__name {
    color: #c41e3a;
}

.category-card__meta {
    font-size: 13px;
    color: #888;
    display: flex;
    justify-content: flex-start; gap: 15px;
    align-items: center;
}

.category-card__year {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.category-card:hover .category-card__meta {
    color: #c41e3a;
}

.category-card:hover .category-card__year {
    color: #6d102c;
}


@media (max-width: 768px) {
    .category-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .category-card {
        min-height: 70px;
    }
}

/* ===== CATEGORY CARDS — ВАРИАНТ А ===== */
.content--full {
    margin-left: 0 !important;
    max-width: 1200px;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    display: flex;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.2s ease;
    min-height: 90px;
}

.category-card:hover {
    border-color: #c41e3a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.category-card__accent {
    width: 6px;
    background: #c41e3a;
    flex-shrink: 0;
}

.category-card__body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.category-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    margin-bottom: 6px;
}

.category-card:hover .category-card__name {
    color: #c41e3a;
}

.category-card__meta {
    font-size: 13px;
    color: #888;
}

.category-card:hover .category-card__meta {
    color: #c41e3a;
}

@media (max-width: 768px) {
    .category-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .category-card {
        min-height: 70px;
    }
}

/* ===== SUBCATS GRID — ПЛИТКИ С МИНИАТЮРАМИ ===== */
.subcats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0 30px;
}

.subcat-tile {
    display: block;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.2s ease;
}

.subcat-tile:hover {
    border-color: #c41e3a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.subcat-tile__thumb {
    height: 140px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.subcat-tile__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.subcat-tile__placeholder {
    font-size: 32px;
    font-weight: 700;
    color: #ddd;
}

.subcat-tile__name {
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.3;
    border-left: 3px solid #c41e3a;
}

.subcat-tile:hover .subcat-tile__name {
    color: #c41e3a;
}

@media (max-width: 768px) {
    .subcats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .subcat-tile__thumb {
        height: 100px;
    }
    .subcat-tile__name {
        font-size: 12px;
        padding: 10px;
    }
}

/* ===== SUBCAT TILE INFO ===== */
.subcat-tile__info {
    padding: 12px;
    border-left: 3px solid #c41e3a;
}

.subcat-tile__name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    padding: 0;
    border: none;
}

.subcat-tile__count {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.subcat-tile:hover .subcat-tile__count {
    color: #c41e3a;
}

/* ===== FIX: SUBCAT TILE ALIGNMENT ===== */
.subcat-tile {
    display: flex;
    flex-direction: column;
}

.subcat-tile__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px;
    border-left: 3px solid #c41e3a;
}

.subcat-tile__name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.subcat-tile__count {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* ===== FIX: EQUAL HEIGHT TILES ===== */
.subcats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0 30px;
    align-items: stretch;
}

.subcat-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.subcat-tile__thumb {
    height: 160px;
    flex-shrink: 0;
}

.subcat-tile__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; gap: 15px;
    min-height: 80px;
}

.subcat-tile__name {
    flex: 1;
}

.subcat-tile__count {
    margin-top: auto;
    padding-top: 8px;
}

/* ===== SUBCAT TILE — FULL WIDTH THUMB + ZOOM ===== */
.subcat-tile__thumb {
    height: 180px;
    padding: 0;
    overflow: hidden;
}

.subcat-tile__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subcat-tile:hover .subcat-tile__thumb img {
    transform: scale(1.15);
}

/* Category card with thumbnail */
.category-card.has-thumb {
    display: flex;
    align-items: stretch;
}
.category-card.has-thumb .category-card__body {
    flex: 1;
}
.category-card__thumb {
    width: 120px;
    min-height: 80px;
    overflow: hidden;
    border-radius: 0 8px 8px 0;
    flex-shrink: 0;
}
.category-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2 columns for leaf categories with diagrams */
.category-cards--2cols {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* 3 columns for non-leaf categories */
.category-cards--3cols {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 900px) {
    .category-cards--2cols,
    .category-cards--3cols {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .category-cards--2cols,
    .category-cards--3cols {
        grid-template-columns: 1fr !important;
    }
}

/* ===== PARTS TABLE - MOBILE FIX ===== */
.parts-table {
    width: 100% !important;
    width: 100%;
    table-layout: fixed;
}

.parts-table .col-pos { width: 60px; }
.parts-table .col-sku { width: 120px; }
.parts-table .col-name { width: auto; }
.parts-table .col-price { width: 80px; }
.parts-table .col-order { width: 90px; }

.parts-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .parts-table {
    width: 100% !important;
        table-layout: auto;
    }
    
    .parts-table .col-pos { width: 40px; }
    .parts-table .col-sku { width: 90px; }
    
    .parts-table th,
    .parts-table td {
        padding: 8px 4px;
        font-size: 13px;
    }
    
    .parts-table .vendorcode {
        font-size: 11px;
        word-break: break-all;
    }
    
    .parts-table h5 {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .parts-table h5 a {
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    /* На совсем маленьких экранах - горизонтальный скролл */
    .parts-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .parts-table {
    width: 100% !important;
        min-width: 400px;
    }
}


/* ===== MOBILE: HIDE UNNECESSARY BLOCKS ===== */
@media (max-width: 768px) {
    /* Красный баннер */
    #renovation-banner,
    .renovation-notice,
    [class*="renovation"],
    .main.style1.dark {
        display: none !important;
    }
    
    /* Блок проектирования */
    .project-cta,
    section:has(a[href*="proektirovanie"]) {
        display: none !important;
    }
    
    /* USP блоки - убираем полностью */
    .usps-section,
    .features-section,
    .usp-list,
    .advantages,
    #features,
    .home-features {
        display: none !important;
    }
}

/* ===== MOBILE: HIDE UNNECESSARY BLOCKS ===== */
@media (max-width: 768px) {
    /* Красный баннер */
    #renovation-banner,
    .renovation-notice,
    [class*="renovation"],
    .main.style1.dark {
        display: none !important;
    }
    
    /* Блок проектирования */
    .project-cta,
    section:has(a[href*="proektirovanie"]) {
        display: none !important;
    }
    
    /* USP блоки - убираем полностью */
    .usps-section,
    .features-section,
    .usp-list,
    .advantages,
    #features,
    .home-features {
        display: none !important;
    }
}

/* USP блоки - точные селекторы */
@media (max-width: 768px) {
    .advantages-row,
    .advantage-item {
        display: none !important;
    }
}

/* ===== MOBILE: FIX ALIGNMENT ===== */
@media (max-width: 768px) {
    body, .content, .wrapper, main, #content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Убрать sidebar отступы */
    .sidebar, .left-col, #sidebar {
        display: none !important;
    }
    
    /* Заголовок - меньший шрифт */
    h1, .page-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
        text-align: center;
    }
}

/* ===== MOBILE: FIX CONTENT SHIFT ===== */
@media (max-width: 768px) {
    .content.left290px,
    .content.left340px,
    .content.right75px {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .sidebar.left290px,
    .sidebar.left340px,
    .sidebar.right75px {
        display: none !important;
    }
}

/* ===== MOBILE: FIX CONTAINER ===== */
@media (max-width: 768px) {
    .container,
    .ppf-homepage-section,
    #ppf-homepage {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}

/* ===== MOBILE: QUICK ACTIONS GRID ===== */
@media (max-width: 768px) {
    .quick-actions-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 20px 0;
    }
    
    .quick-action-card {
        background: #fff;
        border-radius: 12px;
        padding: 16px;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .quick-action-card:active {
        transform: scale(0.98);
    }
    
    .quick-action-icon {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #990126 0%, #6d102c 100%);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        flex-shrink: 0;
    }
    
    .quick-action-text {
        font-size: 13px;
        color: #1a1a2e;
        font-weight: 600;
        line-height: 1.3;
    }
    
    /* Modal */
    .mobile-modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        z-index: 10002;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .mobile-modal-overlay.active {
        display: flex;
    }
    
    .mobile-modal {
        background: #fff;
        border-radius: 16px;
        padding: 24px;
        width: 100%;
        max-width: 340px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    }
    
    .mobile-modal__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .mobile-modal__title {
        font-size: 18px;
        color: #1a1a2e;
        margin: 0;
    }
    
    .mobile-modal__close {
        background: none;
        border: none;
        font-size: 28px;
        color: #888;
        cursor: pointer;
        line-height: 1;
        padding: 0;
    }
    
    .mobile-modal__desc {
        font-size: 13px;
        color: #666;
        margin-bottom: 16px;
        line-height: 1.4;
    }
    
    .mobile-modal__textarea {
        width: 100%;
        height: 120px;
        border: 2px solid #e8e8e8;
        border-radius: 10px;
        padding: 12px;
        font-size: 14px;
        font-family: monospace;
        resize: none;
        margin-bottom: 16px;
        box-sizing: border-box;
    }
    
    .mobile-modal__textarea:focus {
        outline: none;
        border-color: #990126;
    }
    
    .mobile-modal__btn {
        width: 100%;
        background: #990126;
        color: #fff;
        border: none;
        padding: 16px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
    }
    
    /* Section titles */
    .mobile-section-title {
        font-size: 14px;
        color: #1a1a2e;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 20px 0 14px;
    }
}

/* ===== MOBILE: QUICK ACTIONS ===== */
@media (max-width: 768px) {
    .quick-actions-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 15px;
    }
    
    .quick-action-card {
        background: #fff;
        border-radius: 12px;
        padding: 16px;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .quick-action-icon {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #990126 0%, #6d102c 100%);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        flex-shrink: 0;
    }
    
    .quick-action-text {
        font-size: 13px;
        color: #1a1a2e;
        font-weight: 600;
        line-height: 1.3;
    }
    
    .mobile-section-title {
        font-size: 14px;
        color: #1a1a2e;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 20px 15px 14px;
    }
    
    /* Quick Order Modal */
    .quick-order-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        z-index: 10002;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .quick-order-modal.active {
        display: flex;
    }
    
    .quick-order-modal__content {
        background: #fff;
        border-radius: 16px;
        padding: 24px;
        width: 100%;
        max-width: 340px;
    }
    
    .quick-order-modal__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .quick-order-modal__title {
        font-size: 18px;
        color: #1a1a2e;
        margin: 0;
    }
    
    .quick-order-modal__close {
        background: none;
        border: none;
        font-size: 28px;
        color: #888;
        cursor: pointer;
    }
    
    .quick-order-modal__desc {
        font-size: 13px;
        color: #666;
        margin-bottom: 16px;
    }
    
    .quick-order-modal__textarea {
        width: 100%;
        height: 120px;
        border: 2px solid #e8e8e8;
        border-radius: 10px;
        padding: 12px;
        font-size: 14px;
        font-family: monospace;
        resize: none;
        margin-bottom: 16px;
        box-sizing: border-box;
    }
    
    .quick-order-modal__textarea:focus {
        outline: none;
        border-color: #990126;
    }
    
    .quick-order-modal__btn {
        width: 100%;
        background: #990126;
        color: #fff;
        border: none;
        padding: 16px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
    }
    
    /* Hide on desktop */
    .mobile-only-section {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-only-section {
        display: none;
    }
}

/* ===== MOBILE: HIDE OLD ELEMENTS ===== */
@media (max-width: 768px) {
    /* Скрыть старый PPF блок на главной */
    #ppf-homepage,
    .ppf-homepage-section {
        display: none !important;
    }
    
    /* Скрыть старый футер */
    #contact,
    .footer-cta,
    #services-link,
    .cta-phone {
        display: none !important;
    }
    
    /* Исправить иконки - использовать emoji */
    .quick-action-icon {
        background: linear-gradient(135deg, #990126 0%, #6d102c 100%) !important;
        color: #fff;
        font-size: 22px;
    }
}

/* ===== MOBILE: ФИКС ОТСТУПОВ И КАРТОЧЕК ===== */
@media (max-width: 768px) {
    /* Контейнер с равными отступами */
    #models .container,
    #mobile-useful,
    .mobile-only-section {
        padding: 0 15px !important;
        margin: 0 !important;
    }
    
    /* Заголовок секции */
    .mobile-section-title,
    #models header h2 {
        padding: 0 15px;
        margin: 20px 0 14px;
    }
    
    /* Модели - одинаковые карточки */
    .models-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        padding: 0 15px !important;
    }
    
    .model-card {
        min-height: 80px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 8px !important;
    }
    
    .model-card strong {
        font-size: 14px !important;
        text-align: center !important;
        word-break: break-word !important;
        line-height: 1.2 !important;
    }
    
    .model-card span {
        font-size: 10px !important;
    }
    
    /* Quick Actions - равные отступы */
    .quick-actions-grid {
        padding: 0 15px !important;
        gap: 10px !important;
    }
    
    .quick-action-card {
        padding: 14px 12px !important;
    }
    
    .quick-action-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .quick-action-text {
        font-size: 12px !important;
    }
}

/* ===== MOBILE: ФИКС ОТСТУПОВ И КАРТОЧЕК ===== */
@media (max-width: 768px) {
    /* Контейнер с равными отступами */
    #models .container,
    #mobile-useful,
    .mobile-only-section {
        padding: 0 15px !important;
        margin: 0 !important;
    }
    
    /* Заголовок секции */
    .mobile-section-title,
    #models header h2 {
        padding: 0 15px;
        margin: 20px 0 14px;
    }
    
    /* Модели - одинаковые карточки */
    .models-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        padding: 0 15px !important;
    }
    
    .model-card {
        min-height: 80px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 8px !important;
    }
    
    .model-card strong {
        font-size: 14px !important;
        text-align: center !important;
        word-break: break-word !important;
        line-height: 1.2 !important;
    }
    
    .model-card span {
        font-size: 10px !important;
    }
    
    /* Quick Actions - равные отступы */
    .quick-actions-grid {
        padding: 0 15px !important;
        gap: 10px !important;
    }
    
    .quick-action-card {
        padding: 14px 12px !important;
    }
    
    .quick-action-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .quick-action-text {
        font-size: 12px !important;
    }
}

/* ===== MOBILE: СКРЫТЬ ФУТЕР И ПОЛИТИКУ ===== */
@media (max-width: 768px) {
    /* Футер с телефоном */
    #contact,
    #contact.footer,
    .footer.main.dark,
    .call_now,
    .telnumber,
    .copyright {
        display: none !important;
    }
    
    /* Виджет политики обработки данных (Webasyst GDPR) */
    .wa-gdpr-wrapper,
    .wa-gdpr-banner,
    #wa-gdpr-wrapper,
    .wa-pb-wrapper,
    #wa-pb-wrapper,
    [class*="wa-gdpr"],
    [class*="wa-pb"],
    [id*="wa-gdpr"],
    [id*="wa-pb"] {
        display: none !important;
    }
}

/* ===== MOBILE: ВЕРНУТЬ BOTTOM NAV + СКРЫТЬ ВИДЖЕТЫ ===== */
@media (max-width: 768px) {
    /* ВЕРНУТЬ нижнюю навигацию */
    .mobile-bottom-nav,
    #mobile-bottom-nav,
    .bottom-nav {
        display: flex !important;
        visibility: visible !important;
        height: auto !important;
    }
    
    /* Скрыть "Напишите нам" */
    .wa-feedback-button,
    .feedback-button,
    [class*="feedback"],
    [id*="feedback"],
    .jivosite-button,
    #jivo-iframe-container,
    .wa-chat-widget,
    [class*="chat-widget"],
    a[href*="mailto"],
    .write-us,
    button:contains("Напишите"),
    [class*="write-us"] {
        display: none !important;
    }
    
    /* Скрыть политику */
    .wa-pb-wrapper,
    #wa-pb-wrapper,
    [class*="wa-pb"],
    .privacy-banner {
        display: none !important;
    }
}

/* ===== MOBILE: СКРЫТЬ ВИДЖЕТЫ ===== */
@media (max-width: 768px) {
    /* Напишите нам */
    .wa-feedback-btn,
    #wa-feedback-btn,
    [class*="feedback-btn"],
    .feedback-button-fixed {
        display: none !important;
    }
    
    /* Политика обработки данных */
    .wa-pb-wrapper,
    #wa-pb-wrapper,
    [class*="wa-pb"] {
        display: none !important;
    }
}

/* ===== MOBILE: СКРЫТЬ SMARTCAPTCHA И КНОПКИ ===== */
@media (max-width: 768px) {
    /* Яндекс SmartCaptcha (Политика обработки) */
    .SmartCaptcha-Shield,
    [class*="SmartCaptcha"] {
        display: none !important;
    }
    
    /* Напишите нам - временно по тексту */
    a[href*="feedback"],
    button[class*="feedback"],
    .wa-form-feedback-btn,
    #wa-form-feedback-btn {
        display: none !important;
    }
}

/* ===== MOBILE: СКРЫТЬ НАПИШИТЕ НАМ ===== */
@media (max-width: 768px) {
    .mail-button,
    .js-open-feedback,
    #feedback-dialog {
        display: none !important;
    }
}

/* ===== MOBILE: ПРИНУДИТЕЛЬНО ПОКАЗАТЬ BOTTOM NAV ===== */
@media (max-width: 768px) {
    nav.bottom-nav.mobile-only {
        display: flex !important;
        visibility: visible !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: #fff !important;
        height: 60px !important;
        justify-content: space-around !important;
        align-items: center !important;
        border-top: 1px solid #eee !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
    }
    
    nav.bottom-nav.mobile-only .bottom-nav__item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        color: #666 !important;
        text-decoration: none !important;
        font-size: 10px !important;
    }
    
    nav.bottom-nav.mobile-only .bottom-nav__item.active {
        color: #990126 !important;
    }
    
    nav.bottom-nav.mobile-only .bottom-nav__icon {
        font-size: 20px !important;
        margin-bottom: 2px !important;
    }
}

/* ===== MOBILE: ФИНАЛЬНЫЕ ФИКСЫ ===== */
@media (max-width: 768px) {
    /* Убрать красную линию */
    hr, .separator, .divider,
    section::after, section::before,
    .content::before, .content::after {
        display: none !important;
        border: none !important;
    }
    
    /* Уменьшить отступы секций */
    #models {
        padding: 15px 0 !important;
        margin: 0 !important;
    }
    
    #models header {
        padding: 0 15px !important;
        margin-bottom: 15px !important;
    }
    
    #models header h2 {
        font-size: 16px !important;
        margin: 0 !important;
    }
    
    /* Контейнеры с равными отступами */
    .container {
        padding: 0 15px !important;
    }
    
    /* Секция Полезное */
    #mobile-useful {
        padding: 0 15px !important;
    }
    
    .quick-actions-grid {
        padding: 0 !important;
        margin: 0 !important;
        gap: 10px !important;
    }
}

/* ===== MOBILE: BOTTOM NAV FINAL FIX ===== */
@media (max-width: 768px) {
    nav.bottom-nav.mobile-only {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        z-index: 99999 !important;
        background: #fff !important;
        border-top: 1px solid #eee !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        justify-content: space-around !important;
        align-items: center !important;
        transform: none !important;
        pointer-events: auto !important;
    }
}

/* ===== MOBILE: КАК В МОКАПЕ ===== */
@media (max-width: 768px) {
    /* Убрать красную линию */
    hr, .separator, .divider,
    .content-header-line {
        display: none !important;
    }
    
    /* Секция моделей */
    #models {
        background: #f8f9fa !important;
        padding: 20px 0 10px !important;
        margin: 0 !important;
    }
    
    #models .container {
        padding: 0 15px !important;
    }
    
    #models header {
        margin-bottom: 15px !important;
    }
    
    #models header h2 {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #1a1a2e !important;
        margin: 0 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Сетка моделей 3 колонки */
    .models-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        margin: 0 !important;
    }
    
    /* Карточки моделей одинаковые */
    .model-card {
        background: #990126 !important;
        border-radius: 12px !important;
        padding: 15px 10px !important;
        min-height: 75px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        text-align: center !important;
    }
    
    .model-card strong {
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
    }
    
    .model-card span {
        color: rgba(255,255,255,0.8) !important;
        font-size: 11px !important;
    }
    
    /* Секция Полезное */
    #mobile-useful,
    .mobile-only-section {
        background: #f8f9fa !important;
        padding: 10px 15px 100px !important;
    }
    
    .mobile-section-title {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #1a1a2e !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin: 15px 0 !important;
        padding: 0 !important;
    }
    
    /* Сетка быстрых действий */
    .quick-actions-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Карточки действий */
    .quick-action-card {
        background: #fff !important;
        border-radius: 12px !important;
        padding: 15px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        text-decoration: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }
    
    .quick-action-icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        background: linear-gradient(135deg, #990126 0%, #6d102c 100%) !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 20px !important;
    }
    
    .quick-action-text {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #1a1a2e !important;
        line-height: 1.3 !important;
    }
}

/* ===== MOBILE: РАВНЫЕ ОТСТУПЫ ===== */
@media (max-width: 768px) {
    /* Контейнер Полезное */
    #mobile-useful {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    /* Сетка с учетом ширины */
    .quick-actions-grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Карточки не выходят за границы */
    .quick-action-card {
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    /* Также фиксим секцию моделей */
    #models .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    .models-grid {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ===== MOBILE V4: 2 КОЛОНКИ + СПИСОК ===== */
@media (max-width: 768px) {
    /* Модели - 2 колонки */
    .models-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .model-card {
        background: #990126 !important;
        border-radius: 12px !important;
        padding: 18px 15px !important;
        text-align: center !important;
        min-height: auto !important;
    }
    
    .model-card strong {
        font-size: 18px !important;
        margin-bottom: 3px !important;
    }
    
    .model-card span {
        font-size: 12px !important;
    }
    
    /* Полезное - вертикальный список */
    .quick-actions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .quick-action-card {
        background: #fff !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    }
    
    .quick-action-card::after {
        content: '›' !important;
        color: #ccc !important;
        font-size: 20px !important;
        font-weight: 300 !important;
    }
    
    .quick-action-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        font-size: 18px !important;
    }
    
    .quick-action-text {
        flex: 1 !important;
        font-size: 15px !important;
        font-weight: 500 !important;
    }
}

/* ===== MOBILE V4: ФИНАЛЬНЫЕ ПРАВКИ ===== */
@media (max-width: 768px) {
    /* 1. Логотип слитно */
    .mobile-header .logo,
    .mobile-logo {
        letter-spacing: -1px !important;
    }
    
    .mobile-header .logo span,
    .mobile-logo span {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 2. Заголовок влево */
    #models header,
    #models header h2,
    .section-title,
    .mobile-section-title {
        text-align: left !important;
    }
    
    #models header h2 {
        font-size: 18px !important;
    }
    
    /* 3. Кнопка поиска красная */
    .mobile-header .search-bar button,
    .mobile-search button,
    .search-bar button,
    .header-search button {
        background: #990126 !important;
        background-color: #990126 !important;
        color: #fff !important;
    }
    
    /* 4. Увеличить шрифты */
    .model-card strong {
        font-size: 20px !important;
    }
    
    .model-card span {
        font-size: 13px !important;
    }
    
    .quick-action-text {
        font-size: 16px !important;
    }
    
    .mobile-section-title,
    .section-title {
        font-size: 16px !important;
    }
}

/* ===== MOBILE V4: ПОЛНЫЙ ФИКС КАК В МОКАПЕ ===== */
@media (max-width: 768px) {
    /* Убрать красную полосу */
    .mobile-header::after,
    .mobile-header__search::after,
    .header::after,
    section::before,
    #models::before,
    .content::before,
    hr {
        display: none !important;
        border: none !important;
        height: 0 !important;
    }
    
    /* Единые отступы 15px */
    #models,
    #mobile-useful,
    .mobile-only-section {
        padding: 15px !important;
        margin: 0 !important;
    }
    
    #models .container {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Заголовки одинаковые */
    #models header {
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        text-align: left !important;
    }
    
    #models header h2,
    .mobile-section-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #1a1a2e !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin: 0 0 12px 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }
    
    /* Модели 2 колонки */
    .models-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
    }
    
    .model-card {
        background: #990126 !important;
        border-radius: 12px !important;
        padding: 18px 15px !important;
        text-align: center !important;
        text-decoration: none !important;
        display: block !important;
    }
    
    .model-card strong {
        display: block !important;
        color: #fff !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-bottom: 3px !important;
    }
    
    .model-card span {
        color: rgba(255,255,255,0.8) !important;
        font-size: 12px !important;
    }
    
    /* Полезное - список */
    .quick-actions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .quick-action-card {
        background: #fff !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        text-decoration: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .quick-action-card::after {
        content: '›' !important;
        color: #ccc !important;
        font-size: 20px !important;
        margin-left: auto !important;
    }
    
    .quick-action-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        background: linear-gradient(135deg, #990126 0%, #6d102c 100%) !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
    }
    
    .quick-action-text {
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #1a1a2e !important;
        flex: 1 !important;
    }
    
    /* Убрать лишний отступ внизу */
    #mobile-useful {
        padding-bottom: 80px !important;
    }
    
    /* Фон страницы */
    body,
    .content,
    main {
        background: #f5f5f5 !important;
    }
}

/* ===== MOBILE: СКРЫТЬ СТАРЫЙ ХЕДЕР + ФИКС ПОИСКА ===== */
@media (max-width: 768px) {
    /* Скрыть старый десктопный хедер */
    header#header,
    #header,
    .menu-block,
    .header-main {
        display: none !important;
    }
    
    /* Кнопка поиска красная */
    .mobile-header__search button {
        background: #990126 !important;
        color: #fff !important;
        border: none !important;
        padding: 12px 18px !important;
        font-size: 18px !important;
        border-radius: 0 10px 10px 0 !important;
    }
    
    /* Форма поиска */
    .mobile-header__search form {
        display: flex !important;
        background: #fff !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }
    
    .mobile-header__search input {
        flex: 1 !important;
        border: none !important;
        padding: 12px 15px !important;
        font-size: 15px !important;
        outline: none !important;
    }
    
    /* Отступы мобильного хедера */
    .mobile-header__search {
        padding: 0 15px 12px !important;
    }
}

/* ===== MOBILE: ПОКАЗАТЬ ХЕДЕР ПРАВИЛЬНО ===== */
@media (max-width: 768px) {
    /* Показать header контейнер */
    header#header,
    #header {
        display: block !important;
    }
    
    /* Показать мобильный хедер */
    .mobile-header {
        display: block !important;
    }
    
    /* Скрыть только десктопные элементы внутри */
    .menu-block,
    #menu-top,
    .header-main {
        display: none !important;
    }
}

/* ===== MOBILE: УБРАТЬ КРАСНУЮ ПОЛОСУ #header ===== */
@media (max-width: 768px) {
    #header {
        border-top: none !important;
    }
}

/* ===== MOBILE: КНОПКА ПОИСКА ===== */
@media (max-width: 768px) {
    /* Контейнер поиска */
    .mobile-header__search {
        padding: 0 15px 12px !important;
    }
    
    .mobile-header__search form {
        display: flex !important;
        background: #fff !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-shadow: none !important;
    }
    
    .mobile-header__search input {
        flex: 1 !important;
        border: none !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
        outline: none !important;
        background: #fff !important;
        border-radius: 10px 0 0 10px !important;
        min-width: 0 !important;
    }
    
    .mobile-header__search button {
        background: #990126 !important;
        border: none !important;
        padding: 14px 20px !important;
        color: #fff !important;
        font-size: 18px !important;
        cursor: pointer !important;
        border-radius: 0 10px 10px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 55px !important;
    }
}

/* ===== MOBILE: КНОПКА ПОИСКА НА ВСЮ ВЫСОТУ ===== */
@media (max-width: 768px) {
    .mobile-header__search form {
        display: flex !important;
        align-items: stretch !important;
        background: #fff !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }
    
    .mobile-header__search button {
        align-self: stretch !important;
        height: auto !important;
        padding: 0 20px !important;
        margin: 0 !important;
        border-radius: 0 10px 10px 0 !important;
    }
    
    .mobile-header__search input {
        margin: 0 !important;
        border-radius: 10px 0 0 10px !important;
    }
}

/* ===== DESKTOP: КНОПКА ПОИСКА ===== */
.header-search form {
    display: flex !important;
    align-items: stretch !important;
    background: #fff !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.header-search input {
    flex: 1 !important;
    border: none !important;
    border-radius: 6px 0 0 6px !important;
    margin: 0 !important;
}

.header-search button {
    align-self: stretch !important;
    height: auto !important;
    border-radius: 0 6px 6px 0 !important;
    margin: 0 !important;
    padding: 12px 18px !important;
    background: #6d102c !important;
    border: none !important;
    color: #f5e6c8 !important;
}

/* ===== DESKTOP: УБРАТЬ ЗАЗОР ПОИСКА ===== */
.header-search form {
    gap: 0 !important;
}

.header-search input {
    border-right: none !important;
}

.header-search button {
    margin-left: 0 !important;
    border-left: none !important;
}

/* ===== DESKTOP: УБРАТЬ INSET SHADOW ===== */
.header-search form,
.header-search input,
.header-search button {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.header-search form {
    border: none !important;
}

.header-search input {
    box-shadow: none !important;
}

/* ===== DESKTOP: СКРЫТЬ МОБИЛЬНОЕ МЕНЮ ===== */
@media (min-width: 769px) {
    .bottom-nav,
    nav.bottom-nav,
    .mobile-only {
        display: none !important;
    }
}

/* ===== DESKTOP: ЗАЗОР ПОИСКА - ФИНАЛЬНО ===== */
.header-search form {
    box-shadow: inset 0 0 0 0 transparent !important;
    background: #fff !important;
}

.header-search input {
    box-shadow: inset 0 0 0 0 transparent !important;
    background: transparent !important;
}

/* ===== PRODUCT CARD FONT - INTER (Apple-like) ===== */
.product-info,
.product-info h1,
#product-description,
#product-description .block,
.mytabs-container,
.cart .skus label,
.cart .price {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
.product-info h1 {
    font-weight: 600;
    letter-spacing: -0.02em;
}
#product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Соседние подкатегории - компактные колонки */
.subcategories-columns {
    column-count: 5;
    column-gap: 20px;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.subcategories-columns a {
    display: block;
    padding: 4px 0;
    color: #6d102c;
    text-decoration: none;
    font-size: 13px;
    break-inside: avoid;
    line-height: 1.4;
}
.subcategories-columns a:hover { 
    text-decoration: underline; 
}
.subcategories-columns a.selected { 
    font-weight: 700; 
    color: #333;
}

@media (max-width: 1200px) {
    .subcategories-columns { column-count: 4; }
}
@media (max-width: 900px) {
    .subcategories-columns { column-count: 3; }
}
@media (max-width: 600px) {
    .subcategories-columns { column-count: 2; }
}

/* Листовая категория со схемой: переключаемый layout */
.assembly-layout-shell {
    --assembly-accent: #6d102c;
    --assembly-accent-2: #8f2346;
    --assembly-border: rgba(109, 16, 44, 0.15);
    --assembly-surface: linear-gradient(180deg, #fbf8f9 0%, #f1e6ea 100%);
}
.assembly-layout-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0 0 20px;
}
.assembly-layout-label {
    color: #7b6970;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.assembly-layout-switcher {
    position: relative;
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
    border-radius: 999px;
    background: var(--assembly-surface);
    border: 1px solid var(--assembly-border);
    box-shadow: 0 10px 24px rgba(60, 20, 32, 0.08);
    overflow: hidden;
}
.assembly-layout-switcher::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--assembly-accent) 0%, var(--assembly-accent-2) 100%);
    box-shadow: 0 10px 18px rgba(109, 16, 44, 0.22);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s ease;
}
.assembly-layout-switcher[data-layout="stacked"]::before {
    transform: translateX(100%);
    box-shadow: 0 12px 24px rgba(109, 16, 44, 0.24);
}
.assembly-layout-button {
    position: relative;
    z-index: 1;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--assembly-accent);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
    padding: 10px 18px;
    border-radius: 999px;
    transition: color .25s ease, transform .25s ease;
}
.assembly-layout-button.is-active {
    color: #fff;
}
.assembly-layout-button:hover {
    transform: translateY(-1px);
}
.assembly-layout-button:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.assembly-wrapper--diagram {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas: "diagram parts";
    gap: 28px;
    align-items: stretch;
}
.assembly-wrapper--diagram .assembly-diagram {
    grid-area: diagram;
    min-width: 0;
    align-self: stretch;
    overflow-y: auto;
    overflow-x: hidden;
}
.assembly-wrapper--diagram .assembly-diagram-media {
    position: relative;
    width: 100%;
    display: block;
}
.assembly-wrapper--diagram .assembly-diagram-image {
    display: block;
    width: 100%;
    height: auto;
}
.assembly-wrapper--diagram .assembly-diagram-media a {
    display: block;
    width: 100%;
    height: 100%;
}
.assembly-wrapper--diagram .assembly-diagram-media--injected {
    margin-top: 8px;
}
.assembly-wrapper--diagram .assembly-description {
    margin-top: 12px;
}
.assembly-wrapper--diagram .assembly-description > h1:first-child {
    margin: 0 0 10px;
    text-align: left;
}
.assembly-wrapper--diagram .assembly-description a.zoom img {
    display: block;
    max-width: 100%;
    height: auto;
}
.assembly-wrapper--diagram .assembly-parts {
    grid-area: parts;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.assembly-wrapper--diagram .assembly-parts .parts-table-wrapper {
    flex: 1 1 auto;
    min-height: 0;
}
.assembly-wrapper--diagram[data-layout="stacked"] {
    grid-template-columns: 1fr;
    grid-template-areas:
        "diagram"
        "parts";
    gap: 16px;
}
.assembly-wrapper--diagram[data-layout="stacked"] .assembly-diagram {
    max-height: none;
    overflow: visible;
}
.assembly-wrapper--diagram[data-layout="stacked"] .assembly-diagram-media,
.assembly-wrapper--diagram[data-layout="stacked"] .assembly-diagram-media--injected {
    margin-top: 0;
}
.assembly-wrapper--diagram[data-layout="stacked"] .assembly-description {
    margin-top: 4px;
}
.assembly-wrapper--diagram[data-layout="stacked"] .assembly-description > h1:first-child {
    margin-bottom: 8px;
}
.assembly-description a.zoom {
    display: block;
}
.assembly-description a.zoom img {
    display: block;
    width: 100%;
    height: auto;
}
/* Ограничение высоты ТОЛЬКО в stacked mode до обработки trim */
.assembly-wrapper--diagram[data-layout="stacked"] .assembly-description a.zoom {
    max-height: 55vh;
    overflow: hidden;
}
.assembly-wrapper--diagram[data-layout="stacked"] .assembly-diagram.is-trimmed .assembly-description a.zoom {
    max-height: none;
    overflow: visible;
}
.assembly-wrapper--diagram[data-layout="stacked"] .assembly-parts .parts-table-wrapper {
    height: auto !important;
    min-height: 0;
    max-height: none;
    overflow-y: visible;
}

.assembly-notes-slot {
    grid-column: 1 / -1;
}
.bsp-notes-details {
    margin: 0;
    border: 1px solid rgba(109, 16, 44, 0.15);
    border-radius: 10px;
    overflow: hidden;
}
.bsp-notes-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #6d102c;
    letter-spacing: 0.03em;
    cursor: pointer;
    background: linear-gradient(135deg, #fbf8f9 0%, #f1e6ea 100%);
    user-select: none;
    list-style: none;
}
.bsp-notes-summary::-webkit-details-marker {
    display: none;
}
.bsp-notes-summary::before {
    content: "\25B6";
    font-size: 10px;
    transition: transform .2s ease;
}
.bsp-notes-details[open] > .bsp-notes-summary::before {
    transform: rotate(90deg);
}
.bsp-notes-details .bsp-notes {
    padding: 14px 18px;
    border-top: 1px solid rgba(109, 16, 44, 0.1);
    background: linear-gradient(135deg, #f8f6f3 0%, #f0ece6 100%);
}
.bsp-notes-details .bsp-notes ul {
    margin: 0 0 10px;
    padding-left: 18px;
}
.bsp-notes-details .bsp-notes li {
    margin-bottom: 10px;
    line-height: 1.7;
}
.bsp-notes-details .bsp-notes a {
    color: #6d102c;
    text-decoration: underline;
    text-decoration-color: rgba(109, 16, 44, 0.3);
}
.bsp-notes-details .bsp-notes a:hover {
    text-decoration-color: #6d102c;
}
.bsp-notes-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(109, 16, 44, 0.1);
    font-size: 0.85em;
    color: #7b6970;
}
.bsp-notes-legend b {
    color: #6d102c;
    font-weight: 700;
}

.assembly-layout-shell .assembly-diagram,
.assembly-layout-shell .assembly-parts {
    transition: opacity .24s ease, transform .36s cubic-bezier(.22, 1, .36, 1), filter .36s ease;
    transform-origin: 50% 0;
    will-change: opacity, transform;
}
.assembly-layout-shell.is-layout-changing .assembly-diagram,
.assembly-layout-shell.is-layout-changing .assembly-parts {
    opacity: 0.35;
    transform: translateY(10px) scale(0.995);
    filter: saturate(0.92);
}

@media (max-width: 780px) {
    .assembly-layout-toolbar {
        display: none;
    }
    .assembly-wrapper--diagram {
        grid-template-columns: 1fr;
        grid-template-areas:
            "diagram"
            "parts";
        gap: 20px;
    }
    .assembly-wrapper--diagram .assembly-parts .parts-table-wrapper {
        height: auto !important;
        min-height: 0;
        max-height: none;
        overflow-y: visible;
    }
}
@media (max-width: 520px) {
    .assembly-layout-switcher {
        width: 100%;
    }
    .assembly-layout-button {
        padding: 9px 14px;
        font-size: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .assembly-layout-switcher::before,
    .assembly-layout-button,
    .assembly-layout-shell .assembly-diagram,
    .assembly-layout-shell .assembly-parts {
        transition: none;
    }
}

/* Листовая без диаграммы: hero, горизонтальная навигация, таблица */
.assembly-wrapper--no-diagram {
    display: grid;
    gap: 24px;
    align-items: start;
}
.no-diagram-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 36px;
    border-radius: 30px;
    border: 1px solid rgba(109, 16, 44, 0.12);
    background:
        radial-gradient(circle at top right, rgba(109, 16, 44, 0.10) 0%, rgba(109, 16, 44, 0) 34%),
        linear-gradient(135deg, #fffdf7 0%, #faf3f5 46%, #f2e6ea 100%);
    box-shadow: 0 18px 40px rgba(54, 18, 28, 0.08);
}
.no-diagram-kicker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
}
.no-diagram-section {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #6d102c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.no-diagram-kicker {
    display: inline-block;
    color: #7b6970;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.no-diagram-hero-copy {
    margin-top: 22px;
}
.no-diagram-title {
    margin: 0;
    color: #2f2328;
    font-size: clamp(38px, 4.8vw, 64px);
    line-height: 0.96;
    max-width: 15ch;
    text-wrap: balance;
}
.no-diagram-description {
    margin: 18px 0 0;
    max-width: 68ch;
    color: #6f6066;
    font-size: 16px;
    line-height: 1.65;
}
.no-diagram-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
.no-diagram-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(109, 16, 44, 0.10);
    background: rgba(255, 255, 255, 0.82);
    color: #6f6066;
    font-size: 13px;
    font-weight: 600;
}
.no-diagram-pill strong {
    color: #6d102c;
    font-size: 20px;
    line-height: 1;
}
.sibling-nav {
    border-radius: 24px;
    border: 1px solid rgba(109, 16, 44, 0.10);
    background: #fff;
    box-shadow: 0 12px 26px rgba(54, 18, 28, 0.06);
}
.sibling-nav-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}
.sibling-nav-summary::-webkit-details-marker {
    display: none;
}
.sibling-nav-kicker {
    display: inline-block;
    color: #7b6970;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sibling-nav-summary-copy {
    min-width: 0;
}
.sibling-nav-title {
    display: block;
    margin-top: 6px;
    color: #2f2328;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}
.sibling-nav-summary-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sibling-nav-counter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f6ecef;
    color: #6d102c;
    font-size: 13px;
    font-weight: 700;
}
.sibling-nav-chevron {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid #6d102c;
    border-bottom: 2px solid #6d102c;
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.sibling-nav[open] .sibling-nav-chevron {
    transform: rotate(225deg);
}
.sibling-nav-panel {
    padding: 0 18px 16px;
    border-top: 1px solid rgba(109, 16, 44, 0.10);
}
.sibling-nav-list {
    display: grid;
    gap: 8px;
    padding-top: 14px;
}
.sibling-nav-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px 14px;
    border-radius: 16px;
    border: 1px solid rgba(109, 16, 44, 0.08);
    background: #fbf8f9;
    color: #6d102c;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.sibling-nav-link:hover {
    border-color: rgba(109, 16, 44, 0.18);
    background: #fff;
    box-shadow: 0 8px 18px rgba(54, 18, 28, 0.06);
}
.sibling-nav-link.selected {
    border-color: transparent;
    background: linear-gradient(135deg, #6d102c 0%, #8f2346 100%);
    box-shadow: 0 10px 20px rgba(109, 16, 44, 0.18);
    color: #fff;
}
.sibling-nav-index {
    padding-top: 2px;
    color: rgba(109, 16, 44, 0.48);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sibling-nav-link.selected .sibling-nav-index {
    color: rgba(255, 255, 255, 0.74);
}
.sibling-nav-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}
.assembly-wrapper--no-diagram .assembly-parts-shell {
    min-width: 0;
    padding: 24px 26px 28px;
    border-radius: 30px;
    border: 1px solid rgba(109, 16, 44, 0.10);
    background: #fff;
    box-shadow: 0 18px 34px rgba(54, 18, 28, 0.07);
}
.assembly-wrapper--no-diagram .assembly-parts {
    min-width: 0;
}
.assembly-wrapper--no-diagram .assembly-parts-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(109, 16, 44, 0.10);
}
.assembly-wrapper--no-diagram .assembly-parts-head-copy h2 {
    margin: 8px 0 0;
    color: #2f2328;
    font-size: 28px;
    line-height: 1.05;
}
.assembly-wrapper--no-diagram .assembly-parts-kicker {
    display: inline-block;
    color: #7b6970;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.assembly-wrapper--no-diagram .assembly-parts-pill {
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f6ecef;
    color: #6d102c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.assembly-wrapper--no-diagram .assembly-parts-shell #ppf-parts-table {
    min-height: 0;
    max-height: none;
    overflow-y: visible;
}

@media (max-width: 1100px) {
    .no-diagram-hero {
        padding: 30px 28px;
    }
    .no-diagram-title {
        max-width: none;
    }
    .assembly-wrapper--no-diagram .assembly-parts-head {
        align-items: start;
        flex-direction: column;
    }
}
@media (max-width: 980px) {
    .sibling-nav-summary {
        padding: 16px 16px 15px;
    }
    .sibling-nav-panel {
        padding: 0 16px 15px;
    }
}
@media (max-width: 720px) {
    .no-diagram-hero {
        padding: 26px 20px;
    }
    .no-diagram-title {
        font-size: 42px;
        max-width: none;
    }
    .no-diagram-description {
        font-size: 15px;
    }
    .sibling-nav-summary {
        gap: 12px;
    }
    .sibling-nav-title {
        font-size: 16px;
    }
    .sibling-nav-summary-meta {
        gap: 10px;
    }
    .assembly-wrapper--no-diagram .assembly-parts-shell {
        padding: 18px 16px 20px;
    }
    .assembly-wrapper--no-diagram .assembly-parts-head-copy h2 {
        font-size: 24px;
    }
}
@media (max-width: 520px) {
    .no-diagram-title {
        font-size: 34px;
    }
}
