
.product_buy,
body.node-type-product-display #block-system-main .content .attributes,
body.node-type-product-display #block-system-main .content,
body.node-type-product-display #block-system-main .content .p_links {
    float: left;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
}
body.node-type-product-display #block-system-main .content .p_links {
    margin: 0;
    padding: 0;
}
body.node-type-product-display .tabs-wrapper {
    margin-bottom: 0;
}
body.node-type-product-display h1.page-title {
    margin: 0;
}
/* Главное фото товара */
.main-product-image {
    border: 1px solid #e8e8e8 !important;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Миниатюры товара */
#other-product-image .field-items,
.other-product-image .field-items,
.other-product-image-3 .field-items {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 8px;
}
#other-product-image .field-item,
.other-product-image .field-item,
.other-product-image-3 .field-item {
    border: 1px solid #e8e8e8 !important;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 4px;
    margin: 0 !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    flex: 0 0 calc(25% - 7px);
    text-align: center;
}
#other-product-image .field-item:hover,
.other-product-image .field-item:hover,
.other-product-image-3 .field-item:hover {
    border-color: #289dcc !important;
    box-shadow: 0 2px 8px rgba(40,157,204,0.15);
}
#other-product-image .field-item a,
.other-product-image .field-item a,
.other-product-image-3 .field-item a {
    display: block;
    line-height: 0;
}
#other-product-image .field-item img,
.other-product-image .field-item img,
.other-product-image-3 .field-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Таблица характеристик */
table.product-attributes {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 0;
    width: 100%;
    padding-top: 0 !important;
}
table.product-attributes td {
    border: none;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
    padding: 9px 12px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    vertical-align: middle;
}
table.product-attributes tr:last-child td { border-bottom: none; }
table.product-attributes .t_title {
    background: #f8f8f8;
    color: #555;
    font-weight: 300;
    width: 20%;
}
table.product-attributes .t_markup {
    color: #333;
}

/* Уведомление для снятых с производства товаров */
.discontinued-notice {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff8e1;
    color: #7a5800;
    padding: 14px 16px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
}

.price-notice {
    border: 1px solid #b3dff0;
    border-radius: 6px;
    background: #e8f6fd;
    color: #1a6080;
    padding: 14px 16px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Таблица цен — стиль на обёртке div */
#product_tarifs_by_count {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 0;
}

#product_tarifs_by_count table {
    border: none;
    background: #fff;
    margin-bottom: 0;
    width: 100%;
}

/* Блок Характеристики (десктоп) */
#product-display .h_mob_m {
    border: 1px solid #e8e8e8;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: #f8f8f8;
    color: #555;
    padding: 10px 12px;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    margin-top: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
#product-display .h_mob_m + .attributes_mob {
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 0;
}
#product-display .h_mob_m + .attributes_mob .h_mob_td,
#product-display .h_mob_m + .attributes_mob .h_mob_td_d {
    border-bottom: 1px solid #e8e8e8 !important;
    border-left: none;
    border-right: none;
    padding: 9px 12px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    background: #fff;
}
#product-display .h_mob_m + .attributes_mob .h_mob_td:last-child,
#product-display .h_mob_m + .attributes_mob .h_mob_td_d:last-child {
    border-bottom: none !important;
}

/* Таблица наличия — border-collapse: separate для border-radius */
table.product-stock {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-top: 16px;
    margin-bottom: 0;
    width: 100%;
}

/* Общие стили ячеек */
#product_tarifs_by_count td,
table.product-stock td {
    border: none;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
    text-align: center;
    padding: 10px 12px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
}

#product_tarifs_by_count tr:last-child td,
table.product-stock tr:last-child td {
    border-bottom: none;
}
#product_tarifs_by_count tr:last-child,
#product_total_table tr:last-child {
    border-bottom: none;
}

/* Скругление угловых ячеек таблицы остатков */
table.product-stock tr:first-child td:first-child { border-radius: 6px 0 0 0; }
table.product-stock tr:first-child td:last-child  { border-radius: 0 6px 0 0; }
table.product-stock tr:last-child td:first-child  { border-radius: 0 0 0 6px; }
table.product-stock tr:last-child td:last-child   { border-radius: 0 0 6px 0; }

#block-system-main .content .product-stock .t_stock {
    background: #f8f8f8;
    color: #555;
    font-weight: 300;
}

#block-system-main .content .product-stock .stock_t {
    background: #fff;
    color: #667;
}

/* Текстильные остатки по размерам */
.attributes .stock_textile_block {
    display: flex;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    margin-top: 16px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    color: #555;
}
.attributes .stock_textile {
    width: 25%;
    padding: 10px 12px;
    text-align: center;
    float: none;
}
.attributes div.product-stock {
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 0;
}
.attributes div.product-stock:empty {
    display: none;
}
.attributes .field-collection-container {
    margin-bottom: 0;
    border-bottom: none;
}
.attributes .field-collection-container .field-items .field-item {
    margin-bottom: 0;
}
.attributes .field-collection-view {
    border: none;
    border-bottom: 1px solid #e8e8e8 !important;
    background: #fff;
    padding: 9px 12px;
    margin: 0;
    color: #333;
}
.attributes .field-collection-view.field-collection-view-final {
    border-bottom: none !important;
}
.attributes .field-name-field-product-stock-size,
.attributes .field-name-field-stock-p,
.attributes .field-name-field-stock-de {
    width: 25%;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    text-align: center;
}
.attributes .field-collection-container .field-name-field-stock-p-next,
.attributes .field-collection-container .field-name-field-stock-p-next-date {
    display: none;
}

/* Блок остатков по всем цветам — полная ширина страницы */
.colors-stocks-block {
    flex-basis: 100%;
    width: 100%;
    margin-top: 20px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
}
.colors-stocks-block .cs-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-bottom: 8px;
    padding: 0;
    background: none;
    border: none;
}
.colors-stocks-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin: 0;
}
.colors-stocks-table th,
.colors-stocks-table td {
    border: none;
    border-bottom: 1px solid #e8e8e8;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    padding: 10px 12px;
    text-align: center;
    background: #fff;
}
.colors-stocks-table th {
    background: #f8f8f8;
    color: #555;
    font-weight: 300;
}
.colors-stocks-table th.cs-th-photo { text-align: left; }
.colors-stocks-table th.cs-th-stock,
.colors-stocks-table td.cs-stock    { white-space: nowrap; }
.colors-stocks-table th.cs-th-next,
.colors-stocks-table td.cs-next     { white-space: nowrap; }
.colors-stocks-table td { color: #667; }
.colors-stocks-table td.cs-photo {
    padding: 4px 8px;
	width: 70px;
}
.colors-stocks-table td.cs-photo img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: cover;
}
.colors-stocks-table td.cs-color {
    text-align: left;
    color: #333;
    padding-left: 8px;
}
.colors-stocks-table .cs-article {
    color: #aaa;
    font-size: 14px;
}
.colors-stocks-table td.cs-instock { color: #2a7c2a; }
.colors-stocks-table tbody tr:hover td { background: #f4fafd; }
.colors-stocks-table tr.cs-current td { background: #f0f7ff; }
.colors-stocks-table tr.cs-current:hover td { background: #e8f3fc; }
.colors-stocks-table tbody tr:last-child td { border-bottom: none; }
.colors-stocks-table thead tr th:first-child { border-radius: 6px 0 0 0; }
.colors-stocks-table thead tr th:last-child  { border-radius: 0 6px 0 0; }
.colors-stocks-table tbody tr:last-child td:first-child { border-radius: 0 0 0 6px; }
.colors-stocks-table tbody tr:last-child td:last-child  { border-radius: 0 0 6px 0; }

/* Блок похожих товаров */
.similar-products-block {
    flex-basis: 100%;
    width: 100%;
    margin-top: 20px;
    font-family: 'Roboto Condensed', sans-serif;
}
.similar-products-block .sp-title {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-bottom: 8px;
}
.sim-cards {
    display: flex;
    gap: 12px;
}
.sim-card {
    flex: 1;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.sim-card:hover {
    border-color: #289dcc;
    box-shadow: 0 2px 8px rgba(40,157,204,0.15);
}
.sim-img a { display: block; }
.sim-img img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
}
.sim-article {
    font-size: 13px;
    color: #aaa;
    margin-top: 8px;
}
.sim-title {
    margin-top: 6px;
    flex: 1;
}
.sim-title a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.3;
}
.sim-title a:hover { color: #289dcc; }
.sim-price {
    margin-top: 10px;
    font-size: 16px;
    color: #289dcc;
    white-space: nowrap;
}
.sim-price .sim-currency {
    font-size: 14px;
    color: #aaa;
}

/* Таблица итогов */
#product_total_table {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-top: 16px;
}
#product_total_table table {
    border: none;
    background: #fff;
    margin-bottom: 0;
    width: 100%;
}
#product_total_table td {
    border: none;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
    padding: 9px 12px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
}
#product_total_table tr:last-child td { border-bottom: none; }
#product_total_table .total {
    font-size: 17px;
    color: #289dcc;
}

/* Артикул */
.sku-m {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    color: #555;
    font-weight: 300;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 6px 6px 0 0;
    padding: 10px 12px;
    margin-top: 0;
    margin-bottom: -1px;
}

.t_title_m {background-color: #f1f1f1;}

.product_buy .add_to_cart {
    float: left;
    margin-right: 15px;
}
.product_buy .add_to_cart .ajax-progress {
    display: none;
}
.product_buy .add_to_cart .form-item-count label {
    display: none;
}
.product_buy .add_to_cart .form-item-count {
    margin: 0;
    float: left;
}
.product_buy .add_to_cart .form-item-count .form-text {
    border: 1px solid #d0d0d0;
    border-right: none;
    border-radius: 4px 0 0 4px;
    height: 38px;
    width: 70px;
    margin: 0;
    color: #333;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    padding: 0 10px;
    box-sizing: border-box;
}
.product_buy .form-submit,
.product_buy .favorite_link a,
a.form-submit {
    height: 38px;
    border-radius: 0 4px 4px 0;
    border: none;
    background-color: #8cd50b;
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    margin: 0;
    font-size: 16px;
    padding: 0 18px;
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s;
}
.product_buy .form-submit:hover {
    background-color: #7ec009;
}
.product_buy .btn-icon {
    display: block;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}
.product_buy .add_to_cart .form-submit {
    float: left;
}
.product_buy .apply,
.product_buy .favorite_link,
.product_buy .kp_link,
.product_buy .notify_link {
    float: left;
    margin: 0 11px 10px 0;
}
.product_buy .apply a {
    background-image: none;
    border-radius: 4px;
}
.product_buy .favorite_link a {
    background: #00a0e3;
    border-radius: 4px;
}
.product_buy .favorite_link a:hover {
    background: #0090d0;
}
.product_buy .kp_link a {
    background: #00a0e3;
    border-radius: 4px;
}
.product_buy .kp_link a:hover {
    background: #0090d0;
}
.product_buy .form-submit,
.product_buy .kp_link a {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 0 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.product_buy .notify_link a,
.product_buy .notify_link a:hover {
    background: #00a0e3;
    border-radius: 4px;
}
.product_buy .notify_link
#product_tarifs_by_count {
    margin-top: 17px;
}


#product_tarifs_by_count .t_title_m,
#product_tarifs_by_count .t_title {
    background: #f8f8f8;
    color: #555;
    font-weight: 300;
}

#product_tarifs_by_count .t_title_ {
    background: #fff;
    color: #555;
}

#product_tarifs_by_count .t_blue {
    color: #289dcc;
    font-size: 17px;
    font-family: 'Roboto Condensed', sans-serif;
}
.product_buy form {
    margin: 0;
}

#apply_forms .form-text {
    height: 30px;
    margin: 0;
}
#apply_forms .form-item-type,
#apply_forms .form-item-place,
#apply_forms .form-item-colors-count,
#apply_forms .form-item-area {
    float: left;
    margin-right: 15px;
}
#apply_forms .form-item-backing {
    float: left;
    margin: 38px 0 0 10px;
}
#apply_forms .form-item-type select,
#apply_forms .form-item-place select,
#apply_forms .form-item-colors-count select {
    min-width: 100%;
    height: 30px;
}

#apply_forms form {
    background: #f1f1f1;
    padding: 10px 20px;
    border-bottom: 2px solid #fff;
}
#apply_forms form .form-actions {
    margin: 18px 0 0;
    text-align: right;
}
#apply_forms form .form-actions .save {
    display: none;
}
#apply_forms form .form-actions .delete {
    background: none;
    padding: 0;
    height: 18px;
    line-height: 18px;
    color: #f00;
    border: none;
}
#apply_forms form .form-actions .ajax-progress {
    display: none;
}
#apply_forms form .grippie {
    display: none;
}
#apply_forms .form-item-comment .form-textarea {
    height: 40px;
}
#apply_forms .add_more {
    text-align: right;
    padding: 18px 0 20px;
}

.dib {
    display: inline-block;
    width: 100%;
    padding-top: 0;
}
.commerce-line-item-views-form .info {
    float: left;
}

