/* MEGAMENU-20261031: мега-меню «Каталог шин» (core/tz_megamenu.php, assets/js/megamenu.js) */
:root { --tzm-acc: #eb9318; --tzm-acc-h: #d68210; --tzm-ink: #1d232b; --tzm-mute: #5f6873; --tzm-line: #e8eaee; --tzm-soft: #f5f6f8; }

/* подсветка пунктов — фирменным оранжевым вместо красного */
.main-navbar .nav-link:hover { color: #9a5700; }
@media (min-width: 992px) { .main-navbar .nav-link::before { background-color: var(--tzm-acc); } }

.tzm-tiles img, .tzm-model img { mix-blend-mode: multiply; object-fit: contain; }
.tzm-cap { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tzm-mute); margin: 0 0 10px; }
.tzm-cap--link { display: flex; align-items: center; gap: 6px; color: var(--tzm-ink); text-decoration: none; font-size: .78rem; }
.tzm-cap--link span { color: var(--tzm-acc); transition: transform .2s; }
.tzm-cap--link:hover { color: #9a5700; }
.tzm-cap--link:hover span { transform: translateX(3px); }

/* плитки сезонов */
.tzm-tiles { display: grid; gap: 10px; }
.tzm-tile { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 12px 8px 12px 16px;
    border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--tzm-ink); background: var(--tzm-soft);
    transition: transform .2s, box-shadow .2s; }
.tzm-tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(29,35,43,.06); pointer-events: none; }
.tzm-tile:hover { color: var(--tzm-ink); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(29,35,43,.35); }
.tzm-tile__txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.tzm-tile__txt b { font-size: 1.02rem; font-weight: 800; }
.tzm-tile__txt small { font-size: .76rem; color: var(--tzm-mute); font-weight: 600; white-space: nowrap; }
.tzm-tile__txt .tzm-tile__price { color: var(--tzm-ink); }
.tzm-tile img { width: 84px; height: 84px; margin: -14px -2px -14px 0; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tzm-tile:hover img { transform: scale(1.08); }
/* TILES-20261101: без сезонных заливок — все плитки фирменные, при наведении оранжевая рамка */
.tzm-tile::after { transition: border-color .2s; }
.tzm-tile:hover { background: #fff; }
.tzm-tile:hover::after { border-color: var(--tzm-acc); }
.tzm-tile__txt b { display: flex; align-items: center; gap: 7px; }
.tzm-tile__txt .tzm-tile__ico { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; line-height: 1;
    background: var(--tzm-ink); color: var(--tzm-acc); }

/* ---------- ПК ---------- */
@media (min-width: 992px) {
    .main-navbar { position: relative; }
    .main-navbar .tzm-item { margin: 0 10px 0 0; }
    .main-navbar .tzm-trigger { display: flex; align-items: center; gap: 10px; height: 100%; color: #fff; background: var(--tzm-ink); font-weight: 700; padding-left: 18px; padding-right: 16px; }
    .main-navbar .tzm-trigger:hover, .tzm-item.is-open .tzm-trigger { color: #fff; background: #2c343e; }
    .main-navbar .tzm-trigger::before { display: none; }
    .tzm-ico { font-size: .95em; color: var(--tzm-acc); }
    .tzm-chev { font-size: .65em; transition: transform .25s; }
    .tzm-item.is-open .tzm-chev { transform: rotate(180deg); }
    .tzm-mob { display: none; }

    .tzm-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border-top: 3px solid var(--tzm-acc);
        box-shadow: 0 24px 48px -20px rgba(29,35,43,.35); max-height: calc(100vh - 140px); overflow-y: auto;
        opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease; }
    .tzm-panel.is-in { opacity: 1; transform: none; }
    .tzm-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 260px; gap: 28px; padding: 24px 0 20px; }
    .tzm-col--models { border-left: 1px solid var(--tzm-line); border-right: 1px solid var(--tzm-line); padding: 0 24px; }
    .tzm-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .tzm-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
    .tzm-model { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center;
        padding: 5px 8px 5px 4px; border-radius: 10px; text-decoration: none; color: var(--tzm-ink); transition: background .15s; }
    .tzm-model img { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 8px; background: var(--tzm-soft); transition: transform .3s; }
    .tzm-model__name { font-size: .9rem; font-weight: 700; line-height: 1.2; align-self: end; }
    .tzm-model__price { font-size: .78rem; color: var(--tzm-mute); font-weight: 600; align-self: start; }
    .tzm-model:hover { background: var(--tzm-soft); color: var(--tzm-ink); }
    .tzm-model:hover .tzm-model__name { color: #9a5700; }
    .tzm-model:hover img { transform: scale(1.08); }
    .tzm-spk { font-style: normal; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--tzm-ink);
        border-radius: 4px; padding: 1px 5px; vertical-align: 2px; }

    .tzm-promo { display: block; position: relative; overflow: hidden; padding: 16px 16px 14px; margin-bottom: 20px; border-radius: 14px; text-decoration: none;
        color: #fff; background: radial-gradient(circle at 110% -10%, rgba(235,147,24,.55), transparent 55%), #1d232b; }
    .tzm-promo i { font-size: 1.4rem; color: var(--tzm-acc); margin-bottom: 8px; display: block; }
    .tzm-promo b { display: block; font-size: 1rem; margin-bottom: 4px; }
    .tzm-promo span { display: block; font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.35; }
    .tzm-promo em { display: inline-flex; gap: 6px; margin-top: 12px; font-style: normal; font-weight: 700; font-size: .82rem; padding: 6px 14px; border-radius: 999px; background: var(--tzm-acc); color: #1d232b; transition: background .2s; }
    .tzm-promo em span { display: inline; color: inherit; font-size: inherit; transition: transform .2s; }
    .tzm-promo:hover { color: #fff; }
    .tzm-promo:hover em { background: var(--tzm-acc-h); }
    .tzm-promo:hover em span { transform: translateX(3px); }

    .tzm-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
    .tzm-sizes a { font-size: .8rem; font-weight: 600; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--tzm-line); color: var(--tzm-ink); text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
    .tzm-sizes a:hover { border-color: var(--tzm-acc); background: rgba(235,147,24,.08); color: #9a5700; }
    .tzm-types { list-style: none; margin: 0; padding: 0; }
    .tzm-types a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--tzm-ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
    .tzm-types i { width: 18px; text-align: center; color: var(--tzm-mute); font-size: .85rem; }
    .tzm-types span { margin-left: auto; font-size: .75rem; color: var(--tzm-mute); background: var(--tzm-soft); border-radius: 999px; padding: 1px 8px; }
    .tzm-types a:hover { color: #9a5700; }
    .tzm-types a:hover i { color: var(--tzm-acc); }

    .tzm-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0 16px; border-top: 1px solid var(--tzm-line); font-size: .82rem; color: var(--tzm-mute); }
    .tzm-foot a { font-weight: 700; color: var(--tzm-ink); text-decoration: none; white-space: nowrap; }
    .tzm-foot a:hover { color: #9a5700; }

    .tzm-backdrop { position: fixed; inset: 0; z-index: -1; background: rgba(15,18,22,.45); opacity: 0; transition: opacity .2s; }
    .tzm-backdrop.is-in { opacity: 1; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .tzm-grid { grid-template-columns: 220px minmax(0, 1fr); }
    .tzm-col--models { border-right: 0; padding-right: 0; }
    .tzm-col--side { grid-column: 1 / -1; display: grid; grid-template-columns: 260px 1fr 1fr; gap: 24px; border-top: 1px solid var(--tzm-line); padding-top: 18px; }
    .tzm-col--side .tzm-promo { margin: 0; }
    .tzm-col--side .tzm-sizes { margin: 0; }
}

/* ---------- телефон и планшет: боковое меню ---------- */
@media (max-width: 991.98px) {
    .tzm-panel, .tzm-backdrop { display: none !important; }
    .tzm-ico { margin-right: 8px; color: var(--tzm-acc); }
    .tzm-trigger .tzm-chev { display: none; }
    .offcanvas-body .tzm-trigger { font-weight: 700; border-bottom: 0; padding-bottom: 8px; }
    .tzm-mob { padding: 0 0 14px; border-bottom: 1px solid #f0f0f0; }
    .tzm-mob .tzm-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
    .tzm-mob .tzm-tile { min-height: 70px; padding: 10px 6px 10px 12px; }
    .tzm-mob .tzm-tile img { width: 62px; height: 62px; margin: -10px -6px -10px -10px; }
    .tzm-mob .tzm-tile__txt b { font-size: .9rem; }
    .tzm-mob .tzm-tile__txt small { font-size: .7rem; }
    .tzm-promo--row { display: flex; align-items: center; gap: 10px; margin: 10px 0 14px; padding: 13px 14px; border-radius: 12px; background: #1d232b; color: #fff; text-decoration: none; font-size: .95rem; }
    .tzm-promo--row i { color: var(--tzm-acc); }
    .tzm-promo--row em { margin-left: auto; font-style: normal; color: var(--tzm-acc); font-weight: 700; }
    .tzm-promo--row:hover { color: #fff; }
    .tzm-sizes--scroll { display: flex; gap: 6px; overflow-x: auto; margin: 0 -12px 12px; padding: 0 12px 2px; scrollbar-width: none; }
    .tzm-sizes--scroll::-webkit-scrollbar { display: none; }
    .tzm-sizes--scroll a { flex-shrink: 0; font-size: .85rem; font-weight: 600; padding: 6px 11px; border-radius: 8px; background: var(--tzm-soft); color: var(--tzm-ink); text-decoration: none; }
    .tzm-all { display: flex; justify-content: space-between; padding: 6px 0; font-weight: 700; color: #9a5700; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
    .tzm-panel, .tzm-backdrop, .tzm-tile, .tzm-tile img, .tzm-model img { transition: none; }
}

/* MEGAMENU-HEAD-20261031: кнопка «Каталог» в оранжевой шапке рядом с логотипом */
.tzm-hbtn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 15px; border-radius: 10px; background: var(--tzm-ink); color: #fff;
    font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap; transition: background .15s; }
.tzm-hbtn > i:first-child { color: var(--tzm-acc); }
.tzm-hbtn .tzm-chev { font-size: .65em; opacity: .7; transition: transform .25s; }
.tzm-hbtn:hover, .tzm-hbtn.is-open { background: #2c343e; color: #fff; }
.tzm-hbtn.is-open .tzm-chev { transform: rotate(180deg); }
@media (min-width: 992px) {
    /* панель — сразу под шапкой: перекрывает полосу меню, оранжевая кромка продолжает шапку */
    .tzm-panel { top: 0; }
}
@media (min-width: 992px) {
    .tzm-panel { border-top: 0; }
}
/* ноутбук: место для поиска рядом с кнопкой «Каталог» */
@media (min-width: 992px) and (max-width: 1199.98px) {
    header img[alt="Trazano Tyres"] { width: 160px; height: auto; }
    .tzm-hbtn { padding: 0 13px; gap: 8px; }
    .tzm-hbtn .tzm-chev { display: none; }
    header .fs-5 { font-size: 1.05rem !important; }
}

/* NAV-20261031: полоса меню — белая, обычный регистр, подчёркивание у текущего раздела, подпункты с иконками */
@media (min-width: 992px) {
    .main-navbar { background: #fff; border-bottom: 1px solid var(--tzm-line); }
    .main-navbar .offcanvas-body { display: flex; align-items: center; }
    .main-navbar .navbar-nav { gap: 2px; flex-grow: 1; }
    .main-navbar .nav-item:not(:first-child) { margin: 0; }
    .main-navbar .nav-link { text-transform: none; font-size: 15px; font-weight: 500; color: #3b434d; padding: 13px 13px; letter-spacing: 0; }
    .main-navbar .nav-item:first-child + .nav-item .nav-link { padding-left: 0; }
    .main-navbar .nav-item:first-child + .nav-item .nav-link::before { left: 0; }
    .main-navbar .nav-link::before { top: auto; bottom: -1px; left: 14px; right: 14px; width: auto !important; height: 2px; border-radius: 2px;
        background-color: var(--tzm-acc); transform: scaleX(0); transition: transform .2s ease; }
    .main-navbar .nav-link:hover, .main-navbar .nav-link.is-on, .main-navbar .custom-dropdown-wrap:hover > .nav-link { color: var(--tzm-ink); }
    .main-navbar .nav-link:hover::before, .main-navbar .nav-link.is-on::before, .main-navbar .custom-dropdown-wrap:hover > .nav-link::before { transform: scaleX(1); }
    .tzn-chev { font-size: .6em; margin-left: 3px; opacity: .55; vertical-align: 2px; transition: transform .2s; }
    .custom-dropdown-wrap:hover .tzn-chev { transform: rotate(180deg); }

    .main-navbar .custom-dropdown-menu { min-width: 320px; padding: 8px; margin-top: 0 !important; border: 1px solid var(--tzm-line) !important; border-radius: 14px;
        box-shadow: 0 20px 40px -18px rgba(29,35,43,.35) !important; }
    .main-navbar .custom-dropdown-wrap .custom-dropdown-menu::before { top: -10px; height: 10px; }
    .tzn-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; white-space: normal; color: var(--tzm-ink); }
    .tzn-item:hover, .tzn-item:focus { background: var(--tzm-soft); color: var(--tzm-ink); }
    .tzn-ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
        background: rgba(235,147,24,.12); color: #9a5700; font-size: .95rem; }
    .tzn-txt { display: flex; flex-direction: column; line-height: 1.25; }
    .tzn-txt b { font-size: .92rem; font-weight: 700; }
    .tzn-txt small { font-size: .78rem; color: var(--tzm-mute); margin-top: 2px; }
    .tzn-item:hover .tzn-txt b { color: #9a5700; }

    .tzn-aside { align-items: center; gap: 18px; margin-left: auto; }
    .tzn-aside a { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 600; color: var(--tzm-mute); text-decoration: none; white-space: nowrap; }
    .tzn-aside a i { color: var(--tzm-acc); }
    .tzn-aside a:hover { color: var(--tzm-ink); }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .main-navbar .nav-link { font-size: 14px; padding: 13px 9px; }
    .tzn-aside { display: none !important; }
}
@media (max-width: 991.98px) {
    .tzn-item { display: flex; align-items: center; gap: 10px; white-space: normal; }
    .tzn-ico { color: var(--tzm-acc); width: 18px; text-align: center; }
    .tzn-txt small { display: none; }
    .tzn-chev { font-size: .7em; margin-left: 4px; }
    .offcanvas-body .nav-link { text-transform: none; font-weight: 500; }
}

/* FOOTER-20261031: подвал (templates/footer.php) */
.tzft { background: #171b21; color: rgba(255,255,255,.72); font-size: .9rem; padding: 0 0 22px; margin-top: 56px; }
.tzft a { color: inherit; text-decoration: none; }
.tzft-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 28px 0 30px; margin-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.tzft-perks a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.55); font-size: .78rem; line-height: 1.35;
    border: 1px solid rgba(255,255,255,.08); transition: border-color .2s, background .2s; }
.tzft-perks a:hover { border-color: rgba(235,147,24,.6); background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); }
.tzft-perks i { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(235,147,24,.15); color: #eb9318; font-size: 1.05rem; }
.tzft-perks b { display: block; color: #fff; font-size: .9rem; margin-bottom: 2px; }
.tzft-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 32px; padding: 10px 0 34px; }
.tzft-brand img { margin-bottom: 14px; }
.tzft-brand p { margin: 0 0 16px; max-width: 280px; line-height: 1.55; }
.tzft-phone { display: block; font-size: 1.35rem; font-weight: 800; color: #fff !important; margin-bottom: 4px; }
.tzft-phone:hover { color: #eb9318 !important; }
.tzft-mail:hover { color: #fff; }
.tzft-h { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #eb9318; margin-bottom: 14px; }
.tzft-col > a { display: block; padding: 4px 0; transition: color .15s; }
.tzft-col > a:hover { color: #fff; }
.tzft-addr { display: flex; gap: 10px; margin: 0 0 10px; line-height: 1.5; }
.tzft-addr i { color: #eb9318; width: 14px; margin-top: 4px; }
.tzft-btn { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 6px; padding: 9px 16px !important; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #fff !important; font-weight: 600; font-size: .85rem; }
.tzft-btn:hover { background: rgba(255,255,255,.08); }
.tzft-btn i { color: #eb9318; }
.tzft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.5); }
.tzft-bottom a { color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.tzft-bottom a.brk-credit { text-decoration: none; margin: 0; }
@media (max-width: 1199.98px) { .tzft-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .tzft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) {
    .tzft-perks { grid-template-columns: 1fr; }
    .tzft-perks { padding-top: 22px; }
    .tzft-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
    .tzft-brand, .tzft-grid > .tzft-col:last-child { grid-column: 1 / -1; }
    .tzft-bottom { flex-direction: column; align-items: flex-start; }
    .tzft-bottom a { margin-left: 0; }
}

/* SEARCH-20261101: подсказки поиска в шапке (main.js setupSearch) */
.tzs { background: #fff; border-radius: 16px; box-shadow: 0 18px 40px -12px rgba(29,35,43,.35), 0 0 0 1px rgba(29,35,43,.06); margin-top: 8px; padding: 6px;
    max-height: min(72vh, 580px); overflow-y: auto; overscroll-behavior: contain; text-align: left; }
.tzs a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--tzm-ink); text-decoration: none; }
.tzs a:hover, .tzs a.is-active { background: var(--tzm-soft); color: var(--tzm-ink); }
.tzs-cap { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tzm-mute); padding: 10px 10px 4px; }
.tzs-hint { margin: 4px 4px 2px; padding: 8px 10px; border-radius: 10px; background: rgba(235,147,24,.1); color: #9a5700; font-size: .82rem; font-weight: 600; }
.tzs-model img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; mix-blend-mode: multiply; }
.tzs-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.tzs-t b { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzs-t small { color: var(--tzm-mute); font-size: .78rem; }
.tzs-p { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; font-weight: 800; white-space: nowrap; line-height: 1.25; }
.tzs-model .tzs-p { flex-direction: row; align-items: baseline; gap: 4px; }
.tzs-p small { font-size: .74rem; font-weight: 600; color: var(--tzm-mute); }
.tzs-size .tzs-p small { color: #16a34a; }
.tzs a.tzs-all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--tzm-line); border-radius: 0 0 10px 10px; padding: 11px; font-weight: 700; color: #9a5700; }
.tzs a.tzs-all span { transition: transform .2s; }
.tzs a.tzs-all:hover span, .tzs a.tzs-all.is-active span { transform: translateX(3px); }
.tzs-empty { padding: 14px 12px; color: var(--tzm-mute); font-size: .9rem; line-height: 1.5; }
.tzs-empty b { display: block; color: var(--tzm-ink); margin-bottom: 2px; }
.tzs-empty i { font-style: normal; font-weight: 600; color: var(--tzm-ink); }
#liveSearch::-webkit-search-cancel-button, #liveSearchMobile::-webkit-search-cancel-button { cursor: pointer; }
@media (max-width: 991.98px) { .tzs { max-height: 65vh; } }
/* на узкой плитке телефона значок упирался в фото шины */
@media (max-width: 575.98px) { .tzc-cats .tzm-tile__ico, .tzm-mob .tzm-tile__ico { display: none; } }
