body.liway-redesign {
    --liway-ui-font: "Open Sans", Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--liway-ui-font);
    line-height: 1.55;
}
.liway-redesign [hidden] { display: none !important; }
.liway-redesign a { text-underline-offset: .2em; }
.liway-redesign :focus-visible { outline: 1px solid #9a692e; outline-offset: 2px; }
.liway-redesign .site-header,
.liway-redesign .top-strip { width: 100%; }
.liway-redesign .site-header {
    height: auto;
    min-height: 0;
    padding: 0;
    top: 0;
    z-index: 1020;
}
#bx-panel ~ .site-header { top: var(--liway-panel-height, 0); }
.liway-redesign .site-header a,
.liway-redesign .catalog-pills a,
.liway-redesign .category-card a { color: var(--ink); }
.liway-redesign .site-header a:hover,
.liway-redesign .category-card a:hover { color: var(--bronze); }
.liway-redesign .site-search input { margin: 0; outline-offset: -2px; }
.liway-redesign .utility a:not(.max-link) { color: #fff7e8; }
.liway-redesign :is(.site-header,.top-strip,.site-footer,.liway-filters,.liway-sort,.liway-section-nav,.home-hero,.home-categories,.home-corporate)
    :where(a,span,button,input,label,p,small) {
    font-family: var(--liway-ui-font);
}
.liway-redesign .top-strip .utility .ui-icon { color: #e3b86d; }
.liway-redesign .liway-section-nav a[aria-current="page"] :where(span,small) { color: inherit; }
.liway-redesign .liway-content .liway-home-body > .articles-block .title,
.liway-redesign .liway-content .liway-home-body > .product-card .title {
    text-align: left;
    font-style: normal;
    font-size: clamp(24px,2.3vw,40px);
    margin-bottom: 16px;
}
.liway-redesign .site-icon { color: var(--ink); text-decoration: none; }
.liway-redesign .site-icon.back-top { color: #fff4d6; z-index: 1019; }
.liway-redesign .catalog-menu a[aria-current] { color: white; }
.liway-redesign .catalog-menu h2 { font-family: "Noto Serif", Georgia, serif; }
.liway-redesign .liway-content { padding: 0; }
.liway-redesign .liway-content-inner {
    width: min(calc(100% - 2 * var(--gutter)), var(--site-max));
    max-width: none;
    margin: 0 auto;
    padding: 0 0 34px;
}
.liway-redesign .liway-content :is(h1,h2,h3,.title,.home-banner-title) {
    font-family: "Noto Serif", Georgia, serif;
}
.liway-redesign .liway-content h1 { font-size: clamp(30px,3.15vw,54px); line-height: 1.14; }
.liway-redesign .liway-content .title { color: var(--ink); }
.liway-redesign .liway-content-inner:has(> .home-hero) { width: 100%; }
.liway-redesign .liway-content-inner > .liway-home-body {
    width: min(calc(100% - 2 * var(--gutter)), var(--site-max));
    margin-inline: auto;
}
.liway-redesign .home-hero-copy .button { text-decoration: none; }
.liway-redesign .liway-home-body { margin-inline: 0; align-items: stretch; }
.liway-redesign .liway-home-body > :is(.home-categories,.home-corporate,.advantages,.text-block) { width: 100%; }
.liway-redesign .liway-home-body > .main-slider { margin-top: clamp(14px,2vw,24px); padding: 0; }
.liway-redesign .home-categories { order: -1; padding: 0; }
.liway-redesign .home-category { color: #fff8e9; }
.liway-redesign .home-corporate h2 { color: #fff8e9; font-size: clamp(24px,3vw,48px); }
.liway-redesign .home-corporate p { margin-block: 8px; }
.liway-redesign .liway-home-body :is(.news__block,.inner-article-block,.product-item-container,.advantages__item,.text-block) {
    border: 1px solid #e2d2bd;
    border-radius: 13px;
    background: #fff9ef;
}
.liway-redesign .liway-home-body :is(.advantages__item,.text-block) { padding: clamp(13px,2vw,24px); }
.liway-redesign .liway-home-body .advantages__grid { gap: 12px; }
.liway-redesign .liway-home-body :is(.product-item-container,.inner-article-block) { height: 100%; }
.liway-redesign .liway-home-body .text-block { margin-top: 30px; }
.liway-redesign .liway-home-body .news__block { overflow: hidden; }
.liway-redesign .liway-home-body .news__img img { width: 100%; object-fit: cover; }
.liway-redesign .liway-footer { padding: 24px var(--gutter) 20px; background: #0a281b; }
.liway-redesign .liway-footer > .inner-container { width: min(100%,var(--site-max)); max-width: none; margin: auto; }
.liway-redesign .liway-footer :is(a,.footer__title,.footer__time) { color: #fff8ec; }
.liway-redesign .liway-footer a:hover { color: #f4cf8e; }
.liway-redesign .sign-in-modal .modal-content { background: #fff9ef; border: 1px solid #e1cfb2; border-radius: 14px; }

.liway-catalog-home .category-card { scroll-margin-top: 120px; }
.liway-catalog-home .catalog-pills a {
    border: 1px solid #deceb6;
    border-radius: 30px;
    padding: 5px 14px;
    background: #fff9ef;
}
.liway-catalog-home .category-more { margin-top: auto; font-weight: 700; }
.liway-catalog-home .catalog-hero h1 { margin: 0; color: #fff8e9; }
.liway-catalog-top { margin-inline: 0; }
.liway-catalog-top > .col { padding-inline: 0; }

.liway-redesign .liway-catalog-list { width: 100%; max-width: none; margin-inline: 0; }
.liway-redesign .liway-catalog-list > .title { margin: 18px 0 23px; text-align: left; }
.liway-listing {
    display: grid;
    grid-template-columns: minmax(225px, 292px) minmax(0,1fr);
    gap: clamp(14px,2vw,30px);
}
.liway-listing-sidebar { min-width: 0; }
.liway-listing-results { min-width: 0; }
.liway-section-nav,
.liway-filters {
    border: 1px solid #e4d4bd;
    border-radius: 11px;
    background: #fbf4e9;
    padding: 14px;
    margin-bottom: 14px;
}
.liway-section-nav h2 { margin: 0 0 10px; font-size: 23px; }
.liway-section-nav ul { list-style: none; padding: 0; margin: 0; }
.liway-section-nav ul ul { margin: 0 0 6px 11px; padding-left: 6px; border-left: 1px solid #ddcdb4; }
.liway-section-nav a {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 5px;
    border-radius: 6px;
    padding: 5px 6px;
    color: #244331;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}
.liway-section-nav a:hover { background: #eee3d1; }
.liway-section-nav a[aria-current="page"] { color: white; background: #163c29; font-weight: 700; }
.liway-filter-toggle { display: none; }
.liway-sort {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    background: #fff9ef;
    border: 1px solid #e4d4bd;
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 14px;
    font-size: 14px;
}
.liway-sort > span { color: #665b49; }
.liway-sort a { padding: 4px 9px; border-radius: 6px; color: #254737; }
.liway-sort a[aria-current] { background: #e8decb; font-weight: 700; text-decoration: none; }
.liway-filters .bx-filter { margin: 0; }
.liway-filters .bx-filter-section { padding: 0; background: transparent; border: 0; }
.liway-filters .bx-filter-title { font: 700 22px/1.2 "Noto Serif", Georgia, serif; margin-bottom: 9px; }
.liway-filters .smartfilter > .row { display: block; margin: 0; }
.liway-filters .bx-filter-parameters-box,
.liway-filters .bx-filter-button-box { width: 100%; max-width: 100%; padding: 0; }
.liway-filters .bx-filter-parameters-box { border-top: 1px solid #e5d8c4; }
.liway-filters .bx-filter-parameters-box-title { color: #263b2c; padding: 9px 0; cursor: pointer; }
.liway-filters .bx-filter-block { max-width: 100%; }
.liway-filters .bx-filter-parameters-box-container { margin-inline: 0; }
.liway-filters .bx-filter-parameters-box-container > * { padding-inline: 0; }
.liway-filters .checkbox,
.liway-filters input[type="checkbox"],
.liway-filters .bx-filter-param-label { cursor: pointer; }
.liway-filters .bx-filter-param-label { display: block; margin: 0; padding: 2px 0; }
.liway-filters .bx-filter-param-label:hover { color: #764917; }
.liway-filters input:not([type="submit"]):focus { outline: 1px solid #9a692e; outline-offset: 0; box-shadow: none; }
.liway-filters .bx-filter-input-container input { width: 100%; }
.liway-filters .bx-filter-parameters-box-container-block { padding-right: 5px; }
.liway-filters .bx-filter-button-box #set_filter,
.liway-filters .bx-filter-button-box #del_filter {
    display: inline-flex;
    align-items: center;
    min-height: 35px;
    border-radius: 7px;
    padding: 5px 9px;
    margin: 4px 4px 4px 0;
    cursor: pointer;
    font-weight: 700;
}
.liway-filters .bx-filter-button-box #set_filter { background: #123825; color: #fff9ef !important; border: 1px solid #123825; }
.liway-filters .bx-filter-button-box #set_filter:hover { background: #24533a; }
.liway-filters .bx-filter-button-box #del_filter { background: transparent; color: #69471e !important; border: 1px solid transparent; }
.liway-additives-more { border: 0; padding: 4px 0 8px; color: #76511e; background: transparent; text-decoration: underline; }
.liway-filters .bx-filter-popup-result { position: static; white-space: normal; max-width: 100%; }

.liway-redesign .liway-listing-results .product-card { padding: 0; }
.liway-redesign .liway-products {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: clamp(9px,1.4vw,20px);
    margin: 0;
}
.liway-redesign .liway-products .liway-product-cell { min-width: 0; }
.liway-redesign .liway-products .product-item-container { height: auto; }
.liway-redesign .liway-product-cell { display: grid; }
body.liway-redesign .product-item-container .product-item.liway-product {
    position: relative;
    inset: auto;
    animation: none;
    margin: 0;
    box-shadow: none;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    gap: 7px;
    height: 100%;
    min-width: 0;
    background: #fffaf1;
    border: 1px solid #e3d4bf;
    border-radius: 12px;
    padding: 11px;
    color: var(--ink);
}
body.liway-redesign .product-item-container .product-item.liway-product:hover { box-shadow: 0 5px 14px #372a1817; }
.liway-redesign .liway-product .product-item-title {
    order: -2;
    min-height: 0;
    max-height: none;
    height: auto;
    margin: 0;
    overflow: visible;
    white-space: normal;
}
.liway-redesign .liway-product :where(a,p,span,button,input,label) { font-family: var(--liway-ui-font); }
.liway-redesign .liway-product .product-item-title a { color: #183526; font-weight: 700; overflow-wrap: anywhere; white-space: normal; }
.liway-redesign .liway-product .articule { order: -3; margin: 0; color: #6e604a; font-size: 12px; }
.liway-redesign .liway-product .rating { order: -3; margin: 0; color: #8e5f25; }
.liway-redesign .liway-product .product-item-image-wrapper {
    order: -4;
    border-radius: 8px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    background: #fff;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    display: block;
    overflow: hidden;
}
.liway-redesign .liway-product :is(.product-item-image-slide,.product-item-image-original,.product-item-image-alternative) { background-size: contain; }
.liway-redesign .liway-product .product-item-image-slider-control-container { order: -4; position: static; transform: none; }
.liway-redesign .liway-product .product-item-image-slider-control {
    appearance: none;
    padding: 0;
    width: 12px;
    height: 6px;
    border: 0;
    background: #c8ae88;
    border-radius: 10px;
}
.liway-redesign .liway-product .product-item-image-slider-control.active { background: #204a32; }
.liway-redesign .liway-product .product-item-info-container { margin-bottom: 0; }
.liway-redesign .liway-product .product-item-price-container { margin-top: auto; }
.liway-redesign .liway-product .product-item-price-current { font-size: clamp(17px,1.6vw,27px); color: #163b27; font-weight: 700; }
.liway-redesign .liway-product .product-item-price-old { text-decoration: line-through; opacity: .8; }
.liway-redesign .liway-product .btn-add,
.liway-redesign .liway-detail :is(.btn-add,.button-add),
.liway-redesign .liway-home-body .btn-add { background: #153c28; border-color: #153c28; color: #fff9ef; border-radius: 8px; }
.liway-redesign .liway-product .btn-add:hover,
.liway-redesign .liway-detail :is(.btn-add,.button-add):hover,
.liway-redesign .liway-home-body .btn-add:hover { background: #25583c; }
.liway-redesign .liway-product .product-item-scu-item-list { white-space: normal; }
.liway-redesign .liway-empty-catalog { grid-column: 1 / -1; padding: 14px; background: #fff9ef; border-radius: 10px; }

.liway-redesign .liway-detail {
    background: #fff9ef;
    border: 1px solid #e1cfb2;
    border-radius: 14px;
    padding: clamp(13px,2vw,34px);
}
.liway-redesign .liway-detail .card-title { text-align: left; color: #153323; overflow-wrap: anywhere; }
.liway-redesign .liway-detail .liway-detail-grid { margin-top: 16px; }
.liway-redesign .liway-detail-media .carousel { background: white; border: 1px solid #e5d7c1; border-radius: 12px; }
.liway-redesign .liway-detail-media .carousel-item img { object-fit: contain; max-width: 100%; }
.liway-redesign .liway-detail-purchase .actual_price,
.liway-redesign .liway-detail-purchase .product-item-detail-price-current { color: #173f2a; font-size: clamp(24px,2.3vw,42px); font-weight: 700; }

@media (max-width: 1200px) {
    .liway-redesign .liway-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 970px) {
    .liway-redesign .catalog-menu { top: 100%; }
    .liway-redesign .primary-nav .catalog-menu {
        position: static;
        max-height: min(37vh,350px);
        box-shadow: none;
        border-radius: 8px;
        white-space: normal;
    }
}
@media (max-width: 790px) {
    .liway-listing { display: block; }
    .liway-redesign .liway-catalog-list.has-filter-toggle .liway-filter-toggle {
        display: inline-flex;
        margin: 0 0 13px;
        color: #fff9ef;
    }
    .liway-catalog-list.has-filter-toggle:not(.is-sidebar-open) .liway-listing-sidebar { display: none; }
    .liway-redesign .liway-detail-media { margin-bottom: 15px; }
}
@media (max-width: 440px) {
    .liway-redesign .liway-products { grid-template-columns: 1fr; }
    .liway-redesign .primary-nav { white-space: normal; }
    .liway-redesign .liway-footer > .inner-container { row-gap: 12px; }
}

.liway-filters .bx-filter { min-width: 0; }
.liway-redesign .product-item-container .liway-product .product-item-image-original { opacity: 1; }
.liway-redesign .liway-product .product-item-image-slider-control-container { opacity: 1; }
.liway-redesign .liway-product .product-item-image-slider-control:focus-visible { outline-offset: 3px; }
.liway-redesign .liway-detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    border-bottom: 1px solid #e2d1b9;
    padding: 10px 0;
    margin-top: 20px;
}
.liway-redesign .liway-detail-links a { color: #204733; font-weight: 700; }
.liway-redesign .liway-detail :is(#liway-description,#liway-brewing,#user_responses) { scroll-margin-top: 132px; }
.liway-redesign .liway-detail :is(.delivery-info,.instruction) {
    background: #f4eadc;
    border: 1px solid #e2d1b9;
    border-radius: 10px;
    padding: 12px;
}

/* Live-site cascade audit, 2026-11-17. Explicit Bitrix-to-Liway mappings. */
.liway-redesign .home-hero .home-banner-title { color:#fff8ec; font-weight:400; font-style:normal; }
.liway-redesign .home-hero .home-banner-title em { font-style:italic; font-family:inherit; font-size:1em; color:#eac481; }
.liway-redesign .home-hero-copy > p,
.liway-redesign .home-corporate p { color:#fff8ec; }
.liway-redesign .home-corporate p:first-child { color:#edc584; }
.liway-redesign .home-category { color:var(--ink); }
.liway-redesign .home-category span { font-family:"Noto Serif",Georgia,serif; }
.liway-redesign .ui-icon :where(path,circle,rect,line,polyline,polygon) { color:inherit; }
.liway-redesign .liway-catalog-home { font:16px/1.5 var(--liway-ui-font); color:var(--ink); }
.liway-redesign .catalog-hero > p { color:#fff8e9; font-family:var(--liway-ui-font); }
.liway-redesign .category-card h2 a { font:inherit; color:inherit; }
.liway-redesign .category-card h2 { font-weight:700; }
.liway-redesign .liway-content :is(h1,h2,h3,.title,.card-title) { font-style:normal; }
.liway-redesign .liway-content :is(.breadcrumb,.breadcrumbs,.crumbs) :is(a,li,span) {
    font:14px/1.5 var(--liway-ui-font); color:var(--muted);
}
.liway-redesign .liway-product .product-item-title a {
    display:block; font-family:"Noto Serif",Georgia,serif;
    font-size:clamp(17px,1.35vw,22px); line-height:1.25; font-weight:700;
}
.liway-redesign :is(.liway-product,.liway-detail) .rating { gap:8px; line-height:1.3; }
.liway-redesign :is(.liway-product,.liway-detail) .rating :is(.star-full,.star-empty) {
    display:inline; font:17px/1.3 Arial,sans-serif; color:#a6681d;
}
.liway-redesign :is(.liway-product,.liway-detail) .rating .star-empty { color:#cfc2aa; }
.liway-redesign :is(.liway-product,.liway-detail) .rating .rating-count {
    font:13px/1.3 var(--liway-ui-font); color:var(--muted);
}
.liway-redesign .liway-product .product-item-scu-item-list {
    display:flex; flex-wrap:wrap; gap:5px; margin:6px 0; padding:0;
}
.liway-redesign .liway-product .product-item-scu-item-text-container {
    width:auto; max-width:none; padding:0; margin:0;
}
.liway-redesign .liway-product .product-item-scu-item-text-block {
    position:static; padding:4px 7px; border:1px solid #dfcfb7; border-radius:5px; background:#fff9ef;
}
.liway-redesign .liway-product .product-item-scu-item-text {
    position:static; font:13px/1.4 var(--liway-ui-font); color:var(--ink);
}
.liway-redesign .liway-product .selected .product-item-scu-item-text-block { background:#173c2a; border-color:#173c2a; }
.liway-redesign .liway-product .selected .product-item-scu-item-text { color:#fff9ef; }
.liway-redesign .liway-product .btn-add { font:700 14px/1.4 var(--liway-ui-font); padding:10px; }
.liway-redesign .liway-product .product-item-amount-field { border:1px solid #dfcfb7; border-radius:5px; }
.liway-redesign .liway-detail :where(p,a,span,label,input,select,option,li,dt,dd) { font-family:var(--liway-ui-font); color:var(--ink); }
.liway-redesign .liway-detail .card-title { font-size:clamp(27px,2.7vw,46px); line-height:1.2; }
.liway-redesign .liway-detail .small-text { display:block; font:13px/1.5 var(--liway-ui-font); color:var(--muted); margin-bottom:5px; }
.liway-redesign .liway-detail .select-group { margin-top:12px; }
.liway-redesign .liway-detail .bootstrap-select > button {
    width:100%; max-width:none; min-height:44px; height:auto;
    border:1px solid #d5bf9d; border-radius:7px; background:#fff9ef;
    color:var(--ink); font:15px/1.4 var(--liway-ui-font); padding:8px 12px;
}
.liway-redesign .liway-detail .bootstrap-select .filter-option-inner-inner { font:inherit; color:var(--ink); }
.liway-redesign .liway-detail .number { border:1px solid #d5bf9d; border-radius:7px; height:44px; background:#fff9ef; }
.liway-redesign .liway-detail .number input { font:16px/1.4 var(--liway-ui-font); background:transparent; }
.liway-redesign .liway-detail .number_controls :is(.nc-plus,.nc-minus) { color:#173c2a; }
.liway-redesign .liway-detail :is(.button-add,.button-one-click) {
    width:100%; min-height:44px; height:auto; padding:10px 8px;
    border:1px solid #153c28; border-radius:8px; font:700 14px/1.4 var(--liway-ui-font);
}
.liway-redesign .liway-detail .button-add { background:#153c28; color:#fff9ef; }
.liway-redesign .liway-detail .button-one-click { background:#f4dfb7; border-color:#d5b37b; color:#2f2417; }
.liway-redesign .liway-detail .delivery-info :is(p,span,a) { font-family:var(--liway-ui-font); font-style:normal; }
.liway-redesign .liway-footer :is(p,span,li) { color:#fff8ec; }
@media(max-width:790px) {
    .liway-redesign .liway-detail .buttons-container { row-gap:8px; }
    .liway-redesign .liway-detail .rating { flex-wrap:wrap; }
    .liway-redesign .liway-product .product-item-title a { font-size:18px; }
}

.liway-redesign .category-card .category-more.button-green { color:#fff9ec; }

/* Interaction states matched to Liway-HTML-templates/assets/site.css.
   Scoped overrides also neutralize the legacy .button offsets/opacity. */
.liway-redesign .button {
    float:none;
    clear:none;
    margin:0;
    opacity:1;
    transition:background-color .16s,border-color .16s;
}
.liway-redesign .button:hover { opacity:1; text-decoration:none; }
.liway-redesign .top-strip .max-link { align-self:center; flex-shrink:0; }
.liway-redesign .button-gold,
.liway-redesign .button-gold:hover { transition:none; }
.liway-redesign .button-gold:hover:not(:disabled) {
    color:#2f2417;
    background:linear-gradient(#ffebc7,#f2ce91);
    border-color:#d3aa69;
}
.liway-redesign .button-outline:hover {
    color:#fff; background:#1b4530; border-color:#e5bc75;
}
.liway-redesign .button-green:hover,
.liway-redesign .category-card .category-more.button-green:hover {
    color:#fff; background:#24513a;
}
.liway-redesign .site-search:focus-within {
    border-color:#8a602d;
    box-shadow:0 0 0 2px #8a602d;
}
.liway-redesign .site-search :is(input,button):is(:focus,:focus-visible) {
    outline:0;
    box-shadow:none;
}
.liway-redesign .site-search input:focus {
    border:0;
    background:transparent;
}
.liway-redesign .catalog-menu h2 { font:700 20px/1.2 "Noto Serif",Georgia,serif; }
.liway-redesign .catalog-menu h2 a { font:inherit; }
.liway-redesign .catalog-menu h2 a:hover { color:var(--bronze); text-decoration:underline; }
.liway-redesign .catalog-menu li a:hover:not([aria-current]) {
    background:#f2e6d2; color:var(--bronze); text-decoration:underline;
}
.liway-redesign .catalog-menu li a[aria-current]:hover { color:#fff; }
.liway-redesign :is(.home-category,.category-card h2 a,.category-card li a):hover {
    color:var(--bronze); text-decoration:underline; text-underline-offset:.25em;
}
.liway-redesign .home-category:hover span { color:inherit; }
.liway-redesign .liway-product .product-item-title a:hover {
    color:var(--bronze); text-decoration:underline; text-underline-offset:.25em;
}
.liway-redesign .liway-listing .liway-product .product-item-title a:hover { color:#86591d; }
.liway-redesign .liway-section-nav a:hover:not([aria-current]) {
    color:var(--bronze); background:#f1e5d2; text-decoration:underline;
}
.liway-redesign .liway-section-nav a:hover :is(span,small) { color:inherit; }
.liway-redesign .liway-section-nav a[aria-current]:hover { color:#fff; background:#163c29; }
body.liway-redesign .product-item-container .product-item.liway-product:hover { box-shadow:none; }
.liway-redesign .liway-product .btn-add:hover {
    opacity:1; background:#24513a; color:#fff; text-decoration:none;
    transition:background-color .16s,border-color .16s;
}
.liway-redesign .liway-detail :is(.btn-add,.button-add):hover {
    opacity:1; background:#285942; color:#fff; text-decoration:none;
}
.liway-redesign .liway-detail .button-one-click {
    background:#fbf2e2; border-color:#a37b44; color:#563819;
}
.liway-redesign .liway-detail .button-one-click:hover {
    opacity:1; background:#f4e3c5; color:#563819;
}
.liway-redesign .liway-detail a:not(.btn):not(.favorite):hover {
    color:var(--bronze); text-decoration:underline; text-underline-offset:.25em;
}
.liway-redesign .category-card .category-more { margin-top:auto; }

/* Описание магазина внизу главной */
.liway-redesign .liway-home-body .home-editorial {
    width: 100%;
    min-width: 0;
}

.liway-redesign .liway-home-body .home-editorial h1 {
    margin: 0 0 12px;
    color: #15291e;
    font: 700 clamp(24px, 2.1vw, 37px)/1.2 "Noto Serif", Georgia, serif;
    letter-spacing: -.025em;
}

.liway-redesign .liway-home-body .home-editorial :is(h2, h3) {
    margin-bottom: 8px;
    color: #15291e;
    font: 700 clamp(19px, 1.4vw, 25px)/1.2 "Noto Serif", Georgia, serif;
}

.liway-redesign .liway-home-body .home-editorial :is(p, li) {
    color: #15291e;
    font: 400 16px/1.5 "Open Sans", Arial, sans-serif;
}

.liway-redesign .liway-home-body .home-editorial ul {
    margin: 5px 0 11px;
    padding-left: 20px;
}

.liway-redesign .liway-home-body .home-editorial ul > li {
    list-style: disc outside;
}

.liway-redesign .liway-home-body .home-editorial a {
    color: #81511e;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .15em;
}

/* Веточка в блоке описания на главной */
.liway-redesign .home-editorial > svg.liway-sprig {
    color: #d9b272;
    opacity: .68;
}

.liway-redesign .home-editorial > svg.liway-sprig path,
.liway-redesign .site-icon.back-top svg,
.liway-redesign .site-icon.back-top svg path {
    color: inherit;
    stroke: currentColor;
}

/* Стрелка «Наверх»: кремовая, при наведении — белая */
.liway-redesign .site-icon.back-top {
    color: #fff4d6;
}

.liway-redesign .site-icon.back-top:hover {
    color: #fff;
}

.articles-on-main {
    margin: 0;
    padding: 0;
    color: #15291e;
    font: 700 clamp(24px, 2.1vw, 37px) / 1.2 "Noto Serif", Georgia, serif;
    letter-spacing: -.025em;
}

/* Дочерние пункты наследуют оформление ссылки, включая активное состояние. */
.liway-redesign #catalog-menu a > [itemprop="name"] {
    font: inherit;
    color: inherit;
}

.liway-redesign #catalog-menu > section {
    min-width: 0;
}

.liway-redesign #catalog-menu > section > h2,
.liway-redesign #catalog-menu > section > h2 > a {
    font: 700 20px/1.2 "Noto Serif", Georgia, serif;
}

.liway-redesign #catalog-menu > section > h2 > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.liway-redesign #catalog-menu > section > h2 > a > .ui-icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: #825929;
}

.liway-redesign #catalog-menu > section > h2 > a > .ui-icon path {
    color: inherit;
    stroke: currentColor;
}

/* Служебный meta перед колонками не считается секцией меню. */
.liway-redesign #catalog-menu > section:first-of-type > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 970px) {
    .liway-redesign #catalog-menu > section:first-of-type {
        grid-column: span 2;
    }
}

/* Главная Liway · мобильные карточки статей */
@media (max-width: 767px) {
    .liway-redesign .liway-home-body > .articles-block:not(.news__container) {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding-inline: 0;
        margin: 24px 0 0;
    }

    .liway-redesign .liway-home-body > .articles-block:not(.news__container) > br {
        display: none;
    }

    .liway-redesign .liway-home-body > .articles-block > .articles-on-main {
        margin: 0 0 14px;
        color: var(--ink);
        font: 700 clamp(24px, 5vw, 32px)/1.2 "Noto Serif", Georgia, serif;
        text-align: left;
    }

    .liway-redesign .liway-home-body > .articles-block:not(.news__container) > .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin: 0;
    }

    .liway-redesign .liway-home-body > .articles-block:not(.news__container) > .row > * {
        width: auto;
        min-width: 0;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .liway-redesign .liway-home-body > .articles-block .inner-article-block {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
        min-height: 0;
        height: 100%;
        margin: 0;
        padding: 14px;
        overflow-wrap: anywhere;
    }

    .liway-redesign .liway-home-body > .articles-block .img-container-articles {
        float: none;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin: 0 0 2px;
        overflow: hidden;
        border-radius: 8px;
    }

    .liway-redesign .liway-home-body > .articles-block .img-container-articles > a {
        display: block;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .liway-redesign .liway-home-body > .articles-block .img-container-articles img {
        position: static;
        display: block;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        margin: 0;
        object-fit: cover;
    }

    .liway-redesign .liway-home-body > .articles-block .inner-article-block > :is(.article-title, span, a) {
        float: none;
        padding: 0;
        margin: 0;
        white-space: normal;
    }

    .liway-redesign .liway-home-body > .articles-block .inner-article-block > .article-title {
        font: 700 19px/1.3 "Noto Serif", Georgia, serif;
        color: var(--ink);
    }

    .liway-redesign .liway-home-body > .articles-block .inner-article-block > span {
        font: normal 14px/1.5 var(--liway-ui-font, Arial, sans-serif);
    }

    .liway-redesign .liway-home-body > .articles-block .inner-article-block > a:not(.article-title) {
        align-self: flex-start;
        font-size: 14px;
    }

    .liway-redesign .liway-home-body > .articles-block .inner-article-block > .btn-add {
        float: none;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        height: auto;
        margin: auto 0 0;
        padding: 8px 12px;
        white-space: normal;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .liway-redesign .liway-home-body > .articles-block:not(.news__container) > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Оформление заказа по действующему шаблону new-order на liway.ru. */
.liway-redesign .liway-content:has(#bx-soa-order-form) {
    padding: 40px 15px 0;
    line-height: 1.5;
}

.liway-redesign .liway-content-inner:has(> #bx-soa-order-form) {
    width: auto;
    max-width: 1168px;
    margin: auto;
    padding: 0;
}

.liway-redesign #bx-soa-order-form {
    --checkout-ui: var(--liway-ui-font, "Open Sans", Arial, sans-serif);
    --checkout-serif: "Noto Serif", Georgia, serif;
    --checkout-ink: #15291e;
    --checkout-green: #0c2c1d;
    --checkout-field: #fffdf6;
    --checkout-border: #dcc8aa;
    --checkout-focus: #916125;
    --checkout-error: #a74435;
    color: var(--checkout-ink);
    font: 400 16px/1.5 var(--checkout-ui);
}

/* Перекрыть общий шрифт старой темы, сохраняя специализированные шрифты иконок. */
:where(.liway-redesign #bx-soa-order-form *) {
    color: var(--checkout-ink);
    font-family: var(--checkout-ui);
}
.liway-redesign #bx-soa-order-form :is(.title-style, .bx-soa-section-title, .bx-title) {
    color: var(--checkout-green);
    font-family: var(--checkout-serif);
    font-style: normal;
    font-weight: 600;
    letter-spacing: -.02em;
}
.liway-redesign #bx-soa-order-form :is(.title-style, .bx-soa-section-title) {
    font-size: clamp(23px, 2.3vw, 32px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.liway-redesign #bx-soa-order-form .bx-title {
    font-size: 21px;
    line-height: 1.3;
}
.liway-redesign #bx-soa-order-form :is(.form-group label, .bx-soa-customer-label) {
    color: var(--checkout-ink);
    font: 650 14px/1.4 var(--checkout-ui);
}
.liway-redesign #bx-soa-order-form .form-group label small {
    color: #665b49;
    font: 400 13px/1.4 var(--checkout-ui);
}

.liway-redesign #bx-soa-order-form :is(.form-control, .bx-ui-sls-input-block, .bx-ui-slst-input-block) {
    min-width: 0;
    min-height: 45px;
    border: 1px solid var(--checkout-border);
    border-radius: 8px;
    color: var(--checkout-ink);
    background: var(--checkout-field);
    font: 400 16px/1.4 var(--checkout-ui);
    box-shadow: none;
}
.liway-redesign #bx-soa-order-form textarea.form-control {
    min-height: 96px;
    padding: 10px 12px;
    resize: vertical;
}
.liway-redesign #bx-soa-order-form :is(input, textarea)::placeholder {
    color: #746653;
    opacity: 1;
}
.liway-redesign #bx-soa-order-form :is(.bx-ui-sls-fake, .bx-ui-sls-route) {
    font-family: var(--checkout-ui);
    font-size: 16px !important;
    color: var(--checkout-ink) !important;
}
.liway-redesign #bx-soa-order-form .bx-ui-sls-route { color: #746653 !important; }
.liway-redesign #bx-soa-order-form :is(.bx-ui-slst-input-block, .bx-ui-sls-input-block) .bx-ui-slst-pool {
    color: var(--checkout-ink);
    font: 400 16px/1.4 var(--checkout-ui);
}
.liway-redesign #bx-soa-order-form :is(.form-control:focus, .bx-ui-sls-input-block:focus-within, .bx-ui-slst-input-block:focus-within) {
    border-color: var(--checkout-focus);
    outline: 0;
    box-shadow: 0 0 0 2px #91612529;
}
.liway-redesign #bx-soa-order-form :is(.has-error .form-control, .has-error .bx-ui-sls-input-block, .has-error .bx-ui-slst-input-block, .form-control[aria-invalid="true"], .form-control.is-invalid) {
    border-color: var(--checkout-error);
}
.liway-redesign #bx-soa-order-form .form-control:disabled {
    background: #f0e7d8;
    color: #665b49;
    cursor: not-allowed;
}
.liway-redesign #bx-soa-order-form input:is([type="checkbox"], [type="radio"]) { accent-color: var(--checkout-green); }
.liway-redesign #bx-soa-order-form input.custom-checkbox + label { border-color: #b89c74; }
.liway-redesign #bx-soa-order-form input.custom-checkbox:checked + label::before { background: var(--checkout-green); }
.liway-redesign #bx-soa-order-form input.custom-checkbox:focus-visible + label {
    outline: 2px solid var(--checkout-focus);
    outline-offset: 2px;
}

.liway-redesign #bx-soa-order-form a {
    text-underline-offset: auto;
}

@media (max-width: 479px) {
    #bx-soa-order-form img { max-width: 100%; }
    #bx-soa-order-form .btn-order-fin { padding-inline: 24px; }
}

/* Страница «Доставка и оплата», разметка delivery.html внутри шаблона Битрикса. */
.liway-redesign .liway-content-inner:has(.delivery-banner) {
    width: min(calc(100% - 96px), 1600px);
    padding-bottom: 0;
}

main.wrap:has(> .delivery-banner) {
    --delivery-ink: #152b20;
    --delivery-muted: #645847;
    --delivery-gold: #865b28;
    --delivery-line: #dfcbae;
    min-width: 0;
    margin: 0;
    color: var(--delivery-ink);
    font: 400 17px/1.45 var(--liway-ui-font, "Open Sans", Arial, sans-serif);
}

main.wrap:has(> .delivery-banner) :where(*) { box-sizing: border-box; }
main.wrap:has(> .delivery-banner) :where(p, span, i, li, em, strong, a) {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}
main.wrap:has(> .delivery-banner) p { margin: 0; }
main.wrap:has(> .delivery-banner) :is(h1, h2) {
    margin: 0;
    color: inherit;
    font-family: "Noto Serif", Georgia, serif;
    font-weight: 600;
    letter-spacing: -.027em;
}
main.wrap:has(> .delivery-banner) a { color: inherit; text-decoration: none; }
main.wrap:has(> .delivery-banner) a:hover { text-decoration: underline; text-underline-offset: 4px; }
main.wrap:has(> .delivery-banner) .icon { flex: none; vertical-align: middle; }
main.wrap:has(> .delivery-banner) .icon path { color: inherit; }

main.wrap:has(> .delivery-banner) .crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 22px 0;
    color: var(--delivery-muted);
    font: 400 14px/1.45 var(--liway-ui-font, "Open Sans", Arial, sans-serif);
}
main.wrap:has(> .delivery-banner) .crumbs :is(a, span, strong) { font: inherit; }
main.wrap:has(> .delivery-banner) .crumbs a { color: inherit; }
main.wrap:has(> .delivery-banner) .crumbs span { color: var(--delivery-gold); }
main.wrap:has(> .delivery-banner) .crumbs strong { color: var(--delivery-ink); font-weight: 700; }

main.wrap:has(> .delivery-banner) .delivery-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 29px 34px;
    border-radius: 15px;
    color: #fff7e9;
    background: linear-gradient(104deg, #0c2c1d, #19432f);
}
main.wrap:has(> .delivery-banner) .delivery-banner h1 {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 49px;
    line-height: 1.45;
}
main.wrap:has(> .delivery-banner) .delivery-banner .icon { width: 38px; height: 38px; color: #e7be80; }
main.wrap:has(> .delivery-banner) .delivery-jump { display: flex; gap: 10px; flex-wrap: wrap; }
main.wrap:has(> .delivery-banner) .delivery-jump a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #b991596e;
    border-radius: 7px;
    color: #fff3dc;
    font-size: 16px;
    font-weight: 650;
}
main.wrap:has(> .delivery-banner) .delivery-jump a:hover { background: #f1d7a227; text-decoration: none; }
main.wrap:has(> .delivery-banner) .delivery-jump .icon { width: 16px; height: 16px; }

main.wrap:has(> .delivery-banner) .delivery-rates { margin-top: 20px; }
main.wrap:has(> .delivery-banner) .rate-frame {
    overflow: auto;
    max-width: 100%;
    border: 1px solid var(--delivery-line);
    border-radius: 13px;
    background: #fff9ef;
}
main.wrap:has(> .delivery-banner) .rate-frame:focus-visible { outline-offset: 2px; }
main.wrap:has(> .delivery-banner) .rate-table {
    width: 100%;
    min-width: 795px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
}
main.wrap:has(> .delivery-banner) .rate-table col:first-child { width: 16%; }
main.wrap:has(> .delivery-banner) .rate-table :is(th, td) {
    border-right: 1px solid #e4d4bc;
    color: inherit;
    font-family: inherit;
    text-align: inherit;
}
main.wrap:has(> .delivery-banner) .rate-table th { font-weight: 700; }
main.wrap:has(> .delivery-banner) .rate-table tr > :last-child { border-right: 0; }
main.wrap:has(> .delivery-banner) .rate-table thead th {
    padding: 17px 12px 16px;
    background: #efe1cb;
    color: #283427;
    font-size: 16px;
    line-height: 1.35;
}
main.wrap:has(> .delivery-banner) .rate-table thead th:first-child { background: #eadbc2; }
main.wrap:has(> .delivery-banner) .rate-table thead img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: 29px;
    margin: 0 0 8px;
    object-fit: contain;
    vertical-align: middle;
}
main.wrap:has(> .delivery-banner) .rate-table thead span { color: #605442; font-size: 14px; font-weight: 500; }
main.wrap:has(> .delivery-banner) .rate-table tbody tr > * {
    padding: 15px 14px;
    border-top: 1px solid #e4d4bc;
    vertical-align: middle;
    font-size: 16px;
    line-height: 1.45;
}
main.wrap:has(> .delivery-banner) .rate-table tbody th {
    padding-left: 21px;
    color: #243629;
    background: #f4e8d6;
    text-align: left;
    font-size: 17px;
}
main.wrap:has(> .delivery-banner) .rate-table tbody td span { color: #24533a; font-weight: 750; }

main.wrap:has(> .delivery-banner) .delivery-notes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 11px;
    margin-top: 13px;
}
main.wrap:has(> .delivery-banner) .delivery-note {
    padding: 13px 17px;
    border: 1px solid var(--delivery-line);
    border-radius: 9px;
    font-size: 15px;
    line-height: 1.46;
}
main.wrap:has(> .delivery-banner) .delivery-note strong { font-weight: 700; }
main.wrap:has(> .delivery-banner) .delivery-note:first-child { grid-column: 1 / -1; background: #f3e9d8; }
main.wrap:has(> .delivery-banner) .delivery-note:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 12px;
    border-color: #c8d6c4;
    color: #183f2b;
    background: #e7eee3;
}
main.wrap:has(> .delivery-banner) .delivery-note:nth-child(2) .icon { color: #37694b; }
main.wrap:has(> .delivery-banner) .delivery-note:last-child { display: flex; align-items: center; background: #faf3e6; }

main.wrap:has(> .delivery-banner) .delivery-details {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin: 25px 0 42px;
}
main.wrap:has(> .delivery-banner) .delivery-panel {
    overflow: hidden;
    border: 1px solid var(--delivery-line);
    border-radius: 12px;
    background: #fff9ef;
    scroll-margin-top: 95px;
}
main.wrap:has(> .delivery-banner) .delivery-panel h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 23px;
    border-bottom: 1px solid var(--delivery-line);
    background: #efe1cb;
    font-size: 32px;
    line-height: 1.1;
}
main.wrap:has(> .delivery-banner) .delivery-panel h2 .icon { color: var(--delivery-gold); }
main.wrap:has(> .delivery-banner) .delivery-copy { padding: 20px 23px; font-size: 16px; line-height: 1.53; }
main.wrap:has(> .delivery-banner) .methods-title { font-weight: 750; }
main.wrap:has(> .delivery-banner) .methods {
    display: grid;
    gap: 4px;
    margin: 8px 0 19px;
    padding: 0;
    list-style: none;
}
main.wrap:has(> .delivery-banner) .payment-security { padding: 14px 16px; border-radius: 8px; background: #f3e9d8; }
main.wrap:has(> .delivery-banner) .payment-system { margin-top: 13px; }
main.wrap:has(> .delivery-banner) .returns ol { margin: 0; padding: 0; }
main.wrap:has(> .delivery-banner) .returns li { padding: 13px 0; list-style: none; }
main.wrap:has(> .delivery-banner) .returns li:first-child { padding-top: 0; }
main.wrap:has(> .delivery-banner) .returns li:last-child { padding-bottom: 0; }
main.wrap:has(> .delivery-banner) .returns li + li { border-top: 1px solid #e6d8c2; }
main.wrap:has(> .delivery-banner) .returns a {
    color: #204e34;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 960px) {
    main.wrap:has(> .delivery-banner) :is(.delivery-details, .delivery-notes) { grid-template-columns: minmax(0, 1fr); }
    main.wrap:has(> .delivery-banner) .delivery-banner h1 { font-size: 39px; }
}
@media (max-width: 720px) {
    main.wrap:has(> .delivery-banner) .delivery-panel { scroll-margin-top: 0; }
}
@media (max-width: 700px) {
    .liway-redesign .liway-content-inner:has(.delivery-banner) { width: calc(100% - 28px); }
}
@media (max-width: 600px) {
    main.wrap:has(> .delivery-banner) .delivery-banner { align-items: flex-start; flex-direction: column; padding: 22px; }
    main.wrap:has(> .delivery-banner) .delivery-banner h1 { font-size: 33px; }
    main.wrap:has(> .delivery-banner) .delivery-banner h1 .icon { width: 28px; height: 28px; }
    main.wrap:has(> .delivery-banner) .delivery-jump a { padding: 7px 9px; font-size: 14px; }
    main.wrap:has(> .delivery-banner) .delivery-panel h2 { font-size: 28px; }
}

/* Карточки товаров в мобильной корзине. */
@media (max-width: 767px) {
    #basket-root {
        --cart-panel: #efe1ca;
        --cart-line: #decbae;
        --cart-green: #0c2c1d;
        --cart-muted: #665b49;
        --cart-sale: #943b22;
        --cart-ui: var(--liway-ui-font, "Open Sans", Arial, sans-serif);
    }

    #basket-root .basket-items-list-wrapper {
        min-width: 0;
        border: 0;
        background: transparent;
    }

    #basket-root .basket-items-list { padding-inline: 0; }
    #basket-item-table { display: block; width: 100%; }
    #basket-item-table > tbody {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #basket-item-table [data-entity="basket-item"] {
        min-width: 0;
        margin: 0;
        border: 1px solid var(--cart-line);
        border-radius: 13px;
        background: var(--cart-panel);
        overflow: hidden;
    }

    #basket-item-table [data-entity="basket-item"]:has(> .basket-items-list-item-descriptions) {
        position: relative;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "description description" "total quantity" "unit quantity";
        column-gap: 6px;
        align-items: start;
        padding: 0 0 12px;
    }

    #basket-item-table [data-entity="basket-item"] > td {
        display: block;
        width: auto;
        min-width: 0;
        margin: 0;
        border-top: 0;
    }

    #basket-item-table [data-entity="basket-item"] > .basket-items-list-item-descriptions {
        grid-area: description;
        position: static;
        padding: 0;
    }

    #basket-item-table .basket-items-list-item-descriptions-inner {
        display: block;
        position: static;
        width: 100%;
        padding: 0;
    }

    #basket-item-table .basket-item-block-image {
        display: block;
        position: relative;
        width: 100%;
        height: 185px;
        max-width: none;
        margin: 0;
        padding: 0;
        background: #fff;
    }

    #basket-item-table .basket-item-image-link { display: block; width: 100%; height: 100%; }
    #basket-item-table .basket-item-image {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 8px;
        border: 0;
        object-fit: contain;
    }

    #basket-item-table .basket-item-label-ring {
        bottom: 10px;
        left: 10px;
        right: auto;
        width: auto;
        height: auto;
        min-width: 0;
        margin: 0;
        padding: 4px 8px;
        border: 0;
        border-radius: 999px;
        background: var(--cart-sale);
        color: #fff9ef;
        font: 700 12px/1.3 var(--cart-ui);
    }
    #basket-item-table .basket-item-label-ring::before { content: "Скидка "; }

    #basket-item-table .basket-item-block-info { position: static; padding: 12px 10px 8px; }
    #basket-item-table .basket-item-info-name {
        margin: 0 0 7px;
        padding: 0;
        overflow-wrap: anywhere;
    }

    body.liway-redesign #basket-item-table .basket-item-info-name,
    body.liway-redesign #basket-item-table .basket-item-info-name :is(a, span) {
        color: var(--cart-green);
        font: 600 clamp(17px, 4.35vw, 21px)/1.2 "Noto Serif", Georgia, serif;
        text-align: left;
    }
    body.liway-redesign #basket-item-table .basket-item-info-name a:hover { color: #81511e; }

    #basket-item-table .basket-item-block-info > .basket-item-actions-remove {
        position: absolute;
        z-index: 91;
        inset: 8px 8px auto auto;
        width: 42px;
        height: 42px;
        margin: 0;
        border: 1px solid var(--cart-line);
        border-radius: 50%;
        background: #fff9ef;
        cursor: pointer;
    }
    #basket-item-table .basket-item-block-info > .basket-item-actions-remove:hover { background: #f0e3cd; }
    #basket-item-table .basket-item-actions-remove::before,
    #basket-item-table .basket-item-actions-remove::after { background: #81511e; }

    #basket-item-table .basket-item-block-properties {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 5px 10px;
    }
    #basket-item-table .basket-item-block-properties:not(:has(> *)) { display: none; }
    #basket-item-table :is(.basket-item-property-name, .basket-item-property-custom-name, .basket-item-property-custom-value) {
        color: var(--cart-muted);
        font: 400 13px/1.4 var(--cart-ui);
    }
    #basket-item-table .basket-item-scu-list { margin: 0; padding: 0; }
    #basket-item-table .basket-item-scu-item { border: 1px solid var(--cart-line); border-radius: 6px; background: #fbf4e8; }
    #basket-item-table .basket-item-scu-item.selected { border-color: var(--cart-green); background: var(--cart-green); }
    #basket-item-table .basket-item-scu-item-inner { color: var(--cart-green); font: 400 13px/1.3 var(--cart-ui); }
    #basket-item-table .basket-item-scu-item.selected .basket-item-scu-item-inner { color: #fff9ec; }

    #basket-item-table [data-entity="basket-item"] > .basket-items-list-item-price {
        grid-area: total;
        padding: 0 0 0 10px;
    }
    #basket-item-table [data-entity="basket-item"] > .basket-items-list-item-price-for-one {
        grid-area: unit;
        padding-top: 4px;
    }
    #basket-item-table .basket-item-block-price {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 6px;
        margin: 0;
        padding: 0;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    #basket-item-table .basket-items-list-item-price-for-one .basket-item-block-price { display: flex !important; }
    #basket-item-table .basket-item-price-current { margin: 0; }
    #basket-item-table .basket-item-price-old { position: static; }

    body.liway-redesign #basket-item-table .basket-item-price-current-text {
        color: var(--cart-green);
        font: 700 clamp(17px, 4.7vw, 23px)/1.15 var(--cart-ui);
    }
    body.liway-redesign #basket-item-table .basket-item-price-old-text {
        color: var(--cart-muted);
        font: 400 13px/1.3 var(--cart-ui);
        text-decoration: line-through;
    }
    body.liway-redesign #basket-item-table .basket-items-list-item-price:not(.basket-items-list-item-price-for-one) .basket-item-price-old + .basket-item-price-current .basket-item-price-current-text {
        color: var(--cart-sale);
    }
    #basket-item-table .basket-item-price-old-text::after { content: none; }
    #basket-item-table :is(.basket-item-price-title, .basket-item-price-difference, .basket-item-price-difference span),
    body.liway-redesign #basket-item-table .basket-items-list-item-price-for-one .basket-item-price-current-text {
        color: var(--cart-muted);
        font: 400 12px/1.35 var(--cart-ui);
    }
    #basket-item-table .basket-item-price-title { flex: 0 0 100%; text-align: left; }
    #basket-item-table .basket-item-block-price .basket-item-price-difference {
        flex: 0 0 100%;
        order: 1;
        margin-top: 3px;
        padding: 0;
        text-align: left;
        background: transparent;
    }

    #basket-item-table [data-entity="basket-item"] > .basket-items-list-item-amount {
        grid-area: quantity;
        align-self: center;
        padding: 0 10px 0 0;
    }
    #basket-item-table .basket-item-block-amount {
        display: grid;
        grid-template-columns: 34px 39px 34px;
        align-items: center;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
    }
    #basket-item-table .basket-item-amount-filed {
        width: 100%;
        min-width: 0;
        height: 38px;
        padding: 0 1px;
        border: 1px solid var(--cart-line);
        border-radius: 0;
        background: #fffaf0;
        color: var(--cart-green);
        font: 600 15px/1 var(--cart-ui);
    }
    #basket-item-table .basket-item-amount-filed:focus-visible {
        outline: 2px solid #916125;
        outline-offset: -2px;
    }
    #basket-item-table :is(.basket-item-amount-btn-minus, .basket-item-amount-btn-plus) {
        width: 34px;
        height: 38px;
        margin: 0;
        padding: 0;
        border: 1px solid var(--cart-line);
        background: #fbf4e8;
    }
    #basket-item-table .basket-item-amount-btn-minus { border-right: 0; border-radius: 7px 0 0 7px; }
    #basket-item-table .basket-item-amount-btn-plus { border-left: 0; border-radius: 0 7px 7px 0; }
    #basket-item-table .basket-item-block-amount:not(.disabled) :is(.basket-item-amount-btn-minus, .basket-item-amount-btn-plus):hover { background: #e8d5b8; }
    #basket-item-table .basket-item-block-amount.disabled :is(.basket-item-amount-filed, .basket-item-amount-btn-minus, .basket-item-amount-btn-plus) {
        background: #f0e7d8;
    }
    #basket-item-table .basket-item-block-amount.disabled :is(.basket-item-amount-btn-minus, .basket-item-amount-btn-plus)::before,
    #basket-item-table .basket-item-block-amount.disabled :is(.basket-item-amount-btn-minus, .basket-item-amount-btn-plus)::after { background-color: #a79a85; }
    #basket-item-table .basket-item-amount-field-description {
        position: static;
        grid-column: 1 / -1;
        margin: 4px 0 0;
        color: var(--cart-muted);
        font: 400 12px/1.2 var(--cart-ui);
        text-align: center;
    }
    #basket-item-table [data-entity="basket-item"] > .basket-items-list-item-remove { display: none; }

    #basket-item-table .basket-items-list-item-container-expend { grid-column: 1 / -1; }
    #basket-item-table .basket-items-list-item-notification { width: 100%; padding: 0; }
}

@media (max-width: 575px) {
    #basket-item-table [data-entity="basket-item"] > .basket-items-list-item-price-for-one { display: none; }
}

@media (max-width: 520px) {
    #basket-item-table > tbody { grid-template-columns: minmax(0, 1fr); }
}

/* Цена до скидки в итогах мобильной корзины. */
@media (max-width: 767.98px) {
    #basket-root .basket-coupon-block-total-price-old {
        position: static;
        margin-bottom: 4px;
        color: #665b49;
        font: 400 14px/1.35 var(--liway-ui-font, "Open Sans", Arial, sans-serif);
        text-decoration: line-through;
    }

    #basket-root .basket-coupon-block-total-price-old::after {
        content: none;
    }
}

/* Личный кабинет Liway: стартовая страница, список и подробности заказов. */
#content :is(
    .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]),
    .liway-content-inner:has(.row > .col > a[href*="filter_history="]),
    .liway-content-inner:has(.sale-order-list-title-container, .sale-order-list-accomplished-title-container),
    .sale-order-detail
) {
    --orders-paper: var(--paper, #f8f1e6);
    --orders-card: var(--cream, #fff9ef);
    --orders-sand: var(--sand, #efe1cb);
    --orders-line: var(--line, #e1cfb2);
    --orders-ink: var(--ink, #15291e);
    --orders-green: var(--green, #0c2c1d);
    --orders-muted: var(--muted, #665b49);
    --orders-accent: var(--bronze, #81511e);
    --orders-ui: var(--liway-ui-font, "Open Sans", Arial, sans-serif);
    --orders-serif: "Noto Serif", Georgia, serif;
    --orders-pad: clamp(14px, 2.1vw, 28px);
    --orders-gap: clamp(12px, 2vw, 24px);

    color: var(--orders-ink);
    font: 400 15px/1.5 var(--orders-ui);
    overflow-wrap: anywhere;
}

#content :where(
    .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]),
    .liway-content-inner:has(.row > .col > a[href*="filter_history="]),
    .liway-content-inner:has(.sale-order-list-title-container, .sale-order-list-accomplished-title-container),
    .sale-order-detail
) :where(a, b, button, div, input, label, li, p, select, small, span, strong, td, textarea, th):not(:where(.fa, .glyphicon)) {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

/* Стартовая страница личного кабинета. */
#content .row:has(> .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"])) {
    max-width: 1120px;
    margin-inline: auto;
}

#content .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--orders-gap);
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

#content .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]) > p {
    grid-column: 1 / -1;
    margin: 0 0 var(--orders-gap);
    padding: var(--orders-pad);
    border: 1px solid var(--orders-line);
    border-radius: 14px;
    background: var(--orders-sand);
    color: var(--orders-ink);
    font: 400 16px/1.65 var(--orders-ui);
}

#content .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]) > br {
    display: none;
}

#content .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]) > b {
    grid-row: 2;
    margin: 0;
    padding: var(--orders-pad) var(--orders-pad) 10px;
    border: 1px solid var(--orders-line);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: var(--orders-card);
    color: var(--orders-green);
    font-family: var(--orders-serif);
    font-size: clamp(21px, 2.3vw, 28px) !important;
    font-weight: 650;
    line-height: 1.25;
}

#content .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]) > ul {
    grid-row: 3;
    margin: 0;
    padding: 0 var(--orders-pad) var(--orders-pad);
    border: 1px solid var(--orders-line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: var(--orders-card);
    list-style: none;
}

#content .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]) > ul > li {
    margin: 0;
    padding: 0 !important;
    border-top: 1px solid var(--orders-line);
    list-style: none;
}

#content .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]) > ul a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 7px 0;
    color: var(--orders-green);
    font-family: var(--orders-ui);
    font-size: 15px !important;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
}

#content .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]) > ul a::after {
    flex: 0 0 auto;
    color: var(--orders-accent);
    content: "→" / "";
}

/* Общие ссылки, кнопки и состояния. */
#content :is(
    .sale-order-list-change-payment, .sale-order-list-cancel-payment,
    .sale-order-detail-payment-options-methods-info-change-link,
    .sale-order-detail-more-info-more, .sale-order-detail-more-info-less,
    .sale-order-detail-show-link, .sale-order-detail-hide-link, .sale-order-detail-order-item-title
) {
    border-bottom-color: currentColor;
    color: var(--orders-green, #0c2c1d);
    font: 650 14px/1.45 var(--orders-ui, var(--liway-ui-font, Arial, sans-serif));
}

#content :is(
    .sale-order-list-change-payment, .sale-order-list-cancel-payment, .sale-order-detail a,
    .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]) > ul a
):hover {
    color: var(--orders-accent, #81511e);
}

#content :where(
    .liway-content-inner > .row > .col > a[href*="filter_history="], .sale-order-list-about-link,
    .sale-order-list-repeat-link, .sale-order-list-cancel-link,
    .sale-order-detail a[href^="/personal/order/"]:not(.btn),
    .sale-order-detail :is(.btn, input[type="submit"]),
    .sale-order-list-inner-container .btn
) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--orders-line, #e1cfb2);
    border-radius: 8px;
    background: var(--orders-card, #fff9ef);
    color: var(--orders-green, #0c2c1d);
    font: 650 14px/1.35 var(--orders-ui, var(--liway-ui-font, Arial, sans-serif));
    text-align: center;
    white-space: normal;
    text-decoration: none;
}

#content :where(
    .liway-content-inner > .row > .col > a[href*="filter_history="], .sale-order-list-repeat-link, .sale-order-list-cancel-link,
    .sale-order-detail a[href^="/personal/order/"]:not(.btn), .sale-order-detail .btn-link
):hover {
    background: var(--orders-sand, #efe1cb);
    color: var(--orders-green, #0c2c1d);
}

#content :is(.sale-order-list-about-link, .sale-order-list-inner-container .btn-primary,
    .sale-order-detail :is(.btn-primary, input[type="submit"])) {
    border-color: var(--orders-green, #0c2c1d);
    background: var(--orders-green, #0c2c1d);
    color: #fff9ef;
}

#content :is(.sale-order-list-about-link, .sale-order-list-inner-container .btn-primary,
    .sale-order-detail :is(.btn-primary, input[type="submit"])):hover {
    border-color: #24513a;
    background: #24513a;
    color: #fff9ef;
}

#content .sale-order-list-repeat-link::before {
    width: auto;
    height: auto;
    margin: 0;
    background: none;
    content: "↻" / "";
}

#content :is(.sale-order-list-cancel-link, .sale-order-detail a[href*="CANCEL=Y"]) {
    color: #8a3826;
}

#content :is(.sale-order-list-inner-container, .sale-order-detail) :is(
    .form-control, select, textarea, input[type="text"], input[type="email"], input[type="tel"]
) {
    max-width: 100%;
    min-height: 40px;
    border: 1px solid var(--orders-line, #e1cfb2);
    border-radius: 8px;
    background-color: #fffdfa;
    color: var(--orders-ink, #15291e);
    font: 400 16px/1.4 var(--orders-ui, var(--liway-ui-font, Arial, sans-serif));
}

#content :is(.sale-order-list-inner-container, .sale-order-detail) :is(
    .form-control, select, textarea, input[type="text"], input[type="email"], input[type="tel"]
):focus {
    border-color: var(--orders-accent, #81511e);
    box-shadow: none;
}

#content :is(
    .sale-order-list-status-alert, .sale-order-list-status-restricted, .sale-order-list-status-success,
    .sale-order-list-shipment-status-block, .sale-order-detail-payment-options-methods-info-title-status-alert,
    .sale-order-detail-payment-options-methods-info-title-status-success,
    .sale-order-detail-payment-options-methods-info-title-status-restricted
) {
    display: inline-block;
    max-width: 100%;
    padding: 3px 9px;
    border: 1px solid #d9c6a7;
    border-radius: 999px;
    background: #f0e6d5;
    color: #524638;
    font: 650 12px/1.45 var(--orders-ui, var(--liway-ui-font, Arial, sans-serif));
    white-space: normal;
}

#content :is(.sale-order-list-status-alert, .sale-order-detail-payment-options-methods-info-title-status-alert) {
    border-color: #dfb5a6;
    background: #f8e7df;
    color: #8a3826;
}

#content :is(.sale-order-list-status-success, .sale-order-detail-payment-options-methods-info-title-status-success) {
    border-color: #abc3ab;
    background: #e2eee1;
    color: #284f34;
}