fieldset {
    border-radius: 0;
    border: none;
    margin: 0 0 10px;
    padding: 0;
}
fieldset legend {
    border-radius: 0;
    background: #f2f2f2;
    border: none;
    margin: 0;
    position: static;
    height: auto;
}
fieldset .fieldset-wrapper {
    margin: 0;
    padding: 10px 20px 20px;
    border: 1px solid #eee;
    border-top: 0;
}

.commerce-line-item-views-form th.views-field-title {
    height: auto;
    vertical-align: middle;
    padding: 0 10px;
}
.commerce-line-item-views-form td.views-field-title {
    padding: 10px;
}

.product_buy.textile {
    margin-left: 0;
}
.product-right-box {
    margin-left: 385px;
}

.product_buy.textile .add_to_cart .item {
    float: left;
    width: 25%;
    line-height: 1.4;
    padding: 5px 0;
}
.product_buy.textile .add_to_cart .item span {
    margin: 0 8px;
    display: block;
	font-size: 13px;
	text-align: center;
}
.product_buy.textile .add_to_cart .header {
    background: #eee;
}
.product_buy.textile .add_to_cart .tr {
    border-bottom: 1px solid #eee;
}
.product_buy.textile .add_to_cart .form-item {
    margin: 0;
    float: left;
    width: 25%;
}
.product_buy.textile .add_to_cart {
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    margin: 15px 0;
	width: 100%;
}
.product_buy.textile .add_to_cart .form-submit {
    float: right;
    margin-top: 2px;
}

.cart td .size .value {
    color: #289dcc;
}

/* ===== КОРЗИНА ===== */

/* Таблица в card-стиле */
.cart > table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.cart td, .cart th {
    border: none !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-right: 1px solid #e8e8e8 !important;
    padding: 10px 14px;
}
.cart td:last-child, .cart th:last-child {
    border-right: none !important;
}
.cart tr.last td,
.cart tbody tr:last-child td {
    border-bottom: none !important;
}
.cart th {
    background: #f8f8f8;
    color: #555;
    font-weight: normal;
    font-size: 15px;
    white-space: nowrap;
    text-align: center;
}
.cart thead th:first-child { border-radius: 6px 0 0 0; }
.cart thead th:last-child  { border-radius: 0 6px 0 0; }
.cart tbody tr.last  td:first-child,
.cart tbody tr:last-child td:first-child { border-radius: 0 0 0 6px; }
.cart tbody tr.last  td:last-child,
.cart tbody tr:last-child td:last-child  { border-radius: 0 0 6px 0; }

/* Кнопка удалить */
.cart td.delete a.cart-delete-btn {
    background: none;
    text-indent: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e8e8e8;
    color: #aaa;
    margin: auto;
    position: static;
    top: auto;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-decoration: none;
}
.cart td.delete a.cart-delete-btn svg {
    fill: currentColor;
    display: block;
}
.cart td.delete a.cart-delete-btn:hover {
    background: #fff0f0;
    border-color: #e05555;
    color: #e05555;
}

/* Футер */
.cart .footer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
}
.cart .footer .left {
    float: none;
    flex-shrink: 0;
    border-radius: 6px;
    height: auto;
    padding: 8px 15px;
    min-width: 90px;
}
.cart .footer .center {
    float: none;
    flex: 1;
}
.cart .footer .center .form-textarea {
    width: 100%;
    box-sizing: border-box;
}
.cart .footer .right {
    float: none;
    flex-shrink: 0;
    text-align: right;
}
.cart .footer .right .total .value {
    color: #289dcc;
}
.cart .footer .clear {
    display: none;
}

#popup_applies_list .form-item-type,
#popup_applies_list .form-item-place,
#popup_applies_list .form-item-area,
#popup_applies_list .form-item-colors-count {
    float: left;
    margin-right: 15px;
    margin-top: 0;
}
#popup_applies_list .form-text {
    margin: 0;
}
#popup_applies_list .form-select {
    min-width: 100%;
}
#popup_applies_list form {
    background: #eee;
    padding: 5px 0;
    margin: 8px 0 18px;
}
#popup_applies_list form > div {
    margin: 18px;
}
#cart_item_apply_popup .add_more {
    text-align: right;
}

.ui-widget-header {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}
.ui-dialog .ui-dialog-title {
    color: #fff;
    color: #444;
    font-weight: normal;
    font-size: 20px;
}
.ui-widget {
    font-family: unset;
}
.ui-dialog .ui-dialog-titlebar-close {
    margin: -20px 0 0 !important;
    background: none !important;
    border: none;
    padding: 0 !important;
}
.ui-dialog .ui-dialog-titlebar-close span {
    margin: 0 !important;
}

.products_list table {
    border: none;
    background: #fff;
    margin-bottom: 0;
}

.products_list tr {
    border: none;
}

.products_list td {
    width: 20%;
    vertical-align: top;
    padding: 4px;
    border: none;
    height: 1px;
    background: #fff;
}
.product_colors_links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    position: relative;
    top: 2px;
}
.product_colors_links .item {
    border: 1px solid #ddd;
    cursor: pointer;
    width: 48px;
    padding: 2px;
    border-radius: 6px;
    flex-shrink: 0;
}
.product_colors_links .item img {
    display: block;
}
.products_list .title {
    line-height: 1.3;
    margin: 10px 0;
	min-height: 36px;
}
.products_list .img img {
    display: block;
    margin: 0 auto;
}

.products_list .art .label {
    color: #289dcc;
}
.products_list .favorite_link {
    text-align: right;
    margin-bottom: 8px;
}
.product_colors_links .item.current {
    border-color: #289dcc;
	-webkit-box-shadow: 0 0 10px rgba(0,0,0,.1);
    box-shadow: 0 0 10px rgba(0,0,0,.1);
}

