/*
 * Copyright (C) $user$, Inc - All Rights Reserved
 *
 *  <other text>
 * @file        style.css
 * @author      ignatenkovnikita, Inreco LAN
 * @date        $date$
 */

html{
    width: 100%;
}

ul {
    border: none !important;
}

/* Discount */

.product-info-price-percent{
    margin-left: 14px;
    font-size: 22px;
    padding: 0 6px;
    background-color: red;
    color: white;
}

.product-price-percent-helper{
    margin-top: 5px;
    font-size: 20px;
    opacity: 0;
}

.product-price-percent{
    margin-top: 5px;
    font-size: 20px;
    color: white;
}

.product-price-percent>span{
    padding: 0 4px;
    background-color: red;
}

/* Blog */

.blog-list-wrapper{
    list-style: none;
    padding: 0;
}

.blog-list-wrapper>li {
    background-color: white;
    padding: 3px 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 2px -2px 5px 0 rgba(0,0,0,.1),
         -2px -2px 5px 0 rgba(0,0,0,.1),
        2px 2px 5px 0 rgba(0,0,0,.1),
        -2px 2px 5px 0 rgba(0,0,0,.1);
    transition: 0.3s all linear;
}

.blog-list-wrapper>li:nth-child(2n) {
    border-left: 10px solid #2f3a85; 
}
    
.blog-list-wrapper>li:nth-child(2n+1) {
    border-left: 10px solid #feec00; 
}

.blog-list-wrapper>li:hover {
    transform: scale(1.05);
}

.blog-list-wrapper>li>a {
    text-decoration: none;
    color:black;
}

@media screen and (max-width: 767px) {
    .blog-search-field{
        width: 100%;
    }
}

@media screen and (min-width: 767px) {
    .blog-search-field{
        width: 600px;
    }
}

.blog-search-field{
    border: 1px solid grey;
    border-radius: 5px;
    background-color: #e9e9e9;
    margin-top: 20px;
    padding-left: 10px;
}

.main-article-title{
    font-size: 26px;
    margin: 20px 0;
}

.main-article>a>.shadow-article{
    box-shadow: inset 0px -70px 50px 0px rgba(0,0,0,0.75);
}

.shadow-article{
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-box-shadow: inset 0px -40px 50px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: inset 0px -40px 50px 0px rgba(0,0,0,0.75);
    box-shadow: inset 0px -40px 50px 0px rgba(0,0,0,0.75);
}

.blog-article-title{
    margin-bottom: 10px;
    background-color: #feec00 !important;
    color: #2f3a85 !important;
    font-weight: bold;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, .1);
    padding: 10px 20px;
    text-transform: capitalize;
    text-align: center;
    border-bottom: 0;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
}

.blog-banner>ul{
    padding: 0 18px;
}

.blog-banner{
    background-color: white;
}

.all_stats>a{
    color: grey;
    text-decoration: none;
}


.blog-list>li{
    line-height: 1;
    padding-bottom: 15px;
    list-style-type: none;
}

.articles-wrapper{
    font-weight: bold;
    color: white;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 20px;
    grid-auto-rows: minmax(90px, auto);
}

.articles-wrapper-all>div>a{
    text-decoration: none;
    color: black;
}

.articles-wrapper-else{
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
    grid-auto-rows: minmax(200px, auto);
}

.else-article{
    position: relative;
}

.main-article{
    position: relative;
    grid-column: 1 / 5;
    grid-row: 1 / 5;
}

.main-article>a>span{
    font-size: 28px;
}

.second-article{
    position: relative;
    grid-column: 5 / 7;
    grid-row: 1 / 3;
}

.third-article{
    position: relative;
    grid-column: 5 / 7;
    grid-row: 3 / 5;
}

@media screen and (max-width: 767px) {
    .main-article>a>.shadow-article{
        box-shadow: inset 0px -40px 50px 0px rgba(0,0,0,0.75);
    }

    .main-article>a>span{
        font-size: 14px;
    }

    .articles-wrapper{
        grid-auto-rows: minmax(200px, auto);
        grid-template-columns: repeat(1, 1fr);
    }

    .main-article{
        grid-column: 1;
        grid-row: 1;
    }
    
    .second-article{
        grid-column: 1;
        grid-row: 2;
    }
    
    .third-article{
        grid-column: 1;
        grid-row: 3;
    }

    .articles-wrapper-else{
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(200px, auto);
    }
}

.main-blog-image{
    height: 100%;
    width: 100%;
    object-fit: cover;
    vertical-align: baseline;
}

.text-inside-image{
    color: white;
    position: absolute;
    bottom: 8px;
    left: 16px;
    right: 16px;
    font-weight: bold;
}

.article-button-wrapper{
    margin: 20px 0;
    text-align: center;
}

.article-button{
    border-radius: 5px;
    background-color: transparent;
    border: 1px solid black;
    padding: 5px 30px;
}

