/* Header 2026-09: three calm horizontal levels, shared by every app. */
.wb-header { background: #fff; border-bottom: 0; box-shadow: none; }
.wb-topbar { display: block; font-size: 14px; line-height: 1.4; }
.wb-topbar__inner { height: auto; min-height: 44px; grid-template-columns: auto minmax(0,1fr) auto; gap: 20px; }
.wb-topbar__left { gap: 9px; white-space: nowrap; }
.wb-topbar__left svg { width: 15px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; opacity: .8; }
.wb-topbar__nav { display: flex; justify-content:safe center; min-width:0; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#a56677 transparent; gap: 18px; white-space: nowrap; }
.wb-topbar__nav > * { flex:none; }
.wb-topbar__nav a { padding: 12px 0; opacity: .95; }
.wb-hover-bridge { position:absolute; background:transparent; }
.wb-hover-bridge[hidden] { display:none; }
.wb-hover-bridge--promo { position:fixed; z-index:109; }
.wb-hover-bridge--contacts { z-index:4; }
.wb-managed-menu__item { position: relative; display: flex; align-items: center; }
.wb-managed-menu__children { display: none; position: absolute; z-index: 70; top: calc(100% - 2px); left: 50%; min-width: 190px; padding: 8px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: #672335; box-shadow: 0 14px 34px rgba(45,17,26,.22); }
.wb-managed-menu__children a { display: block; padding: 9px 11px; border-radius: 6px; }
.wb-managed-menu__children a:hover { background: rgba(255,255,255,.1); }
.wb-managed-menu__nested-item { position: relative; }
.wb-managed-menu__nested-item > a { padding-right: 24px; }
.wb-managed-menu__nested-children { margin: 2px 0 2px 12px; padding-left: 6px; border-left: 1px solid rgba(255,255,255,.2); }
.wb-managed-menu__item:hover .wb-managed-menu__children,
.wb-managed-menu__item:focus-within .wb-managed-menu__children { display: block; }
.wb-topbar__contacts { justify-self: end; display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.wb-topbar__phone { font-weight: 600; letter-spacing: .025em; }
.wb-topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.wb-messengers { display: flex; align-items: center; gap: 5px; }
.wb-messenger { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; transition: background .2s, border-color .2s; }
.wb-messenger svg, .wb-messenger img { width: 18px; height: 18px; object-fit: contain; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
a.wb-messenger:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.65); }
.wb-messenger.is-unconfigured { opacity: .7; }
.wb-header__main { --wb-logo-column: 280px; --wb-catalog-width: 200px; --wb-actions-width: 209px; --wb-header-gap: 24px; --wb-middle-expanded: 104px; --wb-middle-compact: 80px; display: grid; grid-template-columns: var(--wb-logo-column) var(--wb-catalog-width) minmax(140px, calc((100% - var(--wb-logo-column) - var(--wb-catalog-width) - var(--wb-actions-width) - 3 * var(--wb-header-gap)) * .75)) var(--wb-actions-width); justify-content: space-between; align-items: center; min-height: 0; height: var(--wb-middle-expanded); gap: var(--wb-header-gap); padding-block: 20px; transition: height .28s ease, padding .28s ease, row-gap .28s ease; }
.wb-logo { display: block; position: relative; width: 280px; aspect-ratio: 318 / 67; max-width: 100%; overflow: visible; justify-self: start; transition: width .28s ease; }
.wb-logo img { position: absolute; inset: 0; width: 100%; max-width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .2s ease; }
.wb-logo .wb-logo__sticky { opacity: 0; }
.wb-header-actions { grid-column: 4; justify-self: end; margin: 0; gap: 11px; }
.wb-header-actions .wb-icon-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.wb-header-actions .wb-icon-btn svg { width: 23px; height: 23px; }
.wb-catalog-link { width: var(--wb-catalog-width); justify-self: start; justify-content: center; white-space: nowrap; min-height: 40px; min-width: 0; padding: 0 14px; gap: 10px; border: 1px solid var(--wb-accent); border-radius: 7px; font: 600 14px/1.2 Manrope, Arial, sans-serif; cursor: pointer; transition: background .2s, box-shadow .2s; }
.wb-catalog-link:hover, .wb-catalog-link[aria-expanded='true'] { background: #662030; box-shadow: 0 4px 14px rgba(123,38,56,.12); }
.wb-catalog-icon, .wb-catalog-chevron { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wb-catalog-chevron { width: 14px; height: 14px; transition: transform .2s; }
.wb-catalog-link[aria-expanded='true'] .wb-catalog-chevron { transform: rotate(180deg); }
.wb-header-nav { background: #f8f2ec; box-shadow: inset 0 -.5px 0 #e9dfd8; }
.wb-header-nav__links { border-top: 0; }
.wb-header-nav__links { display: flex; justify-content: safe center; align-items: center; gap: clamp(18px, 2.25vw, 32px); min-height: 56px; white-space: nowrap; font-size: 14px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #dfc7ce transparent; }
.wb-header-nav__links a { display: inline-flex; align-items: center; min-height: 48px; position: relative; flex: none; }
.wb-header-nav__links a::after { content: ''; position: absolute; inset: auto 0 7px; height: 1px; background: var(--wb-accent); transform: scaleX(0); transition: transform .2s; }
.wb-header-nav__links a:hover::after, .wb-header-nav__links a[aria-current='page']::after { transform: scaleX(1); }
.wb-header-nav__new { font-weight: 600; }
.wb-header-nav__links { scrollbar-width: none; }
.wb-header-nav__links::-webkit-scrollbar { display: none; }
.wb-catalog-menu { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(860px, calc(100% - 40px)); max-height: calc(100dvh - 220px); overflow-y: auto; background: #fff; border: 1px solid #eddee2; border-radius: 18px; box-shadow: 0 20px 60px rgba(65,28,40,.16); padding: 26px 30px; }
.wb-catalog-menu.is-open { display: block; }
.wb-catalog-menu__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.wb-catalog-menu__head > span { font: 600 30px/1.2 'Cormorant Garamond', Georgia, serif; }
.wb-catalog-menu__head a { font-size: 13px; color: var(--wb-accent); }
.wb-catalog-menu__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; align-items:start; }
.wb-catalog-menu__grid a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; min-height: 48px; background: #fcf9f9; border-radius: 8px; font-size: 14px; }
.wb-catalog-menu__grid a:hover { background: #f5e9eb; color: var(--wb-accent); }
.wb-catalog-menu__grid a > span:last-child { color: var(--wb-accent); }
.wb-catalog-branch { min-width:0; border-radius:10px; background:#fcf9f9; }
.wb-catalog-branch summary { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:48px; padding:14px; font-size:14px; line-height:1.5; cursor:pointer; list-style:none; border-radius:8px; color:var(--wb-ink); }
.wb-catalog-branch summary::-webkit-details-marker { display:none; }
.wb-catalog-branch summary:hover,.wb-catalog-branch[open]>summary { background:#f5e9eb; color:var(--wb-accent); }
.wb-catalog-branch summary svg { flex:none; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.5; transition:transform .18s; }
.wb-catalog-branch[open]>summary svg { transform:rotate(180deg); }
.wb-catalog-branch__children { padding:6px; }
.wb-catalog-menu__grid > .wb-catalog-branch[open] { grid-column:1 / -1; }
.wb-catalog-menu__grid > .wb-catalog-branch > .wb-catalog-branch__children { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 8px; }
.wb-catalog-menu__grid > .wb-catalog-branch > .wb-catalog-branch__children > .wb-catalog-branch__all { grid-column:1 / -1; }
.wb-catalog-menu__grid .wb-catalog-branch__children a { font-size:13px; min-height:40px; padding:10px; line-height:1.5; background:transparent; }
.wb-catalog-menu__grid .wb-catalog-branch__children a:hover { background:#f1e2e7; }
.wb-catalog-branch__all { color:var(--wb-accent); font-weight:700; }
.wb-catalog-branch summary:focus-visible { outline:2px solid #bd8c98; outline-offset:2px; }
.wb-category-children { display:flex; flex-wrap:wrap; gap:10px; margin:26px 0 32px; }
.wb-category-children a { display:inline-flex; align-items:center; gap:18px; border:1px solid #e8d8de; border-radius:30px; padding:12px 20px; background:#fcf8f9; color:var(--wb-accent); font-size:14px; }
.wb-category-children a:hover { background:#f3e5e9; border-color:#c5a3ae; }
.wb-main section[id] { scroll-margin-top: 220px; }
.wb-header-search { display: flex; align-items: center; min-width: 0; height: 40px; margin: 0; background: #fcf9f9; border: 1px solid #eadce0; border-radius: 7px; transition: background .2s, border-color .2s, box-shadow .2s; }
.wb-header-search:focus-within { background: #f2ebed; border-color: #cab5bc; box-shadow: 0 4px 14px rgba(65,28,40,.12); }
.wb-body .wb-header-search input:focus-visible { outline: none; box-shadow: none; }
.wb-header-search input { width: 100%; min-width: 0; padding: 9px 0 9px 14px; border: 0; background: transparent; color: var(--wb-ink); font: 14px/1.4 Manrope, Arial, sans-serif; outline: none; }
.wb-header-search input::placeholder { color: #947b82; opacity: 1; }
.wb-header-search button { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 7px; background: transparent; color: var(--wb-accent); cursor: pointer; }
.wb-header-search button:hover { background: #f5e9eb; }
.wb-header-search svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
/* A stable slot reserves the expanded height: collapsing never moves page content. */
.wb-header-slot { position: relative; overflow-anchor: none; }
.wb-header.is-sticky-ready { position: fixed; inset: 0 0 auto; overflow-anchor: none; }
.wb-topbar, .wb-header-nav { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .28s ease, opacity .22s ease; }
.wb-header-fold__clip { min-height: 0; overflow: hidden; }
.wb-topbar__inner, .wb-header-nav__links { transform: translateY(0); transition: transform .28s ease; }
.wb-header.is-compact [data-wb-header-fold] { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.wb-header.is-compact .wb-topbar__inner, .wb-header.is-compact .wb-header-nav__links { transform: translateY(-12px); }
.wb-header.is-compact { box-shadow: 0 5px 24px rgba(65,28,40,.09); }
.wb-header.is-compact .wb-header__main { height: var(--wb-middle-compact); padding-block: 10px; }
.wb-header.is-compact .wb-logo { width: 240px; }
.wb-header.is-compact .wb-logo__main { opacity: 0; }
.wb-header.is-compact .wb-logo__sticky { opacity: 1; }
.wb-header.is-compact .wb-catalog-menu { max-height: calc(100dvh - var(--wb-middle-height, 104px) - 24px); }
@media(max-width:1100px) {
 .wb-header__main { --wb-logo-column: 260px; --wb-actions-width: 191px; --wb-header-gap: 16px; }
 .wb-logo { width: 260px; }
 .wb-header.is-compact .wb-logo { width: 228px; }
 .wb-header-actions { gap: 5px; }
 .wb-header-nav__links { justify-content: flex-start; gap: 25px; }
 .wb-topbar__inner { gap: 15px; }
 .wb-topbar__nav { gap: 14px; }
 .wb-topbar__contacts { gap: 10px; }
}
@media(max-width:980px) {
 .wb-topbar__inner { grid-template-columns: auto 1fr auto; }
 .wb-topbar__left { font-size: 11px; gap: 5px; }
 .wb-topbar__nav { justify-content: safe center; gap: 14px; font-size: 13px; }
 .wb-topbar__contacts { gap: 7px; font-size: 12px; }
 .wb-header__main { --wb-logo-column: 240px; --wb-catalog-width: 180px; --wb-actions-width: 176px; --wb-header-gap: 12px; }
 .wb-logo { width: 240px; }
 .wb-header.is-compact .wb-logo { width: 214px; }
 .wb-catalog-link { padding-inline: 12px; gap: 8px; }
 .wb-header-actions { gap: 0; }
}
@media(max-width:860px) {
 .wb-topbar__inner { grid-template-columns: 1fr auto; }
 .wb-topbar__nav { display: none; }
 .wb-topbar__left, .wb-topbar__contacts { font-size: 13px; }
 .wb-header__main { --wb-middle-expanded: 136px; --wb-middle-compact: 112px; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px 16px; padding-block: 16px; }
 .wb-header.is-compact .wb-header__main { padding-block: 8px; row-gap: 8px; }
 .wb-logo { width: 240px; }
 .wb-logo { grid-column: 1 / 3; grid-row: 1; }
 .wb-header-actions { grid-row: 1; grid-column: 3; justify-self: end; gap: 8px; }
 .wb-catalog-link { grid-row: 2; grid-column: 1; justify-self: start; }
 .wb-header-search { grid-row: 2; grid-column: 2 / 4; }
 .wb-catalog-menu__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
 .wb-topbar__inner { display: flex; justify-content: center; min-height: 40px; }
 .wb-topbar__left { display: none; }
 .wb-topbar__contacts { gap: 20px; }
 .wb-header__main { --wb-middle-expanded: 177px; --wb-middle-compact: 154px; --wb-catalog-width: 102px; grid-template-columns: auto minmax(0,1fr); gap: 10px 12px; padding-block: 14px 10px; }
 .wb-header.is-compact .wb-header__main { padding-block: 6px; row-gap: 6px; }
 .wb-logo { grid-column: 1 / -1; width: min(230px, 100%); max-width: 100%; justify-self: center; }
 .wb-header.is-compact .wb-logo { width: 200px; }
 .wb-logo img { width: 100%; max-width: 100%; }
 .wb-catalog-link { min-width: 102px; min-height: 38px; padding-inline: 10px; gap: 7px; font-size: 13px; }
 .wb-catalog-link__full, .wb-catalog-chevron { display: none; }
 .wb-header-search { grid-column: 2; height: 40px; }
 .wb-header-search input { font-size: 16px; padding-left: 10px; }
 .wb-header-search input::placeholder { font-size: 13px; }
 .wb-header-actions { grid-row: 3; grid-column: 1 / -1; justify-self: stretch; justify-content: space-around; gap: 0; }
 .wb-header-actions .wb-icon-btn { width: 44px; height: 44px; }
 .wb-header-nav__links { min-height: 52px; gap: 24px; font-size: 13px; }
 .wb-header-nav__links a { min-height: 44px; }
 .wb-catalog-menu { width: calc(100% - 24px); padding: 20px 16px; border-radius: 12px; }
 .wb-catalog-menu,.wb-header.is-compact .wb-catalog-menu { max-height:calc(100dvh - var(--wb-header-visible-height,300px) - 88px); }
 .wb-catalog-menu__head { align-items: flex-start; }
 .wb-catalog-menu__head > span { font-size: 25px; }
 .wb-catalog-menu__head a { padding-top: 4px; white-space: nowrap; font-size: 12px; }
 .wb-catalog-menu__grid a { font-size: 12px; padding: 12px; }
 .wb-catalog-menu__grid { grid-template-columns:1fr; }
 .wb-catalog-menu__grid > .wb-catalog-branch > .wb-catalog-branch__children { grid-template-columns:1fr; }
 .wb-catalog-branch summary { font-size:14px; }
 .wb-main section[id] { scroll-margin-top: 300px; }
}
@media(prefers-reduced-motion:reduce) {
 .wb-topbar, .wb-header-nav, .wb-topbar__inner, .wb-header-nav__links, .wb-header__main, .wb-logo, .wb-logo img { transition: none; }
}