.product_page_colors_links {
    overflow: hidden;
    margin-top: 16px;
}
.product_page_colors_links .item {
    float: left;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin: 0 8px 8px 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.product_page_colors_links .item:hover {
    border-color: #289dcc;
    box-shadow: 0 2px 6px rgba(40,157,204,0.15);
}
.product_page_colors_links .item img {
    display: block;
    width: 52px;
    height: 52px;
    padding: 4px;
}
.product_page_colors_links .item.current {
    border-color: #289dcc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.product_item .favorite_link {
    position: absolute;
    top: 8px;
    right: 8px;
}
.product_item .kp_link {
    position: absolute;
    top: 32px;
    right: 8px;
}
.product_item .favorite_link .flag-throbber,
.product_item .kp_link .flag-throbber {
    display: none;
}
.product_item .favorite_link a,
.product_item .kp_link a {
    font-size: 0;
}
.product_item .favorite_link a { color: #aaa; }
.product_item .favorite_link a svg { fill: currentColor; }
.product_item .favorite_link a.unflag-action { color: #289dcc; }
.product_item .kp_link a { color: #aaa; }
.product_item .kp_link a svg { fill: currentColor; }
.product_item .kp_link a.unflag-action { color: #289dcc; }

.cart td, .cart th {
    border: 1px solid #e9e9e9;
    padding: 10px;
}
.cart th {
    background: #f8f8f8;
    color: #667;
    font-weight: normal;
    white-space: pre;
}
.cart td.info {
    width: 350px;
}
.cart td.apply_price {
    width: 120px;
}
.cart td.count .form-text {
    width: 50px;
    height: 34px;
    width: 80px;
    border: 1px solid #c0d59a;
    font-size: 15px;
    text-align: center;
    color: #667;
    font-family: Roboto Condensed;
}
.cart td.img {
    width: 80px;
}
.cart td.count {
    width: 80px;
}
.cart {
    font-family: Roboto Condensed;
    font-size: 15px;
}
.cart td.info {
    vertical-align: top;
}
.cart td.info .title {
    line-height: 1.4;
    margin-bottom: 15px;
}
.cart td.info .stoks {
    line-height: 1.3;
    font-size: 14px;
}
.cart td.info .stoks .stock-row {
    color: #555;
    font-size: 13px;
}
.cart td.info .stoks .stock-row .value {
    color: #289dcc;
}
.cart td.apply {
    width: 240px;
}
.cart td.apply .edit_link {
    text-align: center;
}
.cart td.apply .edit_link .ajax-progress {
    display: none;
}
.cart td.apply .applies b {
    font-weight: normal;
}
.cart td.apply .applies {
    line-height: 1.33;
    font-size: 14px;
}
.cart td.apply .applies ul li {
    padding: 10px;
    margin: 0 -10px;
    border-top: 1px solid #eee;
}
.cart td.apply .applies ul li.first {
    margin-top: 10px;
}
.cart td.apply .applies ul li.last {
    padding-bottom: 0;
}
.cart td.apply .applies .apply_comment .value {
    display: none;
}
.cart td.apply .applies .apply_comment b {
    position: relative;
    display: inline-block;
    padding-right: 8px;
    cursor: pointer;
    margin-right: 10px;
}
.cart td.apply .applies .apply_comment b:after {
    top: 50%;
    left: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(102, 102, 102, 0);
    border-top-color: #667;
    border-width: 4px;
    margin-left: -4px;
    margin-top: -1px;
}

.cart td.unit_price .value,
.cart td.apply_price .value,
.cart td.total .value {
    white-space: pre;
}

#popup_applies_list,
#popup_applies_list .form-text,
#popup_applies_list .form-select,
#popup_applies_list .form-submit {
    font-family: Roboto Condensed;
    font-size: 14px;
}
#popup_applies_list form .form-actions {
    margin-bottom: 0;
}
#popup_applies_list form .form-actions .form-submit {
    margin-bottom: 0;
}
.ui-dialog .ui-dialog-content {
    padding: 15px;
}

.grippie {
    display: none;
}

.cart td.delete a {
    background: url(../images/delete-cart.png) no-repeat;
    text-indent: -9999px;
    display: inline-block;
    text-align: left;
    width: 15px;
    height: 15px;
    position: relative;
    top: 5px;
}
.cart .total {
    border-right: none;
}
.cart .delete {
    border-left: none;
}
.cart td.delete .ajax-progress {
    display: none;
}

.cart .apply,
.cart .count,
.cart .unit_price,
.cart .apply_price,
.cart .total {
    text-align: center;
}

.cart td.apply .applies .delete_apply_link {
    text-align: right;
}
.cart td.apply .applies .delete_apply_link a {
    color: #289dcc;
    font-weight: normal;
}

.cart .footer .left {
    float: left;
    border: 1px solid #e8e8e8;
    margin-right: 30px;
    height: 53px;
}
.cart .footer .left .item {
    text-align: center;
    padding: 6px 15px;
    line-height: 1.3;
}
.cart .footer .center {
    float: left;
}
.cart .footer .center .form-textarea {
    height: 53px;
    font-family: Roboto Condensed;
    font-size: 15px;
}
.cart .footer .right {
    float: right;
    text-align: right;
}
.cart .footer .center form {
    margin: 0;
}
.cart .footer .center .form-item {
    margin: 0;
}
.cart .footer .right .total {
    font-size: 20px;
    white-space: nowrap;
}
.cart .footer .right .checkout_link {
    text-align: right;
    margin: 3px 0 0;
}
.cart .footer .right .form-submit,
.cart .footer .right > a.form-submit {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    background: #01a0e4;
    color: #fff !important;
    padding: 0 21px;
    font-size: 18px;
    font-family: 'Roboto Condensed', sans-serif;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s;
}
.cart .footer .right .checkout_link .form-submit:hover { background: #0090d0; }
.cart .footer .right .excel_link .form-submit { background: #5cb85c; }
.cart .footer .right .excel_link .form-submit:hover { background: #4cae4c; }
.cart .footer .right > a.form-submit { background: #e0e0e0; color: #555 !important; }
.cart .footer .right > a.form-submit:hover { background: #d0d0d0; }

/*.catalog_filters form > div > .form-item, .catalog_filters form > div > .form-actions {*/
/*margin-right: 15px;*/
/*display: inline-block;*/
/*}*/
.catalog_filters form .form-text {
    margin: 0;
}
.catalog_filters {
    margin-bottom: 15px;
}

.catalog_filters form > div > .form-actions #edit-submit,
.site-filters-form > div > .form-actions #edit-submit {
    background: #01a0e2;
    color: #fff;
    border: none;
}

#header {
    max-width: unset;
}
.container {
    margin: 0 auto;
    max-width: 1440px;
}
.table { display: table; width: 100%; }
.td    { display: table-cell; vertical-align: middle; }

/* =====================
   ШАПКА — верхняя полоса
   ===================== */
.site_header .header {
    background: #f5f5f5;
}
.site_header .header .header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 30px;
    padding: 0 10px;
}
.site_header .header .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.site_header .header .header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
	padding-top: 2px;
}
.header-lang
.site_header .header .header-phone:hover { color: #289DCC; }
.site_header .header .header-phone svg { flex-shrink: 0; fill: currentColor; }

/* Переключатель языка в header */
.site_header .header .header-lang .language-switcher-locale-url {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}
.site_header .header .header-lang .language-switcher-locale-url li { margin: 0; }
.site_header .header .header-lang .language-switcher-locale-url li a {
    color: #667;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    padding: 7px 8px;
    transition: color 0.2s;
}
.site_header .header .header-lang .language-switcher-locale-url li a:hover { color: #289DCC; }
.site_header .header .header-lang .language-switcher-locale-url .active a,
.site_header .header .header-lang .language-switcher-locale-url li.active a {
    color: #289DCC;
    background: #fff;
    font-weight: 600;
}

/* =====================
   ШАПКА — основная строка
   ===================== */
.site_header .center {
    background: #fff;
}
.site_header .center .center-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    padding: 0 10px;
}
.site_header .center .logo {
    flex-shrink: 0;
    padding: 0;
}
.site_header .center .logo img { display: block; }

/* Группа иконок справа */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Базовая кнопка-иконка — без фона и рамки */
.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    color: #667;
    cursor: pointer;
    transition: color 0.15s;
    padding: 0;
    margin: 0;
    box-shadow: none;
    gap: 6px;
}
.header-icon-btn svg {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}
.header-icon-btn:hover { color: #289DCC; background: none; }
.header-icon-btn svg { display: block; }

/* Иконки корзины, избранного и КП */
.header-favorites-btn,
.header-cart-btn,
.header-quote-btn {
    position: relative;
    text-decoration: none;
}
.header-badge {
    position: absolute;
    top: 0;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #289DCC;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
    border-radius: 9px;
    text-align: center;
    pointer-events: none;
}

.header-profile-label {
    font-size: 14px;
    color: inherit;
    white-space: nowrap;
}

/* ---- Поиск inline ---- */
.header-search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-search-form-wrap {
    position: relative;
    width: 500px;
}
.header-search-wrap .views-exposed-form { width: 100%; margin: 0; }
.header-search-wrap .views-exposed-widgets {
    margin: 0;
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 35px;
    height: 40px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.header-search-wrap .views-exposed-widgets:focus-within {
    border-color: #289DCC;
}
.header-search-wrap .views-exposed-widget { padding: 0 !important; float: none; }
.header-search-wrap #edit-search-wrapper { flex: 1; }
.header-search-wrap .form-text {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    background: transparent;
    margin: 0;
    outline: none;
    box-sizing: border-box;
}
.header-search-wrap .form-text::placeholder { color: #aaa; }

/* Кнопка поиска — круглая с иконкой */
.header-search-wrap .views-submit-button {
    flex-shrink: 0;
    margin: 4px -5px 4px 0px;
}
.header-search-wrap .form-submit {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: transparent;
    font-size: 0;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}
.header-search-wrap .form-submit:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* Иконка лупы — поверх кнопки submit */
.header-search-icon {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    cursor: pointer;
    pointer-events: none;
    width: 20px;
    height: 20px;
}

/* ---- Профиль ---- */
.header-profile-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.header-profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 1000;
}
.header-profile-wrap.open .header-profile-dropdown { display: block; }
.header-profile-dropdown a {
    display: block;
    padding: 11px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
}
.header-profile-dropdown a:hover { background: #f5f5f5; color: #289DCC; }
.header-profile-dropdown a + a { border-top: 1px solid #eee; }

/* Дропдаун для анонимных пользователей */
.header-anon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.header-anon-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 1000;
}
.header-anon-wrap.open .header-anon-dropdown { display: block; }
.header-anon-dropdown p {
    margin: 0;
    padding: 11px 18px;
    font-size: 13px;
    color: #667;
    border-bottom: 1px solid #eee;
}
.header-anon-dropdown a {
    display: block;
    padding: 11px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
}
.header-anon-dropdown a:hover { background: #f5f5f5; color: #289DCC; }
.header-anon-dropdown a + a { border-top: 1px solid #eee; }

body ul.primary {
    background: #f6f6f6 none repeat scroll 0 0;
    display: table;
    width: 100%;
}
body ul.primary.clearfix:after {
    display: none;
}
body ul.primary li {
    border: 1px solid #ddd;
    display: table-cell;
    float: none;
    width: 20%;
}
body ul.primary li a {
    border-radius: 0;
    display: block;
    float: none;
    line-height: 34px;
    margin: 0;
    text-align: center;
    padding: 0 20px;
}
body ul.primary li a.active {
    background: #01a0e2 none repeat scroll 0 0;
    font-weight: normal;
}
body .tabs-wrapper {
    border: medium none;
    margin-bottom: 30px;
}

h1.page-title {
    margin: 0 0 18px;
}
.breadcrumb {
}
.breadcrumb a:first-child {
    margin-left: 0;
}

body.page-user ul.primary li:first-child {
    display: none;
}

th {
    padding: 6px 10px;
    color: #444;
    background: #f1f1f1;
    border: 1px solid #ddd;
    font-weight: normal;
}
td {
    background: #fff;
    border: 1px solid #ddd;
    color: #444;
    padding: 6px 10px;
}

.product_buy {
    width: 100%;
}
.product_buy .messages {
    margin-top: 0;
}
#product-display .fb {
    margin-top: 0;
}

.product_item .price .value {
    float: right;
    color: #289dcc;
    font-family: "Roboto Condensed";
    font-size: 20px;
}
.product_item {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    box-sizing: border-box;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.product_item .colors_wrap {
    flex: 1;
}
.product_item .price {
    margin-top: auto;
}

.product_item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border-color: #d0d0d0;
}

.product_item .price {
    border-top: 1px solid #eee;
    line-height: 25px;
    margin: 8px -12px 0;
    padding: 8px 12px 0;
}
.product_item .price .suffix {
    font-size: 15px;
}
.order_info_page.cart td.apply .applies ul li.first {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.hide {
    display: none;
}

.term_page {
    display: flex;
    flex-wrap: wrap;
}
.term-description {
    padding-top: 24px;
    border-top: 1px solid #eee;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}
.term-description h1,
.term-description h2,
.term-description h3 {
    font-size: 18px;
    margin: 0 0 12px;
    color: #333;
}
.term_page .catalog_filters {
    width: 250px;
    min-width: 250px;
}
.catalog_right {
    flex: 1;
    min-width: 0;
	margin-left: 4px;
}


.catalog-filters-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 22px;
    font-weight: 300;
    color: #667;
    margin: 13px 0 8px 0;
}

.site-filters-form {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.site-filters-form > div > .form-item {
    padding: 12px 15px;
    border-top: 1px solid #ddd;
    margin: 0;
}
.site-filters-form > div > .form-item:first-child {
    border: none;
}
.site-filters-form > div > .form-type-item {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}
.site-filters-form > div > .form-type-item .form-item {
    margin: 12px 0 0;
}
.site-filters-form .form-type-item > label {
    display: block;
    width: 100%;
}
.site-filters-form .form-type-item .form-type-textfield {
    width: 82px;
}
.site-filters-form .form-type-item .form-type-textfield input {
    width: 100%;
}

.site-filters-form .form-checkboxes {
    margin-top: 10px;
    font-size: 13px;
}
.site-filters-form .form-checkboxes input {
    position: relative;
    top: 2px;
}
.site-filters-form .form-checkboxes .form-item {
    margin: 2px 0;
}

.site-filters-form > div > .form-item > label {
    position: relative;
    padding-left: 20px;

    display: block;

    cursor: pointer;
}

.site-filters-form > div > .form-item > label:after,
.site-filters-form > div > .form-item > label:before {
    top: 45%;
    left: 6px;

    bottom: auto;

    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
.site-filters-form > div > .form-item > label:after {
    border-color: rgba(255, 255, 255, 0);
    border-top-color: #fff;
    border-width: 4px;
    margin-left: -4px;
}
.site-filters-form > div > .form-item > label:before {
    border-color: rgba(68, 68, 68, 0);
    border-top-color: #444;
    border-width: 5px;
    margin-left: -5px;
}

.site-filters-form > div > .form-item.open > label:after,
.site-filters-form > div > .form-item.open > label:before {
    bottom: 45%;
    left: 6px;

    top: auto;

    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
.site-filters-form > div > .form-item.open > label:after {
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #fff;
    border-width: 4px;
    margin-left: -4px;
}
.site-filters-form > div > .form-item.open > label:before {
    border-color: rgba(68, 68, 68, 0);
    border-bottom-color: #444;
    border-width: 5px;
    margin-left: -5px;
}

.site-filters-form > div > .form-item > .form-item,
.site-filters-form > div > .form-item > .form-checkboxes {
    display: none;
}

.site-filters-form > div > .form-item.open > .form-item,
.site-filters-form > div > .form-item.open > .form-checkboxes {
    display: block;
}

.site-filters-form > div > .form-item:hover {
    background: #f5fbff;
}

.site-filters-form .form-actions {
    margin: 0;
    padding: 12px 15px;
    border-top: 1px solid #ddd;
}
.site-filters-form .form-actions input {
    margin: 0 0 8px;
    width: 100%;
}
.site-filters-form .form-actions input:last-child {
    margin-bottom: 0;
}
.site-filters-form .form-actions input#edit-clear {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
}

.site-filters-form > div > .form-item .form-checkboxes {
    max-height: 300px;
    overflow: auto;
}

.site-filters-form .form-type-item .form-type-textfield.form-item-stock-count {
    width: 100%;
}

.site-sort-form {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    display: flex;
    justify-content: flex-end;
    margin: 0 4px 4px 4px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.site-sort-form .form-item {
    margin: 0;
    display: flex;
    align-items: center;
}
.site-sort-form .form-item label {
    margin-right: 10px;
}
.site-sort-form input[type="submit"] {
    display: none;
}

/* === Catalog Page — карточки категорий === */
.catalog-page {
    max-width: 1440px;
    margin: 0 auto;
}
.catalog-page .items > .item-list > ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* Карточка категории */
.catalog-page .items > .item-list > ul > li {
    list-style: none;
    padding: 0;
    border: none;
    margin: 0;
}
/* Фото-шапка карточки */
.catalog-page .items > .item-list > ul > li > .name {
    position: relative;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: #d0d2d6;
    margin: 0 0 10px;
}
/* Фоновое фото через ::before */
.catalog-page .items > .item-list > ul > li > .name::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.catalog-page .items > .item-list > ul > li:hover > .name::before {
    transform: scale(1.06);
}
/* Затемнение */
.catalog-page .items > .item-list > ul > li > .name::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    pointer-events: none;
}
/* Ссылка названия — поверх фото */
.catalog-page .items > .item-list > ul > li > .name > a {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 10px 12px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    line-height: 1.3;
    display: flex;
    align-items: flex-end;
}
/* Счётчик товаров — бейдж на карточке */
.catalog-page .items > .item-list > ul > li > .name .cat-count {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 1;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.35);
    border-radius: 3px;
    padding: 2px 6px;
    line-height: 1.4;
}
/* Счётчик в подкатегориях — просто серый текст */
.catalog-page .items > .item-list > ul > li > .item-list .cat-count {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #aaa;
}
.catalog-page .items > .item-list > ul > li:hover > .name {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
/* Подкатегории под карточкой */
.catalog-page .items > .item-list > ul > li > .item-list {
    margin: 0;
    padding: 0;
}
.catalog-page .items > .item-list > ul > li > .item-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.catalog-page .items > .item-list > ul > li > .item-list li {
    list-style: none;
    line-height: 1.3;
    margin-bottom: 5px;
}
.catalog-page .items > .item-list > ul > li > .item-list li:last-child {
    margin-bottom: 0;
}
.catalog-page .items > .item-list > ul > li > .item-list a {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #555;
    text-decoration: none;
    transition: color 0.15s;
}
.catalog-page .items > .item-list > ul > li > .item-list a:hover {
    color: #289DCC;
}
/* Скрываем уровень глубже подкатегорий */
.catalog-page .items > .item-list > ul > li li .item-list {
    display: none;
}
/* Фоновые фото — те же что на главной */
.catalog-page .items > .item-list > ul > li.term-15 > .name::before   { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/umbrellas.webp); }
.catalog-page .items > .item-list > ul > li.term-1 > .name::before    { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/pens.webp); }
.catalog-page .items > .item-list > ul > li.term-1868 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/pens.webp); }
.catalog-page .items > .item-list > ul > li.term-27 > .name::before   { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/drinkware.webp); }
.catalog-page .items > .item-list > ul > li.term-1851 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/drinkware.webp); }
.catalog-page .items > .item-list > ul > li.term-21 > .name::before   { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/office.webp); }
.catalog-page .items > .item-list > ul > li.term-3089 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/office.webp); }
.catalog-page .items > .item-list > ul > li.term-59 > .name::before   { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/clothing.webp); }
.catalog-page .items > .item-list > ul > li.term-125 > .name::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/technology.webp); }
.catalog-page .items > .item-list > ul > li.term-44 > .name::before   { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/bags.webp); }
.catalog-page .items > .item-list > ul > li.term-3091 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/bags.webp); }
.catalog-page .items > .item-list > ul > li.term-18 > .name::before   { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/tools.webp); }
.catalog-page .items > .item-list > ul > li.term-103 > .name::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/kitchen.webp); }
.catalog-page .items > .item-list > ul > li.term-131 > .name::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/outdoor.webp); }
.catalog-page .items > .item-list > ul > li.term-3103 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/outdoor.webp); }
.catalog-page .items > .item-list > ul > li.term-34 > .name::before   { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/promo.webp); }
.catalog-page .items > .item-list > ul > li.term-108 > .name::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/home.webp); }
.catalog-page .items > .item-list > ul > li.term-3205 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/home.webp); }
.catalog-page .items > .item-list > ul > li.term-1521 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/holidays.webp); }
.catalog-page .items > .item-list > ul > li.term-3288 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/holidays.webp); }
.catalog-page .items > .item-list > ul > li.term-1501 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/brands.webp); }
.catalog-page .items > .item-list > ul > li.term-1853 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/brands.webp); }
.catalog-page .items > .item-list > ul > li.term-1493 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/eco.webp); }
/* UK термины */
.catalog-page .items > .item-list > ul > li.term-3154 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/umbrellas.webp); }
.catalog-page .items > .item-list > ul > li.term-3166 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/clothing.webp); }
.catalog-page .items > .item-list > ul > li.term-3158 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/technology.webp); }
.catalog-page .items > .item-list > ul > li.term-3218 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/tools.webp); }
.catalog-page .items > .item-list > ul > li.term-3227 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/kitchen.webp); }
.catalog-page .items > .item-list > ul > li.term-3164 > .name::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/promo.webp); }
/* Адаптив */
@media (max-width: 900px) {
    .catalog-page .items > .item-list > ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}
