:root { --shadow: 0 3px 16px #0b1f4d08; --radius: 18px; }
body { line-height: 1.5; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #0A52C4; outline-offset: 4px; }
.topbar { background: #0B1F4D; color: #e5edfb; }
.topbar .phone, .topbar a:hover { color: #fff; }
.header { position: sticky; top: 0; z-index: 40; box-shadow: 0 4px 18px #0b1f4d08; }
.header .wrap { height: 86px; gap: 20px; }
.search { background: #F3F6FA; border: 1px solid #d8e2f0; border-radius: 12px; }
.search:focus-within { border-color: #0A52C4; box-shadow: 0 0 0 3px #0a52c414; }
.btn, .btn-catalog { border-radius: 10px; min-height: 44px; }
.page { padding-top: 28px; }
.banners { gap: 18px; }
.banner-hero, .banner-side { border-radius: 22px; }
.banner-hero { box-shadow: 0 12px 32px #0a52c41a; }
.home-cats { gap: 12px; margin-top: 24px; }
.home-cats a { border: 1px solid #e3e9f2; border-radius: 14px; transition: border-color .15s, transform .15s; }
.home-cats a:hover { border-color: #0A52C4; transform: translateY(-2px); }
.card { border: 1px solid #e3e9f2; border-radius: 16px; padding: 12px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #b4c8e7; box-shadow: 0 8px 24px #0b1f4d0d; }
.card h3, .card-open h3 { font-size: 14px; line-height: 1.45; min-height: 42px; }
.card .price { font-size: 23px; letter-spacing: -.6px; color: #0B1F4D; }
.card .sku { color: #596981; }
.card .qty { min-height: 44px; border-radius: 9px; overflow: hidden; }
.qty button { min-width: 40px; min-height: 44px; font-size: 20px; }
.qty input { min-height: 44px; font-size: 15px; }
.card .qty-hint { margin-top: 4px; }
.filters { border: 1px solid #e3e9f2; border-radius: 16px; }
.filter-cats.fc-tree { display: block; }
.filter-cats .fc-roots, .filter-cats .fc-children { list-style: none; padding: 0; margin: 0; }
.filter-cats .fc-children { margin: 2px 0 6px 12px; padding-left: 10px; border-left: 1px solid #e3e9f2; }
.filter-cats .fc-row { display: flex; align-items: center; gap: 2px; }
.filter-cats .fc-row > a { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; padding: 8px 6px; color: #0B1F4D; font-weight: 600; }
.filter-cats .fc-row > a span { flex: 1; min-width: 0; }
.filter-cats .fc-row > a small { flex-shrink: 0; color: #667085; font-weight: 400; }
.filter-cats .fc-children .fc-row > a { color: #667085; font-size: 12px; font-weight: 400; }
.filter-cats .fc-row > a.active { background: #e8f0fd; font-weight: 700; }
.filter-cats .fc-row > a:hover { background: #f3f6fa; }
.fc-toggle { width: 30px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #667085; cursor: pointer; }
.fc-toggle:hover { background: #e8f0fd; color: #0A52C4; }
.fc-toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.fc-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.fc-toggle-space { width: 30px; flex-shrink: 0; }
.filter-group { padding-top: 16px; padding-bottom: 16px; }
.filters label { min-height: 30px; align-items: center; }
.avail.warn { color: #985200; }
.checkout-error { padding: 14px; border-radius: 10px; color: #8B1E2D; background: #f7e9eb; margin-top: 12px; }
.cart-total, .cart-summary { border-radius: 18px; }
.info-article { border-radius: 18px; }
.info-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.info-layout > .info-article { width: 100%; max-width: none; min-width: 0; }
.section-visual { position: sticky; top: calc(var(--header-h) + 24px); display: flex; align-items: center; justify-content: center; min-height: 360px; padding: 20px 0; background: radial-gradient(ellipse at center, #eaf7d6a6 0%, #e8f0fd55 40%, transparent 70%); }
.section-visual img { width: 100%; max-width: 460px; height: auto; max-height: 540px; object-fit: contain; }
@media (max-width: 900px) {
  .info-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .section-visual { position: static; min-height: 0; padding: 0; }
  .section-visual img { width: 240px; max-height: 240px; }
}
.pager button, .pager a { min-height: 40px; min-width: 36px; }
.repeat-toast { z-index: 100; }
.guest-contact { display: grid; gap: 12px; margin: 20px 0; border-top: 1px solid #e3e9f2; padding-top: 20px; }
.guest-contact h3 { font-size: 17px; }
.guest-contact label { display: grid; gap: 6px; color: #4A5878; font-size: 13px; }
.guest-contact input, .guest-contact select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd5e3; border-radius: 8px; background: #fff; color: #0B1F4D; font-size: 16px; }
.customer-auth { max-width: 460px; margin: 0 auto; }
.customer-auth-tabs { display: flex; gap: 20px; border-bottom: 1px solid #e3e9f2; margin-bottom: 24px; }
.customer-auth-tabs a { padding: 10px 0; font-weight: 700; }
.customer-auth-tabs a.active { color: #0A52C4; border-bottom: 3px solid #0A52C4; }
.customer-auth form, .customer-auth label { display: grid; gap: 8px; }
.customer-auth form { gap: 16px; }
.customer-auth input, .customer-auth select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd5e3; border-radius: 8px; background: white; font-size: 16px; }
.customer-auth-error { color: #8B1E2D; background: #f7e9eb; padding: 12px; border-radius: 8px; }
.customer-profile { display: grid; gap: 6px; margin-bottom: 20px; }
.customer-orders { list-style: none; }
.customer-orders li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-bottom: 1px solid #e3e9f2; }
.customer-orders small { display: block; color: #4A5878; margin-top: 6px; }
.info-article.customer-auth-article { max-width: 1120px; margin-inline: auto; padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); grid-template-rows: auto 1fr; gap: 24px 56px; }
.customer-auth-article > h1 { grid-column: 1; grid-row: 1; margin: 0; font-size: 30px; }
.customer-auth-article > .info-body { display: contents; }
.customer-auth-article .customer-auth { grid-column: 1; grid-row: 2; width: 100%; max-width: none; margin: 0; }
.auth-visual { grid-column: 2; grid-row: 1 / span 2; background: linear-gradient(150deg, #e8f0fd, #eaf7d6); padding: 30px 24px; border-radius: 18px; display: flex; align-items: center; min-width: 0; }
.auth-visual-inner { width: 100%; text-align: center; }
.auth-brand { color: #0A52C4; font-size: 16px; font-weight: 800; }
.auth-visual h2 { margin: 12px auto 24px; max-width: 18ch; color: #0B1F4D; font-size: 26px; line-height: 1.25; }
.auth-visual img { width: 100%; max-width: 330px; height: auto; margin-inline: auto; filter: drop-shadow(0 20px 16px #0b1f4d14); }
.catalog-view { scroll-margin-top: calc(var(--header-h) + 20px); }
.grid.is-loading { opacity: .85; }
@media (max-width: 760px) {
  .info-article.customer-auth-article { padding: 24px 18px; grid-template-columns: minmax(0, 1fr) 72px; gap: 22px 8px; }
  .customer-auth-article > h1 { align-self: center; font-size: 26px; }
  .customer-auth-article .customer-auth { grid-column: 1 / -1; }
  .auth-visual { grid-column: 2; grid-row: 1; background: none; padding: 0; }
  .auth-visual h2, .auth-brand { display: none; }
  .auth-visual img { width: 72px; }
}
@media (min-width: 861px) {
  .mega { position: fixed; top: var(--mega-top, 86px); max-height: calc(100dvh - var(--mega-top, 86px)); overflow-y: auto; }
}
@media (max-width: 960px) {
  .filters { position: static; }
  .page-zakupka aside.panel.totals-clean { position: static !important; inset: auto !important; width: auto !important; max-width: 100% !important; z-index: auto !important; border-radius: 16px !important; box-shadow: var(--shadow) !important; }
  .page-zakupka aside.totals-clean .totals:not(.grand) { display: flex !important; }
  .page-zakupka main.page { padding-bottom: 32px !important; }
  .header .wrap { height: auto; min-height: 80px; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .topbar .wrap { overflow-x: auto; scrollbar-width: none; }
  .topbar a { white-space: nowrap; }
}
@media (max-width: 640px) {
  .page-title { flex-wrap: wrap; row-gap: 8px; }
  .page-title h1 { flex-basis: 100%; max-width: 100%; font-size: 26px; overflow-wrap: anywhere; }
  .wrap { width: calc(100% - 28px); }
  .header .wrap { gap: 10px; }
  .page { padding-top: 18px; }
  .head-act { gap: 14px; }
  .head-link { min-height: 44px; min-width: 44px; }
  .search { min-height: 46px; }
  .search input { font-size: 16px; }
  .filters .filter-group, .filters [data-reset-filters] { display: none; }
  .filters.open .filter-group, .filters.open [data-reset-filters] { display: block; }
  .filters-toggle { min-height: 44px; align-items: center; cursor: pointer; }
  .filters label { min-height: 40px; }
  .filters.open .fc-tree { max-height: 260px; }
  .card { padding: 10px; border-radius: 14px; }
  .card h3, .card-open h3 { font-size: 13px; min-height: 56px; }
  .card .price { font-size: 21px; }
  .qty button { min-width: 36px; }
  .card .avail { font-size: 11px; }
  .disc-table { min-width: 0; width: 100%; }
  .disc-table th, .disc-table td { padding: 8px; }
  .home-tabs { gap: 6px; }
  .home-tabs .ht-tab { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.advisor-launcher { position: static; border: 0; border-radius: 8px; background: transparent; color: #0b1f4d; padding: 0; min-height: 48px; min-width: 88px; cursor: pointer; font: inherit; font-size: 11px; }
.advisor-dialog { position: fixed; inset: auto 20px 20px auto; width: 400px; max-width: calc(100vw - 24px); height: 650px; max-height: calc(100dvh - 40px); margin: 0; padding: 0; border: 1px solid #d5dfea; border-radius: 20px; color: #0b1f4d; background: white; box-shadow: 0 12px 60px #0b1f4d40; }
.advisor-dialog[open] { display: flex; flex-direction: column; }
.advisor-dialog::backdrop { background: #0b1f4d55; }
.advisor-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #0b1f4d; color: white; }
.advisor-heading button { border: 0; border-radius: 8px; width: 44px; height: 44px; background: transparent; color: white; font-size: 28px; cursor: pointer; }
.advisor-intro { font-size: 12px; line-height: 1.5; margin: 0; padding: 12px 16px; background: #f1f5fb; }
.advisor-log { flex: 1; min-height: 60px; overflow-y: auto; overscroll-behavior: contain; padding: 12px; }
.advisor-message { padding: 12px; margin: 0 0 10px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; background: #f1f5fb; font-size: 14px; line-height: 1.5; }
.advisor-message.user { background: #e8f3d4; margin-left: 24px; }
.advisor-product { display: grid; gap: 6px; padding: 12px; margin-bottom: 8px; border: 1px solid #d5dfea; border-radius: 10px; font-size: 13px; }
.advisor-product span { color: #52627c; }
.advisor-form { display: grid; gap: 6px; padding: 12px; border-top: 1px solid #d5dfea; }
.advisor-form label, .advisor-status { font-size: 12px; }
.advisor-form textarea { width: 100%; resize: none; min-height: 64px; max-height: 120px; padding: 10px; border: 1px solid #b6c7de; border-radius: 8px; font: inherit; font-size: 16px; }
.advisor-form button { min-height: 44px; border: 0; border-radius: 8px; background: #a1dc23; color: #0b1f4d; font-weight: 700; cursor: pointer; }
.advisor-form button:disabled { opacity: .6; cursor: wait; }
.search-hit:focus, .search-all:focus { background: #e8f0fd; outline: 2px solid #0a52c4; outline-offset: -2px; }
@media (max-width: 1100px) {
  .header .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; min-height: 0; gap: 8px; padding-block: 8px; }
  .header .logo { grid-column: 1; grid-row: 1; gap: 5px; min-width: 0; }
  .header .logo-img { width: 32px; height: 32px; }
  .header .logo b { font-size: 17px; }
  .header .logo small { display: none; }
  .header .btn-catalog { grid-column: 2; grid-row: 1; min-height: 40px; padding: 8px 10px; gap: 6px; font-size: 13px; }
  .header .btn-catalog .icon { width: 18px; height: 18px; }
  .header .head-act { grid-column: 3; grid-row: 1; gap: 0; width: auto; margin: 0; }
  .header .head-link { min-width: 44px; width: 44px; min-height: 44px; }
  .header .head-link[href="zakupka"]:not(.head-cart) { display: none; }
  .header .head-link > span:not(.badge-num) { display: none; }
  .header .search { grid-column: 1 / -1; grid-row: 2; order: initial; width: 100%; min-height: 44px; flex-basis: auto; }
  .header .search input { min-height: 40px; }
}

.search-notice { padding: 10px 14px; margin-bottom: 14px; border-radius: 10px; background: #e8f0fd; color: #294f83; font-size: 14px; }
@media (max-width: 640px) {
  .header .logo { gap: 4px; }
  .header .logo-img { width: 28px; height: 28px; }
  .header .logo b { font-size: 16px; }
  .header .btn-catalog { width: 44px; min-width: 44px; min-height: 44px; padding: 10px; font-size: 0; gap: 0; justify-content: center; }
  .header .btn-catalog .icon { width: 22px; height: 22px; }
  .advisor-dialog { inset: 12px; width: auto; height: auto; max-height: calc(100dvh - 24px); }
}

.password-recovery-link { min-height: 44px; margin-top: 10px; padding: 8px 0; border: 0; background: transparent; color: #0a52c4; cursor: pointer; font: inherit; text-decoration: underline; }
.recovery-dialog { margin: auto; padding: 24px; width: 460px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 28px); overflow-y: auto; border: 1px solid #d5dfea; border-radius: 18px; color: #0b1f4d; }
.recovery-dialog::backdrop { background: #0b1f4d55; }
.recovery-heading { display: flex; justify-content: space-between; align-items: start; gap: 8px; margin-bottom: 20px; }
.recovery-heading h2 { font-size: 24px; }
.recovery-heading button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 8px; background: #f1f5fb; color: #0b1f4d; font-size: 28px; cursor: pointer; }
.recovery-dialog form { display: grid; gap: 14px; }
.recovery-dialog [role="status"] { font-size: 14px; }

.card-badges { z-index: 2; pointer-events: none; }

/* Compact contact strip on phones and tablets. Full navigation stays in the footer. */
@media (max-width: 1100px) {
  .topbar .wrap { height: 36px; min-width: 0; gap: 8px; justify-content: space-between; overflow: visible; white-space: normal; }
  .topbar .wrap > a:not(.phone):not(.tb-login) { display: none; }
  .topbar .phone { order: 0; margin: 0; font-size: 12px; white-space: nowrap; }
  .topbar .tb-login { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 32px; padding: 4px 8px; font-size: 12px; line-height: 1.2; white-space: nowrap; }
}

/* Customer review, 15 October: stock, packing, hierarchy and continuation. */
.cart-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cart-title-row h2{margin:0}.cart-title-row button{font-size:12px;min-height:40px}.line-body .avail{display:block;margin-top:5px;font-size:12px}.line-body .avail{font-weight:600}.line-body .stock-note{display:inline-block;margin:6px 0 0;padding:2px 8px;line-height:18px;background:#F7E9EB;color:#8B1E2D;border-radius:6px}.pack-size{min-height:19px;margin-top:3px;font-size:12px;font-weight:600;color:#526582}.card .stock-slot{margin-top:4px}.catalog-more{display:block;margin:24px auto 12px;min-width:200px;min-height:44px}.catalog-more[hidden]{display:none}.catalog-more:disabled{opacity:.6;cursor:wait}.filter-cats .fc-roots>.fc-row>a,.filter-cats .fc-roots>li>.fc-row>a{font-weight:700}.filter-cats .fc-children{margin-left:14px;padding-left:10px}.filter-cats .fc-children .fc-row>a{font-weight:400}.product-desc p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:none;overflow:visible;display:block;line-clamp:unset;-webkit-line-clamp:unset}.guest-contact textarea{width:100%;min-width:0;resize:vertical;min-height:88px;border:1px solid #b6c7de;border-radius:8px;padding:10px;font:inherit}

body[data-cat-view="list"] .catalog .card{grid-template-areas:"open price buy" "open pack buy" "open stock buy";row-gap:3px}body[data-cat-view="list"] .catalog .pack-size{grid-area:pack;margin:0}body[data-cat-view="list"] .catalog .stock-slot{grid-area:stock;margin:0;min-height:0}body[data-cat-view="list"] .catalog .stock-slot .stock-note{display:inline-block;white-space:normal;font-size:11px}@media(max-width:860px){body[data-cat-view="list"] .catalog .card{grid-template-areas:"open" "price" "pack" "stock" "buy";row-gap:6px}}

.confirm-modal .modal-card{width:min(440px,calc(100% - 32px));margin-top:22vh}.confirm-modal .modal-card h2{font-size:20px;margin-bottom:4px}.confirm-modal .modal-actions{margin-top:20px}
.confirm-modal .modal-actions .btn{width:auto;flex:1;justify-content:center}
.price-article h1{margin-bottom:6px}.price-lead{color:var(--muted);margin:0 0 18px}.price-form{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:20px;align-items:start}.price-box{border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:0 0 14px;min-width:0}.price-box legend{padding:0 6px;font-weight:700;font-size:14px}.price-box>label{display:flex;align-items:center;gap:8px;min-height:30px;font-size:14px}.price-box .avail{margin:0}.price-box input[type=search],.price-range input{width:100%;min-width:0;height:40px;border:1px solid var(--line-2);border-radius:8px;padding:0 10px;font:inherit}.price-range{display:flex;align-items:center;gap:8px}.price-cats-tools{display:flex;gap:8px;margin-bottom:8px}.price-tree{max-height:560px;overflow:auto;padding-right:4px}.price-tree ul{list-style:none;margin:0;padding:0}.price-tree ul ul{margin-left:14px;padding-left:10px;border-left:1px solid var(--line)}.price-tree summary{list-style:none;cursor:pointer;display:flex;align-items:center}.price-tree summary::-webkit-details-marker{display:none}.price-tree summary::before{content:"";width:7px;height:7px;border-right:2px solid #7a8aa6;border-bottom:2px solid #7a8aa6;transform:rotate(-45deg);margin:0 9px 0 2px;transition:transform .15s;flex-shrink:0}.price-tree details[open]>summary::before{transform:rotate(45deg)}.price-tree li>label{padding-left:20px}.price-cat{display:flex;align-items:center;gap:8px;min-height:30px;font-size:14px;cursor:pointer;flex:1}.price-cat small{margin-left:auto;color:var(--muted);font-size:12px}.price-cat.lvl-1>span{font-weight:700}.price-result p{margin:0 0 12px}.price-result .btn{margin-bottom:8px;width:100%;justify-content:center}.price-reset{border:0;background:none;color:var(--hz-blue,#0A52C4);font:inherit;font-size:13px;cursor:pointer;padding:6px 0;text-decoration:underline}.price-muted{color:var(--muted);font-size:13px}@media (max-width:860px){.price-form{grid-template-columns:1fr}.price-side{order:-1}.price-tree{max-height:none}}
.customer-order-actions{display:flex;gap:8px;flex-wrap:wrap}
.active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px}.active-filters[hidden]{display:none}.active-filters-label{font-size:13px;font-weight:600;color:var(--muted)}.filter-chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 12px;border:1px solid #b9cdf0;border-radius:999px;background:#e8f0fd;color:#0A52C4;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.filter-chip:hover{border-color:#0A52C4}.filter-chip span{font-size:16px;line-height:1}.filter-chip-reset{border:0;background:none;color:#8B1E2D;font:inherit;font-size:13px;font-weight:600;text-decoration:underline;cursor:pointer;padding:4px 6px}.empty-filtered{display:grid;justify-items:center;gap:14px}.empty-filtered .btn{width:auto}
