:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-soft: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #0f172a;
  --accent: #facc15;
  --accent-strong: #eab308;
  --accent-contrast: #0f172a;
  --border: rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

/* Переопределение стандартных цветов Swiper */
.swiper-button-next,
.swiper-button-prev {
  color: white !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  color: white !important;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5) !important;
}

.swiper-pagination-bullet-active {
  background: white !important;
}
  
  /* Новые переменные */
  --favorite-color: #ef4444;
  --favorite-hover: #dc2626;
  --breadcrumb-bg: #f8fafc;
  --breadcrumb-text: #64748b;
  --breadcrumb-current: #1e293b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.14);
}

textarea {
  resize: vertical;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

main.container {
  display: block;
  padding: 32px 0 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus {
  background: #0b1223;
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.35);
  color: var(--primary);
}

.btn--outline:hover,
.btn--outline:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid transparent;
  color: var(--primary);
}

.btn--ghost:hover,
.btn--ghost:focus {
  background: rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.16);
  color: var(--primary);
}

/* Header */
.header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  will-change: transform;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__topline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.header__panel {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 220px;
  overflow: hidden;
}

/* Убрано автоматическое скрытие header */

/* .header--hidden .header__contacts - убираем скрытие контактов */

/* .header--hidden .header-search - убираем скрытие поиска */
/* .header--hidden .header__icons - убираем скрытие иконок (корзина) */

/* Убрано автоматическое скрытие панели навигации */

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.header__burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.logo a {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.6);
}

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 6px 6px 4px;
  min-width: 0;
  color: #fff;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.header-search button {
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-contrast);
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.header-phone {
  font-weight: 600;
  color: #fff;
}

.header-whatsapp {
  color: #34d399;
  font-weight: 600;
}

.header__icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__whatsapp-compact {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 600;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.header__whatsapp-compact:hover,
.header__whatsapp-compact:focus {
  background: #22c35e;
  color: #fff;
}

/* .header--hidden .header__whatsapp-compact - убираем, так как WhatsApp должен оставаться видимым */

.header__cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  font-weight: 600;
  background: rgba(250, 204, 21, 0.15);
  color: #fff;
}

.header__cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 13px;
  font-weight: 600;
  padding: 0 8px;
}

.header__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a {
  padding: 4px 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #fff;
  border-bottom-color: var(--accent);
}

.header__panel-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__panel-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  transition: all 0.2s ease;
}

.header__panel-link:hover,
.header__panel-link:focus {
  background: rgba(250, 204, 21, 0.2);
  color: var(--accent);
}

/* Hero */
.hero {
  margin-top: 32px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__content h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
}

.hero__lead {
  margin: 12px 0 24px;
  color: var(--muted);
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 24px);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-form h2 {
  margin: 0;
  font-size: 1.1rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-row input {
  flex: 1 1 200px;
}

/* Исправление для мобильных устройств */
@media (max-width: 768px) {
  .form-row input {
    flex: none !important;
    width: 100% !important;
  }
}

.contact-form button {
  justify-self: flex-start;
}

/* Filters */
.filters {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.filters-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
}

.filters__form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  align-items: end;
}

.filters__form input,
.filters__form select {
  width: 100%;
}

.filters__form button {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
}