@media (max-width: 768px) {
    .catalog-page .items > .item-list > ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
@media (max-width: 500px) {
    .catalog-page .items > .item-list > ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .catalog-page .items > .item-list > ul > li {
        display: block;
        width: 100% !important;
    }
    .catalog-page .items > .item-list > ul > li > .name {
        width: 100%;
        height: 130px;
        margin-bottom: 8px;
        box-sizing: border-box;
    }
    .catalog-page .items > .item-list > ul > li > .item-list a {
        font-size: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .catalog-page .items > .item-list > ul > li > .item-list li {
        margin-bottom: 3px;
    }
    .catalog-page .cat-count {
        display: none;
    }
}
/* === End Catalog Page === */

.categories-block .list > .item-list > ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.categories-block .list > .item-list > ul > li {
    height: 160px;
    position: relative;
    background: #E8E8E9;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
/* Фоновое изображение на ::before — для zoom без влияния на текст */
.categories-block .list > .item-list > ul > li::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(/sites/all/themes/medical_zymphonies_theme/images/holidays.webp) no-repeat center center;
    background-size: cover;
    transition: transform 0.4s ease;
}
.categories-block .list > .item-list > ul > li:hover::before {
    transform: scale(1.07);
}
/* Затемнение при hover */
.categories-block .list > .item-list > ul > li::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    pointer-events: none;
}
.categories-block .list > .item-list > ul > li:hover::after {
    background: rgba(0,0,0,0.15);
}
.categories-block .list > .item-list > ul > li:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.categories-block .list > .item-list > ul > li > a {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    color: #fff;
    padding: 5px 10px;
    font-size: 15px;
    text-decoration: none;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 40%);
    transition: background 0.3s;
    z-index: 1;
}

.categories-block .list > .item-list > ul > li.term-15::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/umbrellas.webp); }
.categories-block .list > .item-list > ul > li.term-1::before   { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/pens.webp); }
.categories-block .list > .item-list > ul > li.term-1868::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/pens.webp); }
.categories-block .list > .item-list > ul > li.term-27::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/drinkware.webp); }
.categories-block .list > .item-list > ul > li.term-1851::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/drinkware.webp); }
.categories-block .list > .item-list > ul > li.term-21::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/office.webp); }
.categories-block .list > .item-list > ul > li.term-3089::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/office.webp); }
.categories-block .list > .item-list > ul > li.term-59::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/clothing.webp); }
.categories-block .list > .item-list > ul > li.term-125::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/technology.webp); }
.categories-block .list > .item-list > ul > li.term-44::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/bags.webp); }
.categories-block .list > .item-list > ul > li.term-3091::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/bags.webp); }
.categories-block .list > .item-list > ul > li.term-18::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/tools.webp); }
.categories-block .list > .item-list > ul > li.term-103::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/kitchen.webp); }
.categories-block .list > .item-list > ul > li.term-131::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/outdoor.webp); }
.categories-block .list > .item-list > ul > li.term-3103::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/outdoor.webp); }
.categories-block .list > .item-list > ul > li.term-34::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/promo.webp); }

.categories-block .list > .item-list > ul > li.term-108::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/home.webp); }
.categories-block .list > .item-list > ul > li.term-3205::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/home.webp); }

/* UK-термины — те же фоновые изображения */
.categories-block .list > .item-list > ul > li.term-3154::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/umbrellas.webp); }
.categories-block .list > .item-list > ul > li.term-1868::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/pens.webp); }
.categories-block .list > .item-list > ul > li.term-1851::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/drinkware.webp); }
.categories-block .list > .item-list > ul > li.term-3089::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/office.webp); }
.categories-block .list > .item-list > ul > li.term-3166::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/clothing.webp); }
.categories-block .list > .item-list > ul > li.term-3158::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/technology.webp); }
.categories-block .list > .item-list > ul > li.term-3091::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/bags.webp); }
.categories-block .list > .item-list > ul > li.term-3218::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/tools.webp); }
.categories-block .list > .item-list > ul > li.term-3227::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/kitchen.webp); }
.categories-block .list > .item-list > ul > li.term-3103::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/outdoor.webp); }
.categories-block .list > .item-list > ul > li.term-3164::before  { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/promo.webp); }

/* Без фото — скрываем ::before и уменьшаем высоту */
.categories-block .list > .item-list > ul > li.term-1521::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/holidays.webp); }
.categories-block .list > .item-list > ul > li.term-3288::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/holidays.webp); }

.categories-block .list > .item-list > ul > li.term-1501::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/brands.webp); }
.categories-block .list > .item-list > ul > li.term-1853::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/brands.webp); }

.categories-block .list > .item-list > ul > li.term-1493::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/eco.webp); }
.categories-block .list > .item-list > ul > li.term-3311::before { background-image: url(/sites/all/themes/medical_zymphonies_theme/images/eco.webp); }

#main-menu li li {
    position: static;
}
#main-menu li ul {
    top: 100% !important;
    left: 0 !important;
}
#main-menu li li ul {
    top: -4px !important;
    left: 100% !important;
    margin-left: -1px;
    min-height: 100%;
    background: none;
}
#main-menu li li li {
    background: #fff;
}

.term_page .catalog_filters .categories {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    list-style: none;
    margin-left: 0;
}
.term_page .catalog_filters .categories li {
    border-bottom: 1px solid #e8e8e8;
}
.term_page .catalog_filters .categories li:last-child {
    border: none;
}
.term_page .catalog_filters .categories a {
    display: block;
    padding: 10px 15px;
    color: #667;
}
.term_page .catalog_filters .categories a:hover {
    background: #f5fbff;
    color: #289dcc;
}

.views-field-field-a {padding: 7px 7px 0 7px;}

/* ========================================
   MOBILE MENU — Offcanvas + Accordion
   ======================================== */
 
.mobile-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 280px;
  width: calc(100% - 280px);
  height: calc(100% - 60px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}
 
body.mobile-menu-open .mobile-overlay {
  display: block;
}
 
a.nav-toggle {
  font-size: 0 !important;
}

/* Мобильные иконки и бургер — скрыты на десктопе */
@media (min-width: 961px) {
  .mobile-bottom-bar,
  .mobile-menu-lang {
    display: none !important;
  }
  /* Десктопные иконки шапки — скрыты на мобильном */
  .header-actions,
  .site_header .header .header-inner {
    display: flex;
  }
  a.nav-toggle {
    display: none !important;
  }
}
 
a.nav-toggle::before {
  font-size: 16px;
  content: '☰  Меню';
  color: #01a0e2;
}
 
body.mobile-menu-open a.nav-toggle::before {
  content: '✕';
  color: #01a0e2;
}
 
@media (max-width: 960px) {
 
  a.nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #01a0e2 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 60px !important;
    height: 60px !important;
    z-index: 1002 !important;
    font-size: 0 !important;
  }
  a.nav-toggle::before {
    content: none;
  }
  /* Иконка бургера — серая */
  a.nav-toggle svg {
    display: block;
    color: #555;
  }
  /* Когда меню открыто — скрыть SVG, показать крестик */
  body.mobile-menu-open a.nav-toggle svg {
    display: none;
  }
  body.mobile-menu-open a.nav-toggle::before {
    content: '✕';
    font-size: 22px;
    color: #555;
  }
 
  #main-menu .menu-navigation-container {
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    transition: left 0.3s ease;
    padding: 60px 0 40px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  }
 
  body.mobile-menu-open .menu-navigation-container {
    left: 0 !important;
  }
 
  /* Сбрасываем десктопные стили меню */
  #main-menu li ul,
  #main-menu li li ul {
    position: static !important;
    top: auto !important;
    left: auto !important;
    float: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    min-height: auto !important;
    margin-left: 0 !important;
  }
 
  #main-menu ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
  }
 
  #main-menu ul.menu li {
    border-bottom: 1px solid #eee;
    position: relative;
    float: none !important;
    display: block !important;
    overflow: visible;
  }
 
  #main-menu ul.menu li a {
    display: block;
    padding: 11px 44px 11px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    background-image: none !important;
  }
 
  #main-menu ul.menu li a:hover {
    background: #f5f5f5;
    color: #000;
  }
 
  /* Стрелка аккордеона */
  #main-menu .sub-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    transition: transform 0.2s ease;
    display: block;
    z-index: 2;
  }
 
  #main-menu li.sub-open > .sub-toggle {
    transform: rotate(90deg);
  }
 
  /* Подменю скрыто по умолчанию */
  #main-menu ul.menu ul.menu {
    display: none;
    background: #f5f5f5;
  }
 
  /* Второй уровень */
  #main-menu ul.menu ul.menu li a {
    padding-left: 28px;
    font-size: 13px;
    color: #555;
  }
 

  
  #main-menu .menu-navigation-container {
  width: 280px;
  max-width: 280px;
}

#main-menu ul.menu {
  width: 280px;
  max-width: 280px;
  margin-bottom: 16px;
}

}

/* === Коммерческое предложение === */
.kp {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
}
.kp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.kp-table td, .kp-table th {
    border: none !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-right: 1px solid #e8e8e8 !important;
    padding: 8px 12px;
    vertical-align: middle;
}
.kp-table td:last-child, .kp-table th:last-child { border-right: none !important; }
.kp-table tbody tr:last-child td { border-bottom: none !important; }
.kp-table th { background: #f8f8f8; color: #555; font-weight: normal; text-align: center; white-space: nowrap; }
.kp-table thead th:first-child { border-radius: 6px 0 0 0; }
.kp-table thead th:last-child  { border-radius: 0 6px 0 0; }
.kp-table tbody tr:last-child td:first-child { border-radius: 0 0 0 6px; }
.kp-table tbody tr:last-child td:last-child  { border-radius: 0 0 6px 0; }

.kp-table input.form-text {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    margin: 0;
}
.kp-table input.kp-apply-type { width: 250px; }
.kp-table td.photo { width: 70px; text-align: center; }
.kp-table td.photo img { display: block; margin: auto; }
.kp-table td.delete { width: 40px; text-align: center; }
.kp-table td.delete a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e8e8e8;
    color: #aaa;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.kp-table td.delete a svg { fill: currentColor; }
.kp-table td.delete a .flag-text { display: none !important; }
.kp-table td.delete a:hover { background: #fff0f0; border-color: #e05555; color: #e05555; }
.kp-table td.qty,
.kp-table td.unit_price,
.kp-table td.markup,
.kp-table td.price_with_markup,
.kp-table td.apply_price,
.kp-table td.total { text-align: center; }
.kp-table .kp-unit-price, .kp-table .kp-price-markup, .kp-table .kp-total { color: #289dcc; }
.kp-table td.info .kp-article { display: block; color: #888; }

.kp-footer { display: flex; justify-content: flex-end; margin-top: 16px; }
.kp-footer-right { text-align: right; min-width: 240px; }
.kp-total-row { font-size: 20px; margin-bottom: 10px; }
.kp-total-row .kp-grand-total { color: #289dcc; }
.kp-save-result { margin-bottom: 10px; font-size: 14px; color: #333; }
.kp-save-result a { color: #289dcc; }
.kp-actions { display: flex; flex-direction: column; }
.kp-save-btn, .kp-excel-btn, .kp-clear-btn {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    background: #01a0e4;
    color: #fff !important;
    padding: 0 21px;
    font-size: 18px;
    font-family: 'Roboto Condensed', sans-serif;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s;
}
.kp-save-btn:hover { background: #0090d0; }
.kp-excel-btn { background: #5cb85c; }
.kp-excel-btn:hover { background: #4cae4c; }
.kp-clear-btn { background: #e0e0e0; color: #555 !important; }
.kp-clear-btn:hover { background: #d0d0d0; }

/* === Checkout === */
#commerce-checkout-form-checkout {
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    max-width: 800px;
}
#commerce-checkout-form-checkout fieldset:not(.checkout-buttons) {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0;
    margin: 0 0 20px 0;
    top: 0;
    background: #fff;
}
#commerce-checkout-form-checkout fieldset:not(.checkout-buttons) legend {
    position: static;
    display: block;
    width: calc(100% + 2px);
    margin-left: -1px;
    margin-top: -1px;
    height: auto;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px 4px 0 0;
    padding: 10px 16px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    color: #555;
    letter-spacing: 0.2px;
    text-indent: 0;
    text-shadow: none;
    box-sizing: border-box;
}
#commerce-checkout-form-checkout fieldset .fieldset-wrapper {
    padding: 16px;
    margin-top: 0;
    border: none;
}
#commerce-checkout-form-checkout .form-item {
    margin-bottom: 14px;
}
#commerce-checkout-form-checkout label {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin-bottom: 6px;
    display: block;
}
#commerce-checkout-form-checkout .form-radios .form-item {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
#commerce-checkout-form-checkout .form-radios .form-item input[type="radio"] {
    flex-shrink: 0;
    margin: 0;
}
#commerce-checkout-form-checkout .form-radios label.option {
    font-weight: normal;
    color: #333;
    font-size: 14px;
    display: inline !important;
    margin: 0;
}
#commerce-checkout-form-checkout .form-select {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    min-width: 260px;
}
#commerce-checkout-form-checkout .form-textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}
#commerce-checkout-form-checkout fieldset.checkout-buttons {
    border: none;
    background: none;
    padding: 0;
}
#commerce-checkout-form-checkout .checkout-continue {
    background: #01a0e4;
    color: #fff;
    border: none;
    border-radius: 4px;
    height: 40px;
    padding: 0 24px;
    font-size: 16px;
    font-family: 'Roboto Condensed', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}
#commerce-checkout-form-checkout .checkout-continue:hover { background: #0090d0; }
#commerce-checkout-form-checkout .checkout-cancel {
    background: #e0e0e0;
    color: #555;
    border: none;
    border-radius: 4px;
    height: 40px;
    padding: 0 24px;
    font-size: 16px;
    font-family: 'Roboto Condensed', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}