/* Autocomplete */
.autocomplete-wrapper{
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: white;
    z-index: 999;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-wrapper-items{
    padding: 0 18px;
    border: 1px solid #d4d4d4;
    border-top: none;
}

.autocomplete-wrapper-items>a{
    width: 100%;
    text-decoration: none;
    color: initial;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-wrapper-items>a:hover{
    color: red;
}

.autocomplete-wrapper-items:hover{
    background-color: #e9e9e9;
}

.autocomplete-price{
    font-weight: bold;
}

/* Grid list of element */
.pagination{
    border: none;
}

.grid-custom-list{
    display: grid;
    grid-template-columns: 23% 23% 23% 23%;
    grid-gap: 2vw;
}

@media (max-width: 1200px){
    .grid-custom-list{
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px){
    .grid-custom-list{
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px){
    .grid-custom-list{
        grid-template-columns: 1fr;
        grid-gap: 8vw;
    }
}

/* Banner */

.custom_banner_wrapper{
    position: fixed;
    display: none;
    z-index: 9999;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
}

.custom_banner{
    top: 13vh;
    position: fixed;
    display: flex;
    justify-content: flex-end;
}

.custom_banner>a>img{
    pointer-events: none;
}

.cross{
    text-align: center;
    z-index: 2;
    cursor: pointer;
    position: absolute;
    opacity: 0.3;
    width: 35px;
    height: 35px;
    top: 20px;
    right: 20px;
    }

.cross:hover {
    opacity: 1;
    }
.cross:before, .cross:after {
    position: absolute;
    content: ' ';
    height: 35px;
    width: 6px;
    background-color: black;
    }

.cross:before {
    transform: rotate(45deg);
    }
.cross:after {
    transform: rotate(-45deg);
    }

/* Side menu */

.mobile-contact {
    display: none;
}

.menu-for-mobile {
    display: none;
}

.widget-categories__custom {
    background: transparent;
}

.widget-categories__custom .widget-title {
    -webkit-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    -moz-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
}

.widget-categories > div {
    background: #fff;
}

.widget-categories ul > li a {
    font-weight: 700;
}

.widget-categories ul > li.level2 a {
    font-weight: 600;
}

.widget-categories ul > li.level3 a {
    font-weight: 500;
}

.widget-categories > .widget-title {
    margin-bottom: 0;
    padding-bottom: 0;
    font-weight: bold;
    font-size: 19px;
    color: #000000 !important;
}

.widget-categories div > ul {
    border-radius: 7px;
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
    -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
}

.widget-categories ul > li > a, .widget-links ul > li > a {
    z-index: 99;
}

.widget-categories ul > li::before, .widget-links ul > li::before {
    color: #000 !important;
    display: none;
}

.widget-categories ul > li.has-children ul li::before, .widget-links ul > li.has-children ul li::before {
    color: #323b86 !important;
}

/* custom menu */

.widget-categories__custom .widget-title {
    background-color: #feec00 !important;
    color: #2f3a85 !important;
    font-weight: bold;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, .1);
    padding: 10px 20px;
    z-index: 1001;
    text-transform: capitalize;
    text-align: center;
    border-bottom: 0;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
}

.widget-categories__custom .widget-title .custom__name {
    border-bottom: 1px solid #2f3a85;
    position: relative;
    padding-left: 10px;
}

.widget-categories__custom .widget-title .custom__name:before {
    background-image: url(../img/new/ico-katalog.svg);
    position: absolute;
    left: -32px;
    height: 25px;
    width: 25px;
    content: '';
    background-repeat: no-repeat;
    background-size: contain;
    top: -1px;
}

.widget-categories__custom ul > li.has-children > a::after {
    color: #bec0c3 !important;
    content: "+";
    position: absolute;
    right: 10px;
    display: block;
    border: 1px solid #bec0c3;
    border-radius: 100%;
    font-family: initial;
    font-size: 20px;
    line-height: 21px;
    padding: 0 5px;
    background-color: #fff;
    top: 16px;
    -moz-transform: rotate(0deg); /* Для Firefox */
    -ms-transform: rotate(0deg); /* Для IE */
    -webkit-transform: rotate(0deg); /* Для Safari, Chrome, iOS */
    -o-transform: rotate(0deg); /* Для Opera */
    transform: rotate(0deg);
    transition: all .6s;
}

.widget-categories__custom ul > li.has-children.expanded > a::after {
    content: "–";
    padding: 0 6px;
    background-color: #ececec;
    -moz-transform: rotate(360deg); /* Для Firefox */
    -ms-transform: rotate(360deg); /* Для IE */
    -webkit-transform: rotate(360deg); /* Для Safari, Chrome, iOS */
    -o-transform: rotate(360deg); /* Для Opera */
    transform: rotate(360deg);
    transition: all .6s;
    padding-bottom: 3px;
    line-height: 18px;
}

.widget-categories__custom ul > li {
    margin: 0;
    padding: 0;
    border: 1px solid #ddd;
    border-top: 1px solid #eee;
    border-bottom: none;
}

.level1 ul>li {
    margin-left: 7px;
}

.level1 ul>li {
    border-top: 1px solid #ddd;
    /* border-radius: 6px; */
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.widget-categories__custom ul > li > a {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 52px;
    justify-content: center;
    color: #2e3846;
}

.widget-categories ul>li.has-children>ul, .widget-links ul>li.has-children>ul{
  background-color: #323b86;
}

.widget-categories__custom ul > li > a:hover {
    background-color: #323b86;
    color: #ffffff !important;
}

.widget-categories__custom ul > li > ul > li {
    background-color: #ececec;
}

.widget-categories__custom ul > li > ul > li a {
    color: #2e3846;
}

.widget-categories__custom ul > li > a {
    color: #2f3a85;
    padding-left: 14px;
    padding-right: 35px;
}

.widget__contact-text {
    display: inline-block;
    transition: color .3s;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.widget-categories__custom ul > li.active > a, .widget-categories__custom .widget-links ul > li.active > a {
    background-color: #feec00;
    color: #000000 !important;
}

.widget-categories ul > li.active > a, .widget-links ul > li.active > a {
    background-color: #feec00;
    color: #000000 !important;
    font-weight: 700;
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
    -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
}

.widget-categories__custom .widget-title {
    margin-top: 0;
    margin-bottom: -1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
}

/* Side menu */

.page-title {
    padding: 10px 0;
}

h4.card-title {
    font-size: 16px;
    word-break: break-word;
}

.card-title {
    height: 70px;
}

.product-card .product-title {
    height: 100px;
}

.product-gallery {
    padding-top: 15px;
}

.product-gallery .product-badge {
    z-index: 12;
    left: 30px;
}

.navbar {
    margin-bottom: 0 !important;
}

.offcanvas-wrapper {
    background: url(./../img/wood_bg.jpg) 50% 50% repeat;
    background-attachment: fixed;
}

.site-logo {
    width: 260px !important;
    padding: 4px 0 0 15px !important;
    text-decoration: none !important;
    vertical-align: top;
}

.box {
    overflow: hidden;
    height: 200px;
    width: 150px;
    line-height: 20px;
}

.box:before {
    content: "";
    float: left;
    width: 5px;
    height: 200px;
}

.box > *:first-child {
    float: right;
    width: 100%;
    margin-left: -5px;
}

.box:after {
    content: "\02026";
    box-sizing: content-box;
    float: right;
    position: relative;
    top: -25px;
    left: 100%;
    width: 3em;
    margin-left: -3em;
    padding-right: 5px;
    text-align: right;
    background-size: 100% 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white 50%, white);
}

.product-price-discount {
    color: #ff0000;
    font-size: 25px;
    float: none;
    clear: both;
    display: block;
    text-align: center;
}

.product-price-discount-detail {
    text-align: left;
}

.product-price-discount__detail {
    font-size: 35px;
}

.product-price__default {
    font-size: 25px;
}

.black {
    color: #000 !important;
}

.breadcrumb-custom {
    background: none !important;
}

.breadcrumb-custom > li.active {
    color: #2f3a85;
}

.breadcrumb-custom > li > a {
    color: #2f3a85;
}

.breadcrumb > li + li:before {
    color: #323b86 !important;
}

body {
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.body {
    color: #000000;
    font-weight: bold;
}

/* new theme */

.navbar-custom {
    background-color: white;
    border-bottom: none;
}

.navbar {
    min-height: 50px;
}

.toolbar .cart > a {
    z-index: 999;
}

.toolbar .cart > a:after {
    display: none;
}

.navbar-custom .toolbar-custom {
    position: initial;
    height: initial;
}

.navbar-custom .toolbar-custom .inner {
    float: none;
    display: block;
    width: initial;
    height: initial;
    min-height: initial;
}

.navbar-custom .toolbar-custom .inner .tools {
    display: block;
}

.navbar-custom .toolbar-custom .inner .cart {
    float: none;
    margin: 0;
}

.cart-custom {
    background-color: #323b87;
    color: #FFFFFF !important;
}

.search-custom {
    color: white !important;
    background-color: #323b86;
}

.site-branding {
    position: initial !important;
}

.product-price-default {
    font-size: 13px !important;
}

.product-card .product-buttons {
    padding: 0 !important;
}

.product-card .product-title {
    font-size: 15px !important;
}

.card-custom {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    background: #fff !important;
    -webkit-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    -moz-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
}

/* Баннеры услуг на главной: вся карточка — картинка с запечённым текстом */
.service-banner {
    display: block;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    transition: transform .15s ease, box-shadow .15s ease;
}

.service-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 0 rgba(46, 56, 70, 0.2);
}

.card-custom a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 80px;
    width: 100%;
    padding: 15px;
}

.card-custom a:hover {
    background-color: #feec00;
}

.card-custom a h3 {
    color: #4b5bcc;
}

.card-custom > a > .row > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

a {
    color: #323b85;
}

.product-card-custom {
    padding: 10px !important;
    -webkit-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    -moz-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-custom .product-title {
    flex: 1 1 auto;
    overflow: hidden;
}

.product-card-custom .product-price {
    margin-top: auto;
}

.card-custom h6 {
    color: #000 !important;
    font-weight: 600;
    font-size: 15px;
}

.card-custom p {
    color: #000 !important;
    margin: 4px 0 0 0;
    padding: 0;
    font-size: 11px;
    line-height: 1.3;
}

.card-custom div.col-md-8 {
    padding-left: 2px;
}

.card-custom a {
    text-decoration: none;
}

.owl-carousel__brand {
    background-color: #ffffff;
}

.owl-centered .owl-wrapper {
    display: table !important;
}

.owl-centered .owl-item {
    display: table-cell;
    float: none !important;
    vertical-align: middle;
}

.owl-centered .owl-item > div {
    text-align: center;
}

.owl-carousel__brand .owl-item {
    border-right: 1px solid #f3f3f3;
}

/* cart custom */

.cart__custom {
    color: #f3f3f3 !important;
    border-radius: 5px !important;
    line-height: 22px;
    padding: 3px;
    padding-right: 5px;
    width: 180px;
}

.cart__custom .cart-meta {
    padding-left: 33px;
}

.cart__custom .count__custom, .subtotal__custom {
    line-height: 16px;
    font-size: 13px;
}

.cart__custom .subtotal__custom {
    line-height: 16px;
    font-size: 13px;
}

/* custom search */

.site-search__custom button {
    border-radius: 5px;
    background-color: #2f3a85;
    color: #f3f3f3;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    border-color: #ccc;
    padding-left: 10px;
    padding-right: 20px;
    width: 130px;
}

.site-search__custom input {
    border-radius: 5px;
    max-width: 713px;
    display: inline-block
}

.product-card .product-title > a:hover {
    color: #323b87 !important;
}

.btn-outline-primary {
    color: #323b87 !important;
    border: 1px solid #323b87;
}

.shopping-layout {
    border-radius: 10px;
    border: 1px solid rgb(221, 221, 221);
    box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    background-color: #fff;
    padding: 10px;
}

.container .site-search__custom {
    width: 100%;
}

.container .site-search__custom .form-control {
    width: 100%;
    height: 32px;
    background-color: #2f3a85;
    background-repeat: no-repeat;
    position: relative;
    background-size: 30px;
    background-position-x: 15px;
    background-position-y: 9px;
    color: #fff;
    font-size: 19px;
    border: none;
    border-radius: 0;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.container .site-search__custom .form-control::placeholder {
    font-size: 19px;
    color: #fff;
}

.site-search__custom .btn {
    margin: 0 0 0 2px;
    width: 36px;
    height: 32px;
    border-radius: 0;
    text-transform: none;
    text-shadow: none;
    padding: 0;
    font-size: 0;
    background-image: url(../img/new/ico-poisk.svg);
    background-repeat: no-repeat;
    background-size: 22px;
    background-position: center;
    outline: none;
    border: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* «Акции и Предложения» — красная пилюля с % и шевроном (иконки в _header_second_line.php) */
.header-second-line .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e53935;
    color: #fff;
    line-height: 20px;
    font-size: 15px;
    text-decoration: none;
    font-weight: 700;
    text-transform: none;
    padding: 7px 16px;
    border-radius: 999px;
    margin-top: 2px;
}

.header-second-line .dropdown-toggle:hover,
.header-second-line .dropdown-toggle:focus {
    background: #c62828;
    color: #fff;
    text-decoration: none;
}

.header-second-line .dropdown-toggle svg {
    flex: none;
}

.product-card .product-thumb > img {
    border-radius: 6px;
}

.banner {
    margin-top: 30px;
    margin-bottom: 20px;

    display: block;
    position: relative;
    width: 100%;
    border: 1px solid #e1e7ec;
    border-radius: 7px;

    -webkit-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    -moz-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
}

.banner img {
    border-radius: 7px;
}

.banner>a>img{
    width: 100%;
}

.scroll-to-top-btn{
    margin-bottom: 90px; /* десктоп: над иконкой чат-ассистента (она fixed bottom:24px, h64 → верх ~88px) */
}

.field-icon{
    float: right;
    left: -15px;
    top: 43px;
    position: relative;
    font-size: 17px;
}

@media (min-width: 768px) {

    .header-second-line {
        padding-top: 10px;
        padding-bottom: 8px;
        background-color: #e9e9e9;
        border-top: 1px solid #d1d2d3;
        border-bottom: 1px solid #d1d2d3;
    }

    .header-second-line .dropdown {
        margin-right: 34px;
    }
}

@media (min-width: 992px) {

    .widget-categories__custom {
        margin-top: -43px;
    }

    /* при флеш-плашке (после отправки формы) каталог не поднимаем — иначе наезжает на алерт */
    .main-block-custom .alert ~ .row .widget-categories__custom {
        margin-top: 0;
    }
}

.owl-stage-outer{
    padding-bottom: 5px;
}

.large-controls>.owl-stage-outer{
    padding-bottom: 0;
}

.hero-slider1 .owl-carousel .owl-stage-outer {
    border-radius: 6px;
    -webkit-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    -moz-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
}

.hero-slider1 img {
    min-width: 100%;
    border: 1px solid #ddd;
}

.btn > i {
    margin-top: -10px;
}

.navbar_contact {
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    text-decoration: none;
    color: #2f3a85;
}

.form-control {
    border-radius: 5px;
}

.add_to_cart{
    display: flex;
    justify-content: space-evenly;
}

.add_to_cart>div{
    display: flex;
}

.add_to_cart .btn {
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 2.5px;
    border-radius: 3px;
    line-height: 16px;
    max-height: 33px;
    padding: 0 3px !important;
}

.add_to_cart-minus {
    user-select: none;
    height: 33px;
    outline: none;
    border-radius: 2px;
    border: 1px solid rgb(118, 118, 118);
    margin-right: -1px;
    padding-bottom: 0;
    padding-top: 0;
    padding-left: 6px;
    padding-right: 6px;
}

.full_height{
    height: 100% !important;
}

.add_to_cart-minus:hover:enabled{
    border: 1px solid rgb(74, 74, 74);
    background-color: rgb(218, 218, 218);
}

.add_to_cart-minus:disabled{
    padding-right: 7px;
    border-right: none;
    opacity: 0.5;
}

.add_to_cart-quantity:disabled{
    opacity: 0.5;
}

.add_to_cart-plus:disabled{
    border-left: none;
    opacity: 0.5;
}

.add_to_cart-minus:active{
    background-color: rgb(245, 245, 245);
    border-color: rgb(118, 118, 118);
}

.add_to_cart-plus {
    user-select: none;
    height: 33px;
    outline: none;
    border-radius: 2px;
    border: 1px solid rgb(118, 118, 118);
    margin-left: -1px;
    padding-bottom: 0;
    padding-top: 0;
    padding-left: 5px;
    padding-right: 5px;
}

.add_to_cart-plus:hover:enabled{
    border: 1px solid rgb(74, 74, 74);
    background-color: rgb(218, 218, 218);
}

.add_to_cart-plus:active{
    background-color: rgb(245, 245, 245);
    border-color: rgb(118, 118, 118);
}

input[type="radio"]{
    -webkit-appearance: radio;
}

input[type="text"],
input[type="button"],
input[type="submit"], 
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.add_to_cart-quantity {
    border-radius: 0;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    height: 33px;
    border: 1px solid rgb(118, 118, 118);
    display: inline;
    width: 33px;
    text-align: center;
}

.add_to_cart-quantity__detail {
    max-width: 60px;
    z-index: 1;
}

.add_to_cart-button:hover {
    background-color: #313a86;
    color: #fff !important;
}

.nav-tabs .nav-link {
    padding: 15px 15px !important;
}

.tab-pane {
    background: none !important;
}

.product-card .product-title > a {
    color: #000000 !important;
}

.product-card .product-price {
    color: #000000 !important;
}

.navbar_contact1 br {
    display: none;
}

.navbar_contact1 .row {
    padding-top: 16px;
}

.navbar_contact1 span {
    font-size: 16px !important;
    font-weight: 100 !important;
    line-height: 23px !important;
    position: relative;
}

.navbar_contact1 span strong {
    font-weight: bold;
    font-size: 20px;
}

.navbar_contact1 span::before {
    z-index: 99;
}

.navbar_contact1 span:first-child::before {
    content: '';
    position: absolute;
    background: url("../img/new/ico-maps.svg");
    left: 0;
    height: 26px;
    width: 26px;
    background-repeat: no-repeat;
    background-size: contain;
    top: -2px;
}

.navbar_contact1 span:nth-child(2)::before {
    content: '';
    position: absolute;
    background: url("../img/new/ico-tel.svg");
    left: 0;
    height: 26px;
    width: 26px;
    background-repeat: no-repeat;
    background-size: contain;
    top: -2px;
}

.navbar_contact1 span:nth-child(3)::before {
    content: '';
    position: absolute;
    background: url("../img/new/ico-login.svg");
    left: 0;
    height: 26px;
    width: 26px;
    background-repeat: no-repeat;
    background-size: contain;
    top: -2px;
}

.navbar_contact1 span:first-child {
    padding-left: 36px;
}

.navbar_contact1 span:nth-child(2) {
    padding-left: 32px;
}

.navbar_contact1 span:nth-child(3) {
    padding-left: 29px;
}

.navbar_contact1 span ul.login-custom li a {
    padding: 0 7px;
    text-decoration: none;
}

.navbar_contact1 span ul.login-custom li + li a:before {
    position: absolute;
    content: " /";
    left: -3px;
}

.navbar_contact1 span ul.login-custom li a:hover {
    background-color: transparent;
    text-decoration: underline;
}

/* Мини-корзина в шапке: без круга-обводки — иконка + жёлтый бейдж-счётчик + сумма */
.toolbar-custom .inner .cart__custom {
    border-radius: 0 !important;
    border: 0 !important;
    background-color: transparent !important;
    width: 64px !important;
    height: 54px;
    position: relative;
    padding: 0;
    text-align: center;
    /* !important: перебивает margin:0 из .navbar-custom .toolbar-custom .inner .cart */
    margin-top: 16px !important;
}

.toolbar-custom .inner .cart__custom > a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: -18px;
    left: 0;
    z-index: 2;
}

.toolbar-custom .inner .cart__custom::after {
    content: '';
    position: absolute;
    background: url(../img/new/ico-shop.svg);
    background-repeat: no-repeat;
    background-size: contain;
    left: 50%;
    margin-left: -16px;
    height: 32px;
    width: 32px;
    top: 20px;
    bottom: auto;
}

.toolbar-custom .inner .cart__custom .cart-meta {
    position: absolute;
    top: 2px;
    right: 6px;
    padding: 0 6px;
    font-size: 12px;
    color: #23305f;
    font-weight: 800;
    background-color: #feec00;
    border-radius: 999px;
    height: 20px;
    line-height: 20px;
    min-width: 20px;
    width: auto;
    text-align: center;
    display: inline-block;
    margin-top: 0;
    z-index: 1;
    box-shadow: 0 1px 0 rgba(46, 56, 70, .2);
}

.toolbar-custom .inner .cart__custom .cart-meta .count__custom {
    line-height: 20px;
    font-size: 12px;
}

.toolbar-custom .inner .cart__custom .cart-description {
    color: #23305f;
    font-size: 12px;
    position: absolute;
    top: 100%;
    right: -1em;
    left: -1em;
    line-height: 1.2;
}

.toolbar-custom .inner .cart__custom .cart-description .description-label {
    display: none;
}

.toolbar-custom .inner .cart__custom .cart-description .description-value {
    display: block;
    font-weight: 700;
    font-size: 12.5px;
}

.owl-carousel .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border: 1px solid #ececec;
    -webkit-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    -moz-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    opacity: 1;
}

.owl-carousel .owl-dots .owl-dot.active {
    background-color: #2f3a85;
    width: 10px !important;
    height: 10px !important;
    border: 1px solid #ececec;
    opacity: 1;
}

.owl-carousel .owl-dots .owl-dot:hover {
    background-color: #feec00;
    width: 10px !important;
    height: 10px !important;
}

.large-controls>.owl-dots{
    cursor: pointer;
}


.owl-dots{
    padding-bottom: 10px !important;
}

.site-menu-custom {
    background: transparent;
}

.site-menu {
    position: relative;
    margin: 10px auto;
}

.site-menu .navbar-collapse {
    padding-left: 0;
}

.site-menu .navbar-collapse ul li a {
    padding-left: 0;
}

.site-menu ul {
    margin: 0;
    text-align: left;
}

.site-menu ul li {
    text-align: center;
    padding: 5px 0;
    display: inline-block;
}

.site-menu > ul > li > a {
    letter-spacing: 0;
    padding: 0 16px 0 0;
}

.site-menu > ul > li:first-child > a {
    margin-left: 0;
    padding-left: 0;
}

.site-menu ul li a span {
    line-height: 15px;
    font-size: 16px;
    text-decoration: underline;
    color: #2f3a85;
    font-weight: 700;
    text-transform: none;
}

.site-menu ul li a span:hover {
    text-decoration: none;
    text-shadow: 0 5px 0 rgba(75, 91, 204, .15);
}

.site-menu-custom {
    padding-top: 5px;
    border: 0 solid;
}

header.navbar-custom {
    padding: 8px 15px 0 15px;
    box-shadow: inset 0 8px 5px -10px rgba(0, 0, 0, .55);
    border: none;
    border-radius: 0;
}

.header-custom {
    margin-bottom: 0 !important;
}

.main-block-custom {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-branding {
    padding: 20px 0;
}

.site-branding .inner {
    width: 100%;
}

.site-branding .inner img {
    max-width: 400px;
    margin: 0 auto;
}

.navbar_contact1 {
    width: 100%;
    text-align: center;
    margin: 10px auto;
    padding-left: 10px;
}

.site-menu-custom .navbar-toggle .icon-bar {
    background-color: blue;
}

.toolbar-custom .inner {
    float: none;
    margin: 10px auto;
    width: 100%;
}

.toolbar-custom .inner .cart {
    width: 100%;
    text-align: left;
}

.preheader {
    background-color: #2f3a85;
    padding: 10px 0;
}

.preheader .container {
    margin: 0 auto;
    color: #fff;
}

.preheader .auth {
    text-align: center;
    width: 100%;
    display: block;
}

.preheader .container a {
    color: #fff;
    text-decoration: underline;
}

.checkout-steps {
    display: flex;
    flex-direction: column;
}

.checkout-steps .element1 {
    order: 4;
}

.checkout-steps .element2 {
    order: 3;
}

.checkout-steps .element3 {
    order: 2;
}

.checkout-steps .element4 {
    order: 1;
}

.cat-collapse {
    float: right;
    cursor: pointer;
    display: block;
    width: 25px;
    height: 20px;
    overflow: hidden;
    position: relative;
    background-color: transparent;
    border: 0 solid;
}

/* Полоски бургера синие, а не белые: плашка «Каталог» жёлтая (#feec00),
   белый бургер на ней почти не читался. */
.cat-collapse span {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    background: #2f3a85;
    height: 2px;
}

.cat-collapse span:before {
    position: absolute;
    display: block;
    content: '';
    width: 100%;
    height: 2px;
    background: #2f3a85;
    left: 0;
    top: -8px;
}

.cat-collapse span:after {
    position: absolute;
    display: block;
    content: '';
    width: 100%;
    height: 2px;
    background: #2f3a85;
    left: 0;
    bottom: -8px;
}

.shopping-cart {
    overflow-x: scroll !important;
}

.shopping-cart::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 2px;
    height: 4px;
}

.shopping-cart::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: rgba(0, 0, 0, .5);
    -webkit-box-shadow: 0 0 0.5px rgba(255, 255, 255, .5);
}

.modal-header .close {
    margin-top: 0;
    position: absolute;
    right: 20px;
}

.owl-carousel .owl-item > img {
    border-radius: 6px;
}

#sidebar.sidebar-tabs {
    display: flex;
    flex-direction: row;
}

.mini:hover {
    background-color: #323b87 !important;
}

.widget-featured-products .widget-title {
    color: #2e3846;
    font-weight: bold;
    font-size: 19px;
}

.widget-featured-products .entry {
    padding-top: 2px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #fff;
    -webkit-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    -moz-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
}

.widget-featured-products .entry:hover {
    background-color: #feec00;
    cursor: pointer;
}

.under-footer {
    background-color: #2e3846;
    color: #fff;
}

.site-footer {
    background-color: #ececec !important;
    color: #2e3846;
    border-top: 5px solid #2e3846;
}

.site-footer .widget-title, .site-footer .widget__contact-text.text-white {
    color: #2e3846;
}

.site-footer .widget-links ul > li > a span {
    color: #2f3a85 !important;
    text-decoration: underline;
}

.owl-item .grid-item {
    padding-bottom: 10px;
}


.header-second-line.two {
    display: none;
}

.category_two {
    display: none;
}

.info_icon{
    margin-right: 23px;
    margin-top: 10px;
}

.footer_icon{
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    transition: 0.3s;
}

.footer_icon:hover {
    transform: scale(1.3);
   }

@media (max-width: 767px) {

    .autocomplete-wrapper-items{
        font-size: 14px;
    }

    .add_to_cart{
        margin: 4px 0;
        justify-content: center;
    }

    .add_to_cart>div{
        margin-right: 8px;
    }
    
    .scroll-to-top-btn{
        margin-bottom: 80px;
    }

    .cross{
        right: 10px;
        top: 10px;
    }

    .footer_icon:hover {
        transform: none;
    }

    .header_cart{
        display: none;
    }

    .header_flex_wrapper{
        flex-wrap: initial;
    }

    .header-second-line.first .dropdown {
        display: none;
    }

    .header-second-line.two {
        display: block;
    }

    .header-second-line.two .dropdown {
        display: block;
    }

    .header-second-line.first {
        margin-top: 10px;
    }

    .header-second-line.two {
        width: 100%;
        margin-top: 10px;
    }

    .header-second-line.two .site-search__custom {
        display: none !important;
    }

    .category_two {
        display: block;
    }

    .category_first {
        display: none;
    }

    .header-second-line .dropdown,
    .container .site-search__custom {
        margin-top: 8px;
    }

    .widget-categories__custom {
        margin-top: 13px;
    }

    .header-second-line .dropdown-toggle {
        height: 50px;
        line-height: 50px;
        background-color: #e53935;
        color: #fff;
        display: flex;
        justify-content: center;
        text-align: center;
        -webkit-border-radius: 6px;
        -moz-border-radius: 6px;
        border-radius: 6px;
    }

    .container .site-search__custom {
        max-width: 100%;
    }

    .container .site-search__custom .form-control,
    .site-search__custom .btn {
        height: 50px;
    }

    .site-search__custom .btn {
        width: 53px;
        background-size: 30px;
    }

    .widget-categories__custom .widget-title {
        padding: 13px 20px;
        border: 1px solid #ddd;
    }
}

@media (min-width: 577px) {

    .checkout-steps {
        display: block;
    }
}

@media (min-width: 768px) {
    .navbar_contact1 {
        width: auto;
        text-align: left;
        margin: 0;
    }

    .toolbar-custom .inner {
        float: right;
        margin: 0;
    }

    .toolbar-custom .inner .cart {
        width: auto;
        float: right;
        text-align: center;
    }
}

@media (min-width: 992px) {
    #sidebar.sidebar-tabs {
        flex-direction: row;
    }

    .site-branding {
        padding: 0;
    }
}

