/* =========================================================
   Stylus-ch: слой WordPress поверх stylus.css.
   Только то, чего не было в статическом прототипе: ссылки вместо кнопок
   там, где WordPress даёт адреса, серверная пагинация, страница отзывов,
   текстовые страницы, 404, корзина и оформление WooCommerce.

   1. Шапка и меню
   2. Каталог: разделы-ссылки, карточки, пагинация, текст раздела
   3. Формы: ловушка для ботов, ошибка отправки, занятая кнопка
   4. Статьи, поиск, текстовые страницы
   5. Отзывы
   6. 404
   7. Уведомления WooCommerce
   8. Корзина
   9. Оформление заказа и «Заказ принят»
   10. Страницы покупателю: оплата, поставка, опт, документы
   11. Выбор номера WhatsApp
   ========================================================= */

/* ---------- 1. Шапка и меню ---------- */

/* корзина в шапке - ссылка, стили кнопки темплейта переносим на неё */
.header-wishlist-cart-btn a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(var(--thm-border-rgb-color), .10);
    border-radius: 50%;
    color: var(--thm-black);
    font-size: 22px;
    transition: border-color .2s linear;
}
.header-wishlist-cart-btn a:hover { border-color: rgba(var(--thm-border-rgb-color), .90); color: var(--thm-black); }
.header-wishlist-cart-btn a .count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    padding: 0 5px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--thm-primary-color);
    border-radius: 10px; /* кружок, с двумя цифрами - капсула */
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    font-family: var(--thm-font);
}

/* заголовок колонки меню каталога - ссылка на раздел, вид прежний */
.megamenu__col a.megamenu__title {
    font-family: var(--thm-font-2);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--brand-cyan-deep);
    padding: 0;
    margin-bottom: 10px;
}
.megamenu__col a.megamenu__title:hover { color: var(--thm-primary-color); }
.mobile-nav__content .megamenu__col a.megamenu__title {
    font-size: 11px;
    color: var(--brand-cyan);
    border-bottom: 0;
    padding: 0;
    margin-bottom: 6px;
}

/* третий уровень каталога (подразделы «Медицинских тренажёров») - сдвиг под своим разделом */
.megamenu__col a.megamenu__sub { padding-left: 14px; font-size: 13.5px; color: var(--text-muted); }
.megamenu__col a.megamenu__sub:hover { color: var(--thm-primary-color); }
.mobile-nav__content .megamenu__col a.megamenu__sub { padding-left: 14px; font-size: 13.5px; color: rgba(255, 255, 255, .66); }

/*
 * Сдвиги макета при загрузке (wp/tools/cls.py). Слайдер первого экрана до запуска owl
 * скрыт целиком (display:none в owl.carousel.css): на телефоне первый экран схлопывался,
 * а через несколько секунд разворачивался и отталкивал всё ниже (CLS 0,48). До запуска
 * показываем первый слайд в полный размер - owl подхватывает его без сдвига.
 */
.banner-hero__slider:not(.owl-loaded) { display: block; }
.banner-hero__slider:not(.owl-loaded) > .banner-hero__slide:not(:first-child) { display: none !important; }
/* иконки из шрифта иконок: место под них занято до загрузки шрифта - текст рядом не сдвигается */
.contact-card__icon { width: 24px; text-align: center; }
.testimonial-style1__single .icon-box span { width: 80px; height: 80px; overflow: hidden; }

/* первый вопрос «Вопрос-ответ» открыт сразу, а не после запуска скрипта */
.faq-accordion > .accordion:first-of-type .accord-content { height: auto; }

/* карточки преимуществ на главной: при наведении только рамка и заливка иконки, без тени */
.featured-style4__single:hover { box-shadow: none; }

/* липкая шапка под панелью администратора */
.admin-bar .stricky-header.stricky-fixed { top: 32px; }
@media only screen and (max-width: 782px) {
    .admin-bar .stricky-header.stricky-fixed { top: 46px; }
}

/* ---------- 2. Каталог ---------- */

.filter-groups a {
    display: flex;
    width: 100%;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    border-radius: var(--r-sm);
    padding: 8px 10px;
    font-family: var(--thm-font);
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--thm-heading-font-color);
    transition: background .2s ease, color .2s ease;
}
.filter-groups a span { font-size: 12.5px; color: var(--text-muted); }
.filter-groups a:hover { background: var(--surface-1); color: var(--thm-heading-font-color); }
.filter-groups .is-active > a,
.filter-groups .is-active > .filter-groups__row > a { background: var(--surface-2); font-weight: 600; }
.filter-groups .is-active > a span,
.filter-groups .is-active > .filter-groups__row > a span { color: var(--thm-primary-color); }

/* дерево разделов: у раздела с подразделами - стрелка «свернуть/развернуть» */
.filter-groups__row { display: flex; align-items: center; gap: 2px; }
.filter-groups__row > a { flex: 1 1 auto; min-width: 0; }
.filter-groups .filter-groups__row .filter-groups__toggle {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--r-sm);
    font-size: 17px;
    font-weight: 400;
    color: var(--text-muted);
}
.filter-groups .filter-groups__row .filter-groups__toggle:hover { background: var(--surface-1); color: var(--thm-heading-font-color); }
.filter-groups .filter-groups__row .filter-groups__toggle:focus-visible { outline: 2px solid var(--thm-primary-color); outline-offset: 1px; }
.filter-groups__toggle i { transition: transform .2s ease; }
.filter-groups li.has-sub:not(.is-open) > .filter-groups__row .filter-groups__toggle i { transform: rotate(-90deg); }
.filter-groups li.has-sub:not(.is-open) > .filter-groups__sub { display: none; }
/* счётчики одной колонкой: у разделов без стрелки место под неё остаётся пустым */
.filter-groups li:not(.has-sub) > a { width: auto; margin-right: 34px; }

