:root {
  --text: #101010;
  --muted: #8f9bb3;
  --accent: #e10054;
  --accent-dark: #c8004a;
  --new: #009c43;
  --primary: #222b45;
  --line: #e4e9f2;
  --light: #f7f9fc;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { background: #fff; color: var(--text); font-family: Arial, Helvetica, sans-serif; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-container {
  width: calc(100% - 32px);
  margin-inline: auto;
}
@media (min-width: 576px) { .site-container { max-width: 540px; } }
@media (min-width: 768px) { .site-container { max-width: 720px; } }
@media (min-width: 1024px) { .site-container { max-width: 960px; } }
@media (min-width: 1280px) { .site-container { max-width: 1140px; } }
@media (min-width: 1440px) { .site-container { max-width: 1320px; } }
@media (min-width: 1920px) { .site-container { max-width: 1608px; } }

.site-header {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 max(16px, 4vw);
  border-bottom: 1px solid #ececec;
  background: rgba(255,255,255,.98);
  position: relative;
  z-index: 20;
}
.brand {
  justify-self: start;
  text-decoration: none;
  font-size: 21px;
  line-height: 1;
  letter-spacing: .015em;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.main-nav a { text-decoration: none; padding: 27px 0 24px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { border-bottom-color: #111; }
.register-link {
  justify-self: end;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}
.register-link:hover { background: var(--accent-dark); }

.page-main { padding: 14px 0 44px; display: flex; flex-direction: column; gap: 32px; }

.hero-slider {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
  border-radius: 16px;
  isolation: isolate;
}
.slides { position: relative; width: 100%; }
.slide { display: none; width: 100%; text-decoration: none; }
.slide.is-active { display: block; animation: heroFade .35s ease; }
.slide img { display: block; width: 100%; height: auto; aspect-ratio: 3.048 / 1; object-fit: cover; }
@keyframes heroFade { from { opacity: .55; } to { opacity: 1; } }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 52px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.82); color: #111; font-size: 34px; line-height: 1;
  cursor: pointer; opacity: 0; transition: opacity .18s ease, background .18s ease;
}
.hero-slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow:hover { background: #fff; }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

.slider-dots {
  position: absolute; z-index: 6; left: 16px; bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.slider-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); cursor: pointer;
  transition: width .15s ease, border-radius .15s ease, background .15s ease;
}
.slider-dots button.is-active { width: 28px; border-radius: 99px; background: var(--accent); }

.content-section { min-width: 0; }
.section-head {
  min-height: 42px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; }
.section-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.view-all {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px; border: 1px solid transparent; border-radius: 8px;
  font-size: 14px; text-decoration: none; color: #111;
}
.view-all:hover { background: var(--light); }
.nav-button {
  width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent;
  color: #111; font-size: 30px; line-height: 1; cursor: pointer;
}
.nav-button:hover { background: var(--light); }
.nav-button:disabled { opacity: .28; cursor: default; }

.horizontal-carousel {
  display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity; scrollbar-width: none; padding: 0 0 4px;
}
.horizontal-carousel::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; flex: 0 0 auto; }

.products-row { min-height: 515px; }
.product-card {
  width: 244px; border: 1px solid rgba(0,0,0,.125); border-radius: 16px;
  overflow: hidden; background: #fff; display: flex; flex-direction: column;
}
.product-image-link { display: block; text-decoration: none; color: inherit; }
.product-image-wrap { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--light); }
.product-image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }
.labels { position: absolute; display: flex; gap: 4px; z-index: 2; }
.labels-top { top: 12px; left: 12px; flex-direction: column; align-items: flex-start; }
.labels-bottom { left: 12px; bottom: 12px; }
.badge {
  display: inline-flex; width: fit-content; align-items: center; min-height: 24px;
  padding: 4px 8px; border-radius: 5px; color: #fff; font-size: 12px; line-height: 1.1;
  font-weight: 700; border: 1px solid transparent;
}
.badge-brand { background: var(--accent); border-color: var(--accent); }
.badge-new { background: var(--new); border-color: var(--new); }
.product-image-link:hover .labels { opacity: 0; transition: opacity .25s ease; }