/* Планшет (992-1199px): каталог сворачиваемый, рамка на заголовке */
@media (min-width: 992px) and (max-width: 1199px) {
    .widget-categories__custom .widget-title {
        padding: 13px 20px;
        border: 1px solid #ddd;
    }
}

/* Desktop (≥1200px): каталог всегда раскрыт, кнопка сворачивания скрыта (d-xl-none) */
@media (min-width: 1200px) {
    [id^="cat1"].collapse {
        display: block !important;
    }
}

@media (max-width: 992px) {
    #sidebar.sidebar-tabs {
        flex-direction: column;
    }

    .container .site-search__custom {
        margin-left: 0;
    }

    .sidebar {
        max-width: 100%;
    }
}

@media (min-width: 1070px) {
    .site-menu {
        margin: 0 auto;
    }

    .site-branding .inner img {
        width: 263px;
        margin: inherit;
    }
}

@media (max-width: 1070px) {
    .site-menu {
        display: block !important;
    }
}

@media (max-width: 576px) {
    #cart_ajax .table tr td, #cart_ajax .table tr th {
        padding: 8px 0;
        font-size: 10px;
    }
}

.btn-primary-custom {
    background-color: #ffffff;
    color: #2f3a84;
    border: 1px solid #2f3a84;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.btn-primary-custom:hover {
    color: #ffff;
    background-color: #2f3a84;

}

@media (max-width: 767px) {
    tbody>tr:first-child td{
        border-top: none;
    }

    .navbar-custom {
        padding: 0 !important;
    }

    .navbar-custom .navbar-user-button {
        margin-top: -30px;
    }

    .navbar_contact1 span {
        display: none;
    }

    .mobile-contact {
        display: flex;
    }

    .navbar_contact1 span::before {
        display: none;
    }

    .menu-for-desktop {
        display: none;
    }

    .menu-for-mobile {
        display: flex;
    }

    .navbar-custom-icon {
        background-image: url(../img/new/ico-menu-g.svg);
        background-size: 30px 23px;
        background-repeat: no-repeat;

    }

    .mobile-icons .mobile-cart {
        background-image: url(../img/new/ico-shop.svg);
        background-size: 26px 26px;
        background-repeat: no-repeat;
    }

    .mobile-icons .mobile-contacts {
        background-image: url(../img/new/ico-maps.svg);
        background-size: 26px 26px;
        background-repeat: no-repeat;
    }

    .mobile-icons .mobile-login {
        background-image: url(../img/new/ico-login.svg);
        background-size: 26px 26px;
        background-repeat: no-repeat;
    }

    .mobile-icons .mobile-icon {
        height: 53px;
        width: 48px;
        border: 1px solid #eee;
        background-position: center;
        margin: 0;
        border-radius: 0;
        margin-left: -1px !important;
        margin-right: -1px !important;
        margin-top: -1px !important;
        margin-bottom: -1px !important;
    }

    .toolbar-custom {
        display: none;
    }

    header .mobile-contact span {
        display: flex;
        justify-content: center;
        align-self: center;
        width: 100%;
        font-size: 1.1em;
    }

    .site-menu ul li {
        display: list-item;
    }

    .site-menu-custom {
        padding: 0;
        min-height: 0;
    }

    .menu-for-mobile {
        padding: 0;
    }

    .navbar-collapse {
        padding: 0;
    }

    .navbar-collapse ul {
        padding: 10px;
        background: #eee;
        -webkit-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
        -moz-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
        box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    }
}

@media (max-width: 615px) {
    .mobile-icons .mobile-icon {
        flex-basis: 50%;
    }

}

@media (max-width: 520px) {
    header .site-branding {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
        padding-right: 20px;
        padding-bottom: 10px;
        padding-top: 0;
        margin-top: 20px;
    }

    header .mobile-contact {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
        display: none;
    }
}

/* custom style */

.tab-content {
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
}

.tab-content > .active {
    border: none;
}

.product-gallery {
    border: none;
}


.shopping-cart .count-input, .wishlist-table .count-input {
    width: 100px;
    display: flex;
    justify-content: center;
}


li.level1.expanded {
    background-color: #323d86;
}

li.level2.expanded {
    background-color: #323d86;
}
li.level3.expanded {
    background-color: #323d86;
}
li.level4.expanded {
    background-color: #323d86;
}

.expanded>a:first-child{
    background-color: #323d86;
    color: #ffffff !important;
}


.border_bottom_blue {
    border-bottom: 1px solid #30378a;
}


.field-orderpayform-id label {
    color: #000 !important;
}

.checkout-form-label {
    font-size: 16px !important;
    font-weight: bold !important;
}

.checkout-form-bordered {
    border-top: 2px solid blue;
    padding-top: 10px;
}

.padding-20 {
    padding-left: 20px;
}

.product-thumb .not-available {
    z-index: 110;
    width: 160px;
    height: 144px;
    text-align: center;
    position: absolute;
    top: 27px;
    background: url('../img/not-available.png') 50% no-repeat;
}


.owl-carousel__brand .owl-stage-outer {
    border: 1px solid #ddd;
    -webkit-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    -moz-box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
    border-radius: 6px;
}

@media (max-width: 1070px) {

    .header.navbar-custom {
        padding: 0 !important;
    }
}

.login-custom a {
    color: #000;
}

.login_link {
    font-weight: bold;
    text-decoration: underline !important;
}

.login_link:hover {
    font-weight: bold;
    text-decoration: none !important;
    color: #00017f;
}

.header__links__detail {
    font-size: 13px;
}

.header__links__detail:hover {
    color: #00017f;
}

