.home-header--mobile,
.home-footer {
  width: min(100%, 100vw);
  min-width: 0;
  margin-inline: 0;
}

.home-header--mobile {
  --mobile-header-padding: clamp(12px, 2.5vw, 28px);
  inset-inline-start: 0;
}

.home-header--mobile .home-header__main,
.home-header--mobile .home-header__secondary {
  grid-template-columns: minmax(0, 1fr) max-content;
  padding-inline: var(--mobile-header-padding);
  column-gap: 12px;
}

.home-header--mobile .home-header__logo {
  width: clamp(116px, 35vw, 235px);
}

.home-header--mobile .home-header__contacts {
  display: flex;
  gap: clamp(6px, 1.8vw, 18px);
}

.home-header--mobile .home-header__contact {
  gap: 1px;
  font-size: clamp(11px, 3.2vw, 15px);
}

.home-header--mobile .home-header__contact span {
  font-size: clamp(9px, 2.6vw, 11px);
}

.home-header--mobile .home-search {
  grid-column: 1;
}

.home-header--mobile .home-search__input {
  height: 44px;
  font-size: 16px;
}

.home-header__menu-toggle {
  display: flex;
  width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--home-card-surface);
  color: var(--home-graphite);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-header__menu-toggle::-webkit-details-marker {
  display: none;
}

.home-header__menu-toggle:focus-visible {
  outline: 2px solid var(--home-graphite);
  outline-offset: 3px;
}

.home-header__mobile-menu[open] .home-header__menu-toggle {
  background: var(--home-graphite);
  color: #fff;
}

.home-header__menu-icon {
  display: grid;
  width: 18px;
  gap: 3px;
}

.home-header__menu-icon span {
  height: 2px;
  background: currentColor;
}

.home-header__mobile-panel {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  z-index: 2;
  width: min(100%, 420px);
  max-height: calc(100dvh - var(--home-header-height));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px var(--mobile-header-padding);
  border-block-start: 1px solid #dedede;
  background: #fff;
  box-shadow: 0 10px 22px rgb(0 0 0 / 12%);
}

.home-header__mobile-panel > :not(:first-child) {
  padding-block-start: 8px;
  margin-block-start: 8px;
  border-block-start: 1px solid #ebebeb;
}

.home-header__mobile-panel .home-header__menu,
.home-header__mobile-panel .home-header__catalog-actions,
.home-header__mobile-panel .collection-actions:not([hidden]) {
  display: grid;
  justify-self: stretch;
  width: 100%;
  gap: 0;
}

.home-header--mobile .home-header__mobile-panel .home-header__catalog > .home-header__catalog-sections {
  display: none;
}

.home-header__mobile-panel :is(.home-header__catalog-link, .home-header__menu > a, .home-header__action) {
  min-height: 44px;
}

.collection-dialog {
  position: fixed;
  inset: 50dvh auto auto 50vw;
  max-height: 80dvh;
  padding: clamp(14px, 3.5vw, 22px);
  margin: 0;
  transform: translate(-50%, -50%);
}

.collection-dialog__close {
  min-width: 44px;
  min-height: 44px;
}

.collection-row {
  flex-wrap: wrap;
  gap: 10px;
}

.collection-row__product {
  flex: 1 1 220px;
}

.collection-row__actions {
  flex-wrap: wrap;
  margin-inline-start: auto;
}

.collection-row__actions :is(button, input) {
  min-height: 44px;
}

.home-footer {
  min-block-size: 0;
}

.home-footer .site-footer__inner {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(16px, 2.5vw, 28px) clamp(12px, 2.5vw, 28px);
}

.home-footer .home-footer__name {
  margin-block-end: 8px;
}

.site-footer__details {
  display: grid;
  width: min(100%, 360px);
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: 2px clamp(12px, 3vw, 24px);
}

.home-footer .home-footer__address {
  max-inline-size: 68ch;
  overflow-wrap: anywhere;
}

.home-footer .site-footer__right {
  align-items: stretch;
  gap: 4px;
}

.home-footer .site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 4px;
}

.home-footer .site-footer__social {
  align-self: auto;
  gap: 4px;
  margin-block-start: 0;
}

.home-footer .site-footer__social-link {
  width: 44px;
  height: 44px;
  place-items: center;
}

.home-footer .site-footer__social-icon {
  width: 36px;
  height: 36px;
}

.home-footer .site-footer__privacy {
  min-block-size: 44px;
  text-align: center;
  white-space: nowrap;
}
