/* Storefront footer: structured, compact and visually aligned with the fixed header. */
.store-footer {
  margin-block-start: 32px;
  padding-block-end: 18px;
  border-block-start: 0;
  background: transparent;
}

.store-footer__panel {
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 18px;
  background: #0f1216;
}

.store-footer__grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.04fr) minmax(130px, .5fr) minmax(210px, .76fr) minmax(310px, 1.12fr) minmax(250px, .88fr);
  gap: 38px;
  padding: 40px 42px 36px;
}

.store-footer__brand {
  min-width: 0;
}

.store-brand--footer {
  margin-block-end: 18px;
}

.store-brand--footer .store-brand__mark {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.store-footer__brand p {
  overflow-wrap: anywhere;
  max-width: 340px;
  margin: 0;
  color: var(--site-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.store-footer__column {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.store-footer__column h2 {
  margin: 0 0 9px;
  color: var(--site-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.store-footer__column > a:not(.store-footer__contact-link) {
  color: var(--site-text-muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 120ms var(--site-ease);
}

/* Colour only - no positional nudge. Sliding the link 2px sideways moved
   the text out from under the cursor on every hover, and on the longest
   item in a column it read as the whole row wobbling rather than as
   feedback. A footer link is a high-frequency, low-stakes target: instant
   colour feedback is the whole job (better-ui, "motion restraint"). */
.store-footer__column > a:not(.store-footer__contact-link):hover,
.store-footer__column > a:not(.store-footer__contact-link):focus-visible {
  color: var(--site-accent);
}

.store-footer__location,
.store-footer__contact {
  gap: 14px;
}

.store-footer__contact {
  margin-inline-start: 6px;
}

.store-footer__contact-card {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  background: #12161b;
}

.store-footer__contact-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms var(--site-ease), background-color 120ms var(--site-ease);
}

.store-footer__contact-link[hidden] {
  display: none !important;
}

.store-footer__contact-link:hover,
.store-footer__contact-link:focus-visible {
  border-color: var(--site-border-strong);
  background: var(--site-surface);
}

.store-footer__contact-link:hover strong,
.store-footer__contact-link:focus-visible strong {
  color: var(--site-accent);
}

.store-footer__contact-row {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 14px 0;
}

.store-footer__contact-row > span {
  color: var(--site-text-subtle);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.store-footer__contact-row strong {
  color: var(--site-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  transition: color 120ms var(--site-ease);
}

.store-footer__contact-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-footer__messengers {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr));
  gap: 8px;
}

.store-footer__messengers[hidden] {
  display: none !important;
}

.store-footer__messengers .store-footer__messenger {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--messenger-color);
  border-radius: 9px;
  background: var(--messenger-color);
  color: var(--messenger-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 120ms var(--site-ease), background-color 120ms var(--site-ease), color 120ms var(--site-ease);
}

.store-footer__messenger:hover,
.store-footer__messenger:focus-visible {
  border-color: var(--messenger-hover);
  background: var(--messenger-hover);
  color: var(--messenger-text);
}

.store-footer__messenger span {
  color: inherit;
  white-space: nowrap;
}

.store-footer__messenger:active {
  background: var(--messenger-active);
  border-color: var(--messenger-color);
}

.store-footer__messenger--telegram {
  --messenger-color: #168ac0;
  --messenger-hover: #137cad;
  --messenger-active: #106e9b;
  --messenger-text: #fff;
}

.store-footer__messenger--viber {
  --messenger-color: #7360f2;
  --messenger-hover: #6854e4;
  --messenger-active: #5d48d5;
  --messenger-text: #fff;
}

.store-footer__messenger--whatsapp {
  --messenger-color: #159447;
  --messenger-hover: #12853f;
  --messenger-active: #107638;
  --messenger-text: #fff;
}

.store-footer__messenger svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: inherit;
  fill: currentColor;
  stroke: none;
}

/* Three configured messengers share one row; names remain accessible via aria-label. */
.store-footer__messengers:has(> .store-footer__messenger:nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-footer__messengers:has(> .store-footer__messenger:nth-child(3)) .store-footer__messenger span {
  display: none;
}

.store-footer__messengers:has(> .store-footer__messenger:nth-child(3)) .store-footer__messenger svg {
  width: 22px;
  height: 22px;
}

.store-footer__schedule-card .store-footer__contact-row {
  padding-block: 15px 16px;
}

/* One grid for all days (rows are display: contents), so the hours column
   has a single width and every value - hours or "Выходной" - starts on the
   same left edge instead of each row right-aligning its own text. */
.store-footer__schedule {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) auto;
  align-items: baseline;
  gap: 7px 16px;
  margin-block-start: 2px;
}

.store-footer__schedule > span {
  display: contents;
}

.store-footer__schedule > span > b {
  color: var(--site-text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.store-footer__schedule > span > em {
  color: var(--site-text);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  white-space: nowrap;
}

.store-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 42px 19px;
  border-block-start: 1px solid var(--site-border);
  color: var(--site-text-subtle);
  font-size: 11px;
}

@media (max-width: 1280px) {
  .store-footer__grid {
    grid-template-columns: 1.1fr .7fr 1fr;
    gap: 34px 30px;
  }

  .store-footer__location {
    grid-column: 1 / 3;
  }

  .store-footer__contact {
    grid-column: 3 / -1;
    margin-inline-start: 0;
  }
}

@media (max-width: 760px) {
  .store-footer {
    margin-block-start: 24px;
  }

  .store-footer__grid {
    grid-template-columns: 1fr 1fr;
    padding: 34px 24px 30px;
  }

  .store-footer__brand,
  .store-footer__location,
  .store-footer__contact {
    grid-column: 1 / -1;
  }

  .store-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 24px;
  }
}

@media (max-width: 520px) {
  .store-footer__panel {
    border-radius: 14px;
  }

  .store-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px 26px;
  }

  .store-footer__brand,
  .store-footer__location,
  .store-footer__contact {
    grid-column: auto;
  }

  .store-footer__schedule {
    grid-template-columns: 1fr auto;
    column-gap: 10px;
  }

  .store-footer__bottom {
    padding: 16px 20px 18px;
  }
}