/* «В корзину» в карточке: своё правило карточки перебивало общее наведение - кнопка не реагировала */
.products-style2__single-content .btn-box .btn-cart:hover { background: var(--thm-black); }
.btn-cart:focus-visible { outline: 2px solid var(--thm-primary-color); outline-offset: 2px; }

/* фото карточки: плавно только увеличение при наведении; размеры при переключении
   сетка/список меняются сразу, а не растягиваются полсекунды */
.products-style2__single-img .inner img { transition: transform .5s ease; }

/* список: одинаковая высота строк - фото в рамке фиксированной высоты, вертикальные
   снимки больше не растягивают строку */
.catalog-grid.is-list .products-style2__single-img { display: flex; align-items: center; }
.catalog-grid.is-list .products-style2__single-img .inner { width: 100%; }
.catalog-grid.is-list .products-style2__single-img .inner img { height: 180px; min-height: 0; padding: 16px; }
.filter-groups__sub { margin: 2px 0 6px; padding-left: 12px; }
.filter-groups__sub li + li { margin-top: 1px; }
.filter-groups__sub a { font-size: 14px; padding: 6px 10px; color: var(--thm-body-font-color); }
.filter-groups__sub .filter-groups__sub { margin: 0 0 4px; }
.filter-groups__sub .filter-groups__sub a { font-size: 13.5px; }

/*
 * Вся карточка товара - ссылка на товар: ссылка названия растянута на карточку,
 * «В корзину», «Запросить цену», быстрый просмотр и «Характеристики» остаются поверх.
 * Контент карточки у темплейта position:relative - снимаем, иначе ссылка займёт только
 * нижнюю часть; слой над фото пропускает клики, кроме самой кнопки просмотра.
 */
.products-style2__single--style3 { position: relative; }
.products-style2__single--style3 .products-style2__single-content { position: static; }
.products-style2__single--style3 .products-style2__single-content h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.products-style2__single--style3 .overlay-link { pointer-events: none; }
.products-style2__single--style3 .overlay-link a { pointer-events: auto; }
.products-style2__single--style3 .btn-box,
.products-style2__single--style3 .card-more { position: relative; z-index: 2; }
.products-style2__single--style3:focus-within { border-color: var(--brand-cyan); }
.products-style2__single--style3 .products-style2__single-content h3 a:focus-visible { outline: 2px solid var(--thm-primary-color); outline-offset: 2px; }

/* карточка товара на телефоне: последний пункт крошек (название) дублирует заголовок под ним;
   без него строка короче и не перескакивает при подгрузке шрифта */
@media only screen and (max-width: 767px) {
    .page-head--slim .crumbs li[aria-current] { display: none; }
    .page-head--slim .crumbs li:nth-last-child(2)::after { display: none; }
}

/* кнопка карточки без цены - <button>: снимаем браузерные умолчания */
button.btn-cart { border: 0; cursor: pointer; font-family: var(--thm-font-2); }
.btn-cart.is-busy { opacity: .6; pointer-events: none; }

/* статичная метка раздела среди меток подбора - ссылка */
a.filter-chip { color: var(--thm-heading-font-color); }

/* серверная пагинация (раздел больше 300 позиций, статьи) - вид кнопок каталога */
.pager--server .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    background: #fff;
    font-family: var(--thm-font-2);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--thm-heading-font-color);
    transition: border-color .2s ease;
}
.pager--server a.page-numbers:hover { border-color: var(--thm-heading-font-color); }
.pager--server .page-numbers.current { background: var(--thm-primary-color); border-color: var(--thm-primary-color); color: #fff; }
.pager--server .page-numbers.dots { border-color: transparent; }
.pager--server .page-numbers i { font-size: 11px; }
.pager--server .prev i { display: inline-block; transform: rotate(180deg); }
.pager__gap { display: inline-flex; align-items: flex-end; justify-content: center; min-width: 20px; height: 44px; padding-bottom: 10px; color: var(--text-muted); }

/* ссылки нижней строки подвала на телефоне: зона нажатия не меньше 32 px */
@media only screen and (max-width: 767px) {
    .footer-bottom__menu a { display: inline-block; padding: 8px 4px; }
}

/* пагинация на телефоне в одну строку: «← 1 … 4 5 6 … 10 →» */
@media only screen and (max-width: 575px) {
    .pager { gap: 5px; }
    .pager__btn { min-width: 38px; height: 40px; padding: 0 6px; font-size: 14px; }
    .pager__gap { min-width: 14px; height: 40px; padding-bottom: 8px; }
}

/* названия с витрины клиента бывают по 100 знаков: в карточке три строки, в подборке две,
   полное название - на странице товара */
.products-style2__single-content h3 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.products-style3__single-text h4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* описание раздела под списком: текст для покупателя и поиска */
.catalog-text { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--thm-border-color); }
/* текст описания раздела - чёрный, как заголовки (по просьбе клиента; по умолчанию шаблон красит текст серым) */
.catalog-text__body,
.catalog-text__body p,
.catalog-text__body li,
.catalog-text__body strong,
.catalog-text__body b { color: var(--thm-black); }
.catalog-text p { font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.catalog-text h3 { font-size: 19px; line-height: 1.3; font-weight: 600; margin: 24px 0 10px; }
.catalog-text h3:first-child { margin-top: 0; }
.catalog-text ul { list-style: disc; margin: 0 0 14px; padding-left: 22px; }
.catalog-text li { font-size: 15px; line-height: 1.65; margin-bottom: 4px; }
/* длинный текст раздела свёрнут, раскрывается кнопкой */
.catalog-text.is-clamped .catalog-text__body {
    max-height: 340px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent);
}
.catalog-text__more { margin-top: 14px; }

