.kk-header__mobile-contact,
.kk-mobile-menu,
.kk-mobile-menu-backdrop {
  display: none;
}

@media (max-width: 767px) {
  body.kk-mobile-menu-open {
    overflow: hidden !important;
    touch-action: none;
  }

  .kk-nav-wrap {
    display: none !important;
  }

  .kk-header__grid.container,
  .container.kk-header__grid {
    grid-template-columns: 40px minmax(82px, 1fr) minmax(104px, auto) 40px !important;
    column-gap: 9px !important;
  }

  .kk-header__utility {
    display: none !important;
  }

  /* Keep the desktop contact block out of the compact mobile row. */
  .kk-header__contact {
    display: none !important;
  }

  .kk-logo {
    grid-column: 2 !important;
    min-width: 0;
  }

  .kk-logo .kk-wordmark {
    min-width: 0;
    gap: 0 !important;
  }

  .kk-logo .kk-wordmark__mark {
    display: none !important;
  }

  .kk-logo .kk-wordmark__copy {
    min-width: 0;
  }

  .kk-logo .kk-wordmark__copy strong {
    display: block;
    overflow: hidden;
    font-size: clamp(14px, 4.3vw, 18px) !important;
    letter-spacing: -.025em !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .kk-header__mobile-contact {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    min-width: 0;
    max-width: 104px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    line-height: 1.05;
  }

  .kk-header__mobile-contact a:first-child {
    color: #123d33;
    font-size: clamp(10px, 2.8vw, 12px);
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
  }

  .kk-header__mobile-contact .kk-callback-open {
    color: #b76732;
    font-size: clamp(9px, 2.45vw, 10.5px);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
  }

  .kk-header__cart {
    grid-column: 4 !important;
    position: relative !important;
    z-index: 3 !important;
    justify-self: end !important;
    width: 40px !important;
  }

  .kk-mobile-menu-backdrop {
    position: fixed;
    z-index: 11990;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgba(7, 20, 16, .58);
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }

  .kk-mobile-menu-backdrop.is-open {
    visibility: visible;
    opacity: 1;
  }

  .kk-mobile-menu {
    position: fixed;
    z-index: 12000;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    visibility: hidden;
    width: clamp(276px, 70vw, 390px);
    max-width: calc(100vw - 46px);
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    box-shadow: 20px 0 60px rgba(8, 31, 24, .22);
    transform: translate3d(-104%, 0, 0);
    transition: transform .36s cubic-bezier(.22, 1, .36, 1), visibility .36s ease;
  }

  .kk-mobile-menu.is-open {
    visibility: visible;
    transform: translate3d(0, 0, 0);
  }

  .kk-mobile-menu__head {
    display: flex;
    min-height: 90px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 18px;
    border-bottom: 1px solid rgba(17, 61, 51, .1);
  }

  .kk-mobile-menu__brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    color: #123d33;
  }

  .kk-mobile-menu__brand:hover,
  .kk-mobile-menu__brand:focus {
    color: #123d33;
    text-decoration: none;
  }

  .kk-mobile-menu__brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid rgba(18, 61, 51, .25);
    border-radius: 50%;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 23px;
  }

  .kk-mobile-menu__brand > span:last-child {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .kk-mobile-menu__brand strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1;
  }

  .kk-mobile-menu__brand small {
    color: #77817d;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .kk-mobile-menu__close {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f1e9;
  }

  .kk-mobile-menu__close span {
    position: absolute;
    top: 19px;
    left: 11px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #123d33;
  }

  .kk-mobile-menu__close span:first-child { transform: rotate(45deg); }
  .kk-mobile-menu__close span:last-child { transform: rotate(-45deg); }

  .kk-mobile-menu__search {
    position: relative;
    margin: 16px 20px 10px;
  }

  .kk-mobile-menu__search input[type='search'] {
    width: 100%;
    height: 48px;
    padding: 0 50px 0 16px;
    border: 1px solid #dce4df;
    border-radius: 13px;
    outline: 0;
    background: #fbfcfb;
    color: #123d33;
    font-size: 14px;
    box-shadow: none;
  }

  .kk-mobile-menu__search input[type='search']:focus {
    border-color: #376c5d;
    box-shadow: 0 0 0 3px rgba(20, 83, 67, .08);
  }

  .kk-mobile-menu__search button {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #123d33;
    font-size: 17px;
  }

  .kk-mobile-menu__nav {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px 20px 16px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 61, 51, .24) transparent;
  }

  .kk-mobile-menu__link {
    display: grid;
    width: 100%;
    min-height: 50px;
    grid-template-columns: 26px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(18, 61, 51, .09);
    background: transparent;
    color: #102f28;
    font-size: 14px;
    font-weight: 740;
    text-align: left;
  }

  .kk-mobile-menu__link:hover,
  .kk-mobile-menu__link:focus {
    color: #15824f;
    text-decoration: none;
  }

  .kk-mobile-menu__link > i:first-child {
    color: #bd6d37;
    font-size: 16px;
    text-align: center;
  }

  .kk-mobile-menu__chevron {
    color: #123d33;
    font-size: 15px;
    transition: transform .22s ease;
  }

  .kk-mobile-menu__catalog-toggle[aria-expanded='true'] .kk-mobile-menu__chevron {
    transform: rotate(180deg);
  }

  .kk-mobile-menu__submenu {
    margin: 0 0 7px 25px;
    padding: 7px 0 7px 11px;
    border-left: 1px solid rgba(189, 109, 55, .32);
  }

  .kk-mobile-menu__submenu[hidden] {
    display: none !important;
  }

  .kk-mobile-menu__submenu a {
    display: grid;
    min-height: 39px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 7px 4px 7px 10px;
    border-bottom: 1px solid rgba(18, 61, 51, .07);
    color: #334b44;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.25;
  }

  .kk-mobile-menu__submenu a:first-child,
  .kk-mobile-menu__submenu a:nth-child(2) {
    color: #123d33;
    font-weight: 800;
  }

  .kk-mobile-menu__submenu a:hover,
  .kk-mobile-menu__submenu a:focus {
    color: #15824f;
    text-decoration: none;
  }

  .kk-mobile-menu__submenu a i {
    color: #bd6d37;
    font-size: 11px;
  }

  .kk-mobile-menu__footer {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 1fr 1fr;
    padding: 13px 20px calc(15px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(18, 61, 51, .1);
    background: #f7f5ef;
  }

  .kk-mobile-menu__footer a {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    color: #123d33;
    font-size: 11.5px;
    font-weight: 750;
  }

  .kk-mobile-menu__footer a:hover,
  .kk-mobile-menu__footer a:focus {
    color: #15824f;
    text-decoration: none;
  }

  .kk-mobile-menu__footer i {
    width: 18px;
    color: #bd6d37;
    font-size: 14px;
    text-align: center;
  }
}

