/* 20.11.2026 (Claude): новая шапка и прилипающая панель по макету headers.html. Подключается модулем claude_blocks_header.php. */
@font-face{font-family:SgHdPT;src:url(themes/fonts/PTSansRegular.ttf) format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:SgHdPT;src:url(themes/fonts/PTSansBold.ttf) format("truetype");font-weight:700;font-display:swap}
html{scroll-padding-top:calc(var(--hdx-h,0px) + 12px)}
header.hdx-header{--hd-red:#D7191F;--hd-red-deep:#A80F16;--hd-ink:#23262A;--hd-muted:#676D74;--hd-line:#ECE7E3;--hd-soft-red:#FDECEC;font-family:SgHdPT,"PT Sans",PTSansRegular,Arial,sans-serif;-webkit-font-smoothing:antialiased;text-align:left;float:none;width:auto;height:auto;margin:0;padding:0;box-sizing:border-box}
header.hdx-header *{box-sizing:border-box}
/* шапка вынесена в начало body: body по высоте содержимого (было 100% — тогда липкая шапка уходила через экран); подвал на коротких страницах — внизу */
html body{height:auto;min-height:100%}
html body>.wrapper{min-height:calc(100vh - var(--hdx-h,0px) - var(--hdx-nav-h,54px))}
/* верх шапки — прилипает, как в макете */
header.hdx-header{position:-webkit-sticky;position:sticky;top:0;z-index:500;background:#fff;border-bottom:1px solid var(--hd-line);transition:box-shadow .2s;color:var(--hd-ink)}
header.hdx-header.is-stuck{box-shadow:0 14px 34px -20px rgba(35,38,42,.5)}
header.hdx-header .hdx-top{max-width:1180px;margin:0 auto;padding:16px 24px;display:grid;grid-template-columns:190px minmax(0,1fr) 172px;gap:18px;align-items:start}
header.hdx-header .hdx-logo{align-self:center;display:flex;align-items:center;min-height:52px;margin:0;padding:0;float:none;width:auto;height:auto;background:none}
header.hdx-header .hdx-logo a{display:block;text-decoration:none;border-radius:4px}
header.hdx-header .hdx-logo a:focus-visible{outline:2px solid var(--hd-red);outline-offset:3px}
header.hdx-header .hdx-logo .header-subdomain-logo-text{display:block;float:none;position:static;width:190px;height:52px;margin:0;background-position:left center;background-size:contain;background-repeat:no-repeat}
header.hdx-header .hdx-addresses{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px 6px;min-width:0;margin:0;padding:0}
header.hdx-header .hdx-addr{min-width:0;color:var(--hd-ink);line-height:1.25;margin:0;padding:0;text-align:left}
header.hdx-header .hdx-addr-name{display:block;font-size:14px;line-height:1.25;font-weight:700;color:var(--hd-red-deep);text-decoration:none;text-transform:none}
header.hdx-header .hdx-addr-name:hover{text-decoration:underline;color:var(--hd-red-deep)}
header.hdx-header .hdx-addr-txt{display:block;margin-top:1px;font-size:12.5px;line-height:1.25;letter-spacing:-.01em;color:var(--hd-muted);white-space:normal}
header.hdx-header .hdx-addr-tel{display:block;margin-top:2px;font-size:13.5px;line-height:1.25;font-weight:400;font-style:normal;color:var(--hd-ink);white-space:nowrap;text-decoration:none}
header.hdx-header .hdx-addr-tel:hover{color:var(--hd-red-deep);text-decoration:none}
header.hdx-header .hdx-addr a:focus-visible,header.hdx-header .hdx-tel:focus-visible{outline:2px solid var(--hd-red);outline-offset:2px;border-radius:3px}
header.hdx-header .hdx-cta{align-self:center;display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;margin:0;padding:0;float:none;width:auto;height:auto;background:none;position:static}
header.hdx-header .hdx-tel{display:block;width:auto;text-align:center;font-size:17px;font-weight:700;line-height:1;color:var(--hd-ink);text-decoration:none;white-space:nowrap}
header.hdx-header .hdx-tel:hover{color:var(--hd-red-deep)}
header.hdx-header .hdx-cta button.hdx-btn{text-indent:0;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:40px;width:100%;margin:0;padding:0 17px;border-radius:99px;border:1.5px solid var(--hd-red);background:var(--hd-red);background-image:none;color:#fff;font-family:inherit;font-size:14px;line-height:1;font-weight:700;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:none;text-shadow:none;text-transform:none;transition:background .15s,border-color .15s,color .15s}
header.hdx-header .hdx-cta button.hdx-btn:hover,header.hdx-header .hdx-cta button.hdx-btn:active{background:var(--hd-red-deep);border-color:var(--hd-red-deep);color:#fff}
header.hdx-header .hdx-cta button.hdx-btn:focus{outline:none}
header.hdx-header .hdx-cta button.hdx-btn:focus-visible{outline:2px solid var(--hd-red-deep);outline-offset:3px}
header.hdx-header .hdx-note{display:block;width:auto;text-align:center;font-size:12px;line-height:1.3;color:var(--hd-muted)}
/* красная полоса меню — старая (правка Артёма 20.11), её стили не трогаем */
header.hdx-menuwrap{position:relative;z-index:450}
/* старая плашка: невидимая, высотой с шапку (по ней ol_service_hero считает отступ к якорям) */
html body .desktop-fixed-plash.hdx-plash{display:block!important;position:fixed!important;top:0!important;left:0!important;width:1px!important;height:var(--hdx-h,0px)!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:none!important;visibility:hidden!important;pointer-events:none!important;overflow:hidden!important;z-index:-1!important}
@media (max-width:980px){
header.hdx-header .hdx-top{grid-template-columns:170px minmax(0,1fr) 170px;gap:16px}
header.hdx-header .hdx-addresses{grid-template-columns:repeat(3,minmax(0,1fr))}
header.hdx-header .hdx-addr:nth-child(n+7){display:none}
header.hdx-header .hdx-logo .header-subdomain-logo-text{width:170px;height:46px}
}
@media (max-width:760px){
header.hdx-header .hdx-top{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:12px 16px}
header.hdx-header .hdx-addresses{display:none}
header.hdx-header .hdx-logo{min-height:44px}
header.hdx-header .hdx-logo .header-subdomain-logo-text{width:160px;height:44px}
header.hdx-header .hdx-cta{flex-direction:row;align-items:center;gap:8px;text-align:left}
header.hdx-header .hdx-cta button.hdx-btn{width:auto;height:38px;padding:0 13px;font-size:13px}
header.hdx-header .hdx-note{display:none}
header.hdx-header .hdx-tel{width:auto;text-align:left;font-size:15px}
}
@media (max-width:480px){
header.hdx-header .hdx-top{grid-template-columns:minmax(0,1fr)}
header.hdx-header .hdx-logo{justify-content:center}
header.hdx-header .hdx-cta{justify-content:center;flex-wrap:wrap;text-align:center}
header.hdx-header .hdx-tel{text-align:center;font-size:17px}
header.hdx-header .hdx-logo .header-subdomain-logo-text{margin:0 auto}
}
@media (prefers-reduced-motion:reduce){header.hdx-header{transition:none}}