/* карточка товара: опт, минимальный заказ и срок поставки под ценой */
.product__terms { display: grid; gap: 4px; margin: 10px 0 0; }
.product__terms li { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.product__terms b { font-weight: 600; color: var(--thm-heading-font-color); }

/* описание товара из Satu: списки и подзаголовки в ритме абзацев */
.product__text ul,
.product__text ol { margin: 0 0 14px; padding-left: 20px; }
.product__text ul { list-style: disc; }
.product__text ol { list-style: decimal; }
.product__text li { font-size: 15px; line-height: 1.65; margin-bottom: 4px; }
.product__text h3,
.product__text h4 { font-size: 17px; line-height: 1.35; font-weight: 600; margin: 20px 0 8px; }

/* карточка товара без характеристик: описание на всю ширину */
.product__body--single { grid-template-columns: minmax(0, 1fr); }

/* галерея товара - лента слайдов: фото уезжает в сторону, перетаскивание тянет его за собой.
   Рамка по высоте самого высокого фото - при листании блок не прыгает */
.product__photo { display: block; position: relative; padding: 0; overflow: hidden; touch-action: pan-y; user-select: none; }
.product__track { display: flex; will-change: transform; }
.product__slide {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 28px;
}
.product__slide img { height: auto; cursor: grab; -webkit-user-drag: none; } /* высота по пропорции из width/height */
.product__photo.is-dragging img { cursor: grabbing; }
@media only screen and (max-width: 767px) {
    .product__photo { padding: 0; min-height: 0; }
    .product__slide { min-height: 240px; padding: 18px; }
}

/* лайтбокс - та же лента во весь экран */
.lightbox__view { align-self: stretch; width: 100%; overflow: hidden; touch-action: pan-y; user-select: none; }
.lightbox__track { display: flex; height: 100%; will-change: transform; }
.lightbox__slide { flex: 0 0 100%; min-width: 0; display: flex; align-items: center; justify-content: center; }
.lightbox__view.is-dragging .lightbox__img { cursor: grabbing; }
.lightbox.is-single .lightbox__nav,
.lightbox.is-single .lightbox__counter { display: none; }

/* ---------- 3. Формы ---------- */

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--brand-red);
}
form.is-busy [type=submit] { opacity: .6; cursor: progress; }
.final-cta__note a,
.lead-modal__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.cart-toast a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }

/* окно заявки закрывается затуханием на месте (появляется со сдвигом сверху, как в прототипе) */
.lead-modal.is-closing .lead-modal__card { transform: none; transition: none; }

/* ---------- 4. Статьи, поиск, текстовые страницы ---------- */