/* Список текущих, выполненных и отменённых заказов. */
#content .liway-content-inner:has(.sale-order-list-title-container, .sale-order-list-accomplished-title-container) {
    max-width: 1120px;
}

#content .liway-content-inner :is(
    .sale-order-list-title-container, .sale-order-list-accomplished-title-container,
    .sale-order-list-inner-container
) {
    border: 1px solid var(--orders-line, #e1cfb2);
    color: var(--orders-ink, #15291e);
}

#content .liway-content-inner :is(.sale-order-list-title-container, .sale-order-list-accomplished-title-container) {
    padding: 12px var(--orders-pad, 16px);
    border-radius: 14px 14px 0 0;
    background: var(--orders-sand, #efe1cb);
}

#content .liway-content-inner:has(.sale-order-list-title-container, .sale-order-list-accomplished-title-container)
    > .row > .col > h2 {
    margin: 0;
    color: var(--orders-green, #0c2c1d);
    font: 650 clamp(22px, 2.5vw, 32px)/1.2 var(--orders-serif, "Noto Serif", Georgia, serif);
    text-align: left;
}

#content .liway-content-inner :is(
    .sale-order-list-title-container > h3, .sale-order-list-accomplished-title-container .sale-order-list-accomplished-title
) {
    margin: 0;
    padding-inline: 0;
    color: var(--orders-green, #0c2c1d);
    font: 650 clamp(17px, 2vw, 23px)/1.35 var(--orders-serif, "Noto Serif", Georgia, serif);
    text-align: left;
}

#content .sale-order-list-accomplished-title-container .sale-order-list-accomplished-date {
    color: var(--orders-muted, #665b49);
    font: 650 13px/1.45 var(--orders-ui, var(--liway-ui-font, Arial, sans-serif));
}

#content .sale-order-list-accomplished-title-container .canceled-order { color: #8a3826; }

#content .liway-content-inner .sale-order-list-inner-container {
    min-width: 0;
    max-width: none;
    padding: var(--orders-pad, 16px) var(--orders-pad, 16px) 0;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: var(--orders-card, #fff9ef);
}

#content .sale-order-list-inner-container .col { min-width: 0; }

#content .sale-order-list-inner-container .sale-order-list-inner-title-line-item {
    color: var(--orders-accent, #81511e);
    font: 700 13px/1.35 var(--orders-ui, var(--liway-ui-font, Arial, sans-serif));
}

#content .sale-order-list-inner-container :is(.sale-order-list-inner-title-line, .sale-order-list-top-border) {
    background: var(--orders-line, #e1cfb2);
}

#content .sale-order-list-inner-container :is(.sale-order-list-payment-title, .sale-order-list-shipment-title) {
    color: var(--orders-ink, #15291e);
    font: 650 15px/1.6 var(--orders-ui, var(--liway-ui-font, Arial, sans-serif));
}

#content .sale-order-list-inner-container :is(
    .sale-order-list-shipment-status, .sale-order-list-shipment-item, .sale-order-list-payment-price,
    .sale-order-list-payment-check, .sale-order-list-shipment
) {
    color: var(--orders-muted, #665b49);
    font: 400 14px/1.5 var(--orders-ui, var(--liway-ui-font, Arial, sans-serif));
}

#content .sale-order-list-inner-container .sale-order-list-payment-number {
    color: var(--orders-green, #0c2c1d);
    font-weight: 700;
}

#content .sale-order-list-inner-container .row:has(> .sale-order-list-about-container) {
    align-items: center;
    gap: 8px;
    margin-inline: 0;
}

#content .sale-order-list-inner-container .row:has(> .sale-order-list-about-container) > .col-auto {
    min-width: 0;
    max-width: 100%;
    padding-inline: 0;
}

#content .liway-content-inner > .row:has(> .sale-order-list-inner-container) {
    margin-bottom: var(--orders-gap, 20px) !important;
}

