/* Каталог: список категорий слева, подкатегории справа (на телефоне — аккордеон) */
body:has(.ct-page) { background: #f7f7f7; }
body:has(.ct-page) h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: #16161d; margin: 28px 0 24px; }
.ct-page { padding-bottom: 48px; color: #16161d; }
.ct-page a { text-decoration: none; }
.ct-lay { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }

.ct-rail { background: #fff; border-radius: 24px; padding: 12px; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
.ct-rail { scrollbar-width: thin; scrollbar-color: #ffc9a3 transparent; }
.ct-rail::-webkit-scrollbar { width: 8px; }
.ct-rail::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
.ct-rail::-webkit-scrollbar-thumb { background: #ffc9a3; border-radius: 99px; border: 2px solid #fff; }
.ct-rail::-webkit-scrollbar-thumb:hover { background: #ff6900; }
.ct-rail a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.25; color: #33343c; transition: background .15s; }
.ct-rail a:hover { background: #f4f4f6; }
.ct-rail a.is-on { background: #fff2e8; color: #ff6900; font-weight: 700; }
.ct-rail a em { font-style: normal; margin-left: auto; font-size: 12px; color: #8a8f9c; background: #f4f4f6; border-radius: 99px; padding: 2px 9px; font-weight: 500; }
.ct-rail a.is-on em { background: #fff; color: #ff6900; }
.ct-mi { width: 32px; height: 32px; border-radius: 10px; background: #f4f4f6; color: #ff6900; display: flex; align-items: center; justify-content: center; flex: none; }
.ct-mi svg { width: 18px; height: 18px; }
.ct-rail a.is-on .ct-mi { background: #fff; }

.ct-panel { display: none; }
.ct-panel.is-on { display: block; }
.ct-head { display: none; }
.ct-ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ct-ph h2 small { display: block; font-size: 13px; font-weight: 500; color: #8a8f9c; letter-spacing: 0; margin-top: 2px; }
.ct-tile i { display: block; font-style: normal; font-size: 12.5px; color: #8a8f9c; margin-top: 4px; }
.ct-ph h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.015em; }
.ct-btn { display: inline-block; background: #ff6900; color: #fff !important; font-weight: 700; font-size: 14.5px; padding: 12px 22px; border-radius: 99px; white-space: nowrap; }
.ct-btn:hover { background: #e55e00; }

.ct-hint { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; background: #fff4e8; border-radius: 14px; font-size: 14px; line-height: 1.4; color: #6a4a22; }
.ct-hint svg { flex: none; color: #ff6900; }
.ct-hint b { color: #16161d; font-weight: 700; }
.ct-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ct-tile { background: #fff; border-radius: 22px; padding: 18px; text-align: center; color: #16161d; transition: box-shadow .15s, transform .15s; }
.ct-tile:hover { box-shadow: 0 8px 24px rgba(22, 22, 29, .08); transform: translateY(-2px); }
.ct-pic { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; height: 110px; border-radius: 16px; background: linear-gradient(135deg, #f4f4f6, #fff2e8); color: #ff6900; margin-bottom: 12px; }
.ct-pic.has-img svg { display: none; }
.ct-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; background: transparent; }
.ct-tile b { display: block; font-size: 14.5px; line-height: 1.3; font-weight: 700; }

.ct-brands { display: grid; gap: 12px; }
.ct-brand { background: #16161d; border-radius: 22px; padding: 20px 22px; }
.ct-bn { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ff6900; margin-bottom: 12px; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chips a { background: rgba(255, 255, 255, .1); color: #e9eaee; border-radius: 99px; padding: 8px 14px; font-size: 13.5px; transition: background .15s; }
.ct-chips a:hover { background: rgba(255, 255, 255, .2); }
.ct-chips a.ct-more { background: #ff6900; color: #fff; font-weight: 600; }

@media (max-width: 991.98px) {
    .ct-lay { grid-template-columns: 1fr; }
    .ct-rail { display: none; }
    .ct-panel, .ct-panel.is-on { display: block; margin-bottom: 10px; }
    .ct-head { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 0; border-radius: 20px; padding: 14px 16px; font: inherit; font-weight: 700; font-size: 15.5px; color: #16161d; text-align: left; cursor: pointer; }
    .ct-hn { flex: 1; }
    .ct-pm { width: 22px; height: 22px; position: relative; color: #ff6900; flex: none; }
    .ct-pm:before, .ct-pm:after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: currentColor; border-radius: 2px; }
    .ct-pm:after { transform: rotate(90deg); transition: transform .2s; }
    .ct-panel.is-open .ct-pm:after { transform: rotate(0); }
    .ct-panel.is-open .ct-head { border-radius: 20px 20px 0 0; }
    .ct-body { display: none; background: #fff; border-radius: 0 0 20px 20px; padding: 0 12px 14px; }
    .ct-panel.is-open .ct-body { display: block; }
    .ct-ph { margin-bottom: 12px; }
    .ct-ph h2 { display: none; }
    .ct-ph .ct-btn { width: 100%; text-align: center; padding: 11px 16px; }
    .ct-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ct-tile { background: #f7f7f7; padding: 12px; border-radius: 18px; }
    .ct-pic { height: 84px; background: #fff; }
    .ct-brand { padding: 16px; }
}
@media (max-width: 575.98px) {
    body:has(.ct-page) h1 { font-size: 26px; margin-top: 20px; }
}