a.rubric-tab:hover { color: var(--thm-heading-font-color); }
a.rubric-tab.is-active:hover { color: #fff; }
.articles-empty,
.search-note { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.search-note a { color: var(--thm-primary-color); font-weight: 600; }
.article__meta a { color: inherit; }
.article__meta a:hover { color: var(--thm-primary-color); }

/* текст из редактора: списки, цитаты, таблицы в ритме статьи */
.article__body ul,
.article__body ol { margin: 0 0 16px; padding-left: 22px; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li { font-size: 15.5px; line-height: 1.7; margin-bottom: 6px; }
/* заголовки самого текста; у врезки «Поможем собрать комплект» свои отступы из прототипа */
.article__body > h3 { font-size: 19px; line-height: 1.3; font-weight: 600; margin: 26px 0 10px; }
.article__body a:not(.btn-solid):not(.btn-outline) { color: var(--thm-primary-color); text-decoration: underline; text-underline-offset: 2px; }
.article__body blockquote { margin: 22px 0; padding: 18px 22px; background: var(--surface-1); border-radius: var(--r-md); }
.article__body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; }
.article__body th,
.article__body td { border-bottom: 1px solid var(--thm-border-color); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.article__body img:not(.article__cover) { max-width: 100%; height: auto; border-radius: var(--r-md); }
.text-page { padding: 8px 0 var(--sect-pad); }
/* реквизиты продавца в оферте и политике ([stylus_requisites]) */
.article__body table.requisites { margin-bottom: 10px; }
.article__body .requisites th { width: 34%; padding-right: 18px; font-weight: 500; color: var(--text-muted); }
.article__body .requisites td { color: var(--thm-black); }
.requisites__note { font-size: 14px; color: var(--text-muted); }
@media only screen and (max-width: 575px) {
    .article__body .requisites th,
    .article__body .requisites td { display: block; width: auto; padding-right: 0; }
    .article__body .requisites th { border-bottom: 0; padding-bottom: 0; }
}
.text-page .article-side .btn-solid { margin-top: 14px; }

/* ---------- 5. Отзывы ---------- */

.reviews-page { padding: 8px 0 var(--sect-pad); }
.reviews-page__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.reviews-page__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.reviews-page__list .testimonial-style1__single { height: 100%; margin: 0; }
/* у темплейта отступ под фото автора, фото у нас нет - звёзды и имя по одной линии с текстом */
.testimonial-style1__single .customer-info { padding-left: 0; }
.reviews-page__aside { position: sticky; top: 106px; }
.review-send {
    background: var(--surface-1);
    border-radius: var(--r-lg);
    padding: 30px 30px 28px;
}
.review-send h3 { font-size: 19px; font-weight: 600; margin-bottom: 16px; }
.review-send .form-row { margin-bottom: 12px; }
.review-send input[type=text],
.review-send textarea {
    width: 100%;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    background: #fff;
    padding: 13px 16px;
    font-family: var(--thm-font);
    font-size: 14.5px;
    color: var(--thm-heading-font-color);
    outline: none;
    resize: none;
    transition: border-color .25s ease;
}
.review-send input:focus,
.review-send textarea:focus { border-color: var(--brand-cyan); }
.review-send input.is-invalid,
.review-send textarea.is-invalid { border-color: var(--brand-red); }

/* оценка звёздами: радио справа налево, подсвечиваются выбранная и те, что левее */
.review-send__rating { border: 0; padding: 0; margin: 0 0 14px; }
.review-send__rating legend { font-size: 13.5px; color: var(--text-muted); margin-bottom: 6px; }
.review-send__stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.review-send__rating input { position: absolute; opacity: 0; pointer-events: none; }
.review-send__rating label { cursor: pointer; font-size: 22px; line-height: 1; color: var(--thm-border-color); transition: color .15s ease; }
.review-send__stars input:checked ~ label,
.review-send__stars label:hover,
.review-send__stars label:hover ~ label { color: var(--thm-primary-color); }
.review-send__rating input:focus-visible + label { outline: 2px solid var(--thm-primary-color); outline-offset: 2px; border-radius: 4px; }
.review-send__done { background: var(--surface-1); border-radius: var(--r-lg); padding: 34px 30px 30px; }
.testimonial-style1__single .rating-box li.is-empty .icon span { opacity: .25; }

@media only screen and (max-width: 1199px) {
    .reviews-page__layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
    .reviews-page__list { grid-template-columns: minmax(0, 1fr); }
}
@media only screen and (max-width: 991px) {
    .reviews-page__layout { grid-template-columns: minmax(0, 1fr); }
    /* на телефоне сначала отзывы, форма - после них */
    .reviews-page__aside { position: static; }
}
@media only screen and (max-width: 767px) {
    .review-send { padding: 22px 20px; }
}

/* ---------- 6. 404 ---------- */

.error-page--site { padding: 72px 0 var(--sect-pad); background: none; }
.error-page--site .big-title h2 { font-size: 120px; line-height: 1; color: var(--surface-2); margin-bottom: 8px; }
.error-page--site .title h1 { font-size: 34px; line-height: 1.15; font-weight: 700; margin-bottom: 12px; }
/* у темплейта 404 на тёмном фоне: текст и поле белые - переводим на светлую страницу */
.error-page--site .text p { font-size: 15.5px; line-height: 1.6; color: var(--thm-body-font-color); margin-bottom: 0; }
.error-page--site .error-page-search-box { display: block; max-width: 520px; margin: 0 auto 26px; padding-top: 26px; }
.error-page--site .error-page-search-box .search-form input[type="text"] {
    height: 54px;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    color: var(--thm-heading-font-color);
    font-size: 15px;
    padding-left: 18px;
}
.error-page--site .error-page-search-box .search-form input[type="text"]:focus { border-color: var(--brand-cyan); }
.error-page--site .error-page-search-box .search-form input::placeholder { color: var(--text-muted); }
.error-page--site .error-page-search-box .search-form button {
    width: 54px;
    height: 54px;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: var(--thm-primary-color);
}
.error-page__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
@media only screen and (max-width: 767px) {
    .error-page--site { padding-top: 40px; }
    .error-page--site .big-title h2 { font-size: 84px; }
    .error-page--site .title h1 { font-size: 26px; }
}

/* ---------- 7. Уведомления WooCommerce ---------- */

.wc-notices-box { padding-top: 20px; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notices-wrapper .wc-block-components-notice-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px 18px;
    background: var(--surface-1);
    border-radius: var(--r-md);
    font-size: 14.5px;
    color: var(--thm-heading-font-color);
    list-style: none;
}
/* ошибка: светлая подложка и тёмный вариант фирменного красного, контраст 7:1 */
.woocommerce-error { background: color-mix(in srgb, var(--brand-red) 8%, #fff); color: color-mix(in srgb, var(--brand-red) 62%, #000); }
.woocommerce-error li { margin: 0; }
/* несколько ошибок - столбиком, а не в строку через всю ширину */
.woocommerce-error { flex-direction: column; align-items: flex-start; gap: 6px; }
.woocommerce-message .button,
.woocommerce-info .button { font-weight: 600; color: var(--thm-primary-color); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 8. Корзина ---------- */

/* сверху отступ даёт шапка страницы (margin-bottom), как на остальных внутренних */
.cart-area { padding: 0 0 var(--sect-pad); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
/* рамка целиком на обёртке: у темплейта правый и нижний край рисуют ячейки, и скругление их обрезало */
.cart-table-box .table-outer { border: 1px solid var(--thm-border-color); border-radius: var(--r-lg); }
@media only screen and (min-width: 768px) {
    .cart-table-box .cart-table thead tr th:last-child,
    .cart-table-box .cart-table tbody tr td:last-child { border-right: 0; }
    .cart-table-box .cart-table tbody tr:last-child { border-bottom: 0; }
}
.cart-table-box .cart-table { min-width: 0; }
.cart-table-box .cart-table .cart-header { background: var(--surface-1); border-bottom-color: var(--thm-border-color); }
.cart-table-box .cart-table thead tr th {
    min-width: 0;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-right-color: var(--thm-border-color);
}
.cart-table-box .cart-table thead tr th.prod-column { text-align: left; }
.cart-table-box .cart-table tbody tr { border-bottom-color: var(--thm-border-color); }
.cart-table-box .cart-table tbody tr td { min-width: 0; padding: 18px 16px; border-right-color: var(--thm-border-color); vertical-align: middle; }
.cart-table-box .cart-table tbody tr .prod-column .column-box { display: flex; align-items: center; gap: 16px; min-height: 0; }
.cart-table-box .cart-table tbody tr .prod-column .column-box .prod-thumb { flex: 0 0 72px; width: 72px; display: block; }
.cart-table-box .cart-table tbody tr .prod-column .column-box .prod-thumb img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: var(--surface-1);
    border-radius: var(--r-sm);
    padding: 4px;
}
.cart-table-box .cart-table tbody tr .prod-column .column-box .title { display: block; padding-left: 0; }
.cart-table-box .cart-table tbody tr .prod-column .column-box .title h3 { font-size: 15px; line-height: 1.35; font-weight: 600; margin-bottom: 4px; }
.cart-table-box .cart-table tbody tr .prod-column .column-box .title h3 a { color: var(--thm-heading-font-color); }
.cart-table-box .cart-table tbody tr .prod-column .column-box .title h3 a:hover { color: var(--thm-primary-color); }
.cart-table-box .cart-table tbody tr td.price,
.cart-table-box .cart-table tbody tr .sub-total { font-size: 15px; white-space: nowrap; }
.cart-table-box .cart-table tbody tr .sub-total { font-weight: 600; color: var(--thm-heading-font-color); }
.cart-table-box .cart-table tbody tr td .remove { display: inline-flex; }
.cart-table-box .cart-table tbody tr td .remove span {
    width: 38px;
    height: 38px;
    line-height: 36px;
    border-color: var(--thm-border-color);
    border-radius: var(--r-sm);
    font-size: 13px;
}
.cart-table-box .cart-table tbody tr td .remove:hover span { border-color: var(--brand-red); color: var(--brand-red); }
.cart-table-box .cart-table td.product-remove { text-align: center; width: 70px; }
.cart-info { padding-bottom: 12px; font-size: 15px; }

/* количество: поле WooCommerce в стиле форм сайта */
.cart-area .quantity { display: inline-block; }
.cart-area .quantity input.qty,
.checkout-area .quantity input.qty {
    width: 76px;
    height: 44px;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    text-align: center;
    font-family: var(--thm-font-2);
    font-size: 15px;
    font-weight: 600;
    color: var(--thm-heading-font-color);
    outline: none;
}
.cart-area .quantity input.qty:focus { border-color: var(--brand-cyan); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.cart-button-box { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cart-button-box .cart-update[disabled] { opacity: .45; cursor: default; }
/* при работающем скрипте корзина пересчитывается сама - кнопка не нужна */
.cart-auto .cart-update { display: none; }

.cart-summary {
    position: sticky;
    top: 106px;
    background: var(--surface-1);
    border-radius: var(--r-lg);
    padding: 26px 26px 24px;
}
.cart-summary h2 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.cart-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--thm-border-color); font-size: 15px; }
.cart-summary__row b { font-family: var(--thm-font-2); font-weight: 600; color: var(--thm-heading-font-color); }
.cart-summary__row--total { border-bottom: 0; padding-top: 14px; font-size: 16px; }
.cart-summary__row--total b { font-size: 22px; color: var(--brand-cyan-deep); }
.cart-summary__note { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin: 6px 0 18px; }
.cart-summary .btn-solid { width: 100%; justify-content: center; }
.cart-summary__kp { width: 100%; justify-content: center; margin-top: 10px; }

.cart-area--empty .catalog-empty { margin: 0 auto; max-width: 560px; text-align: center; }
.catalog-empty__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

@media only screen and (max-width: 1199px) {
    .cart-layout { grid-template-columns: minmax(0, 1fr); }
    .cart-summary { position: static; }
}
@media only screen and (max-width: 767px) {
    /* на телефоне строки корзины - карточками, без горизонтальной прокрутки */
    .cart-table-box .table-outer { border: 0; overflow: visible; }
    .cart-table-box .cart-table thead { display: none; }
    .cart-table-box .cart-table,
    .cart-table-box .cart-table tbody { display: block; }
    .cart-table-box .cart-table tbody tr {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px 12px;
        border: 1px solid var(--thm-border-color);
        border-radius: var(--r-lg);
        padding: 16px 52px 16px 16px;
        margin-bottom: 12px;
    }
    .cart-table-box .cart-table tbody tr td { display: block; padding: 0; border: 0; text-align: left; }
    .cart-table-box .cart-table tbody tr td.prod-column { grid-column: 1 / -1; }
    .cart-table-box .cart-table tbody tr td[data-title]::before {
        content: attr(data-title);
        display: block;
        font-size: 12px;
        color: var(--text-muted);
        margin-bottom: 4px;
    }
    .cart-table-box .cart-table td.product-remove { position: absolute; top: 12px; right: 12px; width: auto; }
    .cart-summary { padding: 22px 20px; }
}

/* опт и минимальный заказ под названием товара */
.cart-rule { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }

/* ---------- 9. Оформление заказа и «Заказ принят» ---------- */

/* согласие с офертой: своя галочка в цвет сайта, текст на одной линии с ней */
.woocommerce-terms-and-conditions-wrapper .form-row { margin: 14px 0 0; }
.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--thm-heading-font-color);
    cursor: pointer;
}
.woocommerce-terms-and-conditions-wrapper input[type=checkbox] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--thm-primary-color);
}
.woocommerce-terms-and-conditions-wrapper a { color: var(--thm-primary-color); text-decoration: underline; text-underline-offset: 2px; }
.woocommerce-privacy-policy-text p { font-size: 13px; line-height: 1.5; margin: 0; }
.woocommerce-privacy-policy-text a { color: var(--thm-primary-color); }

/* кнопки с иконкой WhatsApp в начале (пустая корзина, «Заказ принят», товар без цены) */
.btn-outline > .fab:first-child { margin-right: 8px; }

.checkout-area { padding: 0 0 var(--sect-pad); }
/* у темплейта форма сама в рамке - внутри наших блоков это рамка в рамке */
.checkout-area .checkout-form { padding: 0; border: 0; border-radius: 0; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.checkout-block {
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-lg);
    padding: 26px 28px 24px;
    margin-bottom: 20px;
}
.checkout-block__title { font-size: 19px; font-weight: 600; margin-bottom: 18px; }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.checkout-fields .form-row { margin: 0; padding: 0; }
.checkout-fields .form-row-wide,
.checkout-fields #order_comments_field { grid-column: 1 / -1; }
.checkout-area .form-row label { display: block; font-size: 13.5px; color: var(--text-muted); margin-bottom: 6px; }
.checkout-area .form-row .required { color: var(--brand-red); text-decoration: none; border: 0; }
.checkout-area .form-row .optional { display: none; }
.checkout-area .form-row input.input-text,
.checkout-area .form-row textarea {
    width: 100%;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    background: #fff;
    padding: 13px 16px;
    font-family: var(--thm-font);
    font-size: 14.5px;
    color: var(--thm-heading-font-color);
    outline: none;
    transition: border-color .25s ease;
}
.checkout-area .form-row textarea { min-height: 96px; resize: vertical; }
.checkout-area .form-row input.input-text:focus,
.checkout-area .form-row textarea:focus { border-color: var(--brand-cyan); }
.checkout-area .woocommerce-invalid input.input-text { border-color: var(--brand-red); }

.delivery-choice { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.delivery-choice legend { font-size: 13.5px; color: var(--text-muted); margin-bottom: 8px; }
.delivery-choice__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.delivery-choice__item input { margin-top: 4px; accent-color: var(--thm-primary-color); }
.delivery-choice__item b { display: block; font-family: var(--thm-font-2); font-weight: 600; color: var(--thm-heading-font-color); }
.delivery-choice__item small { display: block; font-size: 13px; line-height: 1.45; color: var(--text-muted); margin-top: 2px; }
.delivery-choice__item:has(input:checked) { border-color: var(--thm-primary-color); background: var(--surface-1); }

.checkout-summary {
    position: sticky;
    top: 106px;
    background: var(--surface-1);
    border-radius: var(--r-lg);
    padding: 26px 26px 24px;
}
.checkout-summary h2 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.order-list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.order-list td,
.order-list th { padding: 10px 0; border-bottom: 1px solid var(--thm-border-color); vertical-align: top; text-align: left; }
.order-list .product-total,
.order-list tfoot td { text-align: right; white-space: nowrap; padding-left: 12px; font-weight: 600; color: var(--thm-heading-font-color); }
.order-list .product-quantity { color: var(--text-muted); }
.order-list .order-total th,
.order-list .order-total td { border-bottom: 0; padding-top: 14px; font-size: 16px; }
.order-list .order-total td { font-size: 22px; color: var(--brand-cyan-deep); }
.order-list .order-note td { border-bottom: 0; padding: 0 0 16px; text-align: left; white-space: normal; font-size: 13.5px; line-height: 1.5; font-weight: 400; color: var(--text-muted); }
.checkout-summary .wc_payment_methods { list-style: none; margin: 0 0 14px; padding: 0; }
.checkout-summary .wc_payment_method label { font-family: var(--thm-font-2); font-weight: 600; color: var(--thm-heading-font-color); }
.checkout-summary .wc_payment_method input { accent-color: var(--thm-primary-color); margin-right: 6px; }
.checkout-summary .payment_box { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin-top: 6px; }
.checkout-summary .payment_box p { margin: 0; font-size: inherit; line-height: inherit; }
.checkout-summary .woocommerce-terms-and-conditions-wrapper input { accent-color: var(--thm-primary-color); margin-right: 4px; }
.checkout-summary .woocommerce-terms-and-conditions-wrapper { font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }
.checkout-summary .woocommerce-terms-and-conditions-wrapper a { color: var(--thm-primary-color); text-decoration: underline; text-underline-offset: 2px; }
.checkout-summary .woocommerce-privacy-policy-text p { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.checkout-summary #place_order {
    width: 100%;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--brand-red);
    color: #fff;
    padding: 16px 20px;
    font-family: var(--thm-font-2);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}
.checkout-summary #place_order:hover { background: var(--thm-black); }
.woocommerce-NoticeGroup-checkout { grid-column: 1 / -1; }
.blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

.order-done { max-width: 640px; margin: 24px auto 0; text-align: center; }
.order-done h2 { font-size: 30px; line-height: 1.2; font-weight: 700; margin: 6px 0 12px; }
.order-done p { font-size: 15.5px; line-height: 1.6; }
.order-done p a { color: var(--thm-primary-color); font-weight: 600; }
.order-done__list { list-style: none; margin: 22px 0 10px; padding: 18px 22px; background: var(--surface-1); border-radius: var(--r-lg); text-align: left; }
.order-done__list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--thm-border-color); font-size: 14.5px; }
.order-done__list li b { white-space: nowrap; color: var(--thm-heading-font-color); }
.order-done__total { border-bottom: 0 !important; font-weight: 600; }
.order-done__meta { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }

@media only screen and (max-width: 1199px) {
    .checkout-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media only screen and (max-width: 991px) {
    .checkout-layout { grid-template-columns: minmax(0, 1fr); }
    .checkout-summary { position: static; }
}
@media only screen and (max-width: 575px) {
    .checkout-fields { grid-template-columns: minmax(0, 1fr); }
    .checkout-block { padding: 20px 18px; }
    .order-done h2 { font-size: 24px; }
}

/* ---------- 10. Страницы покупателю: оплата, поставка, опт, документы ---------- */

.buyer-lead { margin: -6px 0 28px; font-size: 16px; line-height: 1.65; }

/* оплата: кто и как платит - таблица, на телефоне строки карточками */
.pay-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--thm-border-color); border-radius: var(--r-lg); overflow: hidden; }
.pay-table th,
.pay-table td { padding: 20px 24px; text-align: left; vertical-align: top; font-size: 15px; line-height: 1.6; }
.pay-table thead th {
    padding-top: 14px;
    padding-bottom: 14px;
    background: var(--surface-1);
    font-family: var(--thm-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.pay-table tbody tr + tr > * { border-top: 1px solid var(--thm-border-color); }
.pay-table tbody th { width: 28%; font-family: var(--thm-font-2); font-size: 16px; font-weight: 600; color: var(--thm-heading-font-color); }
.pay-table__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: -6px 12px -6px 0;
    border-radius: 50%;
    background: var(--surface-1);
    color: var(--thm-primary-color);
    font-size: 18px;
    vertical-align: middle;
}

/* получение: доставка и самовывоз рядом */
.receive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.receive-card { display: flex; flex-direction: column; padding: 30px 32px; background: #fff; border: 1px solid var(--thm-border-color); border-radius: var(--r-lg); }
.receive-card__icon { font-size: 32px; line-height: 1; color: var(--thm-primary-color); }
.receive-card h3 { margin: 16px 0 10px; font-size: 20px; font-weight: 600; }
.receive-card p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; }
.receive-card__addr { font-family: var(--thm-font-2); font-size: 16px !important; font-weight: 600; color: var(--thm-heading-font-color); }
.receive-card .check-list { margin-top: 8px; }

/* список с галочками - как в карточках «Кому поставляем» */
.check-list { display: grid; gap: 10px; margin: 0; }
.check-list li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.5; color: var(--thm-heading-font-color); }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--brand-cyan);
    border-bottom: 2px solid var(--brand-cyan);
    transform: rotate(-45deg);
}
.check-list--lg { gap: 14px; }
.check-list--lg li { font-size: 16px; }