#commerce-checkout-form-checkout .checkout-cancel:hover { background: #d0d0d0; }
#commerce-checkout-form-checkout .button-operator {
    margin: 0 10px;
    color: #999;
}

/* === Checkout Review === */
#commerce-checkout-form-review {
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    max-width: 800px;
}
#commerce-checkout-form-review .checkout-help {
    margin-bottom: 16px;
    color: #777;
    font-size: 14px;
}
#commerce-checkout-form-review table.checkout-review {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    border-collapse: collapse;
    margin-bottom: 20px;
    overflow: hidden;
}
#commerce-checkout-form-review table.checkout-review tr.pane-title td {
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 16px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    color: #555;
    letter-spacing: 0.2px;
}
#commerce-checkout-form-review table.checkout-review tr.pane-title:first-child td {
    border-top: none;
}
#commerce-checkout-form-review table.checkout-review tr.pane-data td {
    padding: 12px 16px;
}
#commerce-checkout-form-review table.checkout-review .field-label {
    font-weight: bold;
    color: #444;
    font-size: 14px;
    margin-top: 8px;
}
#commerce-checkout-form-review table.checkout-review .field-item {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}
#commerce-checkout-form-review table.checkout-review .form-item label {
    font-weight: bold;
    color: #444;
    font-size: 14px;
}
#commerce-checkout-form-review .commerce_payment {
    margin-bottom: 16px;
    font-size: 14px;
    color: #777;
}
#commerce-checkout-form-review .checkout-continue {
    background: #01a0e4;
    color: #fff;
    border: none;
    border-radius: 4px;
    height: 40px;
    padding: 0 24px;
    font-size: 16px;
    font-family: 'Roboto Condensed', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}
#commerce-checkout-form-review .checkout-continue:hover { background: #0090d0; }
#commerce-checkout-form-review .checkout-back {
    background: #e0e0e0;
    color: #555;
    border: none;
    border-radius: 4px;
    height: 40px;
    padding: 0 24px;
    font-size: 16px;
    font-family: 'Roboto Condensed', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}
#commerce-checkout-form-review .checkout-back:hover { background: #d0d0d0; }
#commerce-checkout-form-review .button-operator {
    margin: 0 10px;
    color: #999;
}
#commerce-checkout-form-review fieldset.checkout-buttons {
    border: none;
    background: none;
    padding: 0;
}
#commerce-checkout-form-review fieldset.checkout-buttons .fieldset-wrapper {
    border: none;
    padding: 0;
    margin: 0;
}

/* === Кнопка "Наверх" === */
.scroll-to-top {
  position: fixed;
  bottom: 72px;
  right: 24px;
  z-index: 996;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.15s, transform 0.15s;
  padding: 8px 12px;
  margin: 0;
}
.scroll-to-top.visible {
  display: flex;
}
.scroll-to-top svg {
  display: block;
  color: #289dcc;
  fill: #289dcc;
}
.scroll-to-top:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

@media (max-width: 960px) {
  .scroll-to-top {
    bottom: 68px;
    right: 12px;
    width: 38px;
    height: 38px;
    padding: 4px 8px;
  }
}

/* === Плавающие контакты Viber / Telegram === */
.float-contact {
  position: fixed;
  right: 24px;
  z-index: 996;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
}
.float-contact:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.float-contact img {
  display: block;
  filter: brightness(0) invert(1);
}
.float-contact-telegram {
  bottom: 128px;
  background: #29a9eb;
}
.float-contact-telegram img {
  margin-left: -4px;
}
.float-contact-viber {
  bottom: 184px;
  background: #7360f2;
}

@media (max-width: 960px) {
  .float-contact {
    right: 12px;
    width: 38px;
    height: 38px;
  }
  .float-contact img {
    width: 20px;
    height: 20px;
  }
  .float-contact-telegram {
    bottom: 112px;
  }
  .float-contact-viber {
    bottom: 156px;
  }
}


/* Раскрывающийся текст .p2 */
.p2-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.p2-extra.open {
  max-height: 5000px;
}
.p2-toggle-wrap {
  text-align: center;
  margin-bottom: 0;
}

#block-system-main {
  margin-bottom: 0;
}
.p2-toggle-btn {
  display: inline-block;
  padding: 8px 28px;
  background: #289DCC;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}
.p2-toggle-btn:hover {
  background: #1a7fa8;
  color: #fff;
  text-decoration: none;
}

/* ---- Swiper слайдер ---- */
.swiper-slider-wrap {
    width: 100%;
    overflow: hidden;
}
.swiper-slider-wrap .swiper {
    width: 100%;
    height: 500px;
}
.swiper-slide {
    position: relative;
    overflow: hidden;
}
.swiper-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}
.swiper-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.swiper-slide-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 30px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    color: #fff;
}
.swiper-slide-html {
    top: 0;
    bottom: 0;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
}
.swiper-slide-html::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.05) 100%);
    z-index: 0;
}
.swiper-slide-caption h2 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.swiper-slide-caption p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}
/* Баннер с HTML-контентом */
.swiper-slide-html .container {
    position: relative;
    z-index: 1;
    width: 100%;
}
.front-banner {
    max-width: 600px;
    color: #fff;
    padding: 20px 0;
    margin-left: 60px;
    margin-right: auto;
    text-align: left;
    font-family: 'Roboto Condensed', sans-serif;
}
.front-title {
    font-size: 30px !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    color: #fff !important;
    margin: 0 0 15px !important;
    line-height: 1.25;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    opacity: 1 !important;
	font-weight:400;
}
.front-title-bottom {
    font-size: 24px !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    color: #fff !important;
    line-height: 1.25;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    opacity: 1 !important;
}
.front-title-bottom-2 {
    font-size: 24px !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    color: #fff !important;
    margin: 0 0 20px !important;
    line-height: 1.25;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    opacity: 1 !important;
}
.front-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}
.front-list li {
    position: relative;
    padding: 0 0 0 22px;
    font-size: 18px;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.front-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #4fc3f7;
    font-weight: 400;
}
.front-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #289dcc;
    color: #fff !important;
    border-radius: 4px;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s;
    margin-right: 10px;
    border: none;
    box-shadow: none;
    line-height: normal;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
	font-weight: 300;
}
.front-btn:hover {
    background: #1a7fa8;
    color: #fff !important;
    text-decoration: none;
}
.front-btn-cat {
    display: inline-block;
    padding: 9px 25px;
    background: none;
	border: 1px solid #fff;
    color: #fff !important;
    border-radius: 4px;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s;
    margin-right: 10px;
    box-shadow: none;
    line-height: normal;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
	font-weight: 300;
}
.front-btn-cat:hover {
    background: #fff;
    color: #289dcc !important;
    text-decoration: none;
}
.mob-br { display: none; }