/* Подробности заказа. */
#content .sale-order-detail {
    max-width: 1200px;
    margin-inline: auto;
}

#content .sale-order-detail > .col {
    min-width: 0;
    padding-inline: 0;
}

#content .sale-order-detail h1 {
    margin-top: 0;
    color: var(--orders-green);
    font: 650 clamp(25px, 3.5vw, 44px)/1.2 var(--orders-serif);
    text-align: left;
}

#content .sale-order-detail .sale-order-detail-card {
    min-width: 0;
    padding: var(--orders-pad);
    border: 1px solid var(--orders-line);
    border-radius: 16px;
    background: var(--orders-card);
}

#content .sale-order-detail .sale-order-detail-card-title {
    margin: calc(-1 * var(--orders-pad)) calc(-1 * var(--orders-pad)) var(--orders-gap);
    padding: var(--orders-pad);
    border-radius: 15px 15px 0 0;
    background: var(--orders-sand);
    color: var(--orders-green);
    font: 650 clamp(18px, 2.5vw, 28px)/1.32 var(--orders-serif);
    text-align: left;
}

#content .sale-order-detail-card > .row {
    margin-inline: 0;
}

#content .sale-order-detail .sale-order-detail-section-title {
    margin: 0 0 12px;
    padding: 9px 12px;
    border: 1px solid var(--orders-line);
    border-radius: 8px;
    background: var(--orders-paper);
    color: var(--orders-green);
    font: 650 clamp(17px, 2vw, 22px)/1.3 var(--orders-serif);
    text-align: left;
}