/* маршрут до офиса */
.route-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.route-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--thm-heading-font-color);
    transition: border-color .2s ease;
}
.route-links a:hover { border-color: var(--thm-primary-color); color: var(--thm-heading-font-color); }
.route-links img { width: 18px; height: 18px; }

/* текст и пример из карточки товара рядом */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.split__caption { margin: 0 0 10px; font-size: 13.5px; color: var(--text-muted); }

/* отметки каталога: те же подписи, что на карточках */
.status-list { margin: 0; border-top: 1px solid var(--thm-border-color); }
.status-list__row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--thm-border-color); }
.status-list dt { margin: 0; }
.status-list dd { margin: 0; font-size: 15px; line-height: 1.6; }
.status-list .stock-label { font-size: 14.5px; font-weight: 600; }
.status-list__price { font-family: var(--thm-font-2); font-size: 15px; font-weight: 700; color: var(--thm-primary-color); }

/* пример блока цены из карточки товара - живые данные товара */
.buy-sample { display: block; background: #fff; border: 1px solid var(--thm-border-color); border-radius: var(--r-lg); overflow: hidden; color: inherit; transition: border-color .2s ease; }
.buy-sample:hover { border-color: var(--brand-cyan); color: inherit; }
.buy-sample__head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.buy-sample__img { flex: 0 0 64px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.buy-sample__img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.buy-sample__name { font-size: 14.5px; line-height: 1.4; font-weight: 500; color: var(--thm-heading-font-color); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.buy-sample__box { display: grid; gap: 6px; padding: 18px 20px; background: var(--surface-1); }
.buy-sample__price { font-family: var(--thm-font-2); font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--thm-heading-font-color); }
.buy-sample__terms { display: grid; gap: 4px; }
.buy-sample__terms span { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.buy-sample__terms b { font-weight: 600; color: var(--thm-heading-font-color); }
.buy-sample__more { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-size: 14px; font-weight: 500; color: var(--thm-primary-color); }
.buy-sample__more i { font-size: 11px; transition: transform .25s ease; }
.buy-sample:hover .buy-sample__more i { transform: translateX(4px); }

/* опт: три способа строками, не плитками */
.way-list { display: grid; gap: 26px; margin: 0; }
.way-list__row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; }
.way-list__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-1); color: var(--thm-primary-color); font-size: 21px; }
.way-list h3 { margin: 4px 0 6px; font-size: 18px; font-weight: 600; }
.way-list p { margin: 0; font-size: 15px; line-height: 1.6; }