.swiper-button-prev,
.swiper-button-next {
    --swiper-navigation-size: 18px;
    --swiper-navigation-color: #333;
    color: #333;
    width: 40px !important;
    height: 58px !important;
    background: rgba(255,255,255,0.75);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: box-shadow 0.2s, transform 0.2s;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transform: scale(1.08);
}
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}
.swiper-button-prev svg,
.swiper-button-next svg {
    display: block;
}
.swiper-pagination-bullet-active {
    background: #289DCC;
}
@media screen and (max-width: 960px) {
    /* Карточка товара — мобильная */
    #block-system-main .sku-m {
        margin-top: 0;
        border-radius: 6px 6px 0 0;
        border-color: #e8e8e8;
        background: #f8f8f8;
        padding: 10px 12px;
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 16px;
        color: #555;
        justify-content: flex-start;
    }
    /* Заголовки мобильных блоков */
    #product-display .h_mob {
        border: 1px solid #e8e8e8;
        border-bottom: none;
        border-radius: 6px 6px 0 0;
        background: #f8f8f8;
        color: #555;
        padding: 10px 12px;
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 16px;
        margin-top: 16px;
        text-align: center;
    }
    /* Контент мобильных блоков (Описание) */
    #product-display .attributes_mob {
        border: 1px solid #e8e8e8;
        border-top: none;
        border-bottom: 1px solid #e8e8e8;
        border-radius: 0 0 6px 6px;
        margin-bottom: 0;
        background: #fff;
    }
    #product-display .h_mob_td_dm {
        border-bottom: none;
        padding: 10px 12px;
        color: #333;
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 16px;
    }
    /* Блок наличия на складе */
    #product-display .block_st_mob {
        border: 1px solid #e8e8e8;
        border-top: none;
        border-radius: 0 0 6px 6px;
        margin-bottom: 0;
        background: #fff;
    }
    #product-display .st_mob_td {
        border-bottom: 1px solid #e8e8e8;
        padding: 10px 12px;
        color: #333;
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 16px;
    }
    #product-display .st_mob .st_mob_td:last-child {
        border-bottom: none;
    }
    /* Заголовок Характеристики */
    #product-display .h_mob_m {
        margin-top: 16px;
    }
    #product-display .fb {
        margin-top: 16px;
    }
    .stock_textile_block {
        display: none;
    }
    /* Таблица цен на мобильном */
    #product_tarifs_by_count tr {
        border-bottom: none;
    }
    #product_tarifs_by_count .t_title {
        background: #fff;
        color: #333;
    }
    #product_tarifs_by_count .t_title_ {
        background: #f8f8f8;
        color: #555;
    }
    #product_tarifs_by_count .t_blue {
        font-size: 16px;
        color: #289dcc;
    }
    #product_tarifs_by_count td {
        border-bottom: 1px solid #e8e8e8 !important;
    }
    #product_tarifs_by_count td:last-child {
        border-bottom: none !important;
    }

    /* Зажимаем все float-элементы карточки товара по ширине родителя — иначе они shrink-to-fit под max-content таблиц
       или становятся в одну строку (например, .attributes справа от свотчей .p_links) */
    body.node-type-product-display #block-system-main .content,
    body.node-type-product-display #block-system-main .content .attributes,
    body.node-type-product-display #block-system-main .content .p_links,
    .product_buy {
        float: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Блок «Наличие по цветам» — зажат по ширине, таблица скроллится внутри */
    .colors-stocks-block {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-top: 16px;
    }
    .colors-stocks-block .cs-title {
        margin-bottom: 6px;
    }
    .colors-stocks-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 6px;
        box-sizing: border-box;
    }
    .colors-stocks-table th,
    .colors-stocks-table td {
        padding: 6px 8px;
        font-size: 13px;
    }
    .colors-stocks-table td.cs-photo {
        width: 50px;
        padding: 4px 6px;
    }
    .colors-stocks-table td.cs-photo img {
        width: 38px;
        height: 38px;
    }
    .colors-stocks-table .cs-article {
        font-size: 12px;
    }
    /* На мобильном скрываем обе колонки «Будущие поставки» — не помещаются */
    .colors-stocks-table .cs-th-next,
    .colors-stocks-table .cs-next {
        display: none;
    }

    /* Блок «Похожие товары» — 2 в ряд, картинка не больше колонки */
    .similar-products-block {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-top: 16px;
    }
    .sim-cards {
        flex-wrap: wrap;
        gap: 8px;
    }
    .sim-card {
        flex: 0 0 calc(50% - 4px);
        max-width: calc(50% - 4px);
        min-width: 0;
        padding: 8px;
        box-sizing: border-box;
    }
    .sim-img,
    .sim-img a {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    .sim-img img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 150px;
        margin: 0 auto;
    }
    .sim-title a {
        word-break: break-word;
    }

    /* Таблица цен — мелкий шрифт чтобы цены влезали в 50% колонку */
    #product_tarifs_by_count table {
        table-layout: fixed;
        width: 100%;
    }
    #product_tarifs_by_count td {
        padding: 8px 6px;
        font-size: 14px;
        word-break: break-word;
    }
    #product_tarifs_by_count .t_blue {
        font-size: 15px !important;
    }

    .swiper-slider-wrap .swiper { height: 380px; }
    .swiper-slide-img { object-position: 67% center; }
    .swiper-slide-caption h2 { font-size: 20px; }
    .swiper-slide-caption { padding: 15px 20px; }
    .swiper-button-prev,
    .swiper-button-next { display: none; }
    .swiper-slide-html .container { padding-left: 0; }
    .front-banner { padding: 12px 0; margin-left: 0; margin-right: 0; }
    .front-title { font-size: 21px !important; margin-bottom: 10px !important; line-height: 1.3; font-weight: 400; }
    .front-title-bottom { font-size: 18px !important; margin-bottom: 2px !important; line-height: 1.25; }
    .front-title-bottom-2 { font-size: 18px !important; margin-bottom: 0 !important; line-height: 1.25; }
    .front-list { margin: 15px 0 15px; }
    .front-list li { font-size: 15px; padding: 3px 0 3px 18px; line-height: 18px; }
    .front-btn,
    .front-btn-cat { display: block; width: 100%; text-align: center; box-sizing: border-box; margin-right: 0; margin-bottom: 8px; font-size: 16px; padding: 10px 16px; }
    .front-btn-cat { background: rgba(255,255,255,0.2); }
    .mob-br { display: block; }

    /* Каталог разделов — мобильная версия */
    .term_page {
        flex-direction: column;
        margin-top: 16px;
    }
    .term_page .catalog_filters {
        width: 100%;
        min-width: 0;
        margin-bottom: 12px;
    }
    .term_page .catalog_filters_values {
        margin-left: 0;
    }

    /* Подкатегории — горизонтальный скролл */
    .term_page .catalog_filters .categories {
        border: none;
        padding: 0;
        margin: 0 0 12px 0;
        box-shadow: none;
    }
    .term_page .catalog_filters .categories .item-list ul {
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .term_page .catalog_filters .categories .item-list ul li {
        flex: 0 0 auto;
        border: 1px solid #e8e8e8;
        border-radius: 20px;
        overflow: hidden;
    }
    .term_page .catalog_filters .categories .item-list ul li:last-child {
        border: 1px solid #e8e8e8;
    }
    .term_page .catalog_filters .categories a {
        display: block;
        padding: 6px 14px;
        font-size: 14px;
        white-space: nowrap;
    }
    .term_page .catalog_filters .categories a:hover,
    .term_page .catalog_filters .categories a.active {
        background: #f5fbff;
    }

    /* Фільтри + Сортування — ряд з двох кнопок */
    .mobile-controls-row {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    .mobile-ctrl-btn {
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 8px;
        background: #fff;
        border: 1px solid #e8e8e8;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 15px;
        color: #333;
        cursor: pointer;
        box-sizing: border-box;
    }
    .mobile-ctrl-btn svg {
        fill: #555;
        flex-shrink: 0;
    }
    .mobile-ctrl-btn:active {
        background: #f5fbff;
    }

    /* Карточки поиска — сброс inline-block раскладки */
    ul.views-fluid-grid-items-width-250 li.views-fluid-grid-item {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        margin: 0 0 8px 0 !important;
    }
    ul.views-fluid-grid-items-width-250 .views-field-field-imgs,
    ul.views-fluid-grid-items-width-250 .views-field-field-article,
    ul.views-fluid-grid-items-width-250 .views-field-title {
        float: none !important;
        width: 100% !important;
        display: block !important;
    }

    /* Убираем border-bottom на td в каталоге */
    .term_page #products_list_mobile td,
    .favorites_page #products_list_mobile td {
        border-bottom: none;
    }

    /* Убираем серый фон строк таблицы товаров */
    .products_list tr.even,
    .products_list tr.odd {
        background-color: transparent;
        border-bottom: none;
        padding: 0;
    }

    /* Сетка товаров — 2 колонки на мобильном */
    #products_list_mobile table,
    #products_list_mobile tbody {
        display: block;
        width: 100%;
    }
    #products_list_mobile tr {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    #products_list_mobile td {
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }
    #products_list_mobile .product_item {
        width: 100%;
        height: auto;
    }
    #products_list_mobile .img img {
        max-width: 100%;
        height: auto;
        width: auto;
    }
}

/* Попап для анонимных пользователей */
#header-anon-popup {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
#header-anon-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Карточки товаров (каталог и поиск) ---- */
ul.views-fluid-grid-items-width-250 li.views-fluid-grid-item {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    background: #fff;
    padding: 0;
    margin: 4px 2px;
    transition: box-shadow 0.15s, border-color 0.15s;
}
ul.views-fluid-grid-items-width-250 li.views-fluid-grid-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: #d0d0d0;
}
/* Артикул */
ul.views-fluid-grid-items-width-250 .views-field-field-article {
    padding: 8px 10px 4px;
    font-size: 14px;
}
/* Изображение */
ul.views-fluid-grid-items-width-250 .views-field-field-imgs {
    text-align: center;
    padding: 4px 10px;
    margin-left: 0;
}
ul.views-fluid-grid-items-width-250 .views-field-field-imgs img {
    max-width: 100%;
    height: auto;
}
/* Название */
ul.views-fluid-grid-items-width-250 .views-field-title {
    padding: 8px 10px 12px;
}

/* ---- Блок новостей — карточки как categories-block ---- */
#block-views-view-block-news-block .views-fluid-grid-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#block-views-view-block-news-block .views-fluid-grid-item {
  position: relative;
  height: 220px;
  border-radius: 6px;
  overflow: hidden;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  vertical-align: top;
}

/* Изображение заполняет карточку */
#block-views-view-block-news-block .news-img {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

#block-views-view-block-news-block .news-img a {
  display: block;
  width: 100%;
  height: 100%;
}

#block-views-view-block-news-block .news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover — zoom изображения */
#block-views-view-block-news-block .views-fluid-grid-item:hover .news-img img {
  transform: scale(1.07);
}

/* Тёмный оверлей при hover */
#block-views-view-block-news-block .views-fluid-grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

#block-views-view-block-news-block .views-fluid-grid-item:hover::after {
  background: rgba(0,0,0,0.15);
}

/* Дата — бейдж в верхнем левом углу */
#block-views-view-block-news-block .views-field-created {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  line-height: 1.5;
}

/* Заголовок — внизу с градиентом */
#block-views-view-block-news-block .views-fluid-grid-item > div:last-child {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  z-index: 2;
}

#block-views-view-block-news-block .news_block_title {
  min-width: 0;
}

#block-views-view-block-news-block .news_block_title a {
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  line-height: 1.3;
  display: block;
}

#block-views-view-block-news-block .news_block_title a:hover {
  text-decoration: underline;
}

#block-views-view-block-news-block .views-fluid-grid-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* ===== Страница Контакты ===== */
.page-node-1 .node-page .field-item,
.page-node-28747 .node-page .field-item {
    font-family: 'Roboto Condensed', sans-serif;
}

.page-node-1 .node-page .ctc,
.page-node-28747 .node-page .ctc {
    float: none;
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 12px);
    min-height: 0;
    box-sizing: border-box;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    background: #fff;
    padding: 20px 24px;
    margin: 0 0 16px 0;
}
.page-node-1 .node-page .ctc:nth-child(odd),
.page-node-28747 .node-page .ctc:nth-child(odd) {
    margin-right: 16px;
}

.page-node-1 .node-page .ctc h2,
.page-node-28747 .node-page .ctc h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.page-node-1 .node-page .ctc p,
.page-node-28747 .node-page .ctc p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin: 0 0 10px 0;
}
.page-node-1 .node-page .ctc p:last-child,
.page-node-28747 .node-page .ctc p:last-child { margin-bottom: 0; }

.page-node-1 .node-page .ctc a,
.page-node-28747 .node-page .ctc a {
    color: #00a0e3;
    text-decoration: none;
}
.page-node-1 .node-page .ctc a:hover,
.page-node-28747 .node-page .ctc a:hover { text-decoration: underline; }

.page-node-1 .node-page .ctc ul.list,
.page-node-28747 .node-page .ctc ul.list {
    margin: 8px 0;
    padding: 0;
    list-style: none;
}
.page-node-1 .node-page .ctc ul.list li,
.page-node-28747 .node-page .ctc ul.list li {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    padding-left: 0;
}

.page-node-1 .node-page .map,
.page-node-28747 .node-page .map {
    float: none;
    clear: both;
    margin: 4px 0 0 0;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    line-height: 0;
}
.page-node-1 .node-page .map iframe,
.page-node-28747 .node-page .map iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* =====================
   Личный кабинет
   ===================== */

body.page-user,
body.page-user #page-wrap {
    background: #f5f5f5;
}

/* Двухколоночный layout: сайдбар слева + контент справа */
body.page-user #post-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

body.page-user #post-content .page-title {
    flex-basis: 100%;
    margin-bottom: 16px;
}

body.page-user .tabs-wrapper {
    width: 240px;
    flex-shrink: 0;
}

.user-logout-wrap {
    margin-top: 24px;
}
.user-logout-btn {
    display: inline-block;
    padding: 9px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #c0392b;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.user-logout-btn:hover {
    background: #fdf0ef;
    border-color: #c0392b;
}

body.page-user .region-content {
    flex: 1;
    min-width: 0;
}

/* Сброс стилей style.css для вкладок личного кабинета */
body.page-user .tabs-wrapper {
    border-bottom: none !important;
    margin: 0 !important;
}

/* Стиль вкладок как подразделы каталога */
body.page-user ul.tabs.primary {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

body.page-user ul.tabs.primary li {
    border-bottom: 1px solid #e8e8e8;
    float: none !important;
    display: block !important;
    margin: 0;
    padding: 0;
}

body.page-user ul.tabs.primary li:last-child {
    border-bottom: none;
}

body.page-user ul.tabs.primary li a {
    display: block !important;
    float: none !important;
    text-align: left !important;
    padding: 10px 15px !important;
    color: #555 !important;
    text-decoration: none;
    font-size: 14px;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

body.page-user ul.tabs.primary li a:hover {
    background: #f5fbff !important;
    color: #289dcc !important;
}

body.page-user ul.tabs.primary li.active a,
body.page-user ul.tabs.primary li a.active {
    background: #f5fbff !important;
    color: #289dcc !important;
    font-weight: 400;
    border: none !important;
    border-bottom: 1px solid #e8e8e8 !important;
}

body.page-user ul.tabs.primary li:last-child a,
body.page-user ul.tabs.primary li:last-child.active a {
    border-bottom: none !important;
}

/* Сброс всех конфликтующих стилей на li */
body.page-user ul.tabs.primary li {
    display: block !important;
    float: none !important;
    width: auto !important;
    border: none !important;
    border-bottom: 1px solid #e8e8e8 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-user ul.tabs.primary li:last-child {
    border-bottom: none !important;
}

/* Скрываем вкладку "Просмотр" */
body.page-user ul.tabs.primary li:first-child {
    display: none !important;
}

/* Поле наименования КП перед сохранением */
.kp-title-row {
    margin-bottom: 8px;
}
.kp-title-input {
    width: 100%;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
}

/* Таблица списка сохранённых КП в профиле */
.kp-list-table {
    width: 100%;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
}
.kp-list-table th {
    background: #f8f8f8;
    font-weight: 600;
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}
.kp-list-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
    text-align: center;
}
.kp-list-table tr:last-child td { border-bottom: none; }
.kp-list-table a { color: #289dcc; }
.kp-list-table a.kp-list-delete { color: #e53935; }

/* Таблица заказов в профиле */
.view-commerce-user-orders .views-table {
    width: 100%;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
}
.view-commerce-user-orders .views-table th {
    background: #f8f8f8;
    font-weight: 600;
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}
.view-commerce-user-orders .views-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
    text-align: center;
}
.view-commerce-user-orders .views-table tr:last-child td { border-bottom: none; }
.view-commerce-user-orders .views-table a { color: #289dcc; }

/* Таблица листа ожидания в профиле */
.waiting_list_page table {
    width: 100%;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
}
.waiting_list_page table th {
    background: #f8f8f8;
    font-weight: 600;
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}
.waiting_list_page table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
    text-align: center;
}
.waiting_list_page table tr:last-child td { border-bottom: none; }
.waiting_list_page table a { color: #289dcc; }
.waiting_list_page table a.wl-delete { color: #e53935; }

/* Скрываем дублирующее поле "Реальное имя" */
.profile .field-name-realname { display: none; }

/* Карточка */
.profile {
    margin: 0 !important;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}

/* Название компании — полная ширина, стилизуем как заголовок карточки */
.profile .field-name-field-nc {
    grid-column: 1 / -1;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 4px;
}

/* Адрес — полная ширина */
.profile .field-name-field-adress {
    grid-column: 1 / -1;
}

/* Лейбл */
.profile .field-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    font-weight: 300 !important;
    color: #999 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Значение */
.profile .field-items {
    font-size: 15px;
    color: #333;
    font-weight: 400;
}

.profile .field-items a {
    color: #333;
    text-decoration: none;
}


/* =============================================
   Страница О компании (/about)
   ============================================= */

.about-page {
    width: 100%;
    padding-bottom: 0;
}

/* Hero */
.about-hero {
    position: relative;
    background: url('/sites/all/themes/medical_zymphonies_theme/img/about.webp') center/cover no-repeat;
    min-height: 480px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.2) 100%);
    z-index: 0;
}

.about-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 20px;
}

.about-hero-content {
    max-width: 650px;
    font-family: 'Roboto Condensed', sans-serif;
    padding: 40px;
}

.about-inner {
    padding: 48px 0 40px;
    font-family: 'Roboto Condensed', sans-serif;
}

.about-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #289dcc;
    margin-bottom: 10px;
}

