/* CL-PC1-L1-ANTS-STAND-4351 (замечания владельца 09.10 13:10 по R62.6.19).
   Подключён последним: компактная панель меню, раскрывающиеся блоки подвала,
   ровный низ подвала, меньшие кнопки размеров. Цвета/шрифты сайта не меняются. */

/* ── 1. Меню на телефоне: компактная карточка вместо шторки на всю высоту ── */
@media (max-width: 1100px) {
  html body .header__nav.mobile-open {
    top: calc(var(--drawer-top, 72px) + 8px) !important; left: 10px !important; right: auto !important; bottom: auto !important;
    width: min(300px, calc(100vw - 60px)) !important; max-width: 300px !important;
    height: auto !important; max-height: calc(100vh - var(--drawer-top, 72px) - 24px) !important;
    padding: 4px 20px 6px !important;
    background: #fff; border: 1px solid var(--border, #E8E0D8) !important; border-radius: 18px !important;
    box-shadow: 0 18px 48px rgba(26, 23, 20, .16), 0 2px 10px rgba(26, 23, 20, .08) !important;
    overflow-y: auto; animation: ants4351MenuIn .22s cubic-bezier(.4, 0, .2, 1) !important;
  }
  @keyframes ants4351MenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  html body .header__nav.mobile-open .mob-nav-row {
    flex-direction: row !important; justify-content: flex-start !important; align-items: center;
    min-height: 52px; padding: 0 !important; font-size: 16px; text-align: left;
  }
  html body .header__nav.mobile-open .mob-nav-row:last-child { border-bottom: 0; }
  html body .header__nav.mobile-open .mob-nav-row svg {
    position: static !important; margin: 0 0 0 auto !important; width: 7px; height: 12px; opacity: .55;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .header__nav.mobile-open { animation: none !important; }
}

/* ── 2. Подвал: статичные блоки (ПК и телефон) ── */
html body .footer .footer__top { align-items: start; }
html body .footer .footer__col .footer__col-body { display: flex !important; flex-direction: column; padding: 0 0 8px !important; margin: 0 !important; }
html body .footer .footer__col.open .footer__col-body { display: flex !important; flex-direction: column; }
html body .footer .footer__col-title { margin: 0 !important; }
html body .footer .footer__link { display: flex !important; align-items: center; min-height: 36px !important; padding: 0 !important; margin: 0 !important; font-size: 14px !important; line-height: 1.3 !important; }
html body .footer .footer__hours { font-size: 14px !important; line-height: 1.5 !important; margin: 0 !important; padding: 4px 0; }

/* ── 4. Низ подвала: ПК — одна строка, © слева, ссылки справа ── */
html body .footer .footer__bottom {
  display: flex !important; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 32px; padding: 18px 0 0 !important; text-align: left;
}
html body .footer .footer__copy { font-size: 12px; line-height: 1.5; white-space: nowrap; opacity: .8; }
html body .footer .footer__bottom-links {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: flex-end;
  gap: 4px 24px !important; margin-left: auto;
}
html body .footer .footer__bottom-links a {
  display: inline !important; min-height: 0; padding: 2px 0 !important; font-size: 12px !important; line-height: 1.5; white-space: nowrap;
}
/* колонки не зависят от длины ссылок -> раскрытие соседнего блока не двигает остальные */
@media (min-width: 769px) {
  html body .footer .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  html body .footer .footer__top { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); }
}
/* пока нет места в одну строку — ссылки переносятся, а справа остаётся зазор под кнопку «наверх» */
@media (min-width: 769px) and (max-width: 1419px) {
  html body .footer .footer__bottom { padding-right: 64px !important; }
}
@media (min-width: 1420px) {
  html body .footer .footer__top, html body .footer .footer__bottom { max-width: 1280px !important; }
  html body .footer .footer__bottom-links { flex-wrap: nowrap; gap: 4px 22px !important; }
}

/* ── Телефон ≤768: один столбец, всё раскрыто, ссылки столбиком ── */
@media (max-width: 768px) {
  html body .footer { padding: 24px 16px calc(80px + env(safe-area-inset-bottom)) !important; }
  html body .footer .footer__top { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; padding: 0 !important; }
  html body .footer .footer__brand { padding: 0 0 18px !important; margin: 0 !important; border-bottom: 1px solid rgba(243, 233, 227, .14) !important; }
  html body .footer .footer__col { border: 0 !important; border-bottom: 1px solid rgba(243, 233, 227, .14) !important; padding: 0 !important; }
    html body .footer .footer__col-title { font-size: 12px !important; }
  html body .footer .footer__link { min-height: 44px !important; font-size: 15px !important; }
  html body .footer .footer__hours { font-size: 15px !important; }
  html body .footer .footer__bottom { flex-direction: column; align-items: stretch; text-align: center; gap: 6px; padding: 18px 0 0 !important; }
  html body .footer .footer__copy { text-align: center; white-space: normal; font-size: 12px; }
  html body .footer .footer__bottom-links {
    display: flex !important; flex-direction: column !important; align-items: center; justify-content: flex-start;
    gap: 0 !important; margin: 0;
  }
  html body .footer .footer__bottom-links a {
    display: flex !important; align-items: center; justify-content: center; min-height: 40px; padding: 0 !important;
    font-size: 12px !important; line-height: 1.4; white-space: normal; text-align: center;
  }
}

/* ── 5. Кнопки размеров S/M/L/XL: компактнее цены ── */
html body .product-card__sizes { gap: 8px; margin-bottom: 8px; justify-content: center; flex-wrap: nowrap; }
html body .product-card__sizes .product-card__size {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  height: 28px !important; min-height: 28px !important; min-width: 34px !important; width: auto !important; margin: 0;
  padding: 0 8px !important; font-size: 12px !important; line-height: 1; border-width: 1px; border-radius: 10px !important;
}
@media (max-width: 767px) {
  html body .product-card__sizes { gap: 0; margin-left: 0; margin-right: 0; }
  /* видимо 30 px, нажимаемая область 40 px за счёт прозрачной рамки */
  html body .product-card__sizes .product-card__size {
    width: 40px !important; min-width: 40px !important; height: 40px !important; min-height: 40px !important;
    padding: 0 !important; font-size: 11px !important;
    border: 5px solid transparent !important; background-clip: padding-box !important; border-radius: 12px !important;
    box-shadow: inset 0 0 0 1px var(--sf-pink-line, #E1B9BF);
  }
  html body .product-card__sizes .product-card__size[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--sf-pink, #CF818A); }
}