#content .sale-order-detail :is(.sale-order-detail-prop-name, .sale-order-detail-order-item-properties-type) {
    color: var(--orders-muted);
    font: 400 13px/1.45 var(--orders-ui);
}

#content .sale-order-detail :is(
    .sale-order-detail-prop-value, .sale-order-detail-more-info-details-title,
    .sale-order-detail-payment-options-info-order-number, .sale-order-detail-payment-options-methods-info-title,
    .sale-order-detail-payment-options-methods-shipment-list-item-title
) {
    color: var(--orders-ink);
    font: 650 15px/1.5 var(--orders-ui);
}

#content .sale-order-detail :is(
    .sale-order-detail-payment-options-info-total-price, .sale-order-detail-payment-options-methods-info-total-price,
    .sale-order-detail-payment-options-methods-shipment-list
) {
    color: var(--orders-muted);
    font: 400 14px/1.5 var(--orders-ui);
}

#content .sale-order-detail .sale-order-detail-payment-options-methods-container::before,
#content .sale-order-detail .payment-options-methods-row::before,
#content .sale-order-detail .payment-options-methods-row::after {
    content: none;
}

#content .sale-order-detail .payment-options-methods-row {
    margin: 0 0 10px;
    padding: 0;
    border: 1px solid var(--orders-line);
    border-radius: 10px;
    background: #fffdfa;
}

#content .sale-order-detail .sale-order-detail-payment-options-methods {
    min-width: 0;
    padding: 12px;
    border: 0;
}

#content .sale-order-detail .sale-order-detail-payment-options-methods-template {
    max-width: 100%;
    padding: 14px;
    border-color: var(--orders-line);
    border-radius: 8px;
    background: var(--orders-card);
}

#content .sale-order-detail .table-responsive {
    max-width: 100%;
    border: 1px solid var(--orders-line);
    border-radius: 10px;
    background: #fffdfa;
    overflow-x: auto;
}

#content .sale-order-detail .table-responsive > .table {
    width: 100%;
    margin-bottom: 0 !important;
    border: 0;
    color: var(--orders-ink);
    font-family: var(--orders-ui);
}

#content .sale-order-detail .table-responsive :is(th,td) {
    padding: 10px;
    border-color: var(--orders-line);
    font: 400 14px/1.4 var(--orders-ui);
    vertical-align: middle;
}

#content .sale-order-detail .table-responsive th {
    background: var(--orders-sand);
    color: var(--orders-green);
    font-weight: 650;
}

#content .sale-order-detail .sale-order-detail-more-info-details-table th { width: 34%; }
#content .sale-order-detail .sale-order-detail-order-item-img-block { padding-left: 8px !important; }
#content .sale-order-detail .sale-order-detail-order-item-img-container {
    border-color: var(--orders-line);
    border-radius: 7px;
    background-color: white;
}

#content .sale-order-detail .sale-order-detail-total-payment {
    justify-content: flex-end;
    padding: 0;
}

#content .sale-order-detail .sale-order-detail-total-payment-container {
    flex: 0 1 445px;
    min-width: 0;
    max-width: 100%;
    padding: 12px var(--orders-pad);
    border: 1px solid var(--orders-line);
    border-radius: 10px;
    background: var(--orders-sand);
}

#content .sale-order-detail-total-payment-container > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
    gap: 10px;
    margin-inline: 0;
}

#content .sale-order-detail-total-payment-container :is(
    .sale-order-detail-total-payment-list-left, .sale-order-detail-total-payment-list-right
) {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#content .sale-order-detail-total-payment-container :is(
    .sale-order-detail-total-payment-list-left-item, .sale-order-detail-total-payment-list-right-item
) {
    height: auto;
    min-height: 26px;
    margin: 0;
    padding-block: 3px;
    color: var(--orders-ink);
    font: 400 14px/20px var(--orders-ui);
}