.about-hero-content .about-label {
    color: rgba(255,255,255,0.7);
}

.about-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 31px;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 18px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.about-intro {
    font-size: 17px;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin: 0 0 6px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Секции */
.about-section {
    margin-bottom: 32px;
}

.about-section--bordered {
    border-top: 1px solid #e8e8e8;
    padding-top: 28px;
}

.about-section-title {
    font-size: 24px;
    font-weight: 400;
    color: #222;
    margin: 0 0 20px;
}

/* Цифры */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.about-stat {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	background: #f5f5f5;
}

.about-stat-num {
    font-size: 31px;
    font-weight: 400;
    color: #289dcc;
    line-height: 1.1;
    margin-bottom: 6px;
}

.about-stat-lbl {
    font-size: 15px;
    line-height: 1.4;
}

/* Преимущества */
.about-adv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-adv-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	background: #f5f5f5;
}

.about-adv-ico {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: #289dcc;
}

.about-adv-text strong {
    display: block;
    font-size: 18px;
    color: #222;
    margin-bottom: 4px;
}

.about-adv-text span {
    font-size: 15px;
    line-height: 1.5;
}

/* CTA */
.about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #289dcc;
    border-radius: 6px;
    padding: 24px 28px;
    margin-top: 32px;
}

.about-cta-text h3 {
    font-size: 17px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 6px;
}

.about-cta-text p {
    font-size: 13px;
    color: rgba(255,255,255,.85);
    margin: 0;
}

.about-cta-btn {
    flex-shrink: 0;
    display: inline-block;
    background: #fff;
    color: #289dcc;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s;
}

.about-cta-btn:hover {
    opacity: .85;
}

@media (max-width: 640px) {
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .about-adv   { grid-template-columns: 1fr; }
    .about-cta   { flex-direction: column; align-items: flex-start; }
    .about-hero  { min-height: 320px; }
    .about-hero-content { padding: 28px 0; }
    .about-title { font-size: 20px; }
    .about-intro { font-size: 14px; }
    .about-inner { padding: 28px 0 24px; }
}

/* =============================================
   Страница Новости (/news)
   ============================================= */

.view-id-view_news.view-display-id-page {
    font-family: 'Roboto Condensed', sans-serif;
}

/* Сброс старого inline-grid */
.view-id-view_news .views-fluid-grid-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0 0 32px !important;
    padding: 0 !important;
    clear: none;
}

/* Карточка */
.view-id-view_news .views-fluid-grid-item {
    display: flex !important;
    flex-direction: column;
    width: auto !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.view-id-view_news .views-fluid-grid-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.11);
    border-color: #d0d0d0;
}

/* Изображение */
.view-id-view_news .views-field-field-a {
    flex-shrink: 0;
}

.view-id-view_news .views-field-field-a a {
    display: block;
    overflow: hidden;
}

.view-id-view_news .views-field-field-a img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.3s;
}

.view-id-view_news .views-fluid-grid-item:hover .views-field-field-a img {
    transform: scale(1.03);
}

/* Дата */
.view-id-view_news .views-field-created {
    padding: 12px 16px 0;
    font-size: 12px;
    color: #289dcc;
    font-weight: 600;
    letter-spacing: .03em;
}

/* Заголовок */
.view-id-view_news .news_title_h2 {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    margin: 6px 0 0;
    padding: 0 16px;
}

.view-id-view_news .news_title_h2 a {
    color: #222;
    text-decoration: none;
}

.view-id-view_news .news_title_h2 a:hover {
    color: #289dcc;
}

/* Анонс */
.view-id-view_news .views-field-body {
    padding: 8px 16px 16px;
    flex: 1;
}

.view-id-view_news .views-field-body .field-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Пагинация */
.view-id-view_news .item-list .pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 0 32px;
    text-align: center;
}

.view-id-view_news .item-list .pager li {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin: 0;
    min-width: 36px;
    text-align: center;
}

.view-id-view_news .item-list .pager li a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.view-id-view_news .item-list .pager li a:hover {
    background: #f0f8fc;
    color: #289dcc;
}

.view-id-view_news .item-list .pager .pager-current {
    background: #289dcc;
    color: #fff;
    border-color: #289dcc;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 400;
}

@media (max-width: 900px) {
    .view-id-view_news .views-fluid-grid-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .view-id-view_news .views-fluid-grid-list { grid-template-columns: 1fr; gap: 16px; }
    .view-id-view_news .views-field-field-a img { height: 200px; }
}

/* =============================================
   Пагинация каталога
   ============================================= */
.catalog_filters_values .item-list .pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 16px 0 32px;
    text-align: center;
    margin: 0;
    list-style: none;
}

.catalog_filters_values .item-list .pager li {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin: 0;
    min-width: 36px;
    text-align: center;
    padding: 0;
}

.catalog_filters_values .item-list .pager li a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.catalog_filters_values .item-list .pager li a:hover {
    background: #f0f8fc;
    color: #289dcc;
}

.catalog_filters_values .item-list .pager .pager-current {
    background: #289dcc;
    color: #fff;
    border-color: #289dcc;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 400;
}

/* Скрываем дублирующий page-title на страницах нанесения */
body.node-type-nanesenie .page-title,
body.page-node-8 .page-title {
    display: none;
}

/* =============================================
   Раздел: Нанесение логотипа — лэндинг (node/8)
   ============================================= */

.nanesenie-page {
    width: 100%;
    padding-bottom: 0;
}

/* Hero */
.nanesenie-hero {
    position: relative;
    background: url('/sites/all/themes/medical_zymphonies_theme/img/print-banner.webp') center/cover no-repeat;
    background-color: #1a2a3a;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.nanesenie-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.25) 100%);
    z-index: 0;
}

.nanesenie-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 20px;
}

.nanesenie-hero-content {
    max-width: 650px;
    font-family: 'Roboto Condensed', sans-serif;
    padding: 40px;
}

.nanesenie-hero-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 14px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.nanesenie-hero-intro {
    font-size: 16px;
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
    margin: 0 0 24px;
}

.nanesenie-hero-btn {
    display: inline-block;
    background: #289dcc;
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 400;
    padding: 11px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s;
}

.nanesenie-hero-btn:hover {
    background: #1f7da3;
    color: #fff;
    text-decoration: none;
}

/* Внутренний блок */
.nanesenie-intro-block {
    padding: 20px 0 0;
    font-family: 'Roboto Condensed', sans-serif;
}

.nanesenie-intro-block p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 12px;
}

.nanesenie-intro-block p:last-child {
    margin-bottom: 0;
}

.nanesenie-inner {
    padding: 48px 0 56px;
    font-family: 'Roboto Condensed', sans-serif;
}

.nanesenie-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #289dcc;
    margin-bottom: 6px;
}

.nanesenie-section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 26px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 28px;
}

/* Сетка карточек */
.nanesenie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nan-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.nan-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #289dcc;
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.nan-card-ico {
    width: 44px;
    height: 44px;
    background: #e8f5fb;
    border-radius: 8px;
    margin-bottom: 14px;
}

.nan-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
}

.nan-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nan-card-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 8px;
}

.nan-card:hover .nan-card-title {
    color: #289dcc;
}

.nan-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.nan-card-more {
    font-size: 13px;
    font-weight: 400;
    color: #289dcc;
    margin-top: auto;
}

/* CTA */
.nanesenie-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #f4fbfe;
    border: 1px solid #d0eaf5;
    border-radius: 8px;
    padding: 28px 32px;
    margin-top: 40px;
}

.nanesenie-cta-text h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.nanesenie-cta-text p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.nanesenie-cta-btn {
    display: inline-block;
    white-space: nowrap;
    background: #289dcc;
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 400;
    padding: 11px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s;
}

.nanesenie-cta-btn:hover {
    background: #1f7da3;
    color: #fff;
    text-decoration: none;
}

/* =============================================
   Раздел: Нанесение — страница метода
   ============================================= */

.nanesenie-method-page {
    padding: 40px 0 60px;
}

.nanesenie-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

/* Сайдбар */
.nanesenie-sidebar {
    position: sticky;
    top: 80px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}

.nanesenie-sidebar-head {
    padding: 14px 16px 0;
}

.nanesenie-sidebar-back {
    font-size: 13px;
    color: #289dcc;
    text-decoration: none;
    font-weight: 600;
}

.nanesenie-sidebar-back:hover {
    text-decoration: underline;
}

.nanesenie-sidebar-nav {
    padding: 12px 0 4px;
}

.nanesenie-sidebar-nav-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    padding: 4px 16px 8px;
}

.nanesenie-sidebar-link {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    line-height: 1.35;
}

.nanesenie-sidebar-link:hover {
    background: #f4fbfe;
    color: #289dcc;
    text-decoration: none;
}

.nanesenie-sidebar-link.is-active {
    background: #f0f8fd;
    color: #289dcc;
    border-left-color: #289dcc;
    font-weight: 400;
}

.nanesenie-sidebar-cta {
    margin: 8px 12px 12px;
    background: #f4fbfe;
    border: 1px solid #d0eaf5;
    border-radius: 6px;
    padding: 14px;
    text-align: center;
}

.nanesenie-sidebar-cta p {
    font-size: 13px;
    color: #555;
    margin: 0 0 10px;
}

.nanesenie-sidebar-btn {
    display: block;
    background: #289dcc;
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 9px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s;
}

.nanesenie-sidebar-btn:hover {
    background: #1f7da3;
    color: #fff;
    text-decoration: none;
}

/* Контент метода */
.nanesenie-method-content {
    min-width: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

.nanesenie-method-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 28px;
    color: #289DCC;
    margin: 0 0 24px;
    line-height: 1.25;
}

.nanesenie-method-photo {
    margin-bottom: 28px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.nanesenie-method-photo img,
.nanesenie-method-img-tag {
    width: 100%;
    height: auto;
    display: block;
}

.nanesenie-method-body {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 28px;
}

.nanesenie-method-body h2,
.nanesenie-method-body h3 {
    font-family: 'Roboto Condensed', sans-serif;
    color: #289DCC;
    margin-top: 28px;
}

/* Фото + Видео в ряд */
.nanesenie-media-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
    align-items: start;
}

.nanesenie-media-row .nanesenie-method-photo,
.nanesenie-media-row .nanesenie-method-video {
    margin-bottom: 0;
}

.nanesenie-media-row .nanesenie-method-photo {
    position: relative;
    padding-top: 56.25%;
}