.product-card-body { padding: 0 16px 16px; display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 12px; }
.product-details { display: block; text-decoration: none; color: inherit; }
.article { display: block; font-size: 12px; line-height: 1; color: #7d879c; font-weight: 700; margin-bottom: 6px; }
.product-details h3 {
  height: 42px; margin: 0 0 14px; overflow: hidden; display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: 15px; line-height: 1.35; font-weight: 400; color: #111;
}
.prices { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price-left, .price-right { display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.05; font-weight: 700; }
.price-right { text-align: right; align-items: flex-end; }
.old-price { color: #a7aab5; text-decoration: line-through; }
.catalog-price { color: #111; }
.member-price { color: var(--accent); }
.score { color: #111; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.score-icon { color: var(--muted); font-size: 13px; }

.cart-button {
  min-height: 40px; border-radius: 8px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-size: 14px; font-weight: 700; padding: 0 12px;
}
.cart-button:hover { filter: brightness(.94); }
.cart-icon { font-size: 14px; filter: grayscale(1) brightness(8); }

.promos-row { align-items: stretch; }
.promo-card {
  width: calc((100% - 48px) / 3); min-width: 280px; overflow: hidden; border-radius: 16px;
  background: var(--light); text-decoration: none;
}
.promo-card img { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 926; object-fit: cover; transition: transform .25s ease; }
.promo-card:hover img { transform: scale(1.012); }

.catalog-countdown {
  background: var(--light); border-radius: 8px; min-height: 84px;
  padding: 14px 24px; display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center; column-gap: 16px;
}
.countdown-label { grid-column: 1; font-size: 18px; font-weight: 700; }
.countdown { grid-column: 2; display: flex; align-items: flex-start; gap: 2px; }
.count-item { display: flex; flex-direction: column; align-items: center; }
.count-digits { display: flex; gap: 1px; font-size: 20px; line-height: 1; font-weight: 700; }
.count-digits span {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 32px; padding: 2px 4px; background: #fff;
  border: 1px solid #c5cee0; border-radius: 4px;
}
.day-badge { background: var(--accent); border-radius: 4px; padding: 0 4px; min-width: 36px; justify-content: center; }
.day-badge span { width: auto; background: transparent; border: 0; color: #fff; padding-inline: 1px; }
.count-caption { margin-top: 3px; color: #6b7486; font-size: 12px; }
.count-days { margin-right: 8px; }
.count-days .count-caption { color: var(--accent); }
.count-sep { color: #6b7486; font-size: 20px; font-weight: 700; line-height: 32px; user-select: none; }

.placeholder { padding: 48px 0; }
.placeholder h1 { margin-top: 0; }

@media (max-width: 1023px) {
  .site-header { padding-inline: 20px; }
  .brand { font-size: 18px; }
  .main-nav { gap: 22px; }
  .page-main { gap: 28px; }
  .product-card { width: 220px; }
  .products-row { min-height: 485px; }
  .catalog-countdown { grid-template-columns: 1fr auto; }
  .countdown-label { grid-column: 1; }
  .countdown { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --header-h: auto; }
  .site-container { width: calc(100% - 24px); }
  .site-header {
    grid-template-columns: minmax(0,1fr) auto; gap: 10px 12px; padding: 12px 12px 0;
  }
  .brand { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
  .register-link { min-height: 38px; padding: 0 12px; font-size: 12px; }
  .main-nav {
    grid-column: 1 / -1; justify-content: center; gap: 24px; width: 100%;
    border-top: 1px solid #ececec; font-size: 13px;
  }
  .main-nav a { padding: 11px 0 9px; }
  .page-main { padding-top: 10px; gap: 26px; }
  .hero-slider { border-radius: 12px; }
  .slide img { min-height: 0; object-fit: cover; }
  .slider-arrow { display: none; }
  .slider-dots { left: 10px; bottom: 8px; gap: 6px; }
  .slider-dots button { width: 7px; height: 7px; }
  .slider-dots button.is-active { width: 20px; }

  .section-head { margin-bottom: 12px; }
  .section-head h2 { font-size: 22px; }
  .view-all { min-height: 36px; padding: 0 6px; font-size: 12px; }
  .nav-button { display: none; }
  .horizontal-carousel { gap: 12px; margin-right: -12px; padding-right: 12px; }
  .product-card { width: 184px; border-radius: 12px; }
  .products-row { min-height: 420px; }
  .product-card-body { padding: 0 12px 12px; gap: 10px; }
  .product-details h3 { height: 38px; font-size: 13px; margin-bottom: 10px; }
  .article { font-size: 11px; }
  .price-left, .price-right { font-size: 14px; }
  .badge { min-height: 21px; padding: 3px 6px; font-size: 10px; }
  .labels-top, .labels-bottom { left: 8px; }
  .labels-top { top: 8px; }
  .labels-bottom { bottom: 8px; }
  .cart-button { min-height: 38px; font-size: 13px; }

  .promo-card { width: 82vw; min-width: 82vw; border-radius: 12px; }

  .catalog-countdown {
    grid-template-columns: 1fr; justify-items: center; row-gap: 12px; padding: 16px 10px;
  }
  .countdown-label { grid-column: 1; text-align: center; font-size: 16px; }
  .countdown { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ===== CONTACTS PAGE ===== */
.contacts-page {
  padding: 38px 0 64px;
}

.contacts-hero {
  padding: 12px 0 4px;
}

.contacts-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contacts-hero h1 {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 700;
}

.contacts-lead {
  max-width: 900px;
  margin: 0;
  color: #4f5667;
  font-size: 18px;
  line-height: 1.55;
}

.delivery-panel {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--light);
}

.delivery-panel strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.delivery-panel p {
  max-width: 920px;
  margin: 0;
  color: #566075;
  line-height: 1.55;
}

.contacts-section {
  margin-top: 42px;
}

.contacts-section-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.contacts-section-intro {
  max-width: 780px;
  margin: 0 0 20px;
  color: #626b7d;
  line-height: 1.55;
}

.pickup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.pickup-card {
  min-width: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.pickup-label {
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 5px;
  background: #fff0f4;
  color: var(--accent-dark);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.pickup-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.pickup-note {
  margin: 0 0 20px;
  color: #687084;
  line-height: 1.5;
}

.pickup-note.is-spacer {
  min-height: 48px;
}

.pickup-schedule {
  margin: 0 0 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.35;
}

.schedule-row span:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.pickup-phone {
  width: fit-content;
  margin-bottom: 20px;
  color: #111;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
}

.pickup-phone:hover {
  color: var(--accent-dark);
}

.pickup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.contact-btn {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.contact-btn:hover {
  background: var(--light);
}

.contact-btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.contact-btn.primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

@media (max-width: 800px) {
  .contacts-page {
    padding: 24px 0 44px;
  }

  .contacts-hero {
    padding-top: 4px;
  }

  .contacts-hero h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .contacts-lead {
    font-size: 16px;
  }

  .delivery-panel {
    margin-top: 22px;
    padding: 18px;
    border-radius: 12px;
  }

  .contacts-section {
    margin-top: 32px;
  }

  .contacts-section-title {
    font-size: 24px;
  }

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

  .pickup-card {
    padding: 20px;
    border-radius: 12px;
  }

  .pickup-card h2 {
    font-size: 21px;
  }

  .pickup-note.is-spacer {
    min-height: 0;
  }

  .pickup-phone {
    font-size: 20px;
  }

  .pickup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-btn {
    width: 100%;
    min-height: 46px;
  }

  .map-card {
    border-radius: 12px;
  }
}

@media (max-width: 420px) {
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .schedule-row span:last-child {
    text-align: left;
  }

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

