/**
 * Шапка и layout sluck24.by — логотип, меню 1500px, без белых полей по бокам.
 */

/* Сброс глобального padding из style.css (.entry-content > * { padding: 0 20px }) */
body.site-sluck .site-content-fullwidth {
  padding: 0;
  overflow-x: clip;
}

body.site-sluck .site-content-fullwidth .entry-content {
  max-width: none;
  padding: 0;
  margin: 0;
}

body.site-sluck .site-content-fullwidth .entry-content > * {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

body.site-sluck .slc-home-hero,
body.site-sluck .slc-sitemap-hero,
body.site-sluck .slc-contacts-hero,
body.site-sluck .slc-coop-hero,
body.site-sluck .slc-about-hero,
body.site-sluck .slc-privacy-hero,
body.site-sluck .slc-oferta-hero,
body.site-sluck .slc-svc-hero,
body.site-sluck .slc-footer,
body.site-sluck .b24-hero-section,
body.site-sluck .seo-hero-block-dynamic {
  width: 100%;
  max-width: 100%;
}

body.site-sluck.slc-service-page .slc-svc-hero {
  padding-top: 104px;
}

@media (max-width: 768px) {
  body.site-sluck.slc-service-page .slc-svc-hero {
    padding-top: 96px;
  }
}

/* Воздух под фиксированной шапкой — первый блок на страницах услуг */
body.site-sluck .b24-hero-section {
  padding-top: 90px;
}

body.site-sluck .b24-crumbs {
  padding-top: 96px;
}

@media (max-width: 768px) {
  body.site-sluck .slc-contacts-hero,
  body.site-sluck .slc-coop-hero,
  body.site-sluck .slc-about-hero,
  body.site-sluck .slc-privacy-hero,
  body.site-sluck .slc-oferta-hero {
    padding-top: 96px;
  }

  body.site-sluck .b24-hero-section {
    padding-top: 80px;
  }

  body.site-sluck .b24-crumbs {
    padding-top: 88px;
  }
}

body.site-sluck .site-header .header-inner {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

body.site-sluck .slc-logo {
  height: 40px;
  width: auto;
  max-width: 220px;
  display: block;
}

body.site-sluck .site-branding .logo-link {
  line-height: 0;
}

@media (min-width: 901px) {
  body.site-sluck .site-header .header-inner {
    gap: 20px;
  }

  body.site-sluck .header-center {
    max-width: 780px;
  }
}

@media (max-width: 900px) {
  body.site-sluck .slc-logo {
    height: 32px;
    max-width: 170px;
  }

  body.site-sluck button.slc-nav-row.slc-mobile-search-toggle {
    width: 100%;
    border: none;
    background: #fff;
    font: inherit;
    cursor: pointer;
    text-align: left;
  }

  body.site-sluck .slc-mobile-search-toggle .slc-icon--chevron {
    transition: transform 0.2s ease, color 0.2s ease;
  }

  body.site-sluck .slc-mobile-search-toggle.is-open .slc-icon--chevron {
    transform: rotate(90deg);
    color: #16a34a;
  }

  body.site-sluck .slc-mobile-search-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 14px;
    background: #f8fafc;
    border-bottom: 1px solid #eef1f5;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }

  body.site-sluck .slc-mobile-search-panel.is-open {
    max-height: 420px;
    opacity: 1;
    padding: 12px 14px 14px;
  }

  body.site-sluck .header-search--sluck-drawer {
    display: block;
    width: 100%;
  }

  body.site-sluck .header-search--sluck-drawer .header-search-field {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 12px;
  }

  body.site-sluck .header-search--sluck-drawer .header-search-input {
    padding: 12px 36px 12px 8px;
    font-size: 16px;
  }

  body.site-sluck .header-search--sluck-drawer .header-search-dropdown--mobile {
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }

  body.site-sluck .header-search--sluck-drawer .header-search-item {
    padding: 12px 14px;
    font-size: 15px;
  }

  body.site-sluck .header-search--sluck-drawer .header-search-all {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    border-top: 1px solid #f1f5f9;
  }
}