.menu-for-desktop {
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {

    .menu-for-desktop {
        margin-top: -41px;
    }
}

.hero-slider1 .owl-carousel .owl-stage-outer {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: 0 5px 0 0 rgba(46, 56, 70, 0.15);
}

/******************************************************************************/
/* Login & Signup Page ********************************************************/
/******************************************************************************/

#login-signup
{
    border: 1px solid black;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    overflow: auto;
    padding: 25px;
}

#login-signup > .col-md-6:nth-child(1)
{
    padding-right: 25px;
}

#login-signup > .col-md-6:nth-child(2)
{
    border-left: 1px solid black;
    border-top: none;
    padding-left: 25px;
    padding-top: 0;
}

@media only screen and (max-width: 991px)
{

    #login-signup > .col-md-6:nth-child(2)
    {
        border-left: none;
        border-top: 1px solid black;
        margin-top: 35px;
        padding-left: 0;
        padding-top: 25px;
    }

    #login-signup > .col-md-6:nth-child(2) .padding-top-3x.hidden-md-up
    {
        display: none;
    }

}

/******************************************************************************/
/* iPhone 5 Visual Bugs Fix ***************************************************/
/******************************************************************************/

@media only screen and (min-device-width: 320px) and (max-device-width: 568px) /* iPhone 5 */
{

    header.navbar.navbar-sticky1.navbar-custom .col-lg-8.col-md-11.col-4.navbar-user-button
    {
        flex: 0 0 30%;
        max-width: 30%;
        padding: 0;
    }

    section .card.card-custom a .col-xs-8
    {
        padding: 0;
        width: 60%;
    }

}

/******************************************************************************/
/* Homepage Cards with Images *************************************************/
/******************************************************************************/

section .card.card-custom a
{
    padding: 0;
    padding-left: 15px;
}

section .card.card-custom a .col-xs-4 img
{
    margin: 0 !important;
    max-width: none;
    width: 80px !important;
}

/******************************************************************************/
/* Center the 4 Navigation Buttons in 1 Row Vertically ************************/
/******************************************************************************/

@media only screen and (min-width: 616px) and (max-width: 767px)
{

    .navbar-custom .navbar-user-button
    {
        margin-top: -10px;
    }

}

/******************************************************************************/
/* Drop Down Menu Triangles ***************************************************/
/******************************************************************************/

.menu-for-mobile .site-menu.site-menu-custom.navbar
{
    margin-top: -2px;
    z-index: 99;
}

.menu-for-mobile .site-menu.site-menu-custom.navbar .navbar-collapse
{
    border-top: none;
}

.menu-for-mobile .site-menu.site-menu-custom.navbar .navbar-collapse:before
{
    border-bottom: 7px solid #d1d2d3;
    border-bottom-color: rgba(0, 0, 0, 0.2);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    content: '';
    display: inline-block;
    right: 24px;
    position: absolute;
    top: -7px;
}

.menu-for-mobile .site-menu.site-menu-custom.navbar .navbar-collapse:after
{
    border-bottom: 6px solid #d1d2d3;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    content: '';
    display: inline-block;
    right: 25px;
    position: absolute;
    top: -6px;
}

.show .dropdown-menu
{
    animation: none;
    -webkit-animation: none;
}

.dropdown-menu
{
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-menu:before
{
    border-bottom: 7px solid #d1d2d3;
    border-bottom-color: rgba(0, 0, 0, 0.2);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    content: '';
    display: inline-block;
    left: calc((100% - 9px) / 2);
    position: absolute;
    top: -7px;
}

.dropdown-menu:after
{
    border-bottom: 6px solid #ffffff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    content: '';
    display: inline-block;
    left: calc((100% - 10px) / 2);
    position: absolute;
    top: -6px;
}

/******************************************************************************/
/* Menu for Mobile ************************************************************/
/******************************************************************************/

.menu-for-mobile ul li, .menu-for-mobile ul li a
{
    font-weight: bold;
}

.menu-for-mobile ul li, .menu-for-mobile ul li a
{
    color: #2f3a85 !important;
}

.menu-for-mobile ul li a, .menu-for-mobile ul li a span
{
    text-decoration: none;
}

.menu-for-mobile ul li a:hover
{
    text-decoration: underline;
}

/******************************************************************************/
/* Order Submenu for Mobile ***************************************************/
/******************************************************************************/

#order-submenu-for-mobile
{
    border-top: 1px solid black;
}

/******************************************************************************/
/* Login Menu for Mobile ******************************************************/
/******************************************************************************/

#login-menu-for-mobile ul li:nth-child(2), #login-menu-for-mobile ul li:nth-child(4)
{
    border-top: 1px solid black;
}

/******************************************************************************/
/* Actions Drop Down Menu *****************************************************/
/******************************************************************************/

.dropdown-menu
{
    border-color: #d1d2d3;
}

.dropdown-menu a.dropdown-item
{
    color: #2f3a85;
}

.dropdown-menu a.dropdown-item:hover
{
    color: #2f3a85;
    text-decoration: underline;
}

/******************************************************************************/
/* Desktop User Drop Down Menu ************************************************/
/******************************************************************************/

.login_link + .dropdown-menu a.dropdown-item
{
    line-height: 1.5;
    padding: 3px 20px;
}

/******************************************************************************/
/* Mobile User Drop Down Menus ************************************************/
/******************************************************************************/

.menu-for-mobile
{
    position: absolute;
}

.menu-for-mobile .site-menu.site-menu-custom.navbar
{
    left: auto;
    position: absolute;
    width: auto;
}

.menu-for-mobile .site-menu.site-menu-custom.navbar .navbar-collapse
{
    border: 1px solid #d1d2d3;
    border-radius: 5px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    overflow: hidden;
}

.menu-for-mobile .site-menu.site-menu-custom.navbar .navbar-collapse ul
{
    background: #fff;
    padding: .5rem 0;
}

.menu-for-mobile .site-menu.site-menu-custom.navbar .navbar-collapse ul li
{
    font-weight: 500;
    padding: 3px 20px;
}

.menu-for-mobile .site-menu.site-menu-custom.navbar .navbar-collapse ul li a
{
    font-weight: 500;
}

.menu-for-mobile .site-menu.site-menu-custom.navbar .navbar-collapse:before
{
    border-bottom: 7px solid #d1d2d3;
    border-bottom-color: rgba(0, 0, 0, 0.2);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    content: '';
    display: inline-block;
    right: 24px;
    position: absolute;
    top: -6px;
}

.menu-for-mobile .site-menu.site-menu-custom.navbar .navbar-collapse:after
{
    border-bottom: 6px solid #ffffff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    content: '';
    display: inline-block;
    right: 25px;
    position: absolute;
    top: -5px;
}

/******************************************************************************/
/* Modal Window and Its Background ********************************************/
/******************************************************************************/

.modal-backdrop.fade
{
    opacity: 0.5;
}

.modal.fade .modal-dialog
{
    margin-top: 138px;
}

/******************************************************************************/
/* Mobile Cart ****************************************************************/
/******************************************************************************/

.quantity-product-item{
    font-size: 12px;
    color: rgb(190, 190, 190);
}

.mobile-img-item{
    min-width: 150px;
}

.mobile-count-item{
    margin-top: 20px;
    padding-top: 15px;
    padding-bottom: 10px;
    justify-content: space-evenly;
    align-items: center;
    border-top: 1px solid rgb(221, 221, 221);
}

.mobile-product-item>div>div>a{
    color: black;
    text-decoration: none;
}

.mobile-product-item{
    margin-top: 5px;
    white-space: initial;
}

/******************************************************************************/
/* Cart Buttons ***************************************************************/
/******************************************************************************/

#cart_ajax .modal-dialog .btn
{
    min-width: 203px;
}

.shopping-cart-footer:nth-child(3) {
    border-top: none;
}
.shopping-cart-footer-mobile{
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #e1e7ec;
    text-align: center;
}

#cart_ajax .modal-dialog .btn, .shopping-cart-footer .btn, .checkout-footer .btn
{
    appearance: initial;
    -moz-appearance: initial;
    -o-appearance: initial;
    -webkit-appearance: initial;
    border-radius: 3px;
    font-size: 14px;
    height: 44px;
    line-height: 42px;
}

#cart_ajax .modal-dialog .btn[data-dismiss="modal"]
{
    background-color: transparent;
    border-color: #e1e7ec;
    color: #606975;
}

#cart_ajax .modal-dialog .btn[data-dismiss="modal"]:hover
{
    background-color: #f5f5f5;
}

#cart_ajax .modal-dialog .btn[href="/cart/index"], .checkout-footer .btn.btn-primary
{
    background-color: #43d9a3;
    border-color: transparent;
    color: white;
}

#cart_ajax .modal-dialog .btn[href="/cart/index"]:hover, .checkout-footer .btn.btn-primary:hover
{
    background-color: #27c28a;
    border-color: #398439;
}

.icon-edit:before
{
    background-image: url('../img/feather/edit.svg');
    background-size: cover;
    content: '';
    display: block;
    height: 14px;
    width: 14px;
}

footer h3.widget-title
{
    border: none;
    font-weight: bold;
    padding-bottom: 0;
    text-align: left;
}

footer h3.widget-title + ul li h3.widget-title
{
    margin-top: 45px;
}

footer section ul li
{
    padding-left: 0 !important;
}



@media screen and (max-width: 860px) {
    .shopping-cart .product-item .product-thumb, .wishlist-table .product-item .product-thumb {
        display: block;
    }
}




.widget-categories ul>li.has-children.expanded>ul, .widget-links ul>li.has-children.expanded>ul {
    max-height: 1500px;
}

/* Recommended products: horizontal layout in checkout */
@media (min-width: 576px) {
    .col-xl-12 + .col-xl-3 .widget-featured-products,
    .row > .col-xl-3:last-child .widget-featured-products {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    .col-xl-12 + .col-xl-3 .widget-featured-products .entry,
    .row > .col-xl-3:last-child .widget-featured-products .entry {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 180px;
    }
}

/* Checkout sidebar: add spacing when below main content */
.widget-order-summary {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    background-color: #f8f9fa;
    border: 1px solid #e1e7ec;
}

.container .site-search__custom .form-control:focus {
    background-color: #b8bfde !important;
    color: #2e3846 !important;
    outline: none !important;
    box-shadow: none !important;
}

.container .site-search__custom .form-control:focus::placeholder {
    color: #9da9b9;
}


/* Fix footer contact text color */
.site-footer .widget__contact-text,
.site-footer .widget__contact-text p,
.site-footer .widget-light-skin .widget__contact-text {
    color: #2e3846 !important;
}







/* Header contacts: all in one line (desktop only) */
@media (min-width: 992px) {
    .navbar_contact1 .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        padding-top: 10px !important;
        padding-bottom: 5px !important;
    }
    .navbar_contact1 .row > p {
        display: contents !important;
    }
    .navbar_contact1 .row > p > span,
    .navbar_contact1 .row > span {
        flex: 0 0 auto !important;
        max-width: none !important;
        width: auto !important;
        white-space: nowrap !important;
        padding-right: 30px !important;
    }
    a.header__links__detail {
        display: block !important;
        font-size: 12px !important;
    }
}

/* ===== Широкие экраны (жалоба 16.07: «пустота справа» на 1920/2K) =====
   Тема держала .container на 1170px → на 1920 поля по 375px, на 2560 по 695px —
   экран заполнен меньше чем наполовину. Расширяем контейнер ступенчато; грид BS4
   процентный, колонки масштабируются сами. Покрывает хедер, контент и футер разом. */
@media (min-width: 1600px) {
    .container {
        width: auto; /* тема ставит width:1170px фиксом — без сброса max-width не работает */
        max-width: 1440px;
    }
    /* Вложенный .container внутри flex-.row (hero-slider1 и т.п.) при width:auto
       ужимается по контенту — растягиваем на колонку. */
    .row > .container {
        width: 100%;
    }
}
@media (min-width: 2200px) {
    .container {
        width: auto;
        max-width: 1760px;
    }
    .row > .container {
        width: 100%;
    }
}

/* Маскот на карточке «ИИ помощник» (блок услуг): PNG-иконка без полей выглядела
   огромной против фото соседних карточек — ограничиваем и центрируем. */
.card-custom .service-mascot {
    max-width: 84px;
    padding: 6px 0;
}

/* Главный баннер: картинка тянется на ширину блока (и в owl-слайде, и в одиночном
   рендере без карусели; без этого маленькая картинка-заглушка стояла слева). */
.hero-slider1 img {
    width: 100%;
}

/* Мобильная панель иконок шапки: без базового скрытия пустой col-12 торчал за
   правым краем на десктопе (right≈1820 при окне 1310) → горизонтальный скролл
   и «белая пустота справа» у владельца. Иконки стилизуются только в мобильной
   шапке (@media ≤767px, см. выше) — там и показываем. */
.mobile-icons {
    display: none;
}
@media (max-width: 767px) {
    .mobile-icons {
        display: block;
    }
}

/* ===== Редизайн 07.2026: меню-пилюли, крошки, «Все статьи» ===== */

/* Спан «Вход» — прямой ребёнок .row (адрес/телефон живут внутри <p> из CMS contact_short),
   поэтому span:nth-child(2) ловил его как «телефон» и рисовал ту же иконку. */
.navbar_contact1 .row > span::before {
    background: url("../img/new/ico-login.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

/* BS4-каретка дублировала наш svg-шеврон в пилюле акций */
.header-second-line .dropdown-toggle::after {
    display: none;
}

/* Меню (Главная/Оплата-доставка/О компании/Контакты) — мягкие пилюли.
   Компактные отступы: с 7px/14px меню наезжало на колонку «Вход» (1024-1280px). */
.menu-for-desktop .site-menu ul li a {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 7px;
    transition: background .15s ease;
}

.menu-for-desktop .site-menu ul li a span {
    font-size: 15px;
}

.menu-for-desktop .site-menu ul li a:hover {
    background: rgba(47, 58, 133, .08);
}

.menu-for-desktop .site-menu ul li a span {
    text-decoration: none;
}

.menu-for-desktop .site-menu ul li a span:hover {
    text-shadow: none;
}

.menu-for-desktop .site-menu ul li.active > a {
    background: #2f3a85;
}

.menu-for-desktop .site-menu ul li.active > a span {
    color: #fff;
}

/* Хлебные крошки: домик (main.php homeLink) + шевроны вместо «/», текущая — серым */
.breadcrumb-custom > li + li:before {
    content: '' !important;
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323305f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E") no-repeat center / contain;
    margin: 0 4px;
    opacity: .45;
}

.breadcrumb-custom > li.active {
    color: #77808f;
}

.breadcrumb-custom .crumbs-home svg {
    vertical-align: -3px;
}

/* «Все статьи» в сайдбар-виджете — пилюля со стрелкой */
.all_stats a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2f3a85 !important;
    font-weight: 700;
    background: rgba(47, 58, 133, .07);
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
}

.all_stats a:hover {
    background: rgba(47, 58, 133, .13);
}

.all_stats a::after {
    content: '';
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f3a85' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cpolyline points='13 5 20 12 13 19'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ===== Редизайн 07.2026, часть 2: карточка, табы, корзина, модалка добавления ===== */

/* Карточка каталога (вариант 1): низ прижат, цена слева, ховер-подъём */
.product-card-custom {
    transition: box-shadow .15s ease, transform .15s ease;
}

.product-card-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 0 rgba(46, 56, 70, .2);
}

.pcard-stock {
    text-align: left;
    padding: 6px 2px 0;
    font-size: 12.5px;
}

.pcard-stock__in {
    color: #2e9e5b;
}

.pcard-stock__in::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2e9e5b;
    margin-right: 6px;
    vertical-align: 1px;
}

.pcard-stock__out {
    color: #9aa0ae;
}

.product-card-custom .product-price {
    text-align: left !important;
    padding: 6px 2px 8px;
    margin-bottom: 0;
    /* Резерв под двухстрочную цену со скидкой — иначе акционные карточки
       выше обычных и ряды каталога пляшут по высоте. */
    min-height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.pcard-price {
    font-size: 20px;
    font-weight: 800;
    color: #23305f;
}

.pcard-oldrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.pcard-oldrow del {
    color: #9aa0ae;
    font-size: 13px;
}

.pcard-percent {
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
}

.product-card-custom .product-price .product-price-discount {
    display: block;
    text-align: left;
    font-size: 20px;
    font-weight: 800;
    color: #e53935;
}

/* Степпер и кнопка всегда в одну строку: в узкой карточке (~173px) кнопка
   с basis 130px враппилась под степпер — «плюсики сверху». */
.add_to_cart {
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}

.add_to_cart > div {
    flex: none;
}

.add_to_cart .add_to_cart-button {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #2f3a85 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 8px;
    height: 36px;
    max-height: 36px !important;
    font-weight: 700;
    font-size: 12.5px;
    text-transform: none;
    letter-spacing: .01em;
    padding: 0 10px !important;
}

.add_to_cart .add_to_cart-button:hover {
    background: #25306e !important;
    color: #fff !important;
}

.add_to_cart .add_to_cart-button svg {
    flex: none;
}

/* Степпер: скруглённая группа, синие +/- на светлом, высота под кнопку */
.add_to_cart-minus,
.add_to_cart-plus {
    height: 30px !important;
    border: 1px solid #cfd4e4 !important;
    background: #f2f3f8;
    color: #2f3a85;
    font-weight: 700;
    font-size: 13px;
    padding-left: 6px;
    padding-right: 6px;
}

.add_to_cart-minus {
    border-radius: 8px 0 0 8px !important;
}

.add_to_cart-plus {
    border-radius: 0 8px 8px 0 !important;
}

.add_to_cart-minus:hover,
.add_to_cart-plus:hover {
    background: #e5e8f3;
}

.add_to_cart-quantity {
    height: 30px !important;
    width: 26px;
    border: 1px solid #cfd4e4 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    font-weight: 600;
    font-size: 13px;
    color: #23305f;
}

/* Табы страницы товара: сегменты-пилюли, активная — синяя (вариант A) */
#sidebar.sidebar-tabs {
    border-bottom: 0;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 8px;
}

#sidebar.sidebar-tabs .nav-item .nav-link {
    border: 0 !important;
    background: rgba(47, 58, 133, .07) !important;
    color: #2f3a85;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13.5px;
    padding: 9px 18px !important;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}

#sidebar.sidebar-tabs .nav-item.active .nav-link,
#sidebar.sidebar-tabs .nav-item .nav-link.active {
    background: #2f3a85 !important;
    color: #fff;
}

#sidebar.sidebar-tabs .nav-item:not(.active) .nav-link:hover {
    background: rgba(47, 58, 133, .15) !important;
    color: #2f3a85;
}

/* Контент табов: читаемая типографика описания */
.tab-content .tab-pane {
    font-size: 14.5px;
    line-height: 1.65;
    color: #2b3550;
    max-width: 900px;
}

.tab-content {
    border: none !important;
    padding: 16px 2px;
}

/* Корзина: единый стиль кнопок, итог крупнее, пустое состояние */
.shopping-cart-footer .btn {
    border-radius: 8px;
}

.shopping-cart-footer .column.text-lg .text-medium {
    font-size: 20px;
    font-weight: 800;
}

/* Кнопки низа корзины: одна геометрия на всех. Раньше «Очистить корзину» была
   ссылкой (13px, выравнивание по базовой линии), а «Оформить» — .btn с подъёмом
   3px: нижние края расходились на 4,5px и кнопки читались как разные по размеру. */
.cart-clear-link,
.cart-login-btn,
.cart-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    text-decoration: none !important;
    /* Подъём общий: он был только у жёлтой CTA и делал её визуально ниже соседей */
    box-shadow: 0 3px 0 rgba(46, 56, 70, .18);
}

.cart-clear-link {
    border: 1.5px solid #e53935;
    color: #e53935 !important;
    margin-right: 10px;
    transition: background .15s ease;
}

.cart-clear-link:hover {
    background: rgba(229, 57, 53, .07);
    color: #c62828 !important;
    border-color: #c62828;
}

.cart-login-btn {
    background: #fff !important;
    border: 1.5px solid #2f3a85 !important;
    color: #2f3a85 !important;
}

.cart-login-btn:hover {
    background: rgba(47, 58, 133, .08) !important;
}

.cart-checkout-btn {
    background: #feec00 !important;
    border: 0 !important;
    color: #23305f !important;
    font-weight: 700;
    box-shadow: 0 3px 0 rgba(46, 56, 70, .18);
}

.cart-checkout-btn:hover {
    background: #f4e200 !important;
    color: #23305f !important;
}

.cart-empty {
    text-align: center;
    padding: 30px 10px 36px;
}

.cart-empty svg {
    opacity: .35;
}

.cart-empty p {
    color: #77808f;
    margin: 12px 0 18px;
}

.cart-empty .btn {
    height: 44px;
    line-height: 42px;
    padding: 0 22px;
}

/* Правая панель карточки товара */
.pinfo-code {
    color: #77808f;
    font-size: 13.5px;
    margin: 6px 0 2px;
}

.pinfo-code b {
    color: #23305f;
    font-weight: 700;
}

.pinfo-title {
    color: #2f3a84;
}

.pinfo-price {
    margin: 12px 0 14px;
}

.pinfo-price__oldrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.pinfo-price__oldrow del {
    color: #9aa0ae;
    font-size: 16px;
}

.pinfo-percent {
    background: #e53935;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
}

.pinfo-price__label {
    color: #77808f;
    font-size: 13.5px;
}

.pinfo-price__now {
    font-size: 30px;
    font-weight: 800;
    color: #23305f;
    line-height: 1.2;
}

.pinfo-price__now--sale {
    color: #e53935;
}

.pinfo-attention {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff8d6;
    border: 1px solid #f0e09a;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 0 14px;
    color: #6b5500;
    font-size: 13.5px;
    line-height: 1.45;
    max-width: 480px;
}

.pinfo-attention svg {
    flex: none;
    margin-top: 1px;
}

.pinfo-stock {
    font-size: 14px;
    margin-bottom: 12px;
}

.pinfo-props {
    margin: 4px 0 10px;
    max-width: 300px;
}

.pinfo-props__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e0d8;
    font-size: 14px;
    color: #23305f;
}

.pinfo-props__label {
    color: #77808f;
}

/* ==== Чекаут, вариант A: карточки-выборы, скруглённые поля, жёлтая CTA ==== */

/* Поля */
.shopping-layout .form-control {
    border: 1.5px solid #d5d9e6;
    border-radius: 8px;
    color: #23305f;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.shopping-layout .form-control:focus {
    border-color: #2f3a85;
    box-shadow: 0 0 0 3px rgba(47, 58, 133, .12);
}

/* Синие полосы-разделители -> тонкие серые */
.checkout-form-bordered {
    border-top: 1px solid #e2e0d8;
    padding-top: 10px;
}

/* Заголовки секций с жёлтой палочкой */
.checkout-form-label {
    font-size: 16px !important;
    font-weight: 800 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-form-label::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #feec00;
    border-radius: 2px;
}

/* Тип клиента: радио-карточки */
.field-checkoutform2-type_client .radio {
    margin-bottom: 8px;
}

.field-checkoutform2-type_client .radio label {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1.5px solid #d5d9e6;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin: 0;
    transition: border-color .15s ease, background .15s ease;
}

.field-checkoutform2-type_client .radio label:hover {
    border-color: #b9c0d8;
}

.field-checkoutform2-type_client .radio label:has(input:checked) {
    border-color: #2f3a85;
    background: rgba(47, 58, 133, .07);
}

.field-checkoutform2-type_client input[type="radio"] {
    accent-color: #2f3a85;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    flex: none;
    position: static !important; /* BS3 ставит radio в absolute с margin -20px — текст наезжал */
}

.field-checkoutform2-type_client .radio label,
.field-checkoutform2-type_client .radio label span {
    color: #23305f !important;
}

/* Доставка/оплата: строки таблицы -> карточки */
.checkout-choice thead {
    display: none;
}

.checkout-choice table,
.checkout-choice tbody,
.checkout-choice tr,
.checkout-choice td {
    display: block;
    width: 100%;
    border: 0 !important;
}

.checkout-choice tr {
    margin-bottom: 10px;
}

.checkout-choice td.align-middle {
    border: 1.5px solid #d5d9e6 !important;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color .15s ease, background .15s ease;
}

.checkout-choice td.align-middle:hover {
    border-color: #b9c0d8 !important;
}

.checkout-choice td.align-middle:has(input:checked) {
    border-color: #2f3a85 !important;
    background: rgba(47, 58, 133, .07);
}

.checkout-choice label.custom-control1,
.checkout-choice label.custom-control {
    height: auto !important;
    margin: 0 6px 0 0;
    display: inline-flex;
    vertical-align: middle;
}

.checkout-choice input[type="radio"] {
    accent-color: #2f3a85;
    width: 18px;
    height: 18px;
}

.checkout-choice .text-black {
    font-weight: 700;
    color: #23305f;
}

/* Чекбокс соглашения */
.field-checkoutform2-terms_of_agreement input[type="checkbox"] {
    accent-color: #2f3a85;
    width: 18px;
    height: 18px;
    vertical-align: -4px;
}

/* Кнопки низа чекаута: «Продолжить» — жёлтая CTA */
.checkout-footer .btn {
    border-radius: 8px;
}

.checkout-footer .btn-primary {
    background: #feec00 !important;
    border: 0 !important;
    color: #23305f !important;
    font-weight: 700;
    box-shadow: 0 3px 0 rgba(46, 56, 70, .18);
}