#content .sale-order-detail-total-payment-container .sale-order-detail-total-payment-list-left-item { text-align: left; }
#content .sale-order-detail-total-payment-container .sale-order-detail-total-payment-list-right-item { font-weight: 700; }
#content .sale-order-detail-total-payment-container :is(
    .sale-order-detail-total-payment-list-left-item, .sale-order-detail-total-payment-list-right-item
):last-child {
    margin-top: 5px;
    padding-top: 7px;
    border-top: 1px solid var(--orders-line);
    color: var(--orders-green);
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    #content .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]) {
        grid-template-columns: minmax(0, 1fr);
    }

    #content .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]) > :is(b, ul) {
        grid-row: auto;
    }

    #content .text-block:has(a[href="profile/"]):has(a[href="order/?filter_history=Y"]) > ul + br + b {
        margin-top: var(--orders-gap);
    }

    #content .sale-order-list-inner-container .row:has(> .sale-order-list-about-container) > .col:not(:has(*)) {
        display: none;
    }

    #content .sale-order-detail .table-responsive :is(th, td) {
        padding: 7px 6px;
        font-size: 13px;
    }

    #content .sale-order-detail .table-responsive .sale-order-detail-order-item-img-block {
        width: 54px;
        min-width: 54px;
        max-width: 54px;
    }

    #content .sale-order-detail .table-responsive .sale-order-detail-order-item-img-block + .sale-order-detail-order-item-properties {
        min-width: 145px !important;
    }
}

@media (max-width: 575.98px) {
    #content .sale-order-detail .sale-order-detail-card :is(.col, .col-sm, .col-sm-auto) {
        min-width: 0;
        padding-inline: 0;
    }

    #content .sale-order-detail-card .row {
        margin-inline: 0;
    }

    #content .sale-order-detail .sale-order-detail-payment-options-shipment-image-container {
        flex: 0 0 42px;
        min-width: 42px;
        max-width: 42px;
        padding-inline: 0;
    }
}

/* Контакты Liway: оформление страницы и действующей формы Битрикса. */
.liway-redesign #content > .liway-content-inner:has(.contact-hero):has(#submit-btn) {
    --cream: #fbf5e9;
    --ink: #152b20;
    --muted: #645847;
    --line: #dfcbae;
    --sand: #efe2cb;
    --contact-gold: #865b28;
    --contact-gap: 19px;
    --contact-text: var(--liway-ui-font, "Open Sans", Arial, sans-serif);
    --contact-heading: "Noto Serif", Georgia, serif;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    grid-template-areas:
        "info info"
        "crumbs crumbs"
        "hero hero"
        "map map"
        "route route"
        "requisites form-title"
        "requisites form";
    width: min(calc(100% - 96px), var(--site-max, 1600px));
    align-items: start;
    column-gap: var(--contact-gap);
    padding-bottom: 44px;
    color: var(--ink, #15291e);
    font: 400 17px/1.45 var(--contact-text);
}

.liway-redesign #content > .liway-content-inner:has(.contact-hero):has(#submit-btn)
    > :is(.wrap, .liway-contacts-intro),
.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn)
    :is(.contact-bottom, .contact-bottom > .message) {
    display: contents;
    color: inherit;
    font: inherit;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) > #info {
    grid-area: info;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) > :is(br, h2.h3-tm),