/* подборка товаров с оптовой ценой */
.opt-products { padding-bottom: var(--sect-pad); }
.opt-products .row { --bs-gutter-y: var(--gap); }
.card-opt { margin: -4px 0 12px !important; font-family: var(--thm-font) !important; font-size: 13px !important; font-weight: 400 !important; line-height: 1.45 !important; color: var(--text-muted) !important; }
.card-opt b { font-weight: 600; color: var(--thm-heading-font-color); }

/* пояснение в белой рамке на тонированной секции */
.note-card { padding: 30px 32px; background: #fff; border: 1px solid var(--thm-border-color); border-radius: var(--r-lg); }
.note-card__icon { display: block; margin-bottom: 14px; font-size: 30px; line-height: 1; color: var(--thm-primary-color); }
.note-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.note-card p { margin: 0; font-size: 15px; line-height: 1.6; }
.note-card .btn-outline { margin-top: 20px; }

/* порядок действий: номер в круге, как у шагов «Как строится работа» */
.num-list { display: grid; gap: 16px; margin: 0; counter-reset: num; }
.num-list li { position: relative; padding-left: 50px; min-height: 34px; font-size: 16px; line-height: 1.55; color: var(--thm-heading-font-color); counter-increment: num; }
.num-list li::before {
    content: counter(num);
    position: absolute;
    left: 0;
    top: -2px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--thm-primary-color);
    color: #fff;
    font-family: var(--thm-font-2);
    font-size: 15px;
    font-weight: 700;
}