@media (max-width: 350px) {
  .kk-header__grid.container,
  .container.kk-header__grid {
    grid-template-columns: 40px minmax(72px, 1fr) 100px 40px !important;
    column-gap: 6px !important;
  }

  .kk-header__mobile-contact a:first-child { font-size: 9.5px; }
  .kk-header__mobile-contact .kk-callback-open { font-size: 8.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .kk-mobile-menu,
  .kk-mobile-menu-backdrop,
  .kk-mobile-menu__chevron {
    transition-duration: .01ms !important;
  }
}


/* ==========================================================================
   SMART SLIM STICKY HEADER (MOBILE)
   ========================================================================== */
.kk-header__mobile-slim-actions {
  display: none !important;
}

.kk-header-placeholder {
  display: none;
  width: 100%;
}

@media (max-width: 767px) {
  /* Default Mobile State at top: slim actions hidden */
  .kk-header__mobile-slim-actions {
    display: none !important;
  }

  /* Slim Sticky Active State */
  .kk-header.is-slim-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 12px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
    backdrop-filter: blur(14px) saturate(160%) !important;
    border-bottom: 1px solid rgba(18, 61, 51, 0.08) !important;
    box-shadow: 0 4px 20px rgba(18, 61, 51, 0.07) !important;
    transform: translate3d(0, 0, 0);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Headroom: auto-hide on scroll down */
  .kk-header.is-slim-sticky.is-slim-hidden {
    transform: translate3d(0, -100%, 0) !important;
    box-shadow: none !important;
    pointer-events: none;
  }

  /* Headroom: slide down on scroll up */
  .kk-header.is-slim-sticky.is-slim-visible {
    transform: translate3d(0, 0, 0) !important;
    pointer-events: auto;
  }

  /* Single 52px flex row */
  .kk-header.is-slim-sticky .kk-header__grid.container,
  .kk-header.is-slim-sticky .container.kk-header__grid {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px !important;
  }

  /* Hide search input, textual contact, and desktop items in slim mode */
  .kk-header.is-slim-sticky .kk-search,
  .kk-header.is-slim-sticky .kk-header__mobile-contact,
  .kk-header.is-slim-sticky .kk-header__contact,
  .kk-header.is-slim-sticky .kk-header__utility {
    display: none !important;
  }

  /* Show slim action buttons (Search, Phone) */
  .kk-header.is-slim-sticky .kk-header__mobile-slim-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: auto !important;
    margin-right: 4px !important;
  }

  .kk-slim-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(18, 61, 51, 0.12) !important;
    background: #f7faf7 !important;
    color: #123d33 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .kk-slim-btn:active {
    transform: scale(0.92) !important;
    background: #eef3ef !important;
  }

  .kk-slim-btn--phone {
    color: #0fa938 !important;
    background: rgba(15, 169, 56, 0.08) !important;
    border-color: rgba(15, 169, 56, 0.22) !important;
  }

  .kk-slim-btn--phone:active {
    background: rgba(15, 169, 56, 0.16) !important;
  }

  /* Burger in slim mode */
  .kk-header.is-slim-sticky .kk-header__burger {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }

  /* Logo in slim mode */
  .kk-header.is-slim-sticky .kk-logo {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin: 0 0 0 4px !important;
  }

  .kk-header.is-slim-sticky .kk-logo .kk-wordmark {
    display: flex !important;
    align-items: center !important;
  }

  .kk-header.is-slim-sticky .kk-logo .kk-wordmark__copy strong {
    font-size: 16px !important;
    letter-spacing: 0.03em !important;
    color: #10382d !important;
  }

  .kk-header.is-slim-sticky .kk-logo .kk-wordmark__copy small {
    display: none !important;
  }

  /* Cart in slim mode */
  .kk-header.is-slim-sticky .kk-header__cart {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    margin: 0 !important;
    justify-self: auto !important;
  }

  .kk-header.is-slim-sticky .kk-header__cart #cart > .btn {
    width: 38px !important;
    height: 38px !important;
  }
}

.kk-slim-btn--chat {
  color: #153d32 !important;
  background: rgba(21, 61, 50, 0.08) !important;
  border-color: rgba(21, 61, 50, 0.22) !important;
}
.kk-slim-btn--chat:active {
  background: rgba(21, 61, 50, 0.16) !important;
}