.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .contact-bottom form[data-feedback] {
    display: none !important;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn)
    > :is(.wrap, .liway-contacts-intro) > .crumbs {
    grid-area: crumbs;
    padding: 22px 0;
    color: var(--muted);
    font: 400 14px/1.45 var(--contact-text);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .crumbs span {
    color: var(--contact-gold);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .crumbs strong {
    color: var(--ink);
    font-weight: 700;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn)
    :where(.wrap, .liway-contacts-intro)
    :where(section, nav, a, p, dt, dd, dl, div, b, strong, span, svg, figure, img, iframe) {
    color: inherit;
    font: inherit;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .contact-hero {
    grid-area: hero;
    border: 1px solid var(--line, #e1cfb2);
    border-radius: 15px;
    background: var(--cream, #fff9ef);
    overflow: hidden;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .headline {
    padding: 26px 32px;
    background: linear-gradient(105deg, #0b2a1e, #163c2a);
    color: #fff7e9;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .headline h1 {
    margin: 0;
    color: inherit;
    font: 600 54px/1.12 var(--contact-heading);
    letter-spacing: -.027em;
    text-align: left;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) :is(.hours, .channels) {
    min-width: 0;
    padding: 24px 30px;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .channels {
    border-left: 1px solid var(--line, #e1cfb2);
    background: #f4e8d5;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn)
    :is(.contact-grid, .contact-bottom) h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--ink);
    font: 600 29px/1.15 var(--contact-heading);
    letter-spacing: -.027em;
    text-align: left;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) :is(h2, .address) .icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: var(--contact-gold);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .hours dl {
    margin: 13px 0 0;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .hours dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line, #e1cfb2);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .hours dl > div:last-child {
    border-bottom: 0;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) :is(.hours dt, .address b) {
    font-weight: 700;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) :is(.hours dd, .postal) {
    margin: 0;
    color: var(--muted, #665b49);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .phone-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 23px;
    margin: 13px 0 8px;
    font: 700 22px/1.25 var(--contact-text);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .channels h2.message-channels {
    margin: 16px 0 8px;
    padding-top: 11px;
    border-top: 1px solid var(--line, #e1cfb2);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .email {
    margin: 0;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .email a {
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .phone-list a:hover {
    color: var(--bronze, #81511e);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .social {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 9px 0 12px;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .social a {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fffaf0;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .social a:hover {
    border-color: var(--bronze, #81511e);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .social img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .address {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    line-height: 1.35;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .address p {
    margin: 0;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .address .postal {
    font-size: 14px;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .map {
    grid-area: map;
    min-width: 0;
    margin-top: 23px;
    overflow: hidden;
    border: 1px solid var(--line, #e1cfb2);
    border-radius: 13px;
    background: #e9e6d9;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .map iframe {
    display: block;
    width: 100%;
    height: 365px;
    border: 0;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .route {
    grid-area: route;
    min-width: 0;
    margin: 28px 0 27px;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .route h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font: 600 34px/1.2 var(--contact-heading);
    letter-spacing: -.027em;
    text-align: left;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .route-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line, #e1cfb2);
    border-radius: 11px;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .route-grid img {
    display: block;
    width: 100%;
    height: 236px;
    object-fit: cover;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .requisites {
    grid-area: requisites;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line, #e1cfb2);
    border-radius: 12px;
    background: var(--cream, #fff9ef);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn)
    .contact-bottom :is(.requisites, .message) > h2 {
    padding: 16px 19px;
    border-bottom: 1px solid var(--line, #e1cfb2);
    background: var(--sand, #efe1cb);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .contact-bottom .message > h2 {
    grid-area: form-title;
    border: 1px solid var(--green, #0c2c1d);
    border-block-width: 0 1px;
    border-radius: 12px 12px 0 0;
    background: var(--green, #0c2c1d);
    color: #fff7e9;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .message > h2 .icon {
    color: #e5c18a;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .message > h2 .icon path {
    color: inherit;
    stroke: currentColor;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .requisites > div {
    padding: 17px 19px;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .requisites img {
    display: block;
    width: 276px;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    background: transparent;
}

/* Поля, статус отправки и состояние CAPTCHA используют прежние идентификаторы. */
.liway-redesign #content .liway-content-inner:has(.contact-hero) > form:has(#example3):has(#submit-btn) {
    grid-area: form;
    min-width: 0;
    margin: 0;
    padding: 14px 19px 17px;
    border: 1px solid var(--line, #e1cfb2);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: var(--cream, #fff9ef);
    color: var(--ink, #15291e);
    font: 400 14px/1.45 var(--contact-text);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form:not(.d-none) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    min-width: 0;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero)
    #send-form > .form-label:has(#name, #phone) {
    grid-column: auto;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero)
    #send-form > :is(.form-label, #example3, div:has(> #userconsent-error)) {
    margin: 0 !important;
    padding: 0 !important;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form > br {
    display: none;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form .form-label {
    display: grid;
    gap: 4px;
    color: var(--ink);
    font: 650 14px/1.45 var(--contact-text);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form .form-label > div {
    flex-wrap: wrap;
    gap: 2px 10px;
    color: inherit;
    font: inherit;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form .form-control {
    width: 100%;
    min-width: 0;
    min-height: 35px;
    height: auto;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid #cdbb9c;
    border-radius: 6px;
    background: #fffdfa;
    color: var(--ink, #15291e);
    font: 650 14px/1.45 var(--contact-text);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form textarea.form-control {
    min-height: 77px;
    resize: vertical;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form .form-control::placeholder {
    color: #756b5b;
    opacity: 1;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero)
    #send-form .form-control:focus {
    border-color: var(--bronze, #81511e);
    box-shadow: none;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form .form-control.error {
    border-color: #a33125;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form .error-mess {
    color: #a33125;
    font: 650 12px/1.4 var(--contact-text);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero)
    #send-form > div:has(> #userconsent-error) {
    display: block !important;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form .main-user-consent-request {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    color: var(--muted);
    font: 400 12px/1.45 var(--contact-text);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero)
    #send-form .main-user-consent-request-announce-link {
    color: inherit;
    font: inherit;
    overflow-wrap: anywhere;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #userConsentRequest {
    flex: none;
    margin: 2px 0 0;
    accent-color: #183c2a;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form #submit-btn {
    justify-self: start;
    width: auto !important;
    max-width: 100%;
    min-height: 41px;
    margin: 0 !important;
    padding: 8px 17px !important;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(#f7e0b1, #e8bf80);
    color: #302418;
    font: 700 17px/1.45 var(--contact-text);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form #submit-btn:hover:not(:disabled) {
    background: linear-gradient(#ffebc7, #f2ce91);
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form #submit-btn:disabled {
    background: linear-gradient(#f7e0b1, #e8bf80);
    color: #302418;
    opacity: .48;
    cursor: not-allowed;
}

.liway-redesign #content .liway-content-inner:has(.contact-hero) #ok-mess {
    padding: 12px;
    border: 1px solid #b7c9ac;
    border-radius: 8px;
    background: #e6edde;
    color: #264731;
    font: 650 14px/1.45 var(--contact-text);
}

@media (max-width: 720px) {
    .liway-redesign #content > .liway-content-inner:has(.contact-hero):has(#submit-btn) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "info" "crumbs" "hero" "map" "route" "requisites" "form-title" "form";
    }

    .liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .requisites {
        margin-bottom: var(--contact-gap);
    }
}

@media (max-width: 700px) {
    .liway-redesign #content > .liway-content-inner:has(.contact-hero):has(#submit-btn) {
        width: calc(100% - 28px);
    }

    .liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .headline {
        padding: 21px;
    }

    .liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .headline h1 {
        font-size: 41px;
    }

    .liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) :is(.hours, .channels) {
        padding: 18px;
    }

    .liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn)
        :is(.contact-grid, .route-grid) {
        grid-template-columns: minmax(0, 1fr);
    }

    .liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .channels {
        border-top: 1px solid var(--line, #e1cfb2);
        border-left: 0;
    }

    .liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .map iframe {
        height: 245px;
    }

    .liway-redesign #content .liway-content-inner:has(.contact-hero):has(#submit-btn) .route-grid img {
        height: auto;
    }

}

@media (max-width: 373px) {
    .liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form:not(.d-none) {
        grid-template-columns: minmax(0, 1fr);
    }

    .liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form .form-control {
        font-size: 16px;
    }

    .liway-redesign #content .liway-content-inner:has(.contact-hero) #send-form #example3 {
        zoom: .82;
    }
}

/* Услуги Liway: оформление страницы /production/services/. */
.liway-redesign #content > .liway-content-inner:has(> .liway-services-page) {
    width: min(var(--site-max, 1600px), calc(100% - 96px));
    padding-bottom: 0;
}

.liway-redesign .liway-services-page {
    --services-ink: #15291e;
    --services-muted: #675947;
    --services-green: #0c2c1d;
    --services-gold: #8a6029;
    --services-line: #dfcbae;
    --services-ui: var(--liway-ui-font, "Open Sans", Arial, sans-serif);
    --services-serif: "Noto Serif", Georgia, serif;

    display: flow-root;
    color: var(--services-ink);
    font: 400 17px/1.45 var(--services-ui);
}

.liway-redesign .liway-services-page :where(*) {
    color: inherit;
    font: inherit;
}

.liway-redesign .liway-services-page :is(h1, h2, h3, p) {
    margin: 0;
}

.liway-redesign .liway-services-page :is(h1, h2, h3) {
    font-family: var(--services-serif);
    font-weight: 600;
    letter-spacing: -.028em;
    text-align: left;
}

.liway-redesign .liway-services-page a {
    text-decoration: none;
}

.liway-redesign .liway-services-page a:focus-visible {
    outline: 2px solid #a77a3f;
    outline-offset: 4px;
}

.liway-redesign .liway-services-page .icon {
    flex: none;
    vertical-align: middle;
}

.liway-redesign .liway-services-page .crumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 22px 0;
    color: var(--services-muted);
    font-size: 14px;
}

.liway-redesign .liway-services-page .crumbs .icon {
    width: 14px;
    height: 14px;
    color: var(--services-gold);
}

.liway-redesign .liway-services-page .crumbs span {
    color: var(--services-ink);
    font-weight: 650;
}

.liway-redesign .liway-services-page :is(.crumbs a, .service-link):hover {
    color: var(--services-gold);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.liway-redesign .liway-services-page .hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 350px;
    overflow: hidden;
    border-radius: 17px;
    background: var(--services-green);
    color: #fff8e9;
}

.liway-redesign .liway-services-page .hero > img,
.liway-redesign .liway-services-page .hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
}

.liway-redesign .liway-services-page .hero > img {
    left: auto;
    width: 72%;
    object-fit: cover;
    object-position: center;
}

.liway-redesign .liway-services-page .hero::after {
    background: linear-gradient(90deg, #0b281c 25%, #0b281cf7 30%, #0b281ca8 42%, transparent 61%);
    content: "";
}

.liway-redesign .liway-services-page .hero-inner {
    max-width: 680px;
    padding: 43px 60px;
}

.liway-redesign .liway-services-page .hero h1 {
    color: #fff7e7;
    font-size: 71px;
    line-height: 1.06;
}

.liway-redesign .liway-services-page .hero p {
    max-width: 500px;
    margin-top: 16px;
    color: #f5ead5;
    font-size: 23px;
}

.liway-redesign .liway-services-page :is(.hero-link, .consult-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 47px;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.liway-redesign .liway-services-page .hero-link {
    margin-top: 22px;
    background: linear-gradient(#f8e3b9, #e8bf7d);
    color: #302313;
}

.liway-redesign .liway-services-page .hero-link:hover {
    background: linear-gradient(#ffebc7, #f2ce91);
}

.liway-redesign .liway-services-page :is(.hero-link, .consult-button) .icon {
    width: 19px;
    height: 19px;
}

.liway-redesign .liway-services-page .service-list {
    margin-top: 34px;
    scroll-margin-top: 120px;
}

.liway-redesign .liway-services-page .service-list h2 {
    margin-bottom: 15px;
    font-size: 35px;
    line-height: 1.14;
}

.liway-redesign .liway-services-page .service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.liway-redesign .liway-services-page .service {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--services-line);
    border-radius: 13px;
    background: #fbf4e9;
}

.liway-redesign .liway-services-page .service > img {
    display: block;
    width: 100%;
    height: 217px;
    object-fit: cover;
    object-position: center;
}

.liway-redesign .liway-services-page .service-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 19px 24px 23px;
}

.liway-redesign .liway-services-page .service h3 {
    font-size: 29px;
    line-height: 1.15;
}

.liway-redesign .liway-services-page .service p {
    max-width: 590px;
    margin: 9px 0 15px;
    color: #574b3a;
    font-size: 16px;
}

.liway-redesign .liway-services-page .service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #24503a;
    font-size: 15px;
    font-weight: 700;
}

.liway-redesign .liway-services-page .service-link .icon {
    width: 18px;
    height: 18px;
    color: #976729;
}

.liway-redesign .liway-services-page .consult {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 31px 0 44px;
    padding: 26px 30px;
    border: 1px solid var(--services-line);
    border-radius: 12px;
    background: #efe2cb;
}

.liway-redesign .liway-services-page .consult h2 {
    font-size: 29px;
    line-height: 1.14;
}

.liway-redesign .liway-services-page .consult p {
    margin-top: 6px;
    color: #574b3a;
    font-size: 16px;
}

.liway-redesign .liway-services-page .consult-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.liway-redesign .liway-services-page .consult-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    white-space: nowrap;
}

.liway-redesign .liway-services-page .consult-phone .icon {
    width: 18px;
    height: 18px;
    color: var(--services-gold);
}

.liway-redesign .liway-services-page .consult-button {
    background: var(--services-green);
    color: #fff8ea;
}

.liway-redesign .liway-services-page .consult-button:hover {
    background: #285942;
}

.liway-redesign .liway-services-page .consult-button .icon {
    color: #efd093;
}

@media (min-width: 1000px) {
    .liway-redesign .liway-services-page .hero { min-height: 380px; }
    .liway-redesign .liway-services-page .service {
        display: grid;
        grid-template-columns: 40% minmax(0, 1fr);
        min-height: 270px;
    }
    .liway-redesign .liway-services-page .service > img {
        min-height: 270px;
        height: 100%;
    }
    .liway-redesign .liway-services-page .service-body { padding: 26px 28px; }
    .liway-redesign .liway-services-page .service h3 { font-size: 31px; }
}

@media (max-width: 900px) {
    .liway-redesign #content > .liway-content-inner:has(> .liway-services-page) {
        width: calc(100% - 48px);
    }
    .liway-redesign .liway-services-page .hero h1 { font-size: 58px; }
    .liway-redesign .liway-services-page .hero-inner { padding: 32px; }
    .liway-redesign .liway-services-page .consult {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .liway-redesign .liway-services-page .service-list { scroll-margin-top: 0; }
}

@media (max-width: 640px) {
    .liway-redesign #content > .liway-content-inner:has(> .liway-services-page) {
        width: calc(100% - 30px);
    }
    .liway-redesign .liway-services-page .hero { min-height: 290px; }
    .liway-redesign .liway-services-page .hero > img { width: 100%; }
    .liway-redesign .liway-services-page .hero::after {
        background: linear-gradient(90deg, #0b281cf5, #0b281c83);
    }
    .liway-redesign .liway-services-page .hero-inner { padding: 24px; }
    .liway-redesign .liway-services-page .hero h1 { font-size: 46px; }
    .liway-redesign .liway-services-page .hero p { font-size: 18px; }
    .liway-redesign .liway-services-page .service-grid { grid-template-columns: minmax(0, 1fr); }
    .liway-redesign .liway-services-page .service > img { height: 165px; }
    .liway-redesign .liway-services-page .service-list h2 { font-size: 29px; }
    .liway-redesign .liway-services-page :is(.service h3, .consult h2) { font-size: 24px; }
    .liway-redesign .liway-services-page .consult { padding: 19px; }
}

/* Фасовка Liway: оформление страницы /packaging/. */
.liway-redesign #content > .liway-content-inner:has(> .liway-packaging-page) {
    padding-bottom: 0;
}

.liway-redesign .liway-packaging-page {
    --light: #fcf6eb;
    --ink: #192b20;
    --muted: #625544;
    --green: #0c2c1d;
    --dark: #102c20;
    --gold: #8a6029;
    --border: #dfcbae;
    --sand: #efe2cb;
    --packaging-ui: var(--liway-ui-font, "Open Sans", Arial, sans-serif);

    display: flow-root;
    color: var(--ink);
    font: 400 17px/1.45 var(--packaging-ui);
}

.liway-redesign .liway-packaging-page :where(*) {
    color: inherit;
    font: inherit;
}
.liway-redesign #content > .liway-content-inner:has(> .liway-packaging-page) {
    width: min(1600px, calc(100% - 96px));
    max-width: 1600px;
    margin: auto;
}

.liway-redesign .liway-packaging-page h1,
.liway-redesign .liway-packaging-page h2,
.liway-redesign .liway-packaging-page h3,
.liway-redesign .liway-packaging-page p,
.liway-redesign .liway-packaging-page dl,
.liway-redesign .liway-packaging-page dd {
    margin: 0;
}

.liway-redesign .liway-packaging-page h1,
.liway-redesign .liway-packaging-page h2,
.liway-redesign .liway-packaging-page h3 {
    font-family: "Noto Serif",Georgia,serif;
    font-weight: 600;
    letter-spacing: -.028em;
}

.liway-redesign .liway-packaging-page a {
    color: inherit;
    text-decoration: none;
}

.liway-redesign .liway-packaging-page a:focus-visible,
.liway-redesign .liway-packaging-page button:focus-visible {
    outline: 2px solid #a77a3f;
    outline-offset: 3px;
}

.liway-redesign .liway-packaging-page .crumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 22px 0;
    font-size: 14px;
    color: var(--muted);
    flex-wrap: wrap;
}

.liway-redesign .liway-packaging-page .crumbs span {
    color: var(--gold);
}

.liway-redesign .liway-packaging-page .crumbs strong {
    color: var(--ink);
}

.liway-redesign .liway-packaging-page .hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 360px;
    border-radius: 17px;
    overflow: hidden;
    isolation: isolate;
    background: var(--dark);
    color: #fff7e7;
}

.liway-redesign .liway-packaging-page .hero>img {
    position: absolute;
    right: 0;
    top: 0;
    width: 52%;
    height: 100%;
    object-fit: cover;
    object-position: center 56%;
    z-index: -2;
}

.liway-redesign .liway-packaging-page .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,#102c20 47%,#102c20ef 50%,#102c2061 62%,transparent 80%);
}

.liway-redesign .liway-packaging-page .hero>div {
    padding: 44px 60px;
    max-width: 720px;
}

.liway-redesign .liway-packaging-page h1 {
    font-size: 70px;
    line-height: 1.05;
}

.liway-redesign .liway-packaging-page .hero p {
    font-size: 22px;
    max-width: 540px;
    margin-top: 17px;
    color: #f5ead6;
}

.liway-redesign .liway-packaging-page .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 23px;
}

.liway-redesign .liway-packaging-page .gold-button,
.liway-redesign .liway-packaging-page .quiet-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 47px;
    padding: 9px 17px;
    border-radius: 9px;
    line-height: 1.2;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.liway-redesign .liway-packaging-page .gold-button {
    color: #302313;
    background: linear-gradient(#f9e6bc,#eac584);
    border: 1px solid #e1bd7e;
    cursor: pointer;
}

.liway-redesign .liway-packaging-page .quiet-button {
    border: 1px solid #ad9467;
    color: #fff7e7;
}

.liway-redesign .liway-packaging-page h2 {
    font-size: 35px;
    line-height: 1.14;
}

.liway-redesign .liway-packaging-page .formats {
    margin-top: 34px;
}

.liway-redesign .liway-packaging-page .format-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 17px;
}

.liway-redesign .liway-packaging-page .format-card {
    display: grid;
    grid-template-columns: 36% minmax(0,1fr);
    min-height: 178px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.liway-redesign .liway-packaging-page .photo {
    display: grid;
    place-items: center;
    background: #fff;
    padding: 10px;
}

.liway-redesign .liway-packaging-page .photo img {
    display: block;
    width: 100%;
    height: 148px;
    object-fit: contain;
}

.liway-redesign .liway-packaging-page .format-body {
    display: flex;
    flex-direction: column;
    padding: 16px 16px 12px;
}

.liway-redesign .liway-packaging-page .format-body .format-title {
    font-size: 23px;
    line-height: 1.13;
}

.liway-redesign .liway-packaging-page .format-body p {
    margin: 7px 0 9px;
    font-size: 14px;
    color: var(--muted);
}

.liway-redesign .liway-packaging-page .batch {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 3px 9px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
}

.liway-redesign .liway-packaging-page .batch strong {
    font-size: 14px;
    color: var(--green);
    white-space: nowrap;
}

.liway-redesign .liway-packaging-page .production,
.liway-redesign .liway-packaging-page .price,
.liway-redesign .liway-packaging-page .request {
    display: grid;
    gap: 30px;
    margin-top: 30px;
    padding: 27px 29px;
    border: 1px solid var(--border);
    border-radius: 13px;
}

.liway-redesign .liway-packaging-page .production {
    grid-template-columns: 1.15fr 1fr;
    background: var(--sand);
    align-items: center;
}

.liway-redesign .liway-packaging-page .production-copy p,
.liway-redesign .liway-packaging-page .price p,
.liway-redesign .liway-packaging-page .request p {
    margin-top: 9px;
    font-size: 16px;
}

.liway-redesign .liway-packaging-page .production-copy p,
.liway-redesign .liway-packaging-page .price p {
    color: var(--muted);
}

.liway-redesign .liway-packaging-page .production dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.liway-redesign .liway-packaging-page .production dl div {
    background: #f9f0df;
    border-radius: 8px;
    padding: 8px 15px;
}

.liway-redesign .liway-packaging-page .production dt {
    font: 600 26px/1.1 "Noto Serif",Georgia,serif;
    color: var(--green);
}

.liway-redesign .liway-packaging-page .production dd {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.liway-redesign .liway-packaging-page .price {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: var(--light);
}

.liway-redesign .liway-packaging-page .price ul {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
}

.liway-redesign .liway-packaging-page .price li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.liway-redesign .liway-packaging-page .price li svg {
    color: var(--gold);
    flex: none;
}

.liway-redesign .liway-packaging-page .request {
    grid-template-columns: 1fr 1.25fr;
    margin-bottom: 44px;
    background: var(--green);
    color: #fff7e8;
    align-items: start;
}

.liway-redesign .liway-packaging-page .request>div {
    padding-top: 9px;
}

.liway-redesign .liway-packaging-page .request p {
    color: #f1e5ce;
    max-width: 440px;
}

.liway-redesign .liway-packaging-page .phone {
    display: inline-block;
    margin-top: 15px;
    font-size: 22px;
    font-weight: 700;
    color: #f0cf94;
}

.liway-redesign .liway-packaging-page .request > form:has(#send-form) {
    background: #fbf3e4;
    color: var(--ink);
    border-radius: 9px;
    padding: 15px 18px;
}

@media (max-width:1050px) {
    .liway-redesign #content > .liway-content-inner:has(> .liway-packaging-page) {
        width: min(1600px, calc(100% - 48px));
    }

    .liway-redesign .liway-packaging-page .format-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .liway-redesign .liway-packaging-page .hero>div {
        padding: 34px;
    }

    .liway-redesign .liway-packaging-page .hero h1 {
        font-size: 58px;
    }
}

@media (max-width:650px) {
    .liway-redesign #content > .liway-content-inner:has(> .liway-packaging-page) {
        width: min(1600px, calc(100% - 28px));
    }

    .liway-redesign .liway-packaging-page .hero {
        min-height: 300px;
    }

    .liway-redesign .liway-packaging-page .hero>img {
        width: 100%;
    }

    .liway-redesign .liway-packaging-page .hero::before {
        background: #102c20bb;
    }

    .liway-redesign .liway-packaging-page .hero>div {
        padding: 22px;
    }

    .liway-redesign .liway-packaging-page .hero h1 {
        font-size: 46px;
    }

    .liway-redesign .liway-packaging-page .hero p {
        font-size: 18px;
    }

    .liway-redesign .liway-packaging-page .format-grid,
    .liway-redesign .liway-packaging-page .production,
    .liway-redesign .liway-packaging-page .price,
    .liway-redesign .liway-packaging-page .request {
        grid-template-columns: 1fr;
    }

    .liway-redesign .liway-packaging-page .production,
    .liway-redesign .liway-packaging-page .price,
    .liway-redesign .liway-packaging-page .request {
        padding: 19px;
        gap: 15px;
    }

    .liway-redesign .liway-packaging-page h2 {
        font-size: 28px;
    }

    .liway-redesign .liway-packaging-page .format-body .format-title {
        font-size: 20px;
    }
}

.liway-redesign .liway-packaging-page .request {
    margin-bottom: 0;
}

.liway-redesign .liway-packaging-page .packaging-details {
    margin: 30px 0 44px;
    overflow: hidden;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 13px;
}

.liway-redesign .liway-packaging-page .details-heading {
    padding: 22px 38px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}

.liway-redesign .liway-packaging-page .details-heading h2 {
    width: min(1190px,100%);
    margin-inline: auto;
}

.liway-redesign .liway-packaging-page .details-copy {
    width: min(1190px,calc(100% - 76px));
    margin-inline: auto;
    padding: 25px 0 32px;
}

.liway-redesign .liway-packaging-page .details-copy p {
    font-size: 17px;
    line-height: 1.57;
    color: #554737;
}

.liway-redesign .liway-packaging-page .details-copy p+p {
    margin-top: 12px;
}

.liway-redesign .liway-packaging-page .details-pricing {
    margin-top: 23px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.liway-redesign .liway-packaging-page .details-copy ul {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 10px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

.liway-redesign .liway-packaging-page .details-copy li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 9px;
    background: #f4e9d5;
    border: 1px solid #e7d7bb;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 650;
}

.liway-redesign .liway-packaging-page .factor-symbol {
    display: grid;
    place-items: center;
    flex: none;
    width: 37px;
    height: 37px;
    border-radius: 7px;
    background: #fcf5e8;
    color: #815623;
}

.liway-redesign .liway-packaging-page .details-conclusion {
    margin-top: 21px;
    padding-left: 14px;
    border-left: 2px solid #b28b51;
}

@media (max-width:1090px) {
    .liway-redesign .liway-packaging-page .details-copy ul {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width:650px) {
    .liway-redesign .liway-packaging-page .details-heading {
        padding: 16px 19px;
    }

    .liway-redesign .liway-packaging-page .details-copy {
        width: calc(100% - 38px);
        padding: 18px 0;
    }

    .liway-redesign .liway-packaging-page .details-copy ul {
        grid-template-columns: 1fr 1fr;
    }

    .liway-redesign .liway-packaging-page .details-copy p {
        font-size: 15px;
    }

    .liway-redesign .liway-packaging-page .details-copy li {
        align-items: flex-start;
        flex-direction: column;
    }
}

.liway-redesign .liway-packaging-page .crumbs strong {
    font-weight: 700;
}

.liway-redesign .liway-packaging-page .batch strong {
    font-weight: 700;
}

.liway-redesign .liway-packaging-page .format-body .format-title {
    margin: 0;
    color: #142b20;
    font-family: "Noto Serif", Georgia, serif;
    font-weight: 700;
}

.liway-redesign .liway-packaging-page .gold-button:hover,
.liway-redesign .liway-packaging-page .request #submit-btn:hover:not(:disabled) {
    background: linear-gradient(#ffebc7, #f2ce91);
    color: #302313;
}

.liway-redesign .liway-packaging-page .quiet-button:hover {
    border-color: #e5bc75;
    background: #1b4530;
    color: white;
}

.liway-redesign .liway-packaging-page :is(#formats, #request) {
    scroll-margin-top: 118px;
}

@media (max-width: 720px) {
    .liway-redesign .liway-packaging-page :is(#formats, #request) {
        scroll-margin-top: 0;
    }
}

/* Оформление действующей формы Битрикса. */
.liway-redesign .liway-packaging-page .request > form:has(#send-form) {
    container: packaging-form / inline-size;
    min-width: 0;
    margin: 0;
    box-shadow: none;
}

/* Классы видимости текущей формы имеют приоритет над Bootstrap d-flex. */
.liway-redesign .liway-packaging-page .request > form .d-none {
    display: none !important;
}

.liway-redesign .liway-packaging-page #send-form:not(.d-none) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 13px;
}

.liway-redesign .liway-packaging-page #send-form > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.liway-redesign .liway-packaging-page #send-form > .form-label:has(#name, #phone) {
    grid-column: auto;
}

.liway-redesign .liway-packaging-page #send-form > :is(.form-label, #example3, div:has(> #userconsent-error)) {
    margin: 0 !important;
    padding: 0 !important;
}

.liway-redesign .liway-packaging-page #send-form > br {
    display: none;
}

.liway-redesign .liway-packaging-page #send-form .form-label {
    display: grid;
    gap: 3px;
    color: var(--ink);
    font: 650 14px/1.45 var(--packaging-ui);
}

.liway-redesign .liway-packaging-page #send-form .form-label > div {
    flex-wrap: wrap;
    gap: 2px 8px;
}

.liway-redesign .liway-packaging-page #send-form .form-control {
    width: 100%;
    min-width: 0;
    min-height: 35px;
    height: auto;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid #cfba98;
    border-radius: 6px;
    background: #fffdf8;
    color: var(--ink);
    font: 400 14px/1.25 var(--packaging-ui);
}

.liway-redesign .liway-packaging-page #send-form textarea.form-control {
    min-height: 70px;
    resize: vertical;
}

.liway-redesign .liway-packaging-page #send-form .form-control::placeholder {
    color: #746658;
    opacity: 1;
}

.liway-redesign .liway-packaging-page #send-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: none;
    outline: 1px solid var(--gold);
    outline-offset: 1px;
}

.liway-redesign .liway-packaging-page #send-form .form-control.error {
    border-color: #a33125;
}

.liway-redesign .liway-packaging-page #send-form .error-mess {
    color: #a33125;
    font: 650 12px/1.4 var(--packaging-ui);
}

.liway-redesign .liway-packaging-page #send-form > div:has(> #userconsent-error) {
    display: block !important;
}

.liway-redesign .liway-packaging-page .request .main-user-consent-request {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 1px 0;
    color: var(--muted);
    font: 400 13px/1.45 var(--packaging-ui);
}

.liway-redesign .liway-packaging-page .main-user-consent-request-announce-link {
    overflow-wrap: anywhere;
}

.liway-redesign .liway-packaging-page #userConsentRequest {
    flex: none;
    margin: 3px 0 0;
    accent-color: var(--green);
}

.liway-redesign .liway-packaging-page .request #submit-btn {
    justify-self: start;
    width: auto !important;
    max-width: 100%;
    min-height: 38px;
    margin: 0 !important;
    padding: 7px 17px !important;
    border: 1px solid #e1bd7e;
    border-radius: 9px;
    background: linear-gradient(#f9e6bc, #eac584);
    color: #302313;
    font: 700 15px/1.2 var(--packaging-ui);
}

.liway-redesign .liway-packaging-page .request #submit-btn:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.liway-redesign .liway-packaging-page #ok-mess {
    padding: 12px;
    border: 1px solid #b7c9ac;
    border-radius: 8px;
    background: #e6edde;
    color: #264731;
    font: 650 14px/1.45 var(--packaging-ui);
}

@container packaging-form (max-width: 303px) {
    .liway-redesign .liway-packaging-page #example3 { zoom: .9; }
}

@container packaging-form (max-width: 273px) {
    .liway-redesign .liway-packaging-page #example3 { zoom: .8; }
}

@container packaging-form (max-width: 243px) {
    .liway-redesign .liway-packaging-page #example3 { zoom: .7; }
    .liway-redesign .liway-packaging-page #send-form:not(.d-none) { grid-template-columns: minmax(0, 1fr); }
    .liway-redesign .liway-packaging-page #send-form .form-control { font-size: 16px; }
}

/* О компании Liway: оформление страницы /about/. */
.liway-redesign #content > .liway-content-inner:has(> .liway-about-page) {
    --about-ink: #152b20;
    --about-gold: #865b28;
    --about-ui: var(--liway-ui-font, "Open Sans", Arial, sans-serif);

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    grid-template-areas:
        "info info"
        "crumbs crumbs"
        "hero hero"
        "team team"
        "benefits benefits"
        "warehouse warehouse"
        "requisites form-title"
        "requisites form";
    align-items: start;
    column-gap: 19px;
    width: min(1600px, calc(100% - 96px));
    padding-bottom: 44px;
    color: var(--about-ink);
    font: 400 17px/1.45 var(--about-ui);
}

.liway-redesign .liway-about-page {
    --ink: var(--about-ink);
    --muted: #645847;
    --line: #dfcbae;
    --cream: #fbf5e9;
    --sand: #efe2cb;

    display: contents;
    color: inherit;
    font: inherit;
}

.liway-redesign .liway-about-page :where(*) {
    color: inherit;
    font: inherit;
}

.liway-redesign .liway-about-page :is(h1, h2, h3, p) {
    margin: 0;
}

.liway-redesign .liway-about-page :is(h1, h2, h3) {
    font-family: "Noto Serif", Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.027em;
    text-align: left;
}

.liway-redesign .liway-about-page .crumbs {
    grid-area: crumbs;
    gap: 8px;
    padding: 22px 0;
    color: var(--muted);
    font: 400 14px/1.45 var(--about-ui);
}

.liway-redesign .liway-about-page .crumbs a {
    text-decoration: none;
}

.liway-redesign .liway-about-page .crumbs a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.liway-redesign .liway-about-page .crumbs span { color: var(--about-gold); }
.liway-redesign .liway-about-page .crumbs strong { color: var(--ink); font-weight: 700; }

.liway-redesign .liway-about-page .about-hero {
    grid-area: hero;
    background-image: linear-gradient(90deg, #081f16 0%, #0a2419ef 35%, #0a241961 65%, #0a241900 85%),
        url("/about/assets/img/services-hero-832cf32.webp");
}

.liway-redesign .liway-about-page .about-intro h1 { line-height: 1.12; }
.liway-redesign .liway-about-page .about-section:has(> .teams) { grid-area: team; }
.liway-redesign .liway-about-page .about-section:has(> .advantages) { grid-area: benefits; }
.liway-redesign .liway-about-page .warehouse { grid-area: warehouse; margin-bottom: 29px; }

.liway-redesign #content .liway-content-inner:has(> .liway-about-page) > #info {
    grid-area: info;
}

.liway-redesign .liway-about-page :is(.about-ending, .about-ending > .message) {
    display: contents;
}

.liway-redesign .liway-about-page .requisites {
    grid-area: requisites;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream);
}

.liway-redesign .liway-about-page .about-ending h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 19px;
    border-bottom: 1px solid var(--line);
    background: var(--sand);
    font-size: 29px;
    line-height: 1.15;
}

.liway-redesign .liway-about-page .about-ending .icon {
    flex: none;
    color: var(--about-gold);
}

.liway-redesign .liway-about-page .about-ending .message > h2 {
    grid-area: form-title;
    border-color: #0c2c1d;
    border-radius: 12px 12px 0 0;
    background: #0c2c1d;
    color: #fff7e9;
}

.liway-redesign .liway-about-page .message h2 .icon { color: #e5c18a; }

.liway-redesign .liway-about-page .requisites > div {
    padding: 23px;
}

.liway-redesign .liway-about-page .requisites img {
    display: block;
    width: 276px;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    background: transparent;
}
.liway-redesign .liway-about-page .about-hero {
    background-color: #102c22;
    background-position: center right;
    background-size: cover;
    border-radius: 16px;
    overflow: hidden;
    color: #fff9ef;
}

.liway-redesign .liway-about-page .about-intro {
    max-width: 950px;
    padding: 58px 60px 61px;
}

.liway-redesign .liway-about-page .about-intro h1 {
    font-size: 66px;
    margin-bottom: 21px;
}

.liway-redesign .liway-about-page .about-intro p {
    font-size: 20px;
    line-height: 1.62;
    max-width: 820px;
    color: #fffaef;
}

.liway-redesign .liway-about-page .about-intro p+p {
    margin-top: 12px;
}

.liway-redesign .liway-about-page .about-section {
    margin-top: 44px;
}

.liway-redesign .liway-about-page .section-title {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 19px;
}

.liway-redesign .liway-about-page .section-title:after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg,#cba56c,#e9d9bf);
}

.liway-redesign .liway-about-page .teams,
.liway-redesign .liway-about-page .advantages {
    display: grid;
    gap: 18px;
}

.liway-redesign .liway-about-page .teams {
    grid-template-columns: repeat(4,minmax(0,1fr));
}

.liway-redesign .liway-about-page .team-card {
    position: relative;
    text-align: center;
    background: linear-gradient(150deg,#fcf6ea,#f0e1c8);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    padding: 25px 19px 21px;
}

.liway-redesign .liway-about-page .team-card img {
    display: block;
    width: 184px;
    height: 184px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 14px;
}

.liway-redesign .liway-about-page .team-card .team-name,
.liway-redesign .liway-about-page .advantage h3 {
    font: 600 27px/1.17 "Noto Serif",Georgia,serif;
    margin: 0 0 6px;
    letter-spacing: -.02em;
}

.liway-redesign .liway-about-page .team-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.4;
    max-width: 275px;
    margin: auto;
}

.liway-redesign .liway-about-page .advantages {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.liway-redesign .liway-about-page .advantage {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    gap: 16px;
    align-content: start;
    padding: 25px 25px 26px;
    border-radius: 13px;
    background: #fcf7ed;
    border: 1px solid var(--line);
}

.liway-redesign .liway-about-page .advantage-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 11px;
    background: #f4e5cb;
    color: #895c25;
}

.liway-redesign .liway-about-page .advantage-icon .icon {
    width: 26px;
    height: 26px;
}

.liway-redesign .liway-about-page .advantage p,
.liway-redesign .liway-about-page .advantage ul {
    font-size: 16px;
    line-height: 1.5;
    color: #4c4235;
}

.liway-redesign .liway-about-page .advantage ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.liway-redesign .liway-about-page .advantage li+li {
    margin-top: 5px;
}

.liway-redesign .liway-about-page .advantage li::marker {
    color: #a36b22;
}

.liway-redesign .liway-about-page .warehouse {
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 330px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #efe1cb;
}

.liway-redesign .liway-about-page .warehouse-copy {
    align-self: center;
    padding: 41px 55px;
}

.liway-redesign .liway-about-page .warehouse h2 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 17px;
}

.liway-redesign .liway-about-page .warehouse p {
    max-width: 620px;
    font-size: 18px;
    line-height: 1.58;
}

.liway-redesign .liway-about-page .warehouse img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 355px;
    object-fit: cover;
    object-position: center 54%;
}

@media (max-width:980px) {
    .liway-redesign .liway-about-page .about-intro {
        padding: 42px;
        max-width: 700px;
    }

    .liway-redesign .liway-about-page .teams,
    .liway-redesign .liway-about-page .advantages {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .liway-redesign .liway-about-page .warehouse-copy {
        padding: 28px;
    }
}

@media (max-width:600px) {
    .liway-redesign .liway-about-page .about-intro {
        padding: 30px 23px;
    }

    .liway-redesign .liway-about-page .about-intro h1 {
        font-size: 44px;
    }

    .liway-redesign .liway-about-page .about-intro p {
        font-size: 16px;
    }

    .liway-redesign .liway-about-page .about-section {
        margin-top: 30px;
    }

    .liway-redesign .liway-about-page .section-title,
    .liway-redesign .liway-about-page .warehouse h2 {
        font-size: 31px;
    }

    .liway-redesign .liway-about-page .teams {
        gap: 9px;
    }

    .liway-redesign .liway-about-page .team-card {
        padding: 14px 8px;
    }

    .liway-redesign .liway-about-page .team-card img {
        height: auto;
    }

    .liway-redesign .liway-about-page .team-card p {
        font-size: 13px;
    }

    .liway-redesign .liway-about-page .advantages,
    .liway-redesign .liway-about-page .warehouse {
        grid-template-columns: 1fr;
    }

    .liway-redesign .liway-about-page .advantage {
        padding: 17px;
    }

    .liway-redesign .liway-about-page .warehouse img {
        max-height: 270px;
    }
}

.liway-redesign .liway-about-page .teams .team-card .team-name {
    margin: 0 auto 6px;
    color: var(--ink);
    font: 600 27px/1.17 "Noto Serif", Georgia, serif;
    letter-spacing: -.02em;
}

.liway-redesign .liway-about-page .advantage h3 {
    overflow-wrap: anywhere;
}

.liway-redesign .liway-about-page .advantage ul { list-style: disc; }
.liway-redesign .liway-about-page .advantage li { list-style: inherit; }

@media (max-width: 720px) {
    .liway-redesign #content > .liway-content-inner:has(> .liway-about-page) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "info" "crumbs" "hero" "team" "benefits" "warehouse" "requisites" "form-title" "form";
    }

    .liway-redesign .liway-about-page .requisites {
        margin-bottom: 19px;
    }
}

@media (max-width: 700px) {
    .liway-redesign #content > .liway-content-inner:has(> .liway-about-page) {
        width: calc(100% - 28px);
    }
}

@media (max-width: 600px) {
    .liway-redesign .liway-about-page .teams .team-card .team-name { font-size: 22px; }
}

/* Рабочая форма Битрикса выводится следом за фрагментом страницы. */
.liway-redesign #content > .liway-content-inner:has(> .liway-about-page) > form:has(#send-form) {
    container: about-feedback / inline-size;
    grid-area: form;
    min-width: 0;
    margin: 0;
    padding: 19px 23px 21px;
    border: 1px solid #dfcbae;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fbf5e9;
    color: var(--about-ink);
    font: 400 17px/1.45 var(--about-ui);
}

.liway-redesign #content > .liway-content-inner:has(> .liway-about-page) > form .d-none {
    display: none !important;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form:not(.d-none) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form > .form-label:has(#name, #phone) {
    grid-column: auto;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page)
    #send-form > :is(.form-label, #example3, div:has(> #userconsent-error)) {
    margin: 0 !important;
    padding: 0 !important;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form > br {
    display: none;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form .form-label {
    display: grid;
    gap: 4px;
    color: var(--about-ink);
    font: 650 14px/1.45 var(--about-ui);
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form .form-label > div {
    flex-wrap: wrap;
    gap: 2px 8px;
    color: inherit;
    font: inherit;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page)
    #send-form :is(.form-label, .main-user-consent-request) span:not(.error-mess) {
    color: inherit;
    font: inherit;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form .form-control {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    height: auto;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid #cdbb9c;
    border-radius: 6px;
    background: #fffdfa;
    color: var(--about-ink);
    font: 650 14px/1.45 var(--about-ui);
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form textarea.form-control {
    min-height: 77px;
    resize: vertical;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form .form-control:focus {
    border-color: var(--about-gold);
    outline: 1px solid var(--about-gold);
    outline-offset: 1px;
    box-shadow: none;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form .form-control.error {
    border-color: #a33125;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form .error-mess {
    color: #a33125;
    font: 650 12px/1.4 var(--about-ui);
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form > div:has(> #userconsent-error) {
    display: block !important;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form .main-user-consent-request {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 1px 0;
    color: #645847;
    font: 400 12px/1.45 var(--about-ui);
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #userConsentRequest {
    flex: none;
    margin: 2px 0 0;
    accent-color: #183c2a;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form #submit-btn {
    justify-self: start;
    width: auto !important;
    max-width: 100%;
    min-height: 41px;
    margin: 0 !important;
    padding: 8px 17px !important;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(#f7e0b1, #e8bf80);
    color: #302418;
    font: 700 17px/1.45 var(--about-ui);
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form #submit-btn:hover:not(:disabled) {
    background: linear-gradient(#ffebc7, #f2ce91);
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form #submit-btn:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.liway-redesign .liway-content-inner:has(> .liway-about-page) #ok-mess {
    padding: 12px;
    border: 1px solid #b7c9ac;
    border-radius: 8px;
    background: #e6edde;
    color: #264731;
    font: 650 14px/1.45 var(--about-ui);
}

@container about-feedback (max-width: 303px) {
    .liway-redesign .liway-content-inner:has(> .liway-about-page) #example3 { zoom: .9; }
}

@container about-feedback (max-width: 273px) {
    .liway-redesign .liway-content-inner:has(> .liway-about-page) #example3 { zoom: .8; }
}

@container about-feedback (max-width: 243px) {
    .liway-redesign .liway-content-inner:has(> .liway-about-page) #example3 { zoom: .7; }
    .liway-redesign .liway-content-inner:has(> .liway-about-page) #send-form:not(.d-none) { grid-template-columns: minmax(0, 1fr); }
}

/* Чай и кофе оптом Liway: оформление страницы /opt/. */
.liway-redesign #content > .liway-content-inner:has(> .liway-opt-page) {
    --opt-ink: #152b20;
    --opt-gold: #865b28;
    --opt-line: #dfcbae;
    --opt-ui: var(--liway-ui-font, "Open Sans", Arial, sans-serif);

    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
        "info info"
        "crumbs crumbs"
        "hero hero"
        "advantages advantages"
        "logistics logistics"
        "catalog form-title"
        "catalog form";
    align-items: start;
    column-gap: 15px;
    width: min(1600px, calc(100% - 96px));
    padding-bottom: 42px;
    color: var(--opt-ink);
    font: 400 17px/1.45 var(--opt-ui);
}

.liway-redesign .liway-opt-page {
    --line: var(--opt-line);
    --gold: var(--opt-gold);
    display: contents;
    color: inherit;
    font: inherit;
}

.liway-redesign .liway-opt-page :where(*) {
    color: inherit;
    font: inherit;
}

.liway-redesign .liway-opt-page :is(h1, h2, p) {
    margin: 0;
}

.liway-redesign .liway-opt-page :is(h1, h2) {
    font-family: "Noto Serif", Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.027em;
    text-align: left;
}

.liway-redesign .liway-opt-page a {
    text-decoration: none;
}

.liway-redesign .liway-opt-page a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.liway-redesign #content .liway-content-inner:has(> .liway-opt-page) > #info { grid-area: info; }
.liway-redesign .liway-opt-page .opt-hero { grid-area: hero; }
.liway-redesign .liway-opt-page .opt-section { grid-area: advantages; }

.liway-redesign .liway-opt-page .crumbs {
    grid-area: crumbs;
    gap: 8px;
    padding: 22px 0;
    color: #645847;
    font: 400 14px/1.45 var(--opt-ui);
}

.liway-redesign .liway-opt-page .crumbs span { color: var(--opt-gold); }
.liway-redesign .liway-opt-page .crumbs strong { color: var(--opt-ink); font-weight: 700; }
.liway-redesign .liway-opt-page .icon { flex: none; vertical-align: middle; }

.liway-redesign .liway-opt-page .opt-end {
    display: contents;
}

.liway-redesign .liway-opt-page #catalog {
    grid-area: catalog;
}

.liway-redesign .liway-opt-page #request {
    grid-area: form-title;
    scroll-margin-top: 118px;
}

.liway-redesign .liway-opt-page .opt-end .message > h2 {
    border-bottom: 1px solid #0c2c1d;
    border-radius: 12px 12px 0 0;
    background: #0c2c1d;
    color: #fff7e9;
}

.liway-redesign .liway-opt-page .opt-end .message h2 .icon { color: #e5c18a; }
.liway-redesign .liway-opt-page .opt-hero {
    display: grid;
    grid-template-columns: minmax(0,1.28fr) minmax(0,1fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #263e2e;
    border-radius: 15px;
    background: linear-gradient(110deg,#0a281d,#19422f);
    color: #fff8eb;
}

.liway-redesign .liway-opt-page .opt-hero-copy {
    padding: 48px 44px 44px;
}

.liway-redesign .liway-opt-page .opt-hero h1 {
    font-size: 57px;
    line-height: 1.13;
    color: #fff9ef;
}

.liway-redesign .liway-opt-page .opt-hero p {
    max-width: 770px;
    margin-top: 19px;
    color: #f8ebd8;
    font-size: 20px;
    line-height: 1.58;
}

.liway-redesign .liway-opt-page .opt-hero img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 320px;
    max-height: 438px;
    object-fit: cover;
    object-position: center 49%;
    border-left: 1px solid #bb945659;
}

.liway-redesign .liway-opt-page .opt-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    margin-top: 23px;
    border-radius: 7px;
    background: linear-gradient(#f9e2b3,#e9bf7d);
    color: #2c2518;
    font-weight: 700;
    font-size: 15px;
}

.liway-redesign .liway-opt-page .opt-cta:hover {
    background: #f8e4bd;
    text-decoration: none;
}

.liway-redesign .liway-opt-page .opt-cta .icon {
    width: 17px;
    height: 17px;
}

.liway-redesign .liway-opt-page .opt-section {
    margin-top: 33px;
}

.liway-redesign .liway-opt-page .opt-section-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 37px;
    line-height: 1.15;
    margin-bottom: 15px;
}

.liway-redesign .liway-opt-page .opt-section-heading:after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg,#c6a26a,#eadac0);
}

.liway-redesign .liway-opt-page .opt-advantages {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.liway-redesign .liway-opt-page .opt-advantages li {
    padding: 16px 17px 17px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fcf6eb;
    font-size: 17px;
    line-height: 1.43;
    font-weight: 650;
}

.liway-redesign .liway-opt-page .opt-advantages .icon {
    display: block;
    width: 26px;
    height: 26px;
    color: #966322;
    margin: 0 0 10px;
}

.liway-redesign .liway-opt-page .opt-logistics {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.liway-redesign .liway-opt-page .opt-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fcf6eb;
}

.liway-redesign .liway-opt-page .opt-panel h2,
.liway-redesign .liway-opt-page .opt-end .message h2 {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 20px;
    font-size: 29px;
    line-height: 1.15;
}

.liway-redesign .liway-opt-page .opt-panel h2 {
    background: #efe1c9;
    border-bottom: 1px solid var(--line);
}

.liway-redesign .liway-opt-page .opt-panel h2 .icon {
    color: var(--gold);
}

.liway-redesign .liway-opt-page .opt-panel-body {
    padding: 16px 21px;
    font-size: 17px;
    line-height: 1.5;
}

.liway-redesign .liway-opt-page .opt-panel-body p+p {
    margin-top: 7px;
}

.liway-redesign .liway-opt-page .opt-catalog-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

.liway-redesign .liway-opt-page .opt-catalog-list li::marker {
    color: #a56e28;
}

.liway-redesign .liway-opt-page .opt-body {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid #e4d2b7;
}

.liway-redesign .liway-opt-page .opt-phone a {
    font-weight: 700;
    color: #234d33;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

@media (max-width:1020px) {
    .liway-redesign .liway-opt-page .opt-hero h1 {
        font-size: 43px;
    }

    .liway-redesign .liway-opt-page .opt-hero-copy {
        padding: 29px;
    }

    .liway-redesign .liway-opt-page .opt-hero p {
        font-size: 17px;
    }

    .liway-redesign .liway-opt-page .opt-advantages {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width:710px) {
    .liway-redesign .liway-opt-page .opt-hero,
    .liway-redesign .liway-opt-page .opt-logistics {
        grid-template-columns: 1fr;
    }

    .liway-redesign .liway-opt-page .opt-hero-copy {
        padding: 25px;
    }

    .liway-redesign .liway-opt-page .opt-hero h1 {
        font-size: 39px;
    }

    .liway-redesign .liway-opt-page .opt-hero img {
        min-height: 0;
        max-height: 255px;
        border-left: 0;
    }

    .liway-redesign .liway-opt-page .opt-section-heading {
        font-size: 32px;
    }

    .liway-redesign .liway-opt-page .opt-advantages {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .liway-redesign .liway-opt-page .opt-advantages li {
        font-size: 15px;
        padding: 12px;
    }
}

.liway-redesign .liway-opt-page .opt-logistics {
    grid-area: logistics;
    margin-bottom: 25px;
}

.liway-redesign .liway-opt-page .opt-catalog-list { list-style: disc; }
.liway-redesign .liway-opt-page .opt-catalog-list li { list-style: inherit; }
.liway-redesign .liway-opt-page .opt-advantages li { overflow-wrap: anywhere; }

@media (max-width: 720px) {
    .liway-redesign .liway-opt-page #request { scroll-margin-top: 0; }
}

@media (max-width: 710px) {
    .liway-redesign #content > .liway-content-inner:has(> .liway-opt-page) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "info" "crumbs" "hero" "advantages" "logistics" "catalog" "form-title" "form";
    }

    .liway-redesign .liway-opt-page #catalog {
        margin-bottom: 15px;
    }
}

@media (max-width: 700px) {
    .liway-redesign #content > .liway-content-inner:has(> .liway-opt-page) {
        width: calc(100% - 28px);
    }
}

/* Оформление действующей формы Битрикса. */
.liway-redesign #content > .liway-content-inner:has(> .liway-opt-page) > form:has(#send-form) {
    container: opt-feedback / inline-size;
    grid-area: form;
    min-width: 0;
    margin: 0;
    padding: 17px 20px 20px;
    border: 1px solid #dfcbae;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fbf5e9;
    color: var(--opt-ink);
    font: 400 17px/1.45 var(--opt-ui);
}

.liway-redesign #content > .liway-content-inner:has(> .liway-opt-page) > form .d-none {
    display: none !important;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form:not(.d-none) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 13px;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form > .form-label:has(#name, #phone) {
    grid-column: auto;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page)
    #send-form > :is(.form-label, #example3, div:has(> #userconsent-error)) {
    margin: 0 !important;
    padding: 0 !important;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form > br {
    display: none;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form .form-label {
    display: grid;
    gap: 4px;
    color: var(--opt-ink);
    font: 650 14px/1.45 var(--opt-ui);
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form .form-label > div {
    flex-wrap: wrap;
    gap: 2px 8px;
    color: inherit;
    font: inherit;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page)
    #send-form :is(.form-label, .main-user-consent-request) span:not(.error-mess) {
    color: inherit;
    font: inherit;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form .form-control {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    height: auto;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid #cdbb9c;
    border-radius: 6px;
    background: #fffdfa;
    color: var(--opt-ink);
    font: 650 14px/1.45 var(--opt-ui);
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form textarea.form-control {
    min-height: 77px;
    resize: vertical;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form .form-control:focus {
    border-color: var(--opt-gold);
    outline: 1px solid var(--opt-gold);
    outline-offset: 1px;
    box-shadow: none;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form .form-control.error {
    border-color: #a33125;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form .error-mess {
    color: #a33125;
    font: 650 12px/1.4 var(--opt-ui);
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form > div:has(> #userconsent-error) {
    display: block !important;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form .main-user-consent-request {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 1px 0;
    color: #645847;
    font: 400 12px/1.45 var(--opt-ui);
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #userConsentRequest {
    flex: none;
    margin: 2px 0 0;
    accent-color: #183c2a;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form #submit-btn {
    justify-self: start;
    width: auto !important;
    max-width: 100%;
    min-height: 41px;
    margin: 0 !important;
    padding: 8px 17px !important;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(#f7e0b1, #e8bf80);
    color: #302418;
    font: 700 17px/1.45 var(--opt-ui);
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form #submit-btn:hover:not(:disabled) {
    background: linear-gradient(#ffebc7, #f2ce91);
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form #submit-btn:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.liway-redesign .liway-content-inner:has(> .liway-opt-page) #ok-mess {
    padding: 12px;
    border: 1px solid #b7c9ac;
    border-radius: 8px;
    background: #e6edde;
    color: #264731;
    font: 650 14px/1.45 var(--opt-ui);
}

@container opt-feedback (max-width: 303px) {
    .liway-redesign .liway-content-inner:has(> .liway-opt-page) #example3 { zoom: .9; }
}

@container opt-feedback (max-width: 273px) {
    .liway-redesign .liway-content-inner:has(> .liway-opt-page) #example3 { zoom: .8; }
}

@container opt-feedback (max-width: 243px) {
    .liway-redesign .liway-content-inner:has(> .liway-opt-page) #example3 { zoom: .7; }
    .liway-redesign .liway-content-inner:has(> .liway-opt-page) #send-form:not(.d-none) { grid-template-columns: minmax(0, 1fr); }
}

/* Новости Liway: оформление страницы /news/. */
.liway-redesign #content > .liway-content-inner:has(> .liway-news-page) {
    width: min(1600px, calc(100% - 96px));
    padding-bottom: 42px;
}

.liway-redesign .liway-news-page {
    --journal-ink: #152b20;
    --journal-line: #dfcbae;
    --journal-gold: #865b28;
    --journal-ui: var(--liway-ui-font, "Open Sans", Arial, sans-serif);
    --journal-serif: "Noto Serif", Georgia, serif;

    color: var(--journal-ink);
    font: 400 17px/1.45 var(--journal-ui);
}

.liway-redesign .liway-news-page :where(*) {
    color: inherit;
    font: inherit;
}

.liway-redesign .liway-news-page :is(h1, h2) {
    margin: 0;
    font-family: var(--journal-serif);
    font-weight: 600;
    letter-spacing: -.027em;
    text-align: left;
    overflow-wrap: anywhere;
}

.liway-redesign .liway-news-page a {
    text-decoration: none;
}

.liway-redesign .liway-news-page .crumbs {
    gap: 8px;
    padding: 22px 0;
    color: #645847;
    font: 400 14px/1.45 var(--journal-ui);
}

.liway-redesign .liway-news-page .crumbs a:hover { text-decoration: underline; }
.liway-redesign .liway-news-page .crumbs span { color: var(--journal-gold); }
.liway-redesign .liway-news-page .crumbs strong { color: var(--journal-ink); font-weight: 700; }

.liway-redesign .liway-news-page .journal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    border: 1px solid #274a37;
    border-radius: 15px;
    background: linear-gradient(105deg, #0b2b1e, #18432f);
    color: #fff7e8;
    overflow: hidden;
}

.liway-redesign .liway-news-page .journal-hero--featured {
    grid-template-columns: minmax(0, 1.64fr) minmax(0, 1fr);
}

.liway-redesign .liway-news-page .feature-copy {
    align-self: center;
    padding: 37px 41px;
}

.liway-redesign .liway-news-page .feature-copy h1 {
    font-size: clamp(40px, 3vw, 58px);
    line-height: 1.12;
}

.liway-redesign .liway-news-page .journal-feature {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 325px;
    border-left: 1px solid #bea16d7a;
    background: #eee0c7;
    color: var(--journal-ink);
}

.liway-redesign .liway-news-page .journal-feature:not(:has(.feature-picture)) {
    grid-template-rows: auto;
    align-content: center;
    min-height: 0;
}

.liway-redesign .liway-news-page .feature-picture {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 45%, #f8ead0, #d4b890);
}

.liway-redesign .liway-news-page .feature-picture img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.liway-redesign .liway-news-page .journal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.liway-redesign .liway-news-page .journal-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    border: 1px solid var(--journal-line);
    border-radius: 12px;
    background: #fbf5e9;
    overflow: hidden;
}

.liway-redesign .liway-news-page .journal-card:not(:has(.cover)) {
    grid-template-rows: 1fr;
}

.liway-redesign .liway-news-page .cover {
    display: block;
    aspect-ratio: 2.37;
    overflow: hidden;
    border-bottom: 1px solid var(--journal-line);
    background: #f1e3cb;
}

.liway-redesign .liway-news-page .cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.liway-redesign .liway-news-page .journal-card-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 15px 18px 17px;
}

.liway-redesign .liway-news-page .journal-feature .journal-card-copy {
    padding: 14px 22px;
}

.liway-redesign .liway-news-page .journal-card-text {
    min-width: 0;
}

.liway-redesign .liway-news-page .journal-card h2 {
    font-size: 24px;
    line-height: 1.24;
}

.liway-redesign .liway-news-page .journal-feature h2 {
    font-size: 28px;
    line-height: 1.2;
}

.liway-redesign .liway-news-page .journal-card-copy .icon {
    flex: none;
    width: 21px;
    height: 21px;
    color: #84602e;
}

.liway-redesign .liway-news-page .journal-date {
    display: block;
    margin-top: 6px;
    color: #645847;
    font: 400 13px/1.4 var(--journal-ui);
    font-variant-numeric: tabular-nums;
}

.liway-redesign .liway-news-page :is(a.journal-feature, a.journal-card):hover {
    background: #f2e6ce;
}

.liway-redesign .liway-news-page :is(a.journal-feature, a.journal-card):hover h2 {
    color: #765023;
}

.liway-redesign .liway-news-page .journal-empty {
    margin: 22px 0 0;
}

.liway-redesign .liway-news-page .journal-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 25px 0 0;
}

.liway-redesign .liway-news-page .journal-pagination :is(a, span) {
    display: grid;
    place-items: center;
    min-width: 39px;
    min-height: 39px;
    padding: 0 10px;
    border: 1px solid var(--journal-line);
    border-radius: 7px;
    background: #fbf4e6;
    font-weight: 700;
}

.liway-redesign .liway-news-page .journal-pagination [aria-current="page"] {
    border-color: #0c2c1d;
    background: #0c2c1d;
    color: #fff6e5;
}

.liway-redesign .liway-news-page .journal-pagination .journal-pagination-gap {
    min-width: 0;
    padding-inline: 4px;
    border-color: transparent;
    background: transparent;
}

.liway-redesign .liway-news-page .journal-pagination a:hover {
    border-color: var(--journal-gold);
    color: var(--journal-gold);
}

@media (max-width: 1000px) {
    .liway-redesign .liway-news-page .journal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .liway-redesign .liway-news-page .feature-copy { padding: 25px; }
}

@media (max-width: 700px) {
    .liway-redesign #content > .liway-content-inner:has(> .liway-news-page) {
        width: calc(100% - 28px);
    }
}

@media (max-width: 660px) {
    .liway-redesign .liway-news-page .journal-hero--featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .liway-redesign .liway-news-page .journal-feature {
        min-height: 0;
        border-top: 1px solid #bea16d7a;
        border-left: 0;
    }

    .liway-redesign .liway-news-page .feature-picture img { height: 196px; }
    .liway-redesign .liway-news-page .feature-copy h1 { font-size: 36px; }
    .liway-redesign .liway-news-page .journal-feature h2 { font-size: 22px; }
    .liway-redesign .liway-news-page .journal-grid { gap: 10px; }
    .liway-redesign .liway-news-page .journal-card .journal-card-copy { padding: 10px; }
    .liway-redesign .liway-news-page .journal-card h2 { font-size: 17px; }
    .liway-redesign .liway-news-page .journal-card .icon { display: none; }
    .liway-redesign .liway-news-page .cover { aspect-ratio: 1.6; }
}


/* Liway: подтверждение сохранения отзыва в AJAX-окне. */
body.liway-redesign .rewievs-modal:has(
    .modal-body > [id^="comp_"] > .alert:not(.alert-danger, .alert-warning, .alert-error, .err)
    + .text-end > .close_dialog[data-dismiss="modal"]
):not(:has(.modal-body form)) {
    --review-success-ui: var(--liway-ui-font, "Open Sans", Arial, sans-serif);

    & .modal-dialog {
        width: min(440px, calc(100% - 26px));
        max-width: none;
        margin: 13px auto;
    }

    & .modal-content {
        width: 100%;
        border: 1px solid #d7bd91;
        border-radius: 13px;
        background: #fff8ec;
        box-shadow: 0 20px 55px #18271b55;
    }

    & .modal-body {
        width: 100%;
        max-width: none;
        padding: 28px clamp(16px, 5vw, 32px) 24px;
        text-align: center;
    }

    & .modal-body > [id^="comp_"] > .alert {
        position: relative;
        max-width: 35ch;
        margin: 0 auto;
        padding: 0;
        border: 0;
        background: transparent;
        color: #172d20;
        font: 600 16px/1.55 var(--review-success-ui);
        text-align: center;
        overflow-wrap: anywhere;
    }

    & .modal-body > [id^="comp_"] > .alert::before {
        content: "";
        display: block;
        box-sizing: border-box;
        width: 50px;
        height: 50px;
        margin: 0 auto 14px;
        border: 1px solid #cfddcd;
        border-radius: 50%;
        background: #e6eee2;
    }

    & .modal-body > [id^="comp_"] > .alert::after {
        content: "";
        position: absolute;
        top: 13px;
        left: 50%;
        box-sizing: border-box;
        width: 11px;
        height: 19px;
        border: solid #23523a;
        border-width: 0 3px 3px 0;
        transform: translateX(-50%) rotate(45deg);
    }

    & .modal-body .alert + .text-end {
        display: flex;
        justify-content: center;
        margin-top: 19px;
    }

    & .modal-body .close_dialog[data-dismiss="modal"] {
        width: 100%;
        max-width: 184px;
        min-height: 44px;
        margin: 0;
        padding: 9px 20px;
        border: 1px solid #0c2c1d;
        border-radius: 8px;
        background: #0c2c1d;
        color: #fff9ef;
        font: 700 14px/1.4 var(--review-success-ui);
        text-align: center;
        cursor: pointer;
    }

    & .modal-body .close_dialog[data-dismiss="modal"]:hover {
        border-color: #24513a;
        background: #24513a;
        color: #fff;
    }

    & .modal-dialog > .close[data-dismiss="modal"],
    & .modal-content > .close[data-dismiss="modal"] {
        position: absolute;
        z-index: 2;
        inset: 11px 11px auto auto;
        display: grid;
        place-items: center;
        box-sizing: border-box;
        width: 38px;
        height: 38px;
        margin: 0;
        padding: 0;
        border: 1px solid #e5d3b9;
        border-radius: 8px;
        background: #fff8ec;
        color: #81511e;
        font: 400 24px/1 var(--review-success-ui);
        opacity: 1;
        text-shadow: none;
    }

    & .close[data-dismiss="modal"] span {
        color: inherit;
        font: inherit;
        opacity: 1;
    }

    & .close[data-dismiss="modal"]:hover {
        background: #f5e5cb;
        color: #81511e;
        opacity: 1;
    }

    & .modal-dialog:has(> .modal-content > .close[data-dismiss="modal"]) > .close[data-dismiss="modal"] {
        display: none;
    }

    & :is(.close, .close_dialog)[data-dismiss="modal"]:focus-visible {
        outline: 2px solid #996121;
        outline-offset: 2px;
    }

    @media (max-width: 480px) {
        & .modal-body .close_dialog[data-dismiss="modal"] {
            max-width: none;
        }
    }
}