.nanesenie-media-row .nanesenie-method-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Фото метода */
.nanesenie-method-photo {
    margin-bottom: 28px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

/* Секции: Преимущества, Ограничения, Подходит для */
.nanesenie-section {
    margin-bottom: 32px;
}

.nanesenie-section .nanesenie-section-title {
    font-size: 19px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8e8;
}

/* Преимущества + Ограничения рядом */
.nanesenie-adv-lim {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.nanesenie-adv-lim .nanesenie-section {
    margin-bottom: 0;
}

/* Преимущества — зелёные галочки */
.nanesenie-advantages ul,
.nanesenie-limitations ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.6;
}

.nanesenie-advantages ul li,
.nanesenie-limitations ul li {
    padding: 5px 0 5px 26px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a1a !important;
}

.nanesenie-advantages ul li:last-child,
.nanesenie-limitations ul li:last-child {
    border-bottom: none;
}

.nanesenie-advantages ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2322c55e'/%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-4.5' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Ограничения — красные иконки */
.nanesenie-limitations ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23ef4444'/%3E%3Cline x1='5' y1='5' x2='11' y2='11' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='11' y1='5' x2='5' y2='11' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Блок параметров */
.nanesenie-params {
    background: #f7f8fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 6px 0;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
}

.nanesenie-param {
    display: flex;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    padding: 10px 20px;
    border-bottom: 1px solid #eef0f3;
}

.nanesenie-param:last-child {
    border-bottom: none;
}

.nanesenie-param-label {
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 160px;
}

.nanesenie-param-value {
    color: #1a1a1a;
    font-weight: 400;
}

/* Товары — ссылки */
.nanesenie-products {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.nanesenie-products a {
    display: inline-block;
    background: #f0f4ff;
    color: #2563eb;
    text-decoration: none;
    padding: 2px 10px;
    border-radius: 20px;
    margin: 3px 2px;
    font-size: 14px;
    border: 1px solid #dbe4ff;
    transition: background 0.15s;
}

.nanesenie-products a:hover {
    background: #dbe4ff;
}

/* Instagram галерея */
.nanesenie-instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nanesenie-instagram-item {
    min-width: 0;
}

/* Видео — responsive 16:9 */
.nanesenie-video-wrap {
    position: relative;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.nanesenie-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* =============================================
   Адаптив: Нанесение
   ============================================= */
@media (max-width: 1024px) {
    .nanesenie-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nanesenie-adv-lim {
        grid-template-columns: 1fr;
    }
    .nanesenie-layout {
        grid-template-columns: 1fr;
    }
    .nanesenie-sidebar {
        position: static;
    }
    .nanesenie-hero-title { font-size: 26px; }
}

@media (max-width: 600px) {
    .nanesenie-grid { grid-template-columns: 1fr; gap: 14px; }
    .nanesenie-cta { flex-direction: column; align-items: flex-start; }
    .nanesenie-hero-content { padding: 36px 0; }
}

/* =============================================
   Страница: Каталоги сувениров
   ============================================= */

body.page-node-2 .field-item > div[style],
body.page-node-43512 .field-item > div[style] {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #444;
}

body.page-node-2 .field-item,
body.page-node-43512 .field-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

body.page-node-2 .field-item > div:first-child,
body.page-node-2 .field-item > p,
body.page-node-43512 .field-item > div:first-child,
body.page-node-43512 .field-item > p {
    grid-column: 1 / -1;
}

body.page-node-2 .important,
body.page-node-43512 .important {
    display: grid;
    grid-template-columns: 160px 1fr;
    grid-template-rows: auto 1fr;
    gap: 0 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.15s, border-color 0.15s;
}

body.page-node-2 .important:hover,
body.page-node-43512 .important:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #289dcc;
}

body.page-node-2 .important h2,
body.page-node-43512 .important h2 {
    grid-column: 1 / -1;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 16px;
    padding: 0;
    border: none;
}

body.page-node-2 .important h2 a,
body.page-node-43512 .important h2 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.15s;
}

body.page-node-2 .important h2 a:hover,
body.page-node-43512 .important h2 a:hover {
    color: #289dcc;
}

body.page-node-2 .important .left_image,
body.page-node-43512 .important .left_image {
    grid-column: 1;
    grid-row: 2;
    height: 200px;
}

body.page-node-2 .important .left_image a,
body.page-node-43512 .important .left_image a {
    display: block;
    height: 100%;
}

body.page-node-2 .important .left_image img,
body.page-node-43512 .important .left_image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    object-fit: cover;
}

body.page-node-2 .important p,
body.page-node-43512 .important p {
    grid-column: 2;
    grid-row: 2;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
    align-self: start;
}

@media (max-width: 860px) {
    body.page-node-2 .field-item,
    body.page-node-43512 .field-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.page-node-2 .important,
    body.page-node-43512 .important {
        grid-template-columns: 1fr;
    }
    body.page-node-2 .important .left_image,
    body.page-node-2 .important p,
    body.page-node-43512 .important .left_image,
    body.page-node-43512 .important p {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ===================== Страница /brands ===================== */
.brands-page {
    padding: 24px 0 48px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px 16px 16px;
    transition: box-shadow 0.18s, border-color 0.18s;
}

.brand-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    border-color: #289dcc;
    text-decoration: none;
}

.brand-card-logo {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.brand-card-logo img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand-card-logo--empty {
    background: #f5f5f5;
    border-radius: 4px;
}

.brand-card-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.3;
}

.brand-card:hover .brand-card-name {
    color: #289dcc;
}

@media (max-width: 1100px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .brand-card {
        padding: 14px 10px 12px;
    }
    .brand-card-logo {
        height: 70px;
    }
    .brand-card-logo img {
        max-height: 70px;
    }
}

/* ===================== Страница бренда (term) ===================== */
.brand-term-page {
    padding: 24px 0 48px;
}

.brand-term-header {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 32px;
}

.brand-term-logo {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
}

.brand-term-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.brand-term-info {
    flex: 1;
}

.brand-term-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    color: #1a1a1a;
}

.brand-term-desc {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    font-family: 'Roboto Condensed', sans-serif;
    text-align: justify;
}

.brand-term-products-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.brand-term-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.brand-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.18s, border-color 0.18s;
}

.brand-product-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    border-color: #289dcc;
    text-decoration: none;
}

.brand-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.brand-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}

.brand-product-card:hover .brand-product-img img {
    transform: scale(1.04);
}

.brand-product-title {
    padding: 10px 12px 12px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.brand-product-card:hover .brand-product-title {
    color: #289dcc;
}

.brand-no-products {
    color: #888;
    font-size: 15px;
}

@media (max-width: 900px) {
    .brand-term-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .brand-term-header {
        flex-direction: column;
        gap: 16px;
    }
    .brand-term-logo {
        width: 100%;
        height: 100px;
    }
    .brand-term-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ===================== Блок брендов (главная) ===================== */
.brands-block {
    padding: 32px 0 40px;
}

.brands-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.brands-block-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
}

.brands-block-all {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #289dcc;
    text-decoration: none;
    white-space: nowrap;
}

.brands-block-all:hover {
    text-decoration: underline;
}

.brands-swiper-wrap {
    position: relative;
    padding: 0 40px;
}

.brands-swiper {
    overflow: hidden;
}

.brands-swiper .swiper-slide {
    display: flex;
    align-items: stretch;
}

.brands-block-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 10px 12px;
    text-decoration: none;
    transition: box-shadow 0.18s, border-color 0.18s;
}

.brands-block-logo-item:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.09);
    border-color: #289dcc;
    text-decoration: none;
}

.brands-block-logo-item img {
    max-width: 100%;
    max-height: 78px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.brands-block-logo-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.2;
}

.brands-swiper-prev,
.brands-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
    transition: background 0.15s, border-color 0.15s;
}

.brands-swiper-prev { left: 0; }
.brands-swiper-next { right: 0; }

.brands-swiper-prev:hover,
.brands-swiper-next:hover {
    background: #fff;
    border-color: #289dcc;
    color: #289dcc;
}

.brands-swiper-prev svg,
.brands-swiper-next svg {
    display: block;
}

.brands-swiper-prev.swiper-button-disabled,
.brands-swiper-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

@media (max-width: 600px) {
    .brands-swiper-wrap {
        padding: 0 30px;
    }
    .brands-swiper-prev,
    .brands-swiper-next {
        width: 26px;
        height: 40px;
    }
    .brands-block-logo-item {
        height: 64px;
    }
}

/* === Banner Form Modal === */
#banner-form-modal .webform-progressbar { display: none; }
.bfm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.bfm-overlay.bfm-open {
    display: flex;
}
.bfm-dialog {
    background: #fff;
    border-radius: 8px;
    padding: 36px 40px 32px;
    width: 100%;
    max-width: 490px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    color: #333;
}
.bfm-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    padding: 0;
    font-family: 'Roboto Condensed', sans-serif;
}
.bfm-close:hover { color: #555; }
.bfm-title {
    margin: 0 0 8px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 28px;
    color: #289DCC;
    line-height: 1.25;
}
.bfm-subtitle {
    margin: 0 0 14px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #666;
    line-height: 1.4;
}
.bfm-messengers {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.bfm-label-optional {
    font-weight: 300;
}
.bfm-contact-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    margin: 0 0 10px;
}
.bfm-contact-btns {
    display: flex;
    gap: 8px;
}
.bfm-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #555;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.bfm-contact-btn img { display: block; flex-shrink: 0; width: 22px; height: 22px; filter: brightness(0) invert(1) brightness(0.33); }
.bfm-contact-btn:hover { border-color: #aaa; }
.bfm-btn-phone.active  { background: #5cb85c; border-color: #5cb85c; color: #fff; }
.bfm-btn-phone.active img,
.bfm-btn-viber.active img,
.bfm-btn-telegram.active img { filter: brightness(0) invert(1); }
.bfm-btn-viber.active  { background: #7360f2; border-color: #7360f2; color: #fff; }
.bfm-btn-telegram.active { background: #29a9eb; border-color: #29a9eb; color: #fff; }
.bfm-contact-hint {
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    color: #777;
}
#banner-form-modal .webform-client-form .form-item {
    margin-bottom: 12px;
}
#banner-form-modal .webform-client-form label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #333;
}
#banner-form-modal .webform-client-form .form-text,
#banner-form-modal .webform-client-form .form-textarea {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #333;
    box-sizing: border-box;
    background: #fff;
}
#banner-form-modal .webform-client-form .form-text::placeholder,
#banner-form-modal .webform-client-form .form-textarea::placeholder {
    color: #aaa;
    font-weight: 300;
}
#banner-form-modal .webform-client-form .form-text:focus,
#banner-form-modal .webform-client-form .form-textarea:focus {
    border-color: #289DCC;
    outline: none;
}
/* Phone prefix +380 */
.bfm-phone-wrap {
    display: flex;
    align-items: center;
    height: 42px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    overflow: hidden;
}
.bfm-phone-wrap:focus-within { border-color: #289DCC; }
.bfm-phone-prefix {
    padding: 9px 10px 9px 12px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #333;
    background: #f5f5f5;
    border-right: 1px solid #d0d0d0;
    white-space: nowrap;
    user-select: none;
}
.bfm-phone-wrap .form-text {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    height: 100% !important;
    padding: 0 8px !important;
}
.bfm-phone-wrap .form-text:focus { outline: none; }
#banner-form-modal .webform-client-form .form-actions {
    margin-top: 4px;
}
#banner-form-modal .webform-client-form .form-submit {
    width: 100%;
    padding: 12px;
    background: #289DCC;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    letter-spacing: 0.3px;
	line-height: normal;
}
#banner-form-modal .webform-client-form .form-submit:hover {
    background: #1d85b0;
}
.bfm-footer {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bfm-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #777;
    margin: 0;
}
.bfm-badge-icon {
    font-size: 13px;
    flex-shrink: 0;
}
@media (max-width: 540px) {
    .bfm-dialog {
        padding: 28px 20px 24px;
    }
}
/* Экран успеха */
.bfm-success {
    text-align: center;
    padding: 20px 0 10px;
}
.bfm-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #5cb85c;
    color: #fff;
    font-size: 32px;
    line-height: 64px;
    margin: 0 auto 20px;
}
.bfm-success-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 26px;
    font-weight: 400;
    color: #1a2840;
    margin: 0 0 12px;
}
.bfm-success-text {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
    margin: 0 0 28px;
}
.bfm-success-btn {
    display: block;
    margin: 28px auto 0;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    background: #289DCC;
    border: none;
    border-radius: 6px;
    padding: 11px 36px;
    cursor: pointer;
    transition: background 0.15s;
}
.bfm-success-btn:hover {
    background: #1a7aab;
}

/* === For Task Section === */
.for-task-section {
    background: #f5f6f8;
    padding: 40px 0 48px;
}
.for-task-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}
.for-task-head {
    text-align: center;
    margin-bottom: 40px;
}
.for-task-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #1a2840;
    margin: 0 0 10px;
}
.for-task-subtitle {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 17px;
    color: #666;
    margin: 0;
}
.for-task-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.for-task-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.for-task-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}
.for-task-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e8eaee;
}
.for-task-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.for-task-card:hover .for-task-img-wrap img {
    transform: scale(1.04);
}
.for-task-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.for-task-card-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #1a2840;
    margin: 0 0 8px;
    line-height: 1.3;
}
.for-task-card-desc {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    color: #666;
    margin: 0 0 18px;
    line-height: 1.5;
    flex: 1;
}
.for-task-cta {
    display: inline-block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #289DCC;
    text-decoration: none;
    border-bottom: 1px solid rgba(40,157,204,0.3);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
    align-self: flex-start;
}
.for-task-cta:hover {
    color: #1a7aab;
    border-color: #1a7aab;
}
.for-task-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e4e6ea;
}
.for-task-footer-text {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 17px;
    color: #555;
    margin: 0;
}
.for-task-footer-btn {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    color: #fff;
    background: #289DCC;
    border: none;
    border-radius: 6px;
    padding: 10px 25px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.for-task-footer-btn:hover {
    background: #1a7aab;
}
@media (max-width: 600px) {
    .for-task-footer {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}
@media (max-width: 900px) {
    .for-task-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
@media (max-width: 600px) {
    .for-task-section {
        padding: 36px 0 44px;
    }
    .for-task-title {
        font-size: 22px;
    }
    .for-task-subtitle {
        font-size: 15px;
    }
    .for-task-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .for-task-card {
        flex-direction: row;
        border-radius: 8px;
    }
    .for-task-img-wrap {
        width: 120px;
        min-width: 120px;
        aspect-ratio: unset;
    }
    .for-task-body {
        padding: 14px 16px;
    }
    .for-task-card-title {
        font-size: 16px;
    }
}
/* === End For Task Section === */
