/* Новая шапка «Свет и архитектура». Оконный бутик Виталия Хрусталева, 09.10.2026.
   Все стили изолированы префиксом .ob-header. Глобальные a, button, ul, header не трогаем. */
.ob-header__top, .ob-header__nav {
  --obh-bg: #F7F5F0;
  --obh-surface: #FFFFFF;
  --obh-ink: #262925;
  --obh-ink2: #5F625C;
  --obh-line: #DEDCD5;
  --obh-accent: #F58A18;
  --obh-accent-h: #F79A35;
  --obh-hover: #FFF0DF;
  --obh-sel: #B84D00;
  --obh-focus: 0 0 0 3px rgba(184, 77, 0, .45);
  --obh-wrap: 1170px;
  font-family: "Myriad Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--obh-ink);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.ob-header__top *, .ob-header__nav *, .ob-header__top *::before, .ob-header__nav *::before, .ob-header__top *::after, .ob-header__nav *::after { box-sizing: border-box; }
.ob-header__top a, .ob-header__nav a { color: inherit; text-decoration: none; }
.ob-header__top ul, .ob-header__nav ul { list-style: none; margin: 0; padding: 0; }
.ob-header__top li, .ob-header__nav li { margin: 0; padding: 0; }
.ob-header__top li::before, .ob-header__nav li::before { content: none !important; display: none !important; }
:where(.ob-header__top, .ob-header__nav) button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ob-header__top svg, .ob-header__nav svg { display: block; flex: 0 0 auto; }
.ob-header__top :focus-visible, .ob-header__nav :focus-visible { outline: none; box-shadow: var(--obh-focus); border-radius: 8px; }
.ob-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ob-header__wrap { width: 100%; max-width: var(--obh-wrap); margin: 0 auto; padding: 0 15px; display: flex; align-items: center; }

/* ---------- верхний уровень ---------- */
.ob-header__top { position: relative; z-index: 901; background: var(--obh-surface); border-bottom: 1px solid var(--obh-line); }
.ob-header__top .ob-header__wrap { min-height: 84px; gap: 18px; }
.ob-header__logo { display: block; flex: 0 0 auto; line-height: 0; }
.ob-header__logo img { display: block; width: 190px; height: 51px; object-fit: contain; }
.ob-header__partner { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 0 0 auto; padding: 4px 0; color: var(--obh-ink2); }
.ob-header__partner img { width: 64px; height: 21px; display: block; }
.ob-header__partner-t { font-size: 10.5px; line-height: 1.15; color: var(--obh-ink2); white-space: nowrap; transition: color .15s ease; }
.ob-header__partner:hover .ob-header__partner-t { color: var(--obh-sel); }
.ob-header__util { display: flex; align-items: center; gap: 18px; margin-left: auto !important; }
.ob-header__u { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 15px; color: var(--obh-ink); transition: color .15s ease; white-space: nowrap; }
.ob-header__u svg { width: 19px; height: 19px; color: var(--obh-ink2); transition: color .15s ease; }
.ob-header__u:hover, .ob-header__u:hover svg { color: var(--obh-sel); }
.ob-header__pills { display: flex; align-items: center; gap: 8px; }
.ob-header__pill { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border: 1px solid var(--obh-line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color .15s ease, background-color .15s ease; }
.ob-header__pill:hover { border-color: var(--obh-accent); background: var(--obh-hover); }
.ob-header__pill svg { width: 15px; height: 15px; color: var(--obh-accent); }
.ob-header__pill .ob-header__ya { color: #E1251B; font-weight: 700; }
.ob-header__contact { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.ob-header__worktime { font-size: 12px; color: var(--obh-ink2); line-height: 1.2; }
.ob-header__phone { font-size: 22px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; line-height: 1.15; }
.ob-header__phone:hover { color: var(--obh-sel); }
.ob-header__callback { font-size: 14px; color: var(--obh-sel) !important; border-bottom: 1px dashed currentColor; line-height: 1.25; white-space: nowrap; }
.ob-header__callback:hover { border-bottom-style: solid; }
.ob-header__msgr { display: flex; gap: 8px; flex: 0 0 auto; }
.ob-header__ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; transition: transform .15s ease, box-shadow .15s ease; }
.ob-header__ico:hover { box-shadow: 0 4px 12px rgba(38, 41, 37, .18); }
.ob-header__ico--tg { background: #2AABEE; color: #fff; }
.ob-header__ico--tg svg { width: 22px; height: 22px; margin-left: -2px; }
.ob-header__ico--max { background: #fff; overflow: hidden; }
.ob-header__ico--max img { width: 44px; height: 44px; display: block; border-radius: 50%; }
.ob-header__mcall, .ob-header__burger { display: none; }

/* ---------- нижний уровень (меню) ---------- */
.ob-header__nav { position: relative; z-index: 900; background: var(--obh-surface); border-bottom: 1px solid var(--obh-line); box-shadow: 0 1px 0 rgba(0,0,0,0); transition: box-shadow .2s ease; }
.ob-header__nav.is-stuck { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 6px 20px rgba(38, 41, 37, .08); }
.ob-header__spacer { display: none; }
.ob-header__nav.is-stuck + .ob-header__spacer { display: block; height: 59px; }
.ob-header__nav > .ob-header__wrap { position: relative; min-height: 58px; gap: 0; }
.ob-header__mini { display: none; flex: 0 0 auto; margin-right: 10px; line-height: 0; }
.ob-header__mini img { width: 36px; height: 32px; }
.ob-header__drawer-head, .ob-header__drawer-extra { display: none; }
.ob-header__menu { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; }
.ob-header__item { position: static; display: flex; align-items: stretch; }
.ob-header__row { position: relative; display: flex; align-items: center; height: 58px; border-radius: 10px 10px 0 0; transition: background-color .18s ease, color .18s ease; }
.ob-header__row::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--obh-accent); opacity: 0; transform: scaleX(.6); transition: opacity .18s ease, transform .18s ease; }
.ob-header__link { display: flex; align-items: center; height: 100%; padding: 0 2px 0 12px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.ob-header__item--plain .ob-header__link { padding-right: 12px; }
.ob-header__toggle { display: flex; align-items: center; justify-content: center; width: 28px; height: 44px; margin-right: 3px; border-radius: 8px; color: var(--obh-ink2); }
.ob-header__toggle svg { width: 14px; height: 14px; transition: transform .18s ease; }
.ob-header__row:hover, .ob-header__item.is-open .ob-header__row { background: var(--obh-hover); color: var(--obh-sel); }
.ob-header__row:hover .ob-header__toggle, .ob-header__item.is-open .ob-header__toggle { color: var(--obh-sel); }
.ob-header__row:hover::after, .ob-header__item.is-open .ob-header__row::after, .ob-header__item.is-section .ob-header__row::after { opacity: 1; transform: scaleX(1); }
.ob-header__item.is-section .ob-header__link { color: var(--obh-sel); }
.ob-header__item.is-open .ob-header__toggle svg { transform: rotate(180deg); }
.ob-header__sep { flex: 0 0 auto; width: 1px; height: 28px; margin: 0 18px 0 10px; background: var(--obh-line); }
.ob-header__calc { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; height: 44px; padding: 0 18px; border-radius: 12px; background: var(--obh-accent); color: var(--obh-ink) !important; font-size: 16px; font-weight: 700; white-space: nowrap; transition: background-color .15s ease; }
.ob-header__calc:hover { background: var(--obh-accent-h); }
.ob-header__calc svg { width: 20px; height: 20px; }
.ob-header__calc[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--obh-ink); }

/* раскрывающаяся панель */
.ob-header__panel { position: absolute; left: 15px; right: 15px; top: 100%; margin-top: 1px; background: var(--obh-surface); border: 1px solid var(--obh-line); border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 22px 44px rgba(38, 41, 37, .12); padding: 26px 30px 24px; max-height: calc(100vh - 160px); overflow-y: auto; overscroll-behavior: contain; }
.ob-header__panel[hidden] { display: none !important; }
.ob-header__cols { column-width: 230px; column-gap: 36px; column-rule: 1px solid #EEECE6; }
.ob-header__sub > li, .ob-header__grp { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; }
.ob-header__sub > li > a, .ob-header__sub2 a { display: flex; align-items: center; min-height: 34px; padding: 4px 8px; margin: 0 -8px; border-radius: 8px; font-size: 15.5px; color: var(--obh-ink); transition: background-color .15s ease, color .15s ease; }
.ob-header__sub > li > a:hover, .ob-header__sub2 a:hover { background: var(--obh-hover); color: var(--obh-sel); }
.ob-header__grp { padding: 0 0 10px; }
.ob-header__grp > a.ob-header__grp-title { font-weight: 700; font-size: 16px; }
.ob-header__sub2 { padding: 0 0 4px 12px !important; border-left: 2px solid #F1EEE7; margin-left: 2px !important; }
.ob-header__sub2 a { min-height: 30px; font-size: 14.5px; color: var(--obh-ink2); }
.ob-header__sub2 .ob-header__sub2 { border-left: 0; padding-left: 10px !important; }
.ob-header__nav a[aria-current="page"] { color: var(--obh-sel); font-weight: 700; }
.ob-header__panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #EEECE6; }
.ob-header__all { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 700; font-size: 15.5px; color: var(--obh-sel) !important; }
.ob-header__all svg { width: 16px; height: 16px; }
.ob-header__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.ob-header__panel-title { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--obh-ink2); }
.ob-header__panel-title:not(:first-child) { margin-top: 18px; }

/* ---------- планшет и телефон: компактная строка + полноэкранное меню ---------- */
@media (max-width: 1199.98px) {
  .ob-header__util, .ob-header__pills { display: none; }
  .ob-header__partner img { width: 58px; height: 19px; }
  .ob-header__partner-t { display: none; }
  .ob-header__top .ob-header__wrap { min-height: 68px; gap: 12px; padding: 0 16px; }
  .ob-header__logo img { width: 173px; height: 46px; }
  .ob-header__contact { margin-left: auto; }
  .ob-header__burger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 14px; border-radius: 12px; background: var(--obh-ink); color: #fff !important; font-size: 15px; font-weight: 600; }
  .ob-header__burger svg { width: 20px; height: 20px; }
  /* меню превращается в панель на весь экран */
  .ob-js .ob-header__nav { display: none; }
  .ob-js .ob-header__nav.is-open { display: block; position: fixed; inset: 0; z-index: 2147483640; height: 100vh; height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; border: 0; box-shadow: none; background: var(--obh-bg);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(24px + env(safe-area-inset-bottom)) env(safe-area-inset-left); }
  .ob-header__nav > .ob-header__wrap { display: block; max-width: 640px; padding: 0 16px; }
  .ob-header__drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 2; min-height: 68px; margin: 0 -16px; padding: 0 16px; background: var(--obh-bg); border-bottom: 1px solid var(--obh-line); }
  .ob-header__drawer-head img { width: 173px; height: 46px; display: block; }
  .ob-header__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--obh-line) !important; }
  .ob-header__close svg { width: 20px; height: 20px; }
  .ob-header__mini, .ob-header__nav.is-stuck .ob-header__mini { display: none; }
  .ob-header__sep { display: none; }
  .ob-header__calc { display: flex; justify-content: center; width: 100%; height: 52px; margin: 16px 0 8px; font-size: 17px; }
  .ob-header__menu { display: block; }
  .ob-header__item { display: block; border-bottom: 1px solid var(--obh-line); }
  .ob-header__row { height: auto; min-height: 56px; border-radius: 0; }
  .ob-header__row::after { display: none; }
  .ob-header__row:hover { background: transparent; }
  .ob-header__link { flex: 1 1 auto; padding: 12px 0; font-size: 19px; font-weight: 600; white-space: normal; }
  .ob-header__toggle { width: 48px; height: 48px; margin: 0 -8px 0 0; background: #fff; border: 1px solid var(--obh-line) !important; border-radius: 12px; }
  .ob-header__toggle svg { width: 16px; height: 16px; }
  .ob-header__item.is-open .ob-header__row { background: transparent; }
  .ob-header__panel { position: static; margin: 0 0 14px; padding: 6px 14px 10px; border: 1px solid var(--obh-line); border-radius: 14px; box-shadow: none; max-height: none; overflow: visible; }
  .ob-header__cols { column-width: auto; column-count: 1; column-rule: 0; }
  .ob-header__sub > li > a, .ob-header__sub2 a { min-height: 44px; font-size: 16px; }
  .ob-header__sub2 a { font-size: 15.5px; }
  .ob-header__panel-foot { margin-top: 6px; padding-top: 6px; }
  .ob-header__drawer-extra { display: block; margin-top: 18px; padding: 18px 16px; background: #fff; border: 1px solid var(--obh-line); border-radius: 16px; }
  .ob-header__dx-phone { display: block; font-size: 24px; font-weight: 700; }
  .ob-header__dx-time { display: block; margin: 2px 0 12px; font-size: 14px; color: var(--obh-ink2); }
  .ob-header__dx-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin: 0 0 10px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--obh-line); background: #fff; font-size: 16px; font-weight: 600; }
  .ob-header__dx-btn--accent { background: var(--obh-hover); border-color: #F6D2AC; color: var(--obh-sel) !important; }
  .ob-header__dx-btn img, .ob-header__dx-btn svg { width: 26px; height: 26px; border-radius: 50%; }
  .ob-header__dx-btn .ob-header__tgdot { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #2AABEE; color: #fff; }
  .ob-header__dx-btn .ob-header__tgdot svg { width: 15px; height: 15px; }
  .ob-header__dx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ob-header__dx-row .ob-header__dx-btn { margin: 0; }
  .ob-header__dx-links { margin-top: 14px; }
  .ob-header__dx-links a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; border-top: 1px solid #F0EEE8; }
  .ob-header__dx-links svg { width: 20px; height: 20px; color: var(--obh-ink2); }
  .ob-header__dx-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .ob-header__dx-badges .ob-header__pill { height: 40px; }
  .ob-header__dx-partner { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--obh-ink2); }
  .ob-header__dx-partner img { width: 64px; height: 21px; }
}
@media (max-width: 767.98px) {
  .ob-header__contact { display: none; }
  .ob-header__msgr { display: none; }
  .ob-header__top .ob-header__wrap { min-height: 60px; }
  .ob-header__logo img, .ob-header__drawer-head img { width: 150px; height: 40px; }
  .ob-header__drawer-head { min-height: 60px; }
  .ob-header__mcall { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; border: 1px solid var(--obh-line); color: var(--obh-ink) !important; }
  .ob-header__mcall svg { width: 21px; height: 21px; }
  .ob-header__burger-t { display: none; }
  .ob-header__burger { padding: 0; width: 44px; }
}
@media (max-width: 374.98px) {
  .ob-header__top .ob-header__partner { display: none; }
}
@media (max-width: 359.98px) {
  .ob-header__logo img, .ob-header__drawer-head img { width: 132px; height: 35px; }
  .ob-header__top .ob-header__wrap { padding: 0 12px; gap: 8px; }
}
html.ob-lock, html.ob-lock body { overflow: hidden !important; }
@media (prefers-reduced-motion: reduce) {
  .ob-header__top *, .ob-header__nav * { transition: none !important; }
}