/* документы: строки с отметкой, когда передаём */
.doc-list { margin: 0; border-top: 1px solid var(--thm-border-color); }
.doc-list__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--thm-border-color); }
.doc-list__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-1); color: var(--thm-primary-color); font-size: 20px; }
.doc-list__text h3 { margin: 0 0 4px; font-size: 17.5px; font-weight: 600; }
.doc-list__text p { margin: 0; font-size: 15px; line-height: 1.55; }
.doc-chip { justify-self: end; padding: 6px 12px; border-radius: var(--r-sm); background: var(--surface-1); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--thm-heading-font-color); }
.doc-chip--ask { background: var(--surface-2); color: var(--brand-cyan-deep); }

/* вопросы со страницы «Вопрос-ответ» внутри страницы - на всю ширину, без колонки помощи */
.faq-section--inline { padding: 0 0 var(--sect-pad); }

@media only screen and (max-width: 1199px) {
    .split { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}
@media only screen and (max-width: 991px) {
    .split,
    .split--even { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .split__aside { max-width: 460px; }
    .receive-grid { grid-template-columns: minmax(0, 1fr); }
}
@media only screen and (max-width: 767px) {
    .pay-table,
    .pay-table tbody,
    .pay-table tr,
    .pay-table th,
    .pay-table td { display: block; width: 100%; }
    .pay-table thead { display: none; }
    .pay-table tbody tr + tr > * { border-top: 0; }
    .pay-table tbody tr + tr { border-top: 1px solid var(--thm-border-color); }
    .pay-table tbody th { display: flex; align-items: center; width: 100%; padding: 18px 18px 8px; }
    .pay-table td { padding: 6px 18px; font-size: 14.5px; }
    .pay-table td:last-child { padding-bottom: 18px; }
    .pay-table td::before { content: attr(data-title); display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
    .receive-card,
    .note-card { padding: 22px 20px; }
    .status-list__row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
    .doc-list__row { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 14px; align-items: start; padding: 18px 0; }
    .doc-list__icon { width: 40px; height: 40px; font-size: 17px; }
    .doc-chip { grid-column: 2; justify-self: start; }
    .way-list__row { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
    .way-list__icon { width: 40px; height: 40px; font-size: 18px; }
}

/* ---------- 11. Выбор номера WhatsApp ---------- */

/* два номера: по ссылке WhatsApp - список «кому написать» (stylus.js), выше окна заявки и меню */
.wa-pick {
    position: fixed;
    z-index: 1000015;
    width: 270px;
    max-width: calc(100vw - 32px);
    padding: 6px;
    background: #fff;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-md);
    box-shadow: 0 14px 32px rgba(20, 35, 46, .16);
}
.wa-pick a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--thm-black);
    transition: background-color .2s ease;
}
.wa-pick a + a { margin-top: 2px; }
.wa-pick a:hover,
.wa-pick a:focus-visible { background: var(--surface-1); color: var(--thm-black); outline: none; }
.wa-pick a:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-cyan); }
.wa-pick i {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wa-pick span { display: flex; flex-direction: column; min-width: 0; }
.wa-pick b { font-family: var(--thm-font-2); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.wa-pick small { font-size: 13px; line-height: 1.4; color: var(--text-muted); font-variant-numeric: tabular-nums; }