.checkout-footer .btn-primary:hover {
    background: #f4e200 !important;
    color: #23305f !important;
}

/* Шаг «Проверка»: строки данных на всю ширину колонки */
.review-props {
    max-width: none;
}

.review-props .pinfo-props__row span:last-child {
    text-align: right;
}

/* Страница «заказ оформлен»: карточка успеха */
.order-complete {
    max-width: 780px;
    margin: 10px auto 30px;
    border: 1px solid #e2e0d8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 0 0 rgba(46, 56, 70, .12);
    padding: 8px 26px 26px;
}

.order-complete__ok {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #2e9e5b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px auto 14px;
}

.order-complete__body {
    max-width: 560px;
    margin: 0 auto;
    color: #23305f;
}

.order-complete__details {
    text-align: left;
    border-top: 1px solid #e2e0d8;
    margin-top: 18px;
    padding-top: 16px;
}

.order-complete__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

.order-complete__actions .btn {
    border-radius: 8px;
    height: 44px;
    line-height: 42px;
    padding: 0 22px;
}

.order-complete__more {
    background: #fff;
    border: 1.5px solid #2f3a85 !important;
    color: #2f3a85 !important;
    cursor: pointer;
}

.order-complete__more:hover {
    background: rgba(47, 58, 133, .08);
}

.order-complete__print {
    background: #fff;
    border: 1.5px solid #cfd4e4 !important;
    color: #77808f !important;
}

.order-complete__print:hover {
    border-color: #2f3a85 !important;
    color: #2f3a85 !important;
}

/* Шаги чекаута: активный шаг — фирменный синий (в теме был голубой/красный) */
.checkout-steps > a:hover {
    color: #2f3a85;
}

.checkout-steps > a.active {
    background-color: #2f3a85 !important;
    color: #fff;
}

.checkout-steps > a.active > .angle::after {
    border-left-color: #2f3a85 !important;
}

.checkout-steps > a.active + a > .angle {
    background-color: #2f3a85 !important;
}

/* Модалка «Товар добавлен в корзину» */
#cart_ajax .cart-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
}

#cart_ajax .cart-modal__ok {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2e9e5b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: none;
    font-size: 14px;
}

#cart_ajax .cart-modal__items {
    max-height: 300px;
    overflow-y: auto;
}

#cart_ajax .cart-modal__item {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid #e2e0d8;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

#cart_ajax .cart-modal__ph img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border: 1px solid #e2e0d8;
    border-radius: 8px;
    display: block;
}

#cart_ajax .cart-modal__name {
    color: #2f3a85;
    font-weight: 600;
    font-size: 13.5px;
    display: block;
    line-height: 1.35;
}

#cart_ajax .cart-modal__meta {
    color: #77808f;
    font-size: 12.5px;
    margin-top: 2px;
}

/* Количество меняется прямо в окне добавления: раньше за этим приходилось идти в корзину. */
#cart_ajax .cart-modal__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 6px;
}

#cart_ajax .cart-modal__qty {
    display: flex;
    align-items: center;
    border: 1px solid #d8d6cd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

#cart_ajax .cart-modal__step {
    width: 42px;
    height: 38px;
    border: 0;
    background: #f4f3ef;
    color: #2f3a85;
    font-size: 19px;
    line-height: 1;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

#cart_ajax .cart-modal__step:disabled {
    color: #c3c6cd;
    cursor: default;
}

#cart_ajax .cart-modal__num {
    min-width: 38px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

#cart_ajax .cart-modal__sum {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

#cart_ajax .cart-modal__row .cart-modal__meta {
    margin-top: 0;
}

#cart_ajax .cart-modal__total {
    text-align: right;
    font-size: 15px;
    margin: 10px 2px 12px;
}

#cart_ajax .cart-modal__total b {
    font-size: 19px;
}

#cart_ajax .cart-modal__actions {
    display: flex;
    gap: 10px;
}

/* Без капса и разрядки темы: «ПРОДОЛЖИТЬ ПОКУПКИ» вылезал за рамку кнопки. */
#cart_ajax .modal-dialog .btn.cart-modal__cont,
#cart_ajax .modal-dialog .btn.cart-modal__go {
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 700;
    padding: 0 12px;
    white-space: nowrap;
    min-width: 0;
}

/* На телефоне модалка узкая — рядом кнопки резали текст. Колонкой, во всю ширину. */
@media (max-width: 575px) {
    #cart_ajax .cart-modal__actions {
        flex-direction: column;
    }

    #cart_ajax .modal-dialog .btn.cart-modal__cont,
    #cart_ajax .modal-dialog .btn.cart-modal__go {
        width: 100%;
    }
}

#cart_ajax .modal-dialog .btn.cart-modal__cont {
    flex: 1;
    background: #fff;
    border: 1.5px solid #cfd4e4;
    color: #77808f;
    border-radius: 8px;
}

#cart_ajax .modal-dialog .btn.cart-modal__cont:hover {
    border-color: #2f3a85;
    color: #2f3a85;
    background: #fff;
}

#cart_ajax .modal-dialog .btn.cart-modal__go {
    flex: 1;
    background: #feec00;
    border: 0;
    color: #23305f;
    font-weight: 700;
    border-radius: 8px;
}

#cart_ajax .modal-dialog .btn.cart-modal__go:hover {
    background: #f4e200;
    color: #23305f;
}

/* ==========================================================================
   Мобильный проход по редизайну (30.07): табы карточки, корзина, кнопки
   ========================================================================== */

/* Табы страницы товара на мобилке. bootstrap-tabcollapse подменяет .nav-tabs
   на .panel-group.hidden-tabs с ДРУГИМИ классами, поэтому стили пилюль
   (#sidebar.sidebar-tabs) там не работали: десктоп был новый, мобилка — старая
   тема с «+»/«-» и подчёркиванием. Повторяем вид пилюль в виде аккордеона. */
.panel-group.hidden-tabs {
    border: 0;
}

.panel-group.hidden-tabs .panel.panel-default {
    border: 1px solid #e3e6f0 !important;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: none !important;
    overflow: hidden;
    background: #fff;
}

.panel-group.hidden-tabs .panel-heading {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.panel-group.hidden-tabs .panel-title {
    margin: 0;
}

.panel-group.hidden-tabs .nav-link.js-tabcollapse-panel-heading {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px !important;
    background: rgba(47, 58, 133, .07) !important;
    color: #2f3a85 !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none !important;
    border: 0 !important;
}

.panel-group.hidden-tabs .nav-link.js-tabcollapse-panel-heading:not(.collapsed) {
    background: #2f3a85 !important;
    color: #fff !important;
}

/* Шеврон вместо «+»/«-» темы (она рисует их через ::after content) */
.panel-group.hidden-tabs .nav-link.js-tabcollapse-panel-heading::after {
    content: '' !important;
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
    margin-left: 10px;
    flex: none;
    position: relative;
    top: -2px;
}

.panel-group.hidden-tabs .nav-link.js-tabcollapse-panel-heading.collapsed::after {
    transform: rotate(-45deg);
    top: 0;
}

.panel-group.hidden-tabs .panel-body {
    padding: 14px 16px !important;
    font-size: 14.5px;
    line-height: 1.65;
    color: #2b3550;
    border: 0 !important;
}

@media (max-width: 767px) {
    /* Корзина: таблица на 7 колонок (её отдаёт devicedetect, когда не распознал
       телефон) на узком экране ехала горизонтальным скроллом — 725px в контейнере
       338px. Складываем строку в карточку, подписи берём из data-label.
       Мобильная разметка _detail.php (один td на строку) этими правилами
       не задевается: у неё нет ни thead, ни data-label. */
    .table-responsive.shopping-cart {
        overflow-x: visible !important;
        border: 0 !important;
    }

    .shopping-cart .table thead {
        display: none;
    }

    .shopping-cart .table,
    .shopping-cart .table tbody,
    .shopping-cart .table tr,
    .shopping-cart .table td {
        display: block;
        width: 100%;
    }

    .shopping-cart .table tr {
        position: relative;
        border: 1px solid #e3e6f0;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 10px;
        background: #fff;
    }

    .shopping-cart .table td {
        border: 0 !important;
        padding: 3px 0 !important;
        text-align: left !important;
    }

    .shopping-cart .table td[data-label]::before {
        content: attr(data-label) ": ";
        color: #7c85a8;
        font-size: 12.5px;
        margin-right: 6px;
    }

    .shopping-cart .table td.cart-cell-photo img {
        width: 76px;
        height: 76px;
        object-fit: contain;
    }

    /* Крестик удаления — в правый верхний угол карточки, а не отдельной строкой */
    .shopping-cart .table tr {
        padding-right: 34px;
    }

    .shopping-cart .table td.cart-cell-remove {
        position: absolute !important;
        top: 8px;
        right: 8px;
        width: auto !important;
        padding: 0 !important;
    }

    /* «Очистить корзину» была 161px против 338px у остальных кнопок */
    .cart-clear-link {
        display: flex !important;
        width: 100%;
        margin-right: 0;
    }
}

/* ── Страницы входа: телефон, подтверждение, Telegram ───────────────────── */
.auth {
    display: flex;
    justify-content: center;
    padding: 24px 0 56px;
}

.auth__card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid #e4e7f2;
    border-radius: 14px;
    padding: 32px 34px 28px;
    box-shadow: 0 6px 28px rgba(47, 58, 133, .08);
}

.auth__title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #2f3a85;
}

.auth__lead {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
}

/* Кнопка Telegram — главное действие, поэтому фирменный цвет мессенджера,
   а не синий сайта: так её узнают, не читая подпись. */
.auth__tg {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    background: #229ed9;
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background .15s ease;
}

.auth__tg:hover,
.auth__tg:focus {
    background: #1c8ac0;
    color: #fff !important;
}

.auth__tg-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}

.auth__tg-text b {
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

.auth__tg-text small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    opacity: .85;
}

.auth__or {
    position: relative;
    margin: 24px 0 18px;
    text-align: center;
}

.auth__or:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e4e7f2;
}

.auth__or span {
    position: relative;
    padding: 0 12px;
    background: #fff;
    color: #9aa1b5;
    font-size: 13px;
}

.auth__form .form-group {
    margin-bottom: 16px;
}

.auth__form label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.auth__input {
    height: 48px;
    border: 1px solid #d7dbe8;
    border-radius: 9px;
    padding: 0 14px;
    font-size: 16px;   /* меньше 16px — iOS зумит страницу при фокусе */
}

.auth__input:focus {
    border-color: #2f3a85;
    box-shadow: 0 0 0 3px rgba(47, 58, 133, .12);
}

.auth__input--code {
    letter-spacing: 6px;
    font-weight: 700;
}

.auth__submit {
    width: 100%;
    height: 48px;
    background: #2f3a85;
    color: #fff;
    border: 0;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
}

.auth__submit:hover,
.auth__submit:focus {
    background: #262f6d;
    color: #fff;
}

.auth__steps {
    margin: 0 0 22px;
    padding-left: 20px;
    color: #4b5563;
    font-size: 14.5px;
    line-height: 1.7;
}

.auth__status {
    margin: 18px 0 0;
    padding: 12px 14px;
    background: #f4f6fb;
    border-radius: 9px;
    color: #4b5563;
    font-size: 14px;
}

.auth__status.is-ok {
    background: #e8f7ee;
    color: #1e7a44;
}

.auth__status.is-error {
    background: #fdeeee;
    color: #a52a2a;
}

.auth__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 9px;
    border-radius: 50%;
    background: #229ed9;
    animation: authPulse 1.2s ease-in-out infinite;
}

@keyframes authPulse {
    0%, 100% { opacity: .3; }
    50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .auth__dot { animation: none; opacity: .8; }
}

.auth__alt {
    margin: 18px 0 0;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.auth__hint {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eef0f6;
    color: #8a91a5;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 575px) {
    .auth { padding: 12px 0 36px; }
    .auth__card { padding: 24px 18px 22px; border-radius: 12px; }
    .auth__title { font-size: 22px; }
}

/* ── Уведомления: штатная плашка была почти белой и терялась ────────────── */
.main-block-custom .alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 880px;
    margin: 0 auto 22px;
    padding: 14px 18px;
    border: 0;
    border-left: 4px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 4px 16px rgba(47, 58, 133, .07);
}

.main-block-custom .alert-success {
    background: #e9f7ef;
    border-left-color: #23a35b;
    color: #17663a;
}

.main-block-custom .alert-danger {
    background: #fdeeee;
    border-left-color: #d34a4a;
    color: #8f2222;
}

.main-block-custom .alert:before {
    content: '';
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: currentColor;
    opacity: .18;
}

/* ── Личный кабинет ─────────────────────────────────────────────────────── */
.account {
    max-width: 880px;
    margin: 0 auto;
    padding: 8px 0 48px;
}

.account__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.account__avatar {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2f3a85;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
}

.account__who { flex: 1 1 auto; min-width: 0; }

.account__name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2f3a85;
    overflow-wrap: anywhere;
}

.account__phone {
    margin-top: 2px;
    color: #6b7280;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.account__logout {
    flex: 0 0 auto;
    color: #8a91a5 !important;
    font-size: 14px;
    text-decoration: none !important;
    border-bottom: 1px dashed #c7ccdb;
}

.account__logout:hover { color: #d34a4a !important; border-bottom-color: #d34a4a; }

.account__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: -1px;
}

.account__tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: #eef0f7;
    color: #4b5563 !important;
    border: 1px solid #e4e7f2;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
}