/* Catalog */
.catalog {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  text-decoration: none;
  min-height: 220px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.card__photo img {
  width: min(100%, 340px);
  max-height: clamp(180px, 24vw, 260px);
  object-fit: contain;
  transition: transform 0.25s ease;
}

.card__photo:hover img {
  transform: scale(1.04);
}

.card__no-photo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.card__info {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.card__meta .sku,
.card__meta .cat {
  background: var(--surface-muted);
  padding: 4px 10px;
  border-radius: 999px;
}

.card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card__bottom {
  display: grid;
  gap: 12px;
}

.card__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* .stock-count - убрано, используем только статус "в наличии" */

.stock {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}

.stock--yes {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  color: #15803d;
}

.card__cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
}

.card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.card__actions button {
  flex: 1 1 120px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.buy-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.buy-btn:hover,
.buy-btn:focus {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--accent-contrast);
}

.req-btn {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: transparent;
}

.req-btn:hover,
.req-btn:focus {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 500;
}

.page.active {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.page.arrow.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.empty {
  padding: 48px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.product-detail__media,
.product-detail__info {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.product-gallery {
  display: grid;
  gap: 16px;
}

.product-gallery__stage {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-muted);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 420px;
}

.product-gallery__hint {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-thumb {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  background: #fff;
  cursor: pointer;
}

.product-thumb img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.product-thumb.is-active {
  border-color: var(--accent);
}

.img__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 48px;
  color: var(--muted);
  background: var(--surface);
}

.img__placeholder.big {
  min-height: 320px;
}

.product-detail__title {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
}

.product-specs {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.product-specs__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.product-detail__status-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.product__price {
  font-size: 1.6rem;
  font-weight: 700;
}

.product-detail__desc {
  margin: 0 0 24px;
  color: var(--muted);
}

.product-detail__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 32px;
  line-height: 1;
  background: transparent;
  border: none;
  color: #fff;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 16px;
}

.modal-content {
  position: relative;
  background: #fff;
  width: min(420px, 92vw);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.modal-content__close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  border: none;
  background: transparent;
  color: var(--muted);
  line-height: 1;
  cursor: pointer;
}

.modal.is-visible {
  display: flex;
}

/* Secondary pages */
.about,
.contacts-page {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
  box-shadow: var(--shadow);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.feature {
  background: var(--surface-muted);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

/* Cart */
.cart {
  margin-top: 32px;
  display: grid;
  gap: 20px;
}

.cart-table {
  display: grid;
  gap: 10px;
}

.cart-head,
.cart-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr 70px;
  gap: 10px;
  align-items: center;
}

.cart-head {
  font-weight: 600;
  color: var(--muted);
}

.cart-row {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.c-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.c-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  background: var(--surface-muted);
}

.c-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.c-qty button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  transition: background 0.2s ease;
}

.c-qty .qty-input {
  width: 60px;
  text-align: center;
}

.c-qty button:hover,
.c-qty button:focus {
  background: #0b1223;
}

.cart-row .remove {
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
}

.cart-row .remove:hover,
.cart-row .remove:focus {
  color: var(--accent-strong);
}

.cart-total {
  font-size: 1.1rem;
  font-weight: 700;
}

.checkout {
  display: grid;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.checkout h2 {
  margin: 0;
}

/* Flash */
.flash {
  margin-bottom: 24px;
  display: grid;
  gap: 10px;
}

.flash__item {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #166534;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  text-align: center;
}

/* Floating WA */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

/* Responsive */
@media (max-width: 1100px) {
  .filters__form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header__burger {
    display: inline-flex;
  }

  .header__topline {
    align-items: flex-start;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .header__contacts {
    order: 4;
    display: none;
    width: 100%;
  }

  .header__icons {
    order: 2;
    margin-left: 0;
  }

  .header__whatsapp-compact {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 14px;
  }

  .header.menu-open .header__whatsapp-compact {
    display: none;
  }

  .header__panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .main-nav {
    flex-direction: column;
    gap: 10px;
  }

  .main-nav a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header__panel-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .header.menu-open .header__panel,
  .header.menu-open .header__contacts {
    display: flex;
  }

  .header.menu-open {
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.45);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .filters__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .filters-toggle {
    display: none; /* Скрываем кнопку, так как фильтры развернуты по умолчанию */
  }

  .filters__form {
    display: grid; /* Развернуты по умолчанию на мобильных */
    grid-template-columns: 1fr;
    box-shadow: none;
    border: 1px solid var(--border);
  }

  .filters__form.open {
    display: grid;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .cart-head {
    display: none;
  }

  .cart-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .c-item {
    justify-content: space-between;
  }

  .hero__inner,
  .contact-form,
  .checkout,
  .product-detail__media,
  .product-detail__info,
  .about,
  .contacts-page {
    padding: 20px;
  }

  .floating-wa {
    bottom: 16px;
    right: 16px;
  }
}

@media (max-width: 520px) {
  .form-row {
    flex-direction: column;
  }

  .contact-form {
    gap: 12px;
    padding: 16px;
  }

  .contact-form h2 {
    font-size: 1rem;
  }

  .contact-form button {
    width: 100%;
    justify-self: stretch;
  }

}

/* ===== НОВЫЕ СТИЛИ ===== */

/* Breadcrumbs */
.breadcrumbs {
  background: var(--breadcrumb-bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--breadcrumb-text);
  font-weight: 500;
}

.breadcrumbs__link {
  color: var(--breadcrumb-text);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs__link:hover {
  color: var(--accent);
}

.breadcrumbs__current {
  color: var(--breadcrumb-current);
  font-weight: 500;
}


/* Автодополнение */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.autocomplete-item:hover {
  background: var(--surface-muted);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item mark {
  background: #fef3c7;
  padding: 1px 2px;
  border-radius: 2px;
  font-weight: 600;
}


/* Адаптивность */
@media (max-width: 768px) {
  .breadcrumbs {
    padding: 8px 0;
  }
  
  .breadcrumbs__list {
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .breadcrumbs__item {
    font-size: 13px;
  }
  
  
  .autocomplete-dropdown {
    max-height: 250px;
  }
  
  .autocomplete-item {
    padding: 10px 12px;
  }
}

/* ===== ФУТЕР ===== */
.footer {
  background: var(--primary);
  color: white;
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer__content {
  margin-bottom: 20px;
}

.footer__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__brand h3 {
  color: white;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer__contacts p {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.footer__contacts a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__contacts a:hover {
  color: var(--accent);
}

.footer__nav {
  display: flex;
  gap: 20px;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__legal-compact {
  text-align: center;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.footer__legal-compact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer__legal-compact strong {
  color: white;
}

.footer__section h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer__section h4 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer__section p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.footer__contacts p {
  margin-bottom: 8px;
}

.footer__contacts a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__contacts a:hover {
  color: var(--accent-strong);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__warehouses p,
.footer__brands p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer__legal p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer__legal strong {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
}

.footer__copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Адаптивность футера */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
    margin-top: 60px;
  }
  
  .footer__main {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer__nav {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer__section h3 {
    font-size: 1.3rem;
  }
  
  .footer__section h4 {
    font-size: 1.1rem;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .footer__links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 0 20px;
    margin-top: 40px;
  }
  
  .footer__content {
    gap: 25px;
    margin-bottom: 25px;
  }
  
  .footer__section h3 {
    font-size: 1.2rem;
  }
  
  .footer__section h4 {
    font-size: 1rem;
  }
}

/* Стили для чекбокса согласия на обработку персональных данных */
.privacy-notice {
  margin: 16px 0;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: #475569;
}

.privacy-checkbox input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.privacy-checkbox span {
  flex: 1;
}

.privacy-checkbox a {
  color: #3b82f6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.privacy-checkbox a:hover {
  border-bottom-color: #3b82f6;
}

/* Стили для модального окна */
.modal .privacy-notice {
  margin: 12px 0;
  padding: 10px;
  background: #f1f5f9;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.modal .privacy-checkbox {
  font-size: 13px;
}

/* Фильтры - общие стили */
.filters__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
  box-sizing: border-box;
}

.filters__form input,
.filters__form select {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.filters__form input:focus,
.filters__form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filters__form input::placeholder {
  color: var(--muted);
}

.filters__form button {
  padding: 12px 24px;
  background: #eab308;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.filters__form button:hover {
  background: #ca8a04;
  transform: translateY(-1px);
}

/* Авторезультаты поиска */
.autocomplete-dropdown {
  position: fixed;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  min-width: 300px;
  max-width: 90vw;
}

.autocomplete-dropdown.show {
  display: block;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.autocomplete-item:hover {
  background: #f9fafb;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item div:first-child {
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 4px;
}

.autocomplete-item div:nth-child(2) {
  font-size: 14px;
  color: #6b7280;
}

.autocomplete-item div:last-child {
  font-size: 14px;
  color: #059669;
  font-weight: 500;
  margin-top: 4px;
}

.autocomplete-item mark {
  background: #fef3c7;
  padding: 1px 2px;
  border-radius: 2px;
}

/* Общие стили для поиска */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.header-search button {
  margin-left: 8px;
  padding: 12px 20px;
  background: #eab308;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.header-search button:hover {
  background: #ca8a04;
}

/* Контейнер для поиска с dropdown */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  z-index: 1000;
}

.search-container .autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  z-index: 10001;
}

/* Blog Styles */
/* Общие ограничения */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Общие ограничения для блога */
.blog-hero,
.blog-page,
.featured-posts,
.recent-posts {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 100px 20px;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.blog-hero__content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.blog-hero__text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.blog-hero__subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.6;
}

.blog-hero__stats {
  display: flex;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.stat__label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero__icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-hero__icon svg {
  color: white;
}

/* Main Content */
.blog-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
  width: 100%;
  box-sizing: border-box;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text);
  margin: 0 0 16px 0;
  font-weight: 700;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Featured Posts */
.featured-posts {
  margin-bottom: 100px;
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
  width: 100%;
  box-sizing: border-box;
}

.featured-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.08);
  border: 2px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #eab308, #f59e0b);
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
}

.featured-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #eab308, #f59e0b);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-card__content {
  padding: 40px;
}

/* Recent Posts */
.recent-posts {
  margin-bottom: 60px;
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px 0;
  width: 100%;
  box-sizing: border-box;
}

.post-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.06);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 20px;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.post-card__content {
  padding: 30px;
}

/* Post Meta */
.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-date,
.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.post-author {
  color: var(--accent);
  font-weight: 600;
}

.post-date svg,
.post-author svg {
  flex-shrink: 0;
}

/* Post Content */
.post-card h3,
.featured-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 600;
}

.post-card h3 a,
.featured-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card h3 a:hover,
.featured-card h3 a:hover {
  color: var(--accent);
}

.post-excerpt {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  font-size: 1rem;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: var(--surface-muted);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Read More Button */
.post-read-more {
  margin-top: 20px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.read-more-btn:hover {
  color: var(--text);
  gap: 12px;
}

.read-more-btn svg {
  transition: transform 0.3s ease;
}

.read-more-btn:hover svg {
  transform: translateX(4px);
}

/* Blog Responsive Design */
@media (max-width: 1024px) {
  .blog-hero__content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .blog-hero__stats {
    justify-content: center;
  }
  
  .featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  /* Фильтры на планшетах */
  .filters__form {
    flex-direction: column;
    gap: 16px;
  }
  
  .filters__form input,
  .filters__form select {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 60px 20px;
  }
  
  .blog-hero__text h1 {
    font-size: 2.5rem;
  }
  
  .blog-hero__subtitle {
    font-size: 1.1rem;
  }
  
  .blog-hero__stats {
    gap: 30px;
  }
  
  .stat__number {
    font-size: 2rem;
  }
  
  .blog-page {
    padding: 0 20px 60px;
  }
  
  .blog-post {
    padding: 0 20px;
  }
  
  .post-header {
    padding: 20px 0;
  }
  
  .post-content {
    padding: 20px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .featured-grid,
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .featured-posts,
  .recent-posts {
    padding: 20px;
    margin-bottom: 40px;
  }
  
  .featured-card__content,
  .post-card__content {
    padding: 24px;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .blog-hero__text h1 {
    font-size: 2rem;
  }
  
  .blog-hero__stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .featured-card__badge {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 0.7rem;
  }
}

/* Mobile Header Icons */
.header__icons-mobile {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 4px 0;
}

.header__phone-mobile,
.header__email-mobile,
.header__whatsapp-mobile,
.header__cart-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.header__phone-mobile {
  background: #eab308;
  color: white;
}

.header__email-mobile {
  background: #eab308;
  color: white;
}

.header__whatsapp-mobile {
  background: #eab308;
  color: white;
}

.header__phone-mobile:hover {
  background: #ca8a04;
  transform: scale(1.05);
}

.header__email-mobile:hover {
  background: #ca8a04;
  transform: scale(1.05);
}

.header__whatsapp-mobile:hover {
  background: #ca8a04;
  transform: scale(1.05);
}

.header__cart-mobile {
  background: #eab308;
  color: white;
}

.header__cart-mobile:hover {
  background: #ca8a04;
  transform: scale(1.05);
}

.header__cart-count-mobile {
  position: absolute;
  top: -5px;
  right: -1px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 18px;
}

@media (max-width: 768px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 100vw;
    overflow: visible;
  }
  
  /* Dropdown под строкой поиска */
  .autocomplete-dropdown {
    position: fixed !important;
    top: 120px !important;
    left: 12px !important;
    right: 12px !important;
    z-index: 10001 !important;
    max-width: calc(100vw - 24px) !important;
    margin: 8px 0;
    max-height: 250px;
  }
  
  .header__container {
    max-width: 100vw;
    overflow: visible;
    padding: 8px 8px;
    box-sizing: border-box;
  }
  
  .header__shell {
    padding: 4px 12px;
  }
  
  .header__icons-mobile {
    display: flex;
    flex-shrink: 0;
    gap: 4px;
    margin-left: auto;
    margin-right: 0;
  }
  
  .header__icons {
    display: none;
  }
  
  .header__contacts {
    display: none;
  }
  
  .header__whatsapp-compact {
    display: none !important;
  }
  
  .header__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    flex-shrink: 1;
    justify-content: space-between;
  }
  
  .header__topline {
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    margin-bottom: 5px;
  }
  
  .header-search {
    order: 2;
    width: 100%;
    min-width: auto;
    flex: none;
    max-width: calc(100vw - 16px);
    margin: 0 0;
    box-sizing: border-box;
    position: relative;
  }
  
  .header-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
  }
  
  .header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #eab308;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    min-width: 60px;
  }
  
  .header-search button:hover {
    background: #ca8a04;
  }
  
  .header-search input {
    padding-right: 80px;
  }
  
  .search-container .autocomplete-dropdown {
    position: fixed;
    top: 120px;
    left: 12px;
    right: 12px;
    margin-top: 0;
    z-index: 10000;
    max-width: calc(100vw - 24px);
  }
  
  /* Фильтры на мобильных */
  .filters__form {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    margin: 16px 4px;
    box-sizing: border-box;
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
  }
  
  .filters__form input,
  .filters__form select,
  .filters__form button {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
  }
  
  .logo {
    flex-shrink: 1;
    min-width: 0;
  }
  
  .logo a {
    font-size: 1.2rem;
    white-space: nowrap;
    color: white;
  }
  
  /* Добавляем отступ для контента под фиксированной шапкой */
  body {
    padding-top: 60px;
  }
}
