/* Шапка каталога по трём макетам Марины. */
.masthead.site-head {background:#141414;position:relative;z-index:4}
.masthead .head-inner {min-height:60px;justify-content:space-between}
.site-head.masthead a.brand {flex:none;width:clamp(142px,12vw,186px);padding:0}
.masthead.site-head .brand-logo {width:100%;height:auto;filter:none}
.masthead .main-nav {gap:clamp(20px,2.2vw,40px)}
.masthead .brand-block {display:flex;align-items:center;gap:16px;min-width:0}
.masthead .brand-region {color:#fff;font:400 18px/1.2 Roboto,Arial,sans-serif;white-space:nowrap;font-style:normal}
@media (min-width:761px) and (max-width:1100px) {
  .masthead .head-inner {gap:20px}
  .masthead .brand-block {gap:12px}
  .masthead .brand-region {max-width:104px;white-space:normal;font-size:16px}
}
.directory-hero.hero {background:#ffd600;color:#111;overflow:visible}
.directory-hero>.shell {padding:clamp(20px,1.8vw,32px) 0}
.directory-hero.hero h1 {font:900 clamp(30px,3.15vw,62px)/1 RobotoCondensed,Roboto,Arial,sans-serif;letter-spacing:-.8px;margin:0;max-width:none}
.directory-hero.hero p {font:400 clamp(18px,1.6vw,30px)/1.3 Roboto,Arial,sans-serif;margin:6px 0 18px;max-width:none}
.directory-hero .phone-period {display:none}
.directory-hero.hero .search-form {
  display:grid;grid-template-columns:minmax(0,1.55fr) minmax(267px,1fr) minmax(180px,.59fr) minmax(90px,.43fr);
  gap:8px;align-items:center;width:100%;height:auto;max-width:none;margin:0;background:transparent;filter:none;box-shadow:none;border:0
}
.directory-hero .search-form>.search-field,.directory-hero .search-form>.region-button,.directory-hero .search-form>.open24-filter,.directory-hero .search-form>.header-submit {
  box-sizing:border-box;height:50px;min-height:50px;max-height:50px;width:100%;min-width:0;max-width:none;margin:0;border-radius:10px;grid-column:auto
}
.directory-hero .search-field,.directory-hero .search-form>.region-button {display:flex;align-items:center;gap:9px;padding:0 12px;background:white;color:#111;border:0}
.directory-hero .search-field input {flex:1;min-width:0;width:100%;border:0;background:transparent;color:#111;padding:0}
.directory-hero .search-field svg,.directory-hero .region-button>svg {width:23px;height:23px;flex:none}
.directory-hero .search-form>.region-button {justify-content:flex-start}
.directory-hero .region-button span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.directory-hero .region-button>.chevron {width:17px;margin-left:auto}
.directory-hero .search-form>.open24-filter,.directory-hero .search-form>.open24-filter:has(:checked) {border:2px solid #fff;background:#ffe77c;color:#111;padding:0 6px;gap:5px}
.directory-hero .open24-text {display:inline}
.directory-hero .open24-short {display:none}
.directory-hero .header-submit {background:#171717;color:white;border:0;padding:0 10px}
.directory-hero .search-form,.directory-hero .search-form :is(input,button,label,span),.directory-hero .search-form input::placeholder {font:400 16px/1.3 Roboto,Arial,sans-serif}
.directory-sections {background:#f1f1f1}
.directory-sections .category-icons {display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:max-content;--category-label-size:calc(min(16px,calc(((100vw - 80px) / 12 - 8px) / 10.153)) + 1px);padding:0;gap:0}
.directory-sections .category-icons .category-icon {display:flex;align-items:center;justify-content:flex-start;gap:6px;margin:0;padding:12px 2px;min-height:96px;font:500 var(--category-label-size)/1.1 Roboto,Arial,sans-serif;border:0;border-radius:0}
.directory-sections .category-icon>span {display:block;width:calc(100% + 4px);min-width:0;max-width:calc(100% + 4px);font:inherit;white-space:nowrap}
.directory-sections .category-icon img {display:block;width:clamp(50px,5.4vw,92px);height:clamp(36px,3.15vw,55px);object-fit:contain}
.directory-sections .category-icon-upfitters img {width:clamp(36px,3.15vw,55px);transform:scale(1.35)}
.directory-sections .category-icons .category-icon::after {content:'';display:block;position:absolute;right:0;top:12px;bottom:12px;width:1px;background:#ccc}
.directory-sections .category-icons .category-icon:nth-child(12n)::after {display:none}
.directory-sections .category-icons .category-icon:nth-child(n+13) {border-top:1px solid #ccc}
.directory-sections .category-icon[aria-current=page] {background:white}
@media (min-width:761px) and (max-width:1279px) {
  .directory-sections .category-icons {grid-template-columns:repeat(6,minmax(0,1fr));--category-label-size:calc(min(16px,calc(((100vw - 80px) / 6 - 8px) / 10.153)) + 1px)}
  .directory-sections .category-icons .category-icon:nth-child(6n)::after {display:none}
  .directory-sections .category-icons .category-icon:nth-child(n+7) {border-top:1px solid #ccc}
}
@media (min-width:761px) and (max-width:940px) {
  .directory-hero.hero .search-form {grid-template-columns:minmax(0,1fr) 267px}
}
@media (max-width:760px) {
  .directory-sections {display:none}
  .masthead .head-inner {min-height:48px}
  .site-head.masthead a.brand {width:132px}
  .masthead .head-inner {gap:8px}
  .masthead .brand-block {flex:1;gap:10px}
  .masthead .brand-region {white-space:normal;font-size:14px}
  .masthead .main-nav {top:100%}
  .masthead .head-tools {display:flex}
  .masthead .icon-btn {min-width:44px;min-height:44px;display:grid;place-items:center}
  .directory-hero>.shell {padding:14px 0;container-type:inline-size}
  .directory-hero.hero h1 {font-size:clamp(23px,5.8vw,36px)}
  .directory-hero.hero p {font-size:min(16px, 4.23cqi);margin:6px 0 12px}
  .directory-hero .phone-period {display:inline}
  .directory-hero.hero .search-form {grid-template-columns:repeat(2,minmax(0,1fr))}
  .directory-hero .search-form>.search-field,.directory-hero .search-form>.region-button {grid-column:1/-1}
}
@media (max-width:360px) {
  .directory-hero.hero .search-form {grid-template-columns:minmax(152px,1fr) minmax(0,1fr)}
  .directory-hero .search-form>.open24-filter {gap:3px;padding:0 2px}
  .directory-hero .open24-filter>svg {width:14px;height:14px;flex-basis:14px}
  .directory-hero .open24-switch {width:20px;flex-basis:20px;margin:0}
  .directory-hero .open24-filter:has(:checked) .open24-switch::before {transform:translateX(4px)}
}