.account__tab:hover { background: #e5e8f3; }

.account__tab.is-active {
    background: #fff;
    color: #2f3a85 !important;
    cursor: default;
}

.account__count {
    display: inline-block;
    min-width: 22px;
    padding: 1px 7px;
    background: #2f3a85;
    color: #fff;
    border-radius: 11px;
    font-size: 12px;
    text-align: center;
}

.account__card {
    background: #fff;
    border: 1px solid #e4e7f2;
    border-radius: 0 12px 12px 12px;
    padding: 26px 28px 24px;
    box-shadow: 0 6px 28px rgba(47, 58, 133, .07);
}

.account__section {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9aa1b5;
}

.account__section + .row + .account__section,
.account__card .row + .account__section {
    margin-top: 12px;
    padding-top: 22px;
    border-top: 1px solid #eef0f6;
}

.account__form label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.account__input {
    height: 46px;
    border: 1px solid #d7dbe8;
    border-radius: 9px;
    padding: 0 14px;
    font-size: 16px;   /* меньше 16px — iOS зумит страницу при фокусе */
}

.account__input:focus {
    border-color: #2f3a85;
    box-shadow: 0 0 0 3px rgba(47, 58, 133, .12);
}

.account__note {
    margin: -8px 0 14px;
    color: #9aa1b5;
    font-size: 12.5px;
    line-height: 1.4;
}

/* Телефон только показываем. Подпись повторяет label соседних полей — у тех тема
   добавляет отступ слева 18px, без него «Телефон» вставал левее «Электронной почты». */
.account__label {
    display: block;
    margin-bottom: 6px;
    padding-left: 18px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

.account__static {
    height: 46px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 14px;
    background: #f6f7fb;
    border: 1px solid #e6e9f2;
    border-radius: 9px;
    font-size: 16px;
    color: #4b5563;
    font-variant-numeric: tabular-nums;
}

.account__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #eef0f6;
}

.account__save,
.account__shop {
    height: 46px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
}

.account__save {
    background: #2f3a85;
    color: #fff;
    border: 0;
}

.account__save:hover, .account__save:focus { background: #262f6d; color: #fff; }

.account__shop {
    background: #fff;
    color: #2f3a85 !important;
    border: 1px solid #2f3a85;
    text-decoration: none !important;
}

.account__shop:hover { background: #2f3a85; color: #fff !important; }

@media (max-width: 767px) {
    .account { padding: 4px 0 32px; }

    .account__head { gap: 12px; margin-bottom: 16px; }
    .account__avatar { flex-basis: 46px; width: 46px; height: 46px; font-size: 20px; }
    .account__name { font-size: 20px; }

    /* Вкладки на узком экране делят ширину поровну — иначе «Мои заказы» уезжает */
    .account__tabs { gap: 6px; }
    .account__tab {
        flex: 1 1 0;
        justify-content: center;
        padding: 10px 8px;
        font-size: 14px;
    }

    .account__card { padding: 20px 16px 18px; border-radius: 12px; }
    .account__actions { flex-direction: column; }
    .account__save, .account__shop { width: 100%; justify-content: center; }

    .main-block-custom .alert { margin-bottom: 16px; font-size: 14px; }
}

/* ── Аватар без имени: иконка вместо решётки ────────────────────────────── */
.account__avatar svg {
    width: 30px;
    height: 30px;
    opacity: .9;
}

/* ── Список заказов в кабинете ──────────────────────────────────────────── */
.orders__row {
    display: grid;
    grid-template-columns: 1.4fr 1.3fr .8fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #eef0f6;
}

.orders__row:first-child { padding-top: 4px; }
.orders__row:last-child  { border-bottom: 0; padding-bottom: 4px; }

.orders__num {
    font-size: 15px;
    font-weight: 700;
    color: #2f3a85;
}

.orders__date {
    margin-top: 2px;
    color: #9aa1b5;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.orders__badge {
    display: inline-block;
    padding: 5px 12px;
    background: #eef0f7;
    color: #4b5563;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}

.orders__badge.is-paid { background: #e9f7ef; color: #17663a; }
.orders__badge.is-wait { background: #fff4e0; color: #8a5a00; }
.orders__badge.is-dead { background: #f1f2f5; color: #8a91a5; }

.orders__sum {
    font-size: 15px;
    font-weight: 700;
    color: #2f3a85;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.orders__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.orders__link {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    background: #2f3a85;
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.orders__link:hover { background: #262f6d; }

.orders__link--ghost {
    background: #fff;
    color: #2f3a85 !important;
    border: 1px solid #ccd2e6;
}

.orders__link--ghost:hover { background: #f2f4fb; }

.orders__empty {
    padding: 26px 0 18px;
    text-align: center;
}

.orders__empty-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #2f3a85;
}

.orders__empty-text {
    margin: 0 auto 20px;
    max-width: 380px;
    color: #6b7280;
    font-size: 14.5px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    /* Четыре колонки в 358px не помещаются — строка становится карточкой */
    .orders__row {
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
        padding: 16px 0;
    }

    .orders__status { grid-column: 1; }
    .orders__sum    { grid-column: 2; grid-row: 1; }

    .orders__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
        margin-top: 4px;
    }

    .orders__link { flex: 1 1 0; justify-content: center; height: 40px; }
}

/* ── Карточка заказа в кабинете ─────────────────────────────────────────── */
.order-view__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef0f6;
}

.order-view__num {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2f3a85;
}

.order-view__date {
    margin-top: 4px;
    color: #9aa1b5;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
}

.order-view__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

/* Состав заказа шире экрана телефона — таблица едет внутри себя, а не тянет страницу */
.order-view__table-wrap { overflow-x: auto; }

.order-view__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.order-view__table th,
.order-view__table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef0f6;
    text-align: left;
    vertical-align: top;
}

.order-view__table th {
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

.order-view__table .is-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.order-view__table tfoot td {
    border-bottom: 0;
    font-weight: 700;
    color: #2f3a85;
}

.order-view__facts {
    display: grid;
    grid-template-columns: minmax(140px, max-content) 1fr;
    gap: 10px 20px;
    margin: 0;
}

/* Тема рисует dt рамкой сверху — в две колонки это давало обрубок линии над подписью */
.order-view__facts dt,
.order-view__facts dd { border: 0; }

.order-view__facts dt { color: #6b7280; font-weight: 400; font-size: 14px; }
.order-view__facts dd { margin: 0; font-size: 14.5px; }

/* Заголовки разделов внутри карточки заказа идут подряд за таблицей и списком */
.order-view__table-wrap + .account__section,
.order-view__actions + .account__section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #eef0f6;
}

.order-view__back {
    margin: 26px 0 0;
    padding-top: 20px;
    border-top: 1px solid #eef0f6;
}

/* Кнопка, а не подчёркнутая ссылка: рядом с «Повторить заказ» голубая строчка
   выглядела недоделанной */
.order-view__back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid #ccd2e6;
    border-radius: 9px;
    background: #fff;
    color: #2f3a85 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.order-view__back a:hover {
    background: #f2f4fb;
    border-color: #2f3a85;
}

.order-view__back a:active { transform: translateY(1px); }

/* Стрелка отъезжает влево — направление движения читается до клика */
.order-view__back a::before {
    content: '←';
    font-size: 16px;
    line-height: 1;
    transition: transform .15s ease;
}

.order-view__back a:hover::before { transform: translateX(-3px); }

@media (max-width: 575px) {
    /* Подпись над значением: в два столбца длинный адрес рвётся по одному слову */
    .order-view__facts { grid-template-columns: 1fr; gap: 2px; }
    .order-view__facts dd { margin-bottom: 10px; }

    /* Пять колонок в 340px не помещаются: горизонтальная прокрутка рвала название
       товара по одному слову в строку. Каждая позиция становится карточкой. */
    .order-view__table thead { display: none; }
    .order-view__table,
    .order-view__table tbody,
    .order-view__table tfoot,
    .order-view__table tr,
    .order-view__table td { display: block; width: auto; }

    .order-view__table tbody tr {
        padding: 12px 0;
        border-bottom: 1px solid #eef0f6;
    }

    .order-view__table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 3px 0;
        border: 0;
        text-align: right;
    }

    .order-view__table tbody td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: #9aa1b5;
        font-size: 12.5px;
        text-transform: uppercase;
        letter-spacing: .3px;
        text-align: left;
    }

    /* Название — во всю ширину под подписью, ему нужно место */
    .order-view__table tbody td[data-label="Товар"] { display: block; text-align: left; }
    .order-view__table tbody td[data-label="Товар"]::before { display: block; margin-bottom: 2px; }

    .order-view__table tfoot tr {
        display: flex;
        justify-content: space-between;
        padding-top: 12px;
    }

    .order-view__table tfoot td { padding: 0; border: 0; }
}

/* ── Вход звонком: номер для дозвона ────────────────────────────────────── */
.auth__dial {
    display: block;
    margin: 4px 0 10px;
    padding: 18px 12px;
    background: #f4f6fb;
    border: 1px dashed #c2cae6;
    border-radius: 12px;
    color: #2f3a85 !important;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: .5px;
    text-align: center;
    text-decoration: none !important;
    font-variant-numeric: tabular-nums;
}

.auth__dial:hover { background: #eef1fa; }

.auth__dial-hint {
    margin: 0;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 575px) {
    .auth__dial { font-size: 23px; padding: 16px 8px; }
}

/* Ловушка от спам-роботов в форме обратной связи. Не display:none — часть ботов
   такие поля игнорирует; уводим за край экрана, оставляя поле «настоящим». */
.contact-trap {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Кнопка Яндекс ID — фирменный чёрный, чтобы не спорить с синим Telegram */
.auth__ya {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 10px;
    padding: 14px 18px;
    background: #000;
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background .15s ease;
}

.auth__ya:hover, .auth__ya:focus { background: #1a1a1a; color: #fff !important; }

.auth__ya-mark {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fc3f1d;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* ---------- Уведомление о cookie ---------- */

/* Явно, хотя bootstrap-reboot и так даёт [hidden]{display:none!important} —
   не хочется, чтобы скрытие баннера держалось на чужом !important. */
.cookie-notice[hidden] { display: none; }

.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10600; /* выше ассистента (10500), иначе кнопка чата накрывает текст */
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #2f3a85;
    color: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .18);
}

.cookie-notice__text {
    margin: 0;
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.45;
}

.cookie-notice__text a {
    color: #fff;
    text-decoration: underline;
}

.cookie-notice__btn {
    flex: 0 0 auto;
    padding: 10px 26px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #2f3a85;
    font-weight: 600;
    cursor: pointer;
}

.cookie-notice__btn:hover { background: #eef0f8; }

/* Пока баннер висит, поднимаем кнопку чата — иначе она стоит прямо на нём.
   Высоту подставляет скрипт баннера: на узких экранах текст переносится. */
.cookie-notice-open .assistant-fab {
    bottom: calc(var(--cookie-notice-h, 70px) + 16px);
}

/* Открытый чат на мобилке занимает весь экран, и баннер накрывал его нижнюю строку.
   Пока разговаривают — баннер не нужен, он вернётся при закрытии чата. */
#assistant-widget.assistant-open ~ .cookie-notice { display: none; }

/* Страница /order/print рендерится тем же лейаутом и сама вызывает печать —
   без этого баннер и кнопка чата уезжали на бумагу вместе с заказом. */
@media print {
    .cookie-notice,
    #assistant-widget { display: none !important; }
}

@media (max-width: 767px) {
    .cookie-notice {
        gap: 12px;
        padding: 12px 14px;
    }

    .cookie-notice__text { font-size: 12.5px; }
    .cookie-notice__btn { padding: 9px 18px; }
}

/* Предложение включить уведомления. Белая карточка, а не синяя полоса как у cookie:
   там сообщение, здесь вопрос с выбором — их не должно быть видно как одно и то же. */
.push-notice {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10600; /* вровень с cookie-баннером: оба выше кнопки чата (10500) */
    max-width: 460px;
    margin: 0 auto;
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff;
    color: #2e3846;
    box-shadow: 0 8px 28px rgba(46, 56, 70, .22);
}

.push-notice__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #323b87;
}

.push-notice__text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
}

.push-notice__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* Запасной выход из плашки установки: нажал «Установить», ничего не произошло — вот шаги. */
.push-notice__link {
    display: block;
    margin-top: 10px;
    text-align: right;
    font-size: 13px;
    color: #5a616e;
    text-decoration: underline;
}

.push-notice__link[hidden] {
    display: none;
}

.push-notice__btn {
    height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #323b87;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.push-notice__btn:hover { background: #2a3273; }

.push-notice__btn--ghost {
    background: transparent;
    color: #6b7488;
    font-weight: 600;
}

.push-notice__btn--ghost:hover { background: #f2f4fb; }

/* Кнопку чата поднимаем над карточкой. Высоту подставляет скрипт: текст переносится
   по-разному, и константа промахивалась — кнопка наезжала на верхний край карточки.
   16px — отступ карточки от низа, ещё 16px — просвет между ней и кнопкой. */
.push-notice-open .assistant-fab { bottom: calc(var(--push-notice-h, 181px) + 32px); }

/* ========== Оболочка установленного приложения ==========
   Шапка и панель вкладок рендерятся всегда, но показываются только при классе is-app —
   его ставит скрипт в head'е, когда сайт открыт с иконки на экране. В обычной вкладке
   браузера панель не нужна: под ней и так адресная строка. */

/* Высота панели вкладок в одном месте: 6 сверху + 48 кнопка + 6 снизу + полоса «домой».
   Раньше отступы под неё стояли числами вразнобой, и чат заканчивался заметно выше
   панели — между ними зияла полоса фона. */
:root {
    --apptabs-base: 60px;
    --apptabs-h: calc(var(--apptabs-base) + env(safe-area-inset-bottom, 0px));
}

.appbar,
.apptabs { display: none; }

.is-app .appbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1200;
    background: #fff;
    border-bottom: 1px solid #e8eaf2;
    /* Боковые вырезы считаются с тех пор, как приложение рисует под ними (viewport-fit) —
       иначе в альбомной ориентации знак и колокольчик заезжают под чёлку. */
    padding: 8px calc(12px + env(safe-area-inset-right, 0px)) 10px calc(12px + env(safe-area-inset-left, 0px));
}

.appbar__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; }
.appbar__left { display: flex; align-items: center; gap: 8px; min-width: 0; }

.appbar__back {
    width: 30px; height: 30px;
    margin-left: -6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #323b87;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
}

.appbar__brand { display: inline-flex; align-items: center; gap: 9px; }
.appbar__brand img { width: 30px; height: 30px; flex: 0 0 auto; }
.appbar__name { font-size: 17px; font-weight: 800; color: #323b87; letter-spacing: -.02em; }

.appbar__title {
    font-size: 17px; font-weight: 800; color: #2e3846; letter-spacing: -.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.appbar__actions { display: flex; gap: 10px; flex: 0 0 auto; }

.appbar__act {
    width: 38px; height: 38px;
    border: 0; padding: 0;
    border-radius: 11px;
    background: #f0f2f9;
    color: #323b87;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.appbar__act:active { background: #e2e6f4; }
.appbar__act svg { width: 19px; height: 19px; }

.appbar__count {
    position: absolute; top: -5px; right: -5px;
    min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 10px;
    background: #e23b3b; color: #fff;
    font-size: 11px; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}

/* position: relative — под ним раскрывается список подсказок (.autocomplete-wrapper),
   он позиционируется от формы */
.appbar__search {
    position: relative;
    display: flex; align-items: center; gap: 8px;
    margin-top: 9px; height: 42px;
    border-radius: 10px;
    background: #f0f2f9;
    padding: 0 5px 0 12px;
    color: #8b91a6;
}

.appbar__search.is-hidden { display: none; }

/* 16px ровно: на меньшем размере Safari при касании приближает страницу к полю */
.appbar__search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0; outline: none;
    background: transparent;
    font-size: 16px;
    color: #2e3846;
}

/* Видимая кнопка: клавиша «Найти» на клавиатуре есть не у всех прошивок,
   а без неё непонятно, чем закончить ввод */
.appbar__find {
    flex: 0 0 auto;
    border: 0; padding: 0 14px;
    height: 32px;
    border-radius: 8px;
    background: #323b87; color: #fff;
    font-size: 13px; font-weight: 700;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.appbar__find:active { background: #262d6b; }

/* overflow-y именно auto: подсказок приходит до 25, при hidden хвост списка
   становится недостижим */
.appbar__search .autocomplete-wrapper {
    top: calc(100% + 6px);
    border-radius: 10px;
    overflow-y: auto;
    max-height: 60vh;
    box-shadow: 0 8px 24px rgba(35, 42, 78, .16);
}

.appbar__search .autocomplete-wrapper-items { padding: 0 14px; border-color: #edeff5; }
.appbar__search .autocomplete-wrapper-items > a { padding: 11px 0; font-size: 14px; }

.is-app .apptabs {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1200;
    background: #fff;
    border-top: 1px solid #e4e7f1;
    /* Полосу «домой» iPhone отдаёт через env() только вместе с viewport-fit=cover —
       его дописывает скрипт при запуске с иконки (см. _clear.php). Без этого отступ
       равен нулю, нижний ряд уходит под полосу, и до крайних кнопок не дотянуться. */
    padding: 6px calc(2px + env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) calc(2px + env(safe-area-inset-left, 0px));
}

.apptabs__i {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 48px;
    border-radius: 12px;
    font-size: 11px; font-weight: 600;
    color: #8b91a6 !important;
    text-decoration: none !important;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Нажатие видно сразу, не дожидаясь загрузки страницы */
.apptabs__i:active { background: #eef0f8; }
.apptabs__i.is-on { color: #323b87 !important; }
.apptabs__i svg { width: 26px; height: 26px; }

.apptabs__b {
    position: absolute; top: 2px; right: 50%; margin-right: -20px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px;
    background: #e23b3b; color: #fff;
    font-size: 10.5px; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}

/* `display` перебивает атрибут hidden — без этого пустая корзина показывала красную точку */
.apptabs__b[hidden] { display: none; }

/* Чат в приложении — отдельный экран, а не всплывашка поверх сайта: он заканчивается
   над панелью вкладок. Иначе панель накрывает нижние 60 пикселей чата, то есть само
   поле ввода с микрофоном. */
@media (max-width: 767px) {
    .is-app .assistant-panel {
        top: 0;
        bottom: var(--apptabs-h);
        height: auto;
        max-height: none;
    }
}

/* Каталог в приложении: список названий. Карточки с картинками занимают по экрану
   на позицию, и до нижних разделов нужно долго крутить.
   Каждый раздел — на своей белой подложке: фон сайта светлый и с текстурой, строки
   без подложки на нём читались как просто наваленный текст. */
.catlist { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.catlist__i {
    display: flex; align-items: center; gap: 12px;
    min-height: 62px; padding: 9px 12px 9px 9px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(35, 42, 78, .07), 0 0 0 1px rgba(35, 42, 78, .04);
    color: #2e3846 !important; text-decoration: none !important;
    font-size: 15px; font-weight: 600; line-height: 1.25;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease, box-shadow .12s ease;
}

.catlist__i:active {
    transform: scale(.985);
    box-shadow: 0 1px 2px rgba(35, 42, 78, .1), 0 0 0 1px rgba(35, 42, 78, .06);
}

/* Подложка под картинку: снимки товаров приходят из 1С на белом и без неё
   растворяются в карточке, а прозрачные — теряют края. */
.catlist__pic {
    width: 46px; height: 46px; flex: 0 0 auto;
    border-radius: 10px;
    background: #f4f5f9;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.catlist__pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.catlist__name { flex: 1 1 auto; min-width: 0; }
.catlist__i svg { flex: 0 0 auto; color: #b7bccc; }

/* ========== Приложение: товары по две в ряд ==========
   На телефоне сетка разворачивалась в одну колонку, и карточка занимала 599 px из 844 —
   полтора товара на экран, 24 товара = восемнадцать экранов прокрутки. */
.is-compact .grid-custom-list { grid-template-columns: 1fr 1fr; grid-gap: 10px; }

/* Колонки выходили разной ширины (199 и 151): доля 1fr не опускается ниже самого
   длинного слова в карточке, а в названиях стройматериалов такие есть — «1525*1525мм».
   Разрешаем колонке ужиматься, а слову — переноситься по любому месту. */
.is-compact .grid-custom-list > * { min-width: 0; }
.is-compact .product-card-custom .product-title > a { overflow-wrap: anywhere; }

.is-compact .product-card-custom {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    padding: 8px 8px 10px;
    box-shadow: 0 1px 3px rgba(35, 42, 78, .07), 0 0 0 1px rgba(35, 42, 78, .04);
}

/* Подъём на ховер оставляем мышке: на телефоне он срабатывает от касания и залипает */
.is-compact .product-card-custom:hover { transform: none; box-shadow: 0 1px 3px rgba(35, 42, 78, .07), 0 0 0 1px rgba(35, 42, 78, .04); }

.is-compact .product-card-custom .product-thumb {
    height: 124px;
    margin-bottom: 8px;
    background: #f4f5f9;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.is-compact .product-card-custom .product-thumb > img {
    width: auto; height: auto;
    max-width: 100%; max-height: 100%;
    object-fit: contain;
}

/* Название ровно в две строки: иначе соседние карточки в ряду разъезжаются по высоте.
   У блока .box старый способ ставить многоточие — распорка и хвост на float'ах при
   жёсткой высоте 200 px. В узкой карточке это полторы сотни пикселей пустоты, поэтому
   и распорки, и высоту гасим, а обрезку делает line-clamp. */
.is-compact .product-card-custom .product-title {
    height: auto;
    width: 100%;
    flex: 0 0 auto;
    line-height: normal;
}

.is-compact .product-card-custom .product-title::before,
.is-compact .product-card-custom .product-title::after { content: none; display: none; }

.is-compact .product-card-custom .product-title > a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    float: none;
    margin-left: 0;
    height: 32px;
    font-size: 12.5px !important;
    line-height: 16px;
}

.is-compact .pcard-stock { padding: 5px 0 0; font-size: 11px; }
.is-compact .pcard-stock__in::before { width: 6px; height: 6px; margin-right: 5px; }

/* Резерв под строку со старой ценой: у товара без скидки её нет, и карточка выходила
   на 17 px короче соседней — в ряду это заметно. */
.is-compact .product-card-custom .product-price {
    padding: 4px 0 8px;
    min-height: 50px;
    margin-top: auto;
}

.is-compact .pcard-price,
.is-compact .product-card-custom .product-price .product-price-discount { font-size: 16px; }
.is-compact .pcard-oldrow { font-size: 11px; gap: 5px; }
.is-compact .pcard-oldrow del { font-size: 11px; }

/* Скидку — меткой на фото: в узкой карточке она съедала строку рядом со старой ценой */
.is-compact .pcard-percent {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    font-size: 11px;
    padding: 2px 7px;
}

/* Степпер прячем: в карточку 176 px он не влезает рядом с кнопкой, а количество
   всё равно правят в корзине. Поле остаётся в разметке и уходит со значением 1. */
.is-compact .product-card-custom .add_to_cart > div { display: none; }
.is-compact .product-card-custom .add_to_cart-button { width: 100%; font-size: 12.5px; padding: 9px 6px; }
.is-compact .product-card-custom .add_to_cart-button svg { width: 13px; height: 13px; }

/* ========== Приложение: сопутствующие лентой ==========
   Карусель на телефоне показывала одну карточку, перехватывала вертикальный свайп
   и каждые пять секунд уводила товар из-под пальца. */
.is-compact .strip-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    /* Притягивание считает началом край контейнера и съедало боковой отступ: лента
       сама подкручивалась на 15 px и упиралась в стенку. */
    scroll-padding-left: 15px;
    -webkit-overflow-scrolling: touch;
    /* Боковые 15 px — как у остальных блоков страницы: без них лента упиралась в край
       экрана. Они же дают воздух в конце прокрутки. */
    padding: 2px 15px 6px;
}

.is-compact .strip-scroll::-webkit-scrollbar { display: none; }

.is-compact .strip-scroll .product-card-custom {
    flex: 0 0 auto;
    width: 152px;
    scroll-snap-align: start;
}

.is-compact .strip-scroll .product-card-custom .product-thumb { height: 104px; }

/* ========== Приложение: корзина ========== */
.is-compact .shopping-cart,
.is-compact .shopping-cart .table,
.is-compact .shopping-cart tbody,
.is-compact .shopping-cart tbody tr,
.is-compact .shopping-cart tbody td {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
}

.is-compact .crow {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(35, 42, 78, .07), 0 0 0 1px rgba(35, 42, 78, .04);
}

/* Снимок крупный: на маленьком не разобрать, какой именно профиль или цвет взяли */
.is-compact .crow__pic {
    flex: 0 0 auto;
    width: 92px; height: 92px;
    border-radius: 10px;
    background: #f4f5f9;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.is-compact .crow__pic img { max-width: 100%; max-height: 100%; object-fit: contain; }

.is-compact .crow__mid { flex: 1 1 auto; min-width: 0; }

.is-compact .crow__mid { display: flex; flex-direction: column; min-height: 92px; }

.is-compact .crow__nm {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Название обрывалось на «1525*» и во вторую строку не переходило: размер идёт
       одним словом без пробелов, а перенести его было негде. */
    overflow-wrap: anywhere;
    color: #2e3846 !important;
    text-decoration: none !important;
    font-size: 13.5px; font-weight: 600; line-height: 1.3;
}

.is-compact .crow__unit { margin-top: 4px; font-size: 12px; color: #8b91a6; }

/* Счётчик и сумма прижаты к низу карточки, вровень с нижним краем снимка */
.is-compact .crow__line {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

.is-compact .crow__sum { font-size: 17px; font-weight: 800; color: #23305f; white-space: nowrap; }

.is-compact .crow__x {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    margin: -2px -2px 0 0;
    border-radius: 8px;
    color: #b7bccc !important;
    display: flex; align-items: center; justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.is-compact .crow__x:active { background: #f2f3f8; color: #e23b3b !important; }

.is-compact .crow .count-input { display: flex; align-items: center; }
.is-compact .crow .count-input input { height: 30px; }
.is-compact .crow .count-input .qty { width: 42px; font-size: 13px; }
.is-compact .crow .count-input .qtyminus,
.is-compact .crow .count-input .qtyplus { width: 30px; font-size: 15px; }

/* Итог и кнопки — одной карточкой под списком */
.is-app .shopping-cart-footer {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(35, 42, 78, .07), 0 0 0 1px rgba(35, 42, 78, .04);
}

/* «Назад к покупкам» и «Войти» в приложении лишние: внизу есть вкладки, а профиль —
   отдельная вкладка, и до оформления вход всё равно спросят. */
.is-app .shopping-cart-footer .btn-outline-secondary,
.is-app .cart-login-btn { display: none; }

.is-app .shopping-cart-footer .cart-checkout-btn { display: block; width: 100%; }
.is-app .shopping-cart-footer .cart-clear-link { display: block; text-align: center; margin-top: 10px; }

/* Окно «товар добавлен» лежит поверх чата. Добавить в корзину можно прямо из переписки,
   а панель чата (10500) накрывала окно: экран темнел от подложки, самого окна видно
   не было, хотя товар в корзину уходил. В теме окну задано 9200, подложке 9100. */
.modal { z-index: 10800; }
.modal-backdrop { z-index: 10790; }

/* ========== Приложение: помощник ========== */

/* Тень панели ложилась на панель вкладок и красила её в серый */
.is-app .assistant-panel { box-shadow: none; border-radius: 0; }

/* Пока набирают текст, панель вкладок убираем совсем. Поднимать её вместе с клавиатурой
   не нужно: руки заняты набором, а между ней и клавиатурой всё равно оставалась полоса
   страницы. Чат садится прямо на клавиатуру.
   Прячем по факту ввода (`typing`), а не по замеру клавиатуры: телефон при вводе может
   сам ужать страницу, и тогда замер даёт ноль, хотя набор идёт и мебель мешает. */
.is-app.typing .apptabs { display: none; }

/* Прочая нижняя мебель на время набора тоже уходит: она оказывается под клавиатурой и
   просвечивает сквозь неё. */
.is-app.typing .cart-dock,
.is-app.typing .cookie-notice,
.is-app.typing .push-notice { display: none; }

/* Клавиатура полупрозрачная — сквозь неё просвечивал текст страницы. Закрываем участок
   от низа экрана до чата белым. */
.kbd-fill { display: none; }

.is-app.keyboard-open .kbd-fill {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--keyboard-h, 0px);
    background: #fff;
    z-index: 1180;
}

@media (max-width: 767px) {
    /* Чат кончается там, где начинается панель вкладок. На время набора панель скрыта,
       и на её месте оставалась полоса, в которую было видно страницу — опускаем чат
       до низа. Если замер клавиатуры сошёлся, опускаем ровно на её верх. */
    .is-app.typing .assistant-panel { top: var(--vv-top, 0px); bottom: 0; }
    .is-app.keyboard-open .assistant-panel { bottom: var(--keyboard-h, 0px); }
}

/* ========== Приложение: блоки «Хиты / Новинки / По рейтингу» ==========
   Каждый блок — лента, которую тянут пальцем, как сопутствующие товары. Три секции
   по три товара в столбик занимали почти два экрана, и было не видно, что позиций
   больше трёх. */
.entry-rank { display: none; }

/* 🚨 Обёртка ленты разорвала связь «прямой потомок»: в теме карточки этих блоков
   разложены правилами `.widget-featured-products > .entry`, а между виджетом и карточкой
   встал `.widget-strip`. На сайте карточки развалились в столбик во всю ширину —
   картинка на экран, вместо строки с миниатюрой слева. Повторяем те же правила через
   обёртку; в приложении их перекрывает раскладка ленты ниже по файлу. */
body:not(.is-compact) .widget-featured-products .widget-strip > .entry {
    display: table;
    width: 100%;
    margin-bottom: 12px;
}

body:not(.is-compact) .widget-featured-products .widget-strip > .entry .entry-thumb,
body:not(.is-compact) .widget-featured-products .widget-strip > .entry .entry-content {
    display: table-cell;
    vertical-align: middle;
}

body:not(.is-compact) .widget-featured-products .widget-strip > .entry .entry-thumb { width: 62px; padding-right: 12px; }
body:not(.is-compact) .widget-featured-products .widget-strip > .entry .entry-thumb > a { display: block; overflow: hidden; border-radius: 0; }
body:not(.is-compact) .widget-featured-products .widget-strip > .entry .entry-thumb > a > img { width: 100%; }
body:not(.is-compact) .widget-featured-products .widget-strip > .entry .entry-title { margin-bottom: 0; font-size: 14px; }

body:not(.is-compact) .widget-featured-products .widget-strip > .entry .entry-title > a {
    transition: color .3s;
    color: #606975;
    font-weight: 500;
    text-decoration: none;
}

body:not(.is-compact) .widget-featured-products .widget-strip > .entry .entry-title > a:hover { color: #0da9ef; }

body:not(.is-compact) .widget-featured-products .widget-strip > .entry .entry-meta {
    display: block;
    margin-bottom: 0;
    padding-top: 4px;
    color: #606975;
    font-size: 13px;
}

/* Боковые поля даёт сама лента, у секции они лишние — иначе отступ выходит двойным */
.is-compact .product-mini-widgets { padding-left: 0; padding-right: 0; }
.is-compact .product-mini-widgets .row { display: block; margin: 0; }
.is-compact .product-mini-widgets [class*="col-"] { padding: 0; max-width: none; flex: none; }

.is-compact .product-mini-widgets .widget { margin-bottom: 16px; }

.is-compact .product-mini-widgets .widget-title {
    font-size: 15px; font-weight: 800;
    padding: 0 15px 9px;
    margin: 0;
    color: #23305f;
}

/* Сам список — горизонтальная лента. Боковые 15 px, как у прочих блоков страницы */
.is-compact .product-mini-widgets .widget-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 2px 15px 6px;
    scroll-snap-type: x proximity;
    scroll-padding-left: 15px;
    -webkit-overflow-scrolling: touch;
}

.is-compact .product-mini-widgets .widget-strip::-webkit-scrollbar { display: none; }

.is-compact .product-mini-widgets .entry {
    flex: 0 0 auto;
    width: 138px;
    margin: 0;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(35, 42, 78, .07), 0 0 0 1px rgba(35, 42, 78, .04);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.is-compact .product-mini-widgets .entry-thumb {
    width: 100%; height: 92px;
    margin: 0 0 7px;
    border-radius: 9px;
    background: #f4f5f9;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

/* Ссылка вокруг картинки высоту не наследовала, и `max-height: 100%` у самой картинки
   считался от неё, а не от рамки: снимок вылезал на 14 px и обрезался сверху и снизу. */
.is-compact .product-mini-widgets .entry-thumb > a {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}

.is-compact .product-mini-widgets .entry-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.is-compact .product-mini-widgets .entry-content { flex: 1 1 auto; display: flex; flex-direction: column; }

.is-compact .product-mini-widgets .entry-title {
    min-height: 0 !important;
    margin: 0 0 6px;
    font-size: 11.5px; font-weight: 600; line-height: 1.3;
    height: 30px; overflow: hidden;
}

.is-compact .product-mini-widgets .entry-meta {
    margin-top: auto;
    font-size: 14px; font-weight: 800; color: #23305f;
}

/* ========== Приложение: окно «Товар добавлен в корзину» ==========
   Окно висело вверху экрана — палец только что был внизу, на кнопке. Ставим по центру
   и даём снимку товара развернуться: 54 px превращали фотографию в марку. */
/* Центрируем саму подложку, а не окно внутри неё: у подложки нет заданной высоты,
   и процентный min-height на окне не срабатывал — оно оставалось наверху. */
/* Только у открытой (класс ставит Bootstrap) — иначе окно перестанет прятаться */
.is-compact #cart_ajax.modal.in,
.is-compact #cart_ajax.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Сдвиг «выезда сверху» гасим: у открытого окна он остаётся и уводит его
   на четверть собственной высоты вверх от середины. */
.is-compact #cart_ajax .modal-dialog {
    width: 100%;
    max-width: none;
    margin: 12px;
    transform: none !important;
}

.is-compact #cart_ajax .modal-content { width: 100%; border-radius: 16px; }

/* Ширину задаём и обёртке: без неё снимок упирался в узкую колонку и сжимался до 70 px */
.is-compact #cart_ajax .cart-modal__ph { flex: 0 0 auto; width: 86px; }

.is-compact #cart_ajax .cart-modal__ph img {
    width: 86px;
    height: 86px;
    padding: 4px;
    background: #f4f5f9;
    border-color: transparent;
}

/* Список позиций не даём растянуть окно на весь экран — иначе оно перестаёт быть
   короткой подсказкой «положили» и превращается во вторую корзину. */
.is-compact #cart_ajax .cart-modal__items { max-height: 42vh; }

.is-compact #cart_ajax .cart-modal__item { padding: 8px; gap: 10px; }
.is-compact #cart_ajax .cart-modal__name { font-size: 13.5px; line-height: 1.3; }

/* ========== Приложение: корзина, полоса оформления ========== */
.is-app .cart-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 2px 2px 10px;
}

.is-app .cart-head__n { font-size: 12.5px; font-weight: 700; color: #8b91a6; }
.is-app .cart-head__clear { font-size: 12.5px; color: #8b91a6 !important; text-decoration: none !important; }
.is-app .cart-head__clear:active { color: #e23b3b !important; }

.is-compact .crow__unit del { color: #a7adbd; margin-right: 4px; }
.is-compact .crow__now { color: #e53935; }

/* Полоса с суммой прилипает над панелью вкладок: до кнопки не нужно долистывать список */
/* Белая подложка — продолжение панели вкладок вверх со скруглённым верхом; кнопка
   лежит на ней. Так низ экрана читается одним куском, а не кнопкой, висящей в воздухе.
   Подложка заходит на панель на 1 px, чтобы на стыке не проступала её верхняя линия. */
.is-app .cart-dock {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(var(--apptabs-h) - 1px);
    z-index: 1150;
    padding: 10px calc(12px + env(safe-area-inset-right, 0px)) 12px calc(12px + env(safe-area-inset-left, 0px));
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 18px rgba(35, 42, 78, .12);
}

.is-app .cart-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 12px;
    background: #323b87;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px; font-weight: 800;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.is-app .cart-bar:active { background: #262d6b; }
.is-app .cart-bar__s { white-space: nowrap; }

/* Место под полосу оформления. Сопутствующие товары лежат ниже корзины, отдельным
   блоком, поэтому распорку ставим в самом конце страницы — иначе полоса ложилась
   поверх карточек. */
.is-app .cart-bar-space { height: 78px; }

/* Старый низ корзины в приложении не нужен: итог и оформление ушли в полосу,
   очистка — в строку над списком. */
.is-app .shopping-cart-footer { display: none; }

/* ========== Приложение: подвал ==========
   Четыре колонки ссылок разворачивались на телефоне в простыню. Меню и акции убираем:
   первое повторяет вкладки и каталог, второе — блоки главной. Остаются то, что больше
   нигде не лежит: правовые ссылки и контакты. */
.is-app .footer-col--menu,
.is-compact .footer-col--promo { display: none; }

.is-compact .site-footer { padding-top: 14px; }
.is-compact .site-footer .widget { margin-bottom: 0; }
.is-compact .site-footer .widget-links li { margin-bottom: 4px; }
.is-compact .site-footer .widget-links a,
.is-compact .site-footer .widget__contact-text { font-size: 12.5px; line-height: 1.5; }

/* Правовые ссылки и реквизиты продавца убрать нельзя, поэтому прячем их за
   заголовком-раскрывашкой: подвал перестаёт быть простынёй, но всё доступно.
   Каждый раздел на своей подложке — читается как кнопка сразу, без догадок.
   Подвал светло-серый (#ececec), поэтому подложка белая, а стрелка тёмная: белая на
   светлом фоне была не видна вовсе. */
.is-compact .site-footer .widget-title {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 0 8px;
    padding: 13px 14px;
    font-size: 13px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(46, 56, 70, .12);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.is-compact .site-footer .widget-title:active { background: #e7e9ee; }

.is-compact .site-footer .widget-title::after {
    content: '';
    width: 9px; height: 9px;
    border-right: 2.5px solid #2e3846;
    border-bottom: 2.5px solid #2e3846;
    transform: rotate(-45deg) translate(-1px, 1px);
    transition: transform .15s ease;
}

.is-compact .site-footer .widget.is-open .widget-title::after { transform: rotate(45deg) translate(-1px, -1px); }

.is-compact .site-footer .widget > *:not(.widget-title) { display: none; }
.is-compact .site-footer .widget.is-open > *:not(.widget-title) { display: block; padding: 2px 14px 12px; }
.is-compact .under-footer { padding: 10px 0; }
.is-compact .footer-copyright { font-size: 11.5px; margin-bottom: 4px; }
.is-compact .footer-rec-notice { font-size: 10.5px !important; line-height: 1.4; }

/* Мелкий текст под полем ввода: в браузере две строки, в приложении одна */
.assistant-disclaimer--short { display: none; }
.is-app .assistant-disclaimer { display: none; }
.is-app .assistant-disclaimer--short { display: block; }

/* Что в приложении лишнее: шапка сайта с логотипом и иконками, жёлтая полоса каталога
   (её работу делает вкладка) и плавающая кнопка чата — помощник теперь вкладка.
   Хлебные крошки и заголовок ленты тоже: их работу делает шапка со стрелкой назад,
   иначе название экрана стоит дважды подряд. */
.is-app .header-custom,
.is-app .category_two,
.is-app .category_first,
.is-app .breadcrumb-custom,
.is-app .feed__title,
.is-app .assistant-fab { display: none !important; }

/* Место под панель, чтобы она не накрывала последний блок страницы.
   Отступ вешаем на подвал, а не на body: у body в разметке стоит `padding: 0 !important`
   прямо в атрибуте, и перебить его из таблицы стилей нельзя — копирайт и строка про
   рекомендательные технологии уходили под панель, докрутить до них было невозможно. */
.is-app .site-footer { padding-bottom: calc(var(--apptabs-h) + 14px); }

/* Плашки внизу выстраиваем над панелью, а не под ней */
.is-app .cookie-notice { bottom: calc(var(--apptabs-h) + 10px); }
.is-app .push-notice { bottom: calc(var(--apptabs-h) + 12px); }

/* Лента уведомлений (страница по колокольчику) */
.feed { max-width: 620px; margin: 0 auto; padding: 8px 0 28px; }

.feed__title { margin: 0 0 18px; font-size: 24px; font-weight: 700; color: #323b87; }

.feed__empty {
    margin: 0;
    padding: 22px;
    border: 1px dashed #d6dae8;
    border-radius: 12px;
    color: #6b7288;
    font-size: 15px;
    line-height: 1.5;
}

.feed__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.feed__item {
    background: #fff;
    border: 1px solid #e6e9f3;
    border-radius: 12px;
    padding: 14px 16px;
}

/* Непрочитанное отмечаем подложкой и точкой: одной точки на белом фоне не видно
   на ходу, а одной подложки мало — она пропадает при следующем заходе. */
.feed__item.is-new { background: #f4f6ff; border-color: #ccd3f2; }

.feed__row { display: flex; gap: 10px; }

.feed__dot {
    flex: 0 0 auto;
    width: 8px; height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: #e23b3b;
}

.feed__body { flex: 1 1 auto; min-width: 0; }

.feed__head { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #2e3846; }
.feed__text { margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; color: #4a5265; }
.feed__meta { margin: 0; font-size: 12.5px; color: #8b91a6; }

.feed__link {
    display: inline-flex;
    align-items: center;
    height: 34px;
    margin-top: 10px;
    padding: 0 16px;
    border-radius: 8px;
    background: #323b87;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.feed__link:hover { background: #2a3273; }

#assistant-widget.assistant-open ~ .push-notice { display: none; }

@media print {
    .push-notice { display: none !important; }
}

.auth__vk {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 10px;
    padding: 14px 18px;
    background: #0077ff;
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background .15s ease;
}

.auth__vk:hover, .auth__vk:focus { background: #0067dd; color: #fff !important; }

/* Вход звонком — главное действие на странице входа, поэтому синий фирменный. */
.auth__call {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    background: #2f3a85;
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background .15s ease;
}

.auth__call:hover, .auth__call:focus { background: #26306e; color: #fff !important; }

.auth__call + .auth__tg { margin-top: 10px; }

.auth__note {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}

/* ==========================================================================
   Страница установки приложения (/install)
   Схемы шагов — инлайновый SVG: рисунок переживает смену версий браузера,
   а настоящий скриншот пришлось бы переснимать под каждую.
   ========================================================================== */

.install-guide {
    max-width: 720px;
    margin: 0 auto;
    padding: 6px 0 40px;
}

.install-guide__title {
    font-size: 26px;
    line-height: 1.2;
    margin: 0 0 10px;
}

.install-guide__lead {
    color: #5a616e;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 18px;
}

/* Что человек получит после установки — списком с галочками, а не абзацем:
   из общего текста не читалось, что это приложение, а не ярлык на сайт. */
.install-guide__gains {
    margin: 0 0 22px;
    padding: 14px 16px;
    list-style: none;
    border-radius: 12px;
    background: #f4f5f9;
}

.install-guide__gains li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    color: #2e3846;
    font-size: 14.5px;
    line-height: 1.4;
}

.install-guide__gains li:last-child { margin-bottom: 0; }

.install-guide__gains li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #2f3a85;
    font-weight: 800;
}

.install-guide__switch {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.install-guide__tab {
    flex: 1 1 0;
    border: 1px solid #d8d6cd;
    background: #fff;
    border-radius: 10px;
    padding: 11px 8px;
    font-size: 15px;
    font-weight: 600;
    color: #5a616e;
    cursor: pointer;
}

.install-guide__tab.is-on {
    background: #2f3a85;
    border-color: #2f3a85;
    color: #fff;
}

.install-guide__done {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #eef7ee;
    border: 1px solid #cfe6cf;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.install-guide__done-ok {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2fa84f;
    color: #fff;
    font-size: 15px;
    line-height: 26px;
    text-align: center;
}

.install-guide__done p {
    margin: 4px 0 0;
    color: #4a6a4d;
    font-size: 14px;
}

.install-guide__fast {
    background: #f4f3ef;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 22px;
}

.install-guide__fast-title {
    font-weight: 700;
    margin: 0 0 6px;
}

.install-guide__fast p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: #5a616e;
}

.install-guide__btn {
    margin-top: 14px;
    border: 0;
    border-radius: 10px;
    background: #2f3a85;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 22px;
    cursor: pointer;
}

.install-guide__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Шаг: заголовок, текст, крупный рисунок под ними. Схема сбоку колонкой была мелкой —
   человек не узнавал в ней свой экран, а это единственное, ради чего рисунок нужен. */
.install-guide__step {
    border: 1px solid #e2e0d8;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
}

.install-guide__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.install-guide__head b {
    font-size: 18px;
    line-height: 1.25;
}

.install-guide__num {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2f3a85;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 32px;
    text-align: center;
}

.install-guide__desc {
    margin: 0;
    color: #5a616e;
    font-size: 15px;
    line-height: 1.5;
}

.install-guide__variants {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #2f3a85;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.7;
}

.install-guide__pic {
    margin: 16px auto 0;
    max-width: 300px;
}

.install-guide__pic svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Схема рисуется одним набором классов на все шаги: рамка телефона, панели, строки
   текста и подсветка нужного места. */
.ig-phone   { fill: #e9eaef; stroke: #c2c5d0; stroke-width: 2; }
.ig-screen  { fill: #fff; }
.ig-notch   { fill: #c9cdd8; }
.ig-bar     { fill: #eceef4; }
.ig-page    { fill: #f7f8fb; }
.ig-row     { fill: #f2f3f7; }
.ig-menu    { fill: #fff; stroke: #d5d8e2; stroke-width: 1.5; }
.ig-line    { fill: #c9cdd8; }
.ig-thumb   { fill: #dfe2ea; }
.ig-glyph   { fill: #dfe2ea; }
.ig-glyph-stroke { fill: none; stroke: #8b91a0; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ig-dot     { fill: #6a7180; }
.ig-icon    { fill: #2f3a85; }
.ig-plus    { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.ig-highlight { fill: #fff3c4; stroke: #f0c400; stroke-width: 2.5; }
.ig-halo    { fill: none; stroke: #f0c400; stroke-width: 3; }
.ig-share-box   { fill: none; stroke: #2f3a85; stroke-width: 2.2; }
.ig-share-arrow { stroke: #2f3a85; stroke-width: 2.2; fill: none; stroke-linecap: round; }

.install-guide__note {
    margin: 18px 0 0;
    color: #5a616e;
    font-size: 14px;
    line-height: 1.55;
    background: #f7f8fb;
    border-left: 3px solid #c9cdd8;
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
}

.install-guide__note--top {
    margin: 0 0 18px;
}

.install-guide__help {
    margin: 26px 0 0;
    text-align: center;
    font-size: 15px;
}

/* На телефоне схема уходит под текст: в три колонки рисунок сжимался до нечитаемого. */
@media (max-width: 575px) {
    .install-guide__title { font-size: 22px; }
    .install-guide__head b { font-size: 17px; }
    .install-guide__step { padding: 16px 14px; }
}

/* Подписи внутри схем: серая полоска читается как «что-то», слово — как кнопка. */
.ig-label {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    fill: #33394a;
    text-anchor: middle;
}

.ig-label--left {
    text-anchor: start;
}

.ig-label--muted {
    font-weight: 500;
    fill: #7c8290;
}

/* Строчки системных меню длиннее наших подписей — им свой размер, иначе не влезают. */
.ig-label--sm { font-size: 9px; }
.ig-label--xs { font-size: 8px; }

.ig-toggle { fill: #34c759; }

/* Количество и «В корзину» на карточке товара в приложении: пальцем в кнопку 26×30
   не попасть. Правила ограничены `.sp-buttons` — тот же блок стоит и в карточках
   каталога, а там количество вообще скрыто и растить нечего. */
.is-app .sp-buttons .add_to_cart {
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
}

.is-app .sp-buttons .add_to_cart > div { flex: 0 0 auto; }

/* Высоты у базовых правил помечены !important — перебиваем тем же. */
.is-app .sp-buttons .add_to_cart-minus,
.is-app .sp-buttons .add_to_cart-plus {
    width: 44px;
    height: 48px !important;
    font-size: 20px;
    padding: 0 !important;
}

.is-app .sp-buttons .add_to_cart-quantity {
    width: 56px;
    height: 48px !important;
    font-size: 16px;
}

.is-app .sp-buttons .add_to_cart-button {
    flex: 1 1 auto;
    height: 48px !important;
    max-height: 48px !important;
    font-size: 15px;
    border-radius: 10px;
    padding: 0 14px !important;
    margin-bottom: 0;
}

.is-app .sp-buttons .add_to_cart-button svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Подсказки при первом запуске приложения
   Дырку в затемнении не вырезаем: панель вкладок и так лежит поверх страницы,
   достаточно поднять её над вуалью целиком и притушить соседние кнопки.
   ========================================================================== */

.apphint { display: none; }

.is-app .apphint:not([hidden]) { display: block; }

.apphint__veil {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 40, .62);
    z-index: 1250;
}

.apphint-open .apptabs { z-index: 1260; }

.apphint-open .apptabs__i { opacity: .32; transition: opacity .18s ease; }

.apphint-open .apptabs__i.apphint-lit {
    opacity: 1;
    color: #2f3a85;
}

.apphint-open .apptabs__i.apphint-lit::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 2px;
    width: 52px;
    height: 46px;
    margin-left: -26px;
    border-radius: 12px;
    background: rgba(240, 196, 0, .18);
    box-shadow: 0 0 0 2px #f0c400;
}

.apphint__card {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--apptabs-h, 62px) + 16px);
    z-index: 1270;
    background: #fff;
    border-radius: 16px;
    padding: 16px 16px 12px;
    box-shadow: 0 12px 34px rgba(15, 20, 40, .32);
}

/* Стрелка смотрит на подсвеченную кнопку: её центр приходит из JS. */
.apphint__card::after {
    content: '';
    position: fixed;
    left: var(--apphint-x, 50%);
    bottom: calc(var(--apptabs-h, 62px) + 6px);
    width: 18px;
    height: 18px;
    margin-left: -9px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 3px;
    z-index: 1269;
}

.apphint__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #2f3a85;
}

.apphint__text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: #4a5160;
}

.apphint__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.apphint__skip {
    border: 0;
    background: none;
    padding: 8px 2px;
    font-size: 13.5px;
    color: #7c8290;
    cursor: pointer;
}

.apphint__dots {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.apphint__dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d7dbe6;
}

.apphint__dots i.is-on { background: #2f3a85; }

.apphint__next {
    border: 0;
    border-radius: 10px;
    background: #2f3a85;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 20px;
    cursor: pointer;
}

/* Пункты про приложение в личном кабинете */
.account__app { margin-top: 28px; }

.account__applink {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #e2e0d8;
    border-radius: 12px;
    background: #fff;
    padding: 15px 16px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #2f3a85;
    cursor: pointer;
}

.account__applink[hidden] { display: none; }
