/* Shared, accessible contact actions for the catalog and WOODY planners. */
.header-contacts{display:flex;align-items:center;gap:8px;flex-shrink:0;min-width:0}
.header .header-contact,.planner-header .header-contact{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 14px;margin:0;border:1px solid transparent;border-radius:6px;font:600 13px/1.2 Manrope,Arial,sans-serif;white-space:nowrap;text-decoration:none;transition:background .18s,color .18s}
.header-contact svg{display:block;width:20px;height:20px;flex:none}
.header .header-telegram,.planner-header .header-telegram{background:#1477a7;color:#fff}
.header .header-telegram:hover,.planner-header .header-telegram:hover{background:#0b608b;color:#fff}
.header .header-phone,.planner-header .header-phone{background:#232522;color:#fff}
.header .header-phone:hover,.planner-header .header-phone:hover{background:#42483f;color:#fff}
.header-contact:focus-visible{outline:3px solid #d94f20;outline-offset:3px}
.header-contacts[hidden],.header-contact[hidden]{display:none!important}
.header .language-switch,.planner-header .language-switch{margin-left:0}
.header .brand{max-width:100%;min-width:0}
.header .brand .widewood-brand-image{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;object-position:left center}
.header-contact span{min-width:0}
@media(max-width:1250px) and (min-width:821px){
 .header{flex-wrap:wrap;column-gap:14px;row-gap:10px;padding-block:10px}
 .header nav{order:5;width:100%;justify-content:center;margin-left:0}
 .header .header-contacts{margin-left:auto}
 .header .brand{width:240px}
 .header .brand .widewood-brand-image{width:100%;height:auto}
}
@media(max-width:1000px) and (min-width:821px){
 .planner-header{flex-wrap:wrap;gap:12px;padding-block:10px}
 .planner-header .header-contacts{margin-left:auto}
}
@media(max-width:820px){
 .header,.planner-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;justify-content:stretch;gap:10px 8px;min-height:0;padding-block:12px}
 .header .brand,.header .woody-header-brand,.header .routex-header-brand,.planner-header .wordmark{grid-column:1;grid-row:1;order:0;width:auto;min-width:0}
 .header .brand{width:100%;max-width:210px}
 .header .brand .widewood-brand-image{width:100%;max-width:100%;height:auto;object-fit:contain}
 .header .woody-header-brand img{width:100px;height:48px}
 .header .language-switch,.planner-header .language-switch{grid-column:2;grid-row:1;justify-self:end;margin:0;gap:0;padding:2px}
 .header .language-switch button,.planner-header .language-switch button{min-width:30px;min-height:40px;padding:8px 6px;font-size:12px}
 .header .header-contacts,.planner-header .header-contacts{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;margin:0;gap:8px}
 .header .header-contact,.planner-header .header-contact{display:flex;width:100%;min-width:0;min-height:46px;padding:10px 9px;font-size:13px;line-height:1.25;margin:0;white-space:normal;text-align:center}
 .header-contact svg{width:18px;height:18px}
 .header nav{grid-column:1/-1;grid-row:3;order:0;display:flex;flex-wrap:wrap;width:100%;min-width:0;margin:0;justify-content:center;gap:4px 16px;font-size:12px}
 .header nav a{display:inline-flex;align-items:center;min-height:36px;min-width:0;max-width:100%;white-space:normal}
 .header nav a:nth-child(2){display:inline-flex}
 .planner-header #back-link,.planner-header #k-back{grid-column:1/-1;grid-row:3;font-size:12px}
 .planner-header .woody-planner-logo{width:100px;height:48px}
 .business-tabs button,.categories button{min-width:0;overflow-wrap:anywhere}
 .business-tabs button span{overflow-wrap:anywhere}
 .hero-intro,.hero-heading,.section-head,.catalog-meta,.dialog-top{min-width:0}
}
@media(max-width:380px){
 .header.wrap,.planner-header.shell{width:calc(100% - 28px)}
 .header .header-contact,.planner-header .header-contact{font-size:12px;gap:6px}
 .header nav{gap:4px 12px;font-size:11px}
}

/* Primary configurator action, visible before contact buttons on small screens. */
.header .header-planner{background:#c4461c;color:#fff;font-weight:700}
.header .header-planner:hover{background:#a73713;color:#fff}
@media(max-width:820px){.header .header-planner{grid-column:1/-1;min-height:46px}}
