/* Новая витрина: дополнения к стилям макета (style.css, pages.css) для живых данных сайта. */
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; top: 12px; }
main:focus { outline: none; }
main.container { padding-bottom: 40px; }
button.callback { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Карточки товаров на живых данных */
.p-stock.is-order { color: var(--muted); }
.p-img img { object-fit: contain; }
.price-old { display: block; font-size: calc(13px * var(--fs, 1)); color: var(--muted); font-weight: 500; }
.price.is-request { font-size: calc(15px * var(--fs, 1)); color: var(--ink-2); }
.cart-btn.is-in { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.is-in { background: var(--ok); border-color: var(--ok); color: #fff; }
.p-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Текстовые страницы из админки */
.text-page { padding: 28px; margin-top: 8px; }
.text-page h1 { margin-bottom: 16px; }
.rich { color: var(--ink-2); font-size: calc(15.5px * var(--fs, 1)); line-height: 1.65; overflow-wrap: anywhere; }
.rich p { margin: 0 0 12px; }
.rich h2, .rich h3 { color: var(--ink); margin: 20px 0 10px; }
.rich ul, .rich ol { margin: 0 0 12px 20px; }
.rich img { max-width: 100%; height: auto; border-radius: 10px; }
.rich table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: calc(14.5px * var(--fs, 1)); }
.rich td, .rich th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.rich a { text-decoration: underline; text-underline-offset: 2px; }
.about-text { padding: 24px; }
.about-text .rich { columns: 2 380px; column-gap: 32px; }

/* Каталог */
.filters-close { display: none; }
.toolbar form { margin: 0; }
.search-pages { display: grid; gap: 2px; padding: 8px; }
.search-pages a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.search-pages a:hover { background: var(--brand-50); }
.search-pages .muted { font-size: calc(13.5px * var(--fs, 1)); }

/* Товар */
.gallery-main.is-empty { display: grid; place-items: stretch; }
.gallery-main.is-empty .no-photo { min-height: 320px; }
.buybox-ch { display: flex; gap: 6px; margin-top: 10px; }
.mobile-buy .btn span { margin-left: 4px; }

/* Корзина и оформление */
.cart-row .thumb .no-photo { width: 100%; height: 100%; }
.checkout-form { max-width: 820px; }
.checkout-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.input.is-invalid { border-color: var(--danger); background: #fff7f7; }
.field-error { color: var(--danger); font-size: calc(13px * var(--fs, 1)); margin-top: 4px; }
.radio-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-chips label { cursor: pointer; }
.radio-chips input { position: absolute; opacity: 0; }
.radio-chips input:checked + .chip { background: var(--brand); border-color: var(--brand); color: #fff; }
.radio-chips input:focus-visible + .chip { outline: 2px solid var(--brand); outline-offset: 2px; }
.co-fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.summary-items { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; font-size: calc(14px * var(--fs, 1)); }
.summary-items li { display: flex; justify-content: space-between; gap: 10px; }
.summary-items b { white-space: nowrap; }
.note.warn { background: var(--warn-50); color: var(--warn); }

/* Всплывающее сообщение «Добавлено в корзину» */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 250; background: var(--brand-900); color: #fff; border-radius: 14px; padding: 12px 14px 12px 18px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; font-size: calc(14.5px * var(--fs, 1)); max-width: calc(100vw - 24px); }
.toast a { color: var(--accent); font-weight: 700; white-space: nowrap; }
@media (max-width: 900px) { .toast { bottom: 84px; } .filters-close { display: inline-flex; } }

/* Старые формы и блоки из админки (конструктор форм, заказ звонка) в новой теме */
.store-form { display: grid; gap: 12px; }
.store-form .form-control, .store-form input[type=text], .store-form input[type=tel], .store-form input[type=email], .store-form textarea, .store-form select { font: inherit; width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: #fff; }
.store-form .btn-primary { background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 650; cursor: pointer; }
.store-form .btn-outline-primary { background: #fff; color: var(--brand); border: 1px solid var(--brand); border-radius: 10px; padding: 10px 16px; }
dialog#callback { border: 0; border-radius: 18px; padding: 24px; width: min(480px, calc(100vw - 24px)); box-shadow: var(--shadow-lg); }
dialog#callback::backdrop { background: color-mix(in srgb, var(--brand-900) 55%, transparent); }
.btn-outline-primary { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--brand); color: var(--brand); background: #fff; font-weight: 600; }
.alert { padding: 12px 16px; border-radius: 12px; background: var(--brand-50); margin: 10px 0; }
.alert-success { background: var(--ok-50); color: var(--ok); }
.alert-warning, .alert-danger { background: var(--warn-50); color: var(--warn); }

/* Подвал: в style.css макета правило на 4 колонки стоит после @media и ломало телефон — чиним здесь. */
.footer-ch { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } .footer-ch { grid-template-columns: 1fr; } .footer-ch .ch-card { flex-direction: row; } }
.layout > section, .checkout > div, .product > div { min-width: 0; }
.toolbar { flex-wrap: wrap; }

/* Личный кабинет, запросы цены и совместимости: старая разметка Bootstrap в новой теме */
.text-page nav[aria-label="Личный кабинет"] { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.text-page nav[aria-label="Личный кабинет"] a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.text-page nav[aria-label="Личный кабинет"] a:hover, .text-page nav[aria-label="Личный кабинет"] a[aria-current] { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.text-page nav form { margin: 0; }
.text-page .form-group { display: grid; gap: 6px; margin-bottom: 14px; max-width: 560px; }
.text-page label { font-weight: 600; font-size: calc(14px * var(--fs, 1)); }
.text-page .form-control { font: inherit; width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: #fff; }
.text-page textarea.form-control { height: auto; min-height: 96px; padding: 10px 12px; }
.text-page .form-control:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.text-page .form-control.is-invalid { border-color: var(--danger); background: #fff7f7; }
.text-page .invalid-feedback, .text-page .text-danger { color: var(--danger); font-size: calc(13px * var(--fs, 1)); }
.text-page .form-check { display: flex; gap: 8px; align-items: flex-start; }
.text-page .form-check label { font-weight: 400; }
.text-page .btn-primary { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 650; cursor: pointer; }
.text-page .btn-primary:hover { background: var(--brand-700); }
.text-page .btn-outline-primary { cursor: pointer; }
.text-page .table { width: 100%; border-collapse: collapse; font-size: calc(14.5px * var(--fs, 1)); }
.text-page .table th, .text-page .table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.text-page .table th { color: var(--muted); font-weight: 600; font-size: calc(13px * var(--fs, 1)); }
.text-page .alert ul, .text-page ul.alert { padding-left: 22px; }
.text-page .mb-3 { margin-bottom: 14px; }
.text-page .mt-3 { margin-top: 14px; }
.topbar .item { white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }

/* Главная: первый блок «Ремонт бытовой техники» (по блоку uslugi98.ru) */
.repair { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0 30px; }
.repair-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-bottom: 20px; }
.repair-eyebrow { background: var(--brand-50); color: var(--brand); }
.repair h2 { font-size: calc(clamp(26px, 3.2vw, 36px) * var(--fs, 1)); margin: 10px 0 8px; letter-spacing: -.02em; }
.repair-lead { color: var(--ink-2); font-size: calc(15.5px * var(--fs, 1)); line-height: 1.6; max-width: 760px; margin: 0; }
.repair-cta { display: grid; gap: 6px; justify-items: stretch; text-align: center; min-width: 250px; padding: 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.repair-phone { font-size: calc(20px * var(--fs, 1)); font-weight: 800; color: var(--ink); margin-top: 4px; }
.repair-cta .muted { font-size: calc(13px * var(--fs, 1)); margin-bottom: 6px; }
.repair-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.repair-tile { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--brand-900); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3.4; }
.repair-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.repair-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--brand-900) 92%, transparent) 45%); color: #fff; font-weight: 700; font-size: calc(14.5px * var(--fs, 1)); line-height: 1.25; padding-top: 28px; }
.repair-tile:hover img { transform: scale(1.05); }
.repair-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1080px) { .repair-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .repair-head { grid-template-columns: 1fr; } .repair-cta { min-width: 0; } .repair-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .repair { padding: 20px 0 22px; } .repair-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .repair-tile span { font-size: calc(13px * var(--fs, 1)); padding: 22px 9px 8px; } }

/* По наброску владельца (22.11): верхняя полоса по центру, логотип крупнее, лента брендов, компактный блок вызова мастера */
.topbar .container { justify-content: center; gap: 28px; }
.header .logo-img { height: 64px; }
.header-main { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 900px) { .header .logo-img { height: 44px; } }

.brand-strip { background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; padding: 14px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.brand-strip-track { display: flex; width: max-content; animation: brand-strip calc(var(--brands, 30) * 2.6s) linear infinite; will-change: transform; }
.brand-strip:hover .brand-strip-track, .brand-strip:focus-within .brand-strip-track { animation-play-state: paused; }
.brand-strip-list { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 7px; }
.brand-strip-list a { display: grid; place-items: center; width: 168px; height: 62px; padding: 6px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.brand-strip-list a:hover, .brand-strip-list a:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.brand-strip-list img { max-width: 100%; max-height: 46px; width: auto; height: auto; display: block; }
@keyframes brand-strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .brand-strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .brand-strip-track { animation: none; }
    .brand-strip-list[aria-hidden="true"] { display: none; }
}
@media (max-width: 600px) { .brand-strip { padding: 10px 0; } .brand-strip-list a { width: 132px; height: 50px; } .brand-strip-list img { max-height: 36px; } }

.repair { padding-top: 22px; }
.repair h2 { margin-top: 0; }
.repair-cta { min-width: 220px; padding: 12px 14px; gap: 4px; }
.repair-cta .btn-lg { height: 44px; font-size: calc(15px * var(--fs, 1)); }
.repair-phone { font-size: calc(17px * var(--fs, 1)); }
.repair-cta .btn-ghost { height: 38px; font-size: calc(14px * var(--fs, 1)); }

/* Страницы ремонта /remont и /remont/<услуга> */
.rp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 28px; align-items: center; padding: 28px; margin-top: 4px; }
.rp-hero h1 { margin: 0 0 10px; font-size: calc(clamp(26px, 3.4vw, 38px) * var(--fs, 1)); letter-spacing: -.02em; }
.rp-lead { color: var(--ink-2); font-size: calc(16px * var(--fs, 1)); line-height: 1.6; margin: 0 0 14px; max-width: 760px; }
.rp-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; font-size: calc(14.5px * var(--fs, 1)); color: var(--ink-2); }
.rp-points li { display: flex; gap: 8px; align-items: center; }
.rp-points .icon { color: var(--ok); flex: none; }
.rp-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rp-phone { display: grid; margin-left: 6px; }
.rp-phone a { font-size: calc(19px * var(--fs, 1)); font-weight: 800; color: var(--ink); }
.rp-phone small { color: var(--muted); font-size: calc(12.5px * var(--fs, 1)); }
/* Карточка без картинки («Ремонт») — всё по центру; на телефоне по центру и карточки услуг с картинкой */
.rp-hero.is-center { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 34px 28px; }
.rp-hero.is-center .rp-lead { margin-left: auto; margin-right: auto; }
.rp-hero.is-center .rp-cta { justify-content: center; }
.rp-hero.is-center .rp-phone { text-align: left; }
@media (max-width: 900px) { .rp-points { text-align: left; justify-self: stretch; } }
/* «Ремонт»: по бокам пиктограммы — звонок мастеру и мастер с инструментами; кнопки друг под другом, телефон ниже */
.rp-hero.is-center.has-art { grid-template-columns: 200px minmax(0, 1fr) 200px; gap: 24px; }
.rp-art { width: 200px; height: 200px; display: block; justify-self: center; }
.rp-cta.is-stack { flex-direction: column; align-items: center; gap: 10px; }
.rp-cta.is-stack .btn { width: 280px; max-width: 100%; justify-content: center; flex: 0 0 auto; }
.rp-hero.is-center .rp-cta.is-stack .rp-phone { text-align: center; margin: 4px 0 0; }
@media (max-width: 1080px) { .rp-hero.is-center.has-art { grid-template-columns: 150px minmax(0, 1fr) 150px; } .rp-art { width: 150px; height: 150px; } }
@media (max-width: 900px) { .rp-hero.is-center.has-art { grid-template-columns: 1fr; } .rp-art-call { display: none; } .rp-art-master { order: -1; width: 130px; height: 130px; } }
.rp-hero-img img { width: 100%; height: auto; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.rp-faults { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rp-fault { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: calc(14.5px * var(--fs, 1)); transition: border-color .2s, box-shadow .2s; }
.rp-fault:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.rp-fault .icon { color: var(--brand); flex: none; }
.rp-prices { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.rp-visit, .rp-works { padding: 20px 22px; }
.rp-visit h3, .rp-works h3 { margin: 0 0 8px; font-size: calc(17px * var(--fs, 1)); }
.rp-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: calc(14.5px * var(--fs, 1)); }
.rp-row b { white-space: nowrap; color: var(--ink); }
.rp-row span { color: var(--ink-2); }
.rp-visit .muted, .rp-works .muted { font-size: calc(13px * var(--fs, 1)); margin: 10px 0 0; }
.rp-more summary { cursor: pointer; color: var(--brand); font-weight: 650; padding: 12px 0 4px; list-style: none; }
.rp-more summary::-webkit-details-marker { display: none; }
.rp-more summary::after { content: " ▾"; }
.rp-more[open] summary::after { content: " ▴"; }
.rp-other { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1081px) { .rp-other { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1080px) { .rp-faults { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-prices { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .rp-hero { grid-template-columns: 1fr; padding: 20px; text-align: center; justify-items: center; } .rp-hero-img { order: -1; max-width: 420px; width: 100%; }
    .rp-lead { margin-left: auto; margin-right: auto; } .rp-cta { justify-content: center; } .rp-phone { text-align: center; margin-left: 0; } }
@media (max-width: 600px) { .rp-points { grid-template-columns: 1fr; } .rp-faults { grid-template-columns: 1fr; } .rp-phone { margin-left: 0; } .rp-cta .btn { flex: 1 1 100%; } }
.about.about-single { grid-template-columns: 1fr; }
.rp-prices.is-single { grid-template-columns: 1fr; }

/* Полезная информация: список статей и статья */
.articles-lead { max-width: 820px; margin: -4px 0 18px; }
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.article-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.article-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card-body { display: grid; gap: 6px; }
.article-card b { font-size: calc(17px * var(--fs, 1)); line-height: 1.3; }
.article-card .muted { font-size: calc(14px * var(--fs, 1)); line-height: 1.5; }
.article-more { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 650; font-size: calc(14px * var(--fs, 1)); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.article-text .rich { max-width: 780px; }
.article-text .rich strong:only-child { color: var(--ink); }
.article-aside { display: grid; gap: 14px; position: sticky; top: 16px; }
.article-links { display: grid; gap: 4px; }
.article-links a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-size: calc(14.5px * var(--fs, 1)); }
.article-links a:hover { background: var(--brand-50); color: var(--brand); }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* Картинки в тексте статей и страниц (вставляются в редакторе админки) */
.rich img { max-width: 100%; height: auto; border-radius: 14px; }
.rich figure { margin: 22px 0; }
.rich figure img { display: block; width: 100%; box-shadow: var(--shadow-sm); }
.rich figcaption { font-size: calc(13.5px * var(--fs, 1)); color: var(--muted); text-align: center; margin-top: 8px; }
.rich p > img:only-child { display: block; margin: 8px auto; }
.article-card.has-cover { flex-direction: column; padding: 0; overflow: hidden; }
.article-card.has-cover .article-card-body { padding: 16px 20px 20px; }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg); }
.article-cover { height: auto; }
.article-cover.is-icon { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-900), var(--brand)); color: #fff; }
.article-cover.is-icon .icon { width: 64px; height: 64px; stroke-width: 1.4; opacity: .9; }

/* Первый экран поиска в одну колонку; «Где найти номер модели» — всплывающее окно */
.hero-compact .container { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 40px; padding-bottom: 44px; }
.hero-compact .hero-lead { margin-left: auto; margin-right: auto; }
.hero-compact .finder { max-width: 760px; width: 100%; text-align: left; margin-left: auto; margin-right: auto; }
.hero-compact .finder-tabs { justify-content: center; }
.hero-compact .finder-hint { justify-content: center; }
.plate-dialog { width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; margin: auto; color: #fff; background: linear-gradient(160deg, var(--brand-900), var(--brand)); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 26px 24px 22px; box-shadow: var(--shadow-lg); }
.plate-dialog::backdrop { background: color-mix(in srgb, var(--brand-900) 55%, transparent); backdrop-filter: blur(2px); }
.plate-dialog[open] { display: block; animation: plate-in .18s ease-out; }
@keyframes plate-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.plate-close { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.plate-close:hover { background: rgba(255, 255, 255, .22); }
.plate-dialog .plate-title { padding-right: 40px; }
.plate-dialog ol { color: var(--on-dark-soft); }
@media (prefers-reduced-motion: reduce) { .plate-dialog[open] { animation: none; } }

/* Проверочный код при оформлении заказа: крупно и чётко (доступность для слабовидящих) */
.captcha-box { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.captcha-box img { width: 280px; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #f8fafd; }
.captcha-side { display: grid; gap: 8px; }
.captcha-input { max-width: 200px; font-size: calc(26px * var(--fs, 1)); font-weight: 700; letter-spacing: .18em; text-align: center; padding: 10px 14px; }
.captcha-help { margin: 8px 0 0; font-size: calc(13px * var(--fs, 1)); color: var(--muted); }
.form-consent { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: calc(13px * var(--fs, 1)); line-height: 1.45; color: var(--muted); }
.form-consent input { margin-top: 3px; flex: none; }
.captcha-input::placeholder { font-size: calc(14px * var(--fs, 1)); font-weight: 400; letter-spacing: normal; color: #9aa3b5; opacity: 1; }

/* Шапка на телефоне: логотип, «Каталог» и корзина — в одну строку; панель разделов помещается целиком */
@media (max-width: 760px) {
    .header .logo-img { height: 32px; }
    .header-main { flex-wrap: wrap; padding: 10px 14px; }
    .header-main .logo { flex: 0 1 auto; min-width: 0; }
    .header-main .logo-img { max-width: 100%; }
    .header-actions { margin-left: 0; }
}
@media (max-width: 420px) {
    .header .logo-img { height: 28px; }
    .catalog-btn { padding: 0 12px; }
    .header-nav a { font-size: calc(14px * var(--fs, 1)); padding: 7px 8px; }
    .header-nav a .icon { display: none; }
}
/* Узкое окно компьютера и планшет: больше места полю поиска */
@media (max-width: 1080px) {
    .search .btn span { display: none; }
    .search .btn { padding: 0 16px; }
}
@media (max-width: 900px) and (min-width: 761px) {
    .header .logo-img { height: 38px; }
    .header-main { gap: 12px; }
}

/* Панель разделов — по центру страницы; подсказка в поиске не обрезается */
.header-nav .container { justify-content: center; }
.search .input::placeholder { text-overflow: ellipsis; }
@media (max-width: 420px) { .search .input { font-size: calc(14.5px * var(--fs, 1)); } }
@media (max-width: 1280px) and (min-width: 1081px) {
    .header .logo-img { height: 50px; }
    .search .btn span { display: none; }
    .search .btn { padding: 0 16px; }
    .header-main { gap: 14px; }
}
@media (max-width: 360px) {
    .header .logo-img { height: 24px; }
    .header-main { gap: 8px; padding: 10px 10px; }
    .catalog-btn { padding: 0 10px; font-size: calc(14px * var(--fs, 1)); gap: 6px; }
    .header-nav .container { padding: 0 6px; gap: 2px; }
    .header-nav a { font-size: calc(13px * var(--fs, 1)); padding: 7px 6px; }
}
.aside-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: calc(19px * var(--fs, 1)); font-weight: 800; color: var(--ink); }
/* Телефон: четыре раздела — в две строки по центру, ничего не обрезается */
@media (max-width: 760px) {
    .header-nav .container { flex-wrap: wrap; height: auto; padding: 6px 8px; gap: 2px 4px; justify-content: center; overflow: visible; }
}

/* «Полезная информация»: поиск, рубрики, группы */
.art-search { position: relative; display: flex; gap: 8px; max-width: 720px; margin: 6px 0 14px; }
.art-search .input { flex: 1; padding-left: 42px; height: 46px; }
.art-search .art-search-icon { position: absolute; left: 14px; top: 13px; color: var(--muted); }
.art-search .btn { height: 46px; }
.art-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.art-topic { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: calc(14px * var(--fs, 1)); }
.art-topic small { color: var(--muted); font-weight: 600; }
.art-topic .icon { color: var(--brand); }
.art-topic:hover { border-color: var(--brand); color: var(--brand); }
.art-topic.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.art-topic.is-active small, .art-topic.is-active .icon { color: #fff; }
.art-group { margin-bottom: 30px; }
.art-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.art-group-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: calc(21px * var(--fs, 1)); }
.art-group-head h2 .cat-ico { width: 38px; height: 38px; }
.art-group-head a { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; white-space: nowrap; }
.art-found { margin: -8px 0 14px; }
.art-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 4px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: calc(13px * var(--fs, 1)); font-weight: 650; }
@media (max-width: 760px) { .art-topics { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; scrollbar-width: none; } .art-topic { flex: none; } }
