:root {
  --accent: #ce3227;
  --bg: #ffffff;
  --bg2: #f7f7f5;
  --bg3: #efeeea;
  --fg: #0e0e0c;
  --fg-muted: #6b6b65;
  --border: rgba(14,14,12,0.1);
  --card-bg: #ffffff;
  --font: 'Manrope', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; }

/* CONTAINER */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* AGE GATE */
.age-gate {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
}
.age-gate__box {
  background: var(--bg2);
  padding: 40px; max-width: 440px; width: 92%;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.age-gate__label { font-size: 12px; letter-spacing: 3px; color: var(--accent); margin-bottom: 18px; }
.age-gate__title { font-size: 32px; font-weight: 500; margin-bottom: 14px; line-height: 1.15; }
.age-gate__desc { font-size: 14px; color: var(--fg-muted); margin-bottom: 28px; line-height: 1.55; }
.age-gate__btns { display: flex; gap: 10px; }
.age-gate__yes {
  flex: 1; background: var(--accent); color: #fff;
  padding: 14px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; cursor: pointer; border: none;
}
.age-gate__yes:hover { opacity: 0.9; }
.age-gate__no {
  flex: 1; color: var(--fg-muted); padding: 14px 20px;
  border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}

/* TOP BAR */
.topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--fg-muted);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.topbar__left { display: flex; gap: 20px; }
.topbar__right { display: flex; gap: 18px; }
.topbar a:hover { color: var(--fg); }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 28px; padding: 16px 0; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__text { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.logo__accent { color: var(--accent); }
.header__nav { display: flex; gap: 24px; margin-left: 16px; font-size: 14px; font-weight: 500; }
.header__nav a { color: var(--fg); transition: color .15s; }
.header__nav a:hover { color: var(--accent); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header__phone { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg); }
.btn-accent {
  background: var(--accent); color: #fff;
  padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; display: inline-block;
  transition: opacity .15s;
}
.btn-accent:hover { opacity: 0.9; }
.header__burger {
  display: none; padding: 8px; color: var(--fg);
  background: none; border: none; cursor: pointer;
  margin-left: auto;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky; top: 69px; z-index: 29;
}
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 18px; font-size: 16px; font-weight: 500; margin-bottom: 18px; }
.mobile-menu nav a:hover { color: var(--accent); }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  background: #0a1220; min-height: 620px;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,12,22,.92) 0%, rgba(8,12,22,.78) 38%, rgba(8,12,22,.35) 70%, rgba(8,12,22,.15) 100%);
  pointer-events: none;
}
.hero__content { position: relative; padding: 84px 0 96px; max-width: 720px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 12px; color: #fff; font-weight: 600; margin-bottom: 28px;
}
.hero__dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 {
  font-size: clamp(44px,6.2vw,84px);
  line-height: 1.02; font-weight: 800;
  margin: 0 0 24px; letter-spacing: -2px; color: #fff;
}
.hero h1 span { color: var(--accent); }
.hero__desc {
  font-size: 19px; line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 560px; margin: 0 0 36px;
}
.hero__desc strong { color: #fff; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-hero {
  background: var(--accent); color: #fff;
  padding: 20px 32px; border-radius: 999px;
  font-size: 17px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 12px;
  box-shadow: 0 16px 40px rgba(206,50,39,.34);
  transition: opacity .15s;
}
.btn-hero:hover { opacity: .9; }
.btn-hero-outline {
  color: #fff; font-size: 15px; font-weight: 600;
  padding: 20px 24px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.28);
  transition: border-color .15s;
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,.5); }
.hero__stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.stat__num { font-size: 36px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; }
.stat__lbl { font-size: 14px; color: rgba(255,255,255,.7); }
.stat__sub { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }

/* SECTION HEAD */
.sec-head { margin-bottom: 32px; }
.sec-head__eyebrow {
  font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.sec-head__title {
  font-size: clamp(32px,4.5vw,52px); font-weight: 500;
  letter-spacing: -.8px; line-height: 1.05; margin: 0 0 16px;
}
.sec-head__sub { font-size: 17px; color: var(--fg-muted); line-height: 1.55; }

/* CATEGORIES */
.section-cats { background: var(--bg); padding: 64px 0 32px; }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.cat-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 20px; border-radius: 14px;
  text-align: left; cursor: pointer;
  transition: all .15s; width: 100%;
  color: var(--fg);
}
.cat-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cat-btn svg { stroke: var(--accent); }
.cat-btn.active svg { stroke: #fff; }
.cat-btn__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.cat-btn__num { font-size: 12px; font-weight: 600; opacity: .7; }
.cat-btn__name { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.cat-btn__count { font-size: 12px; opacity: .75; line-height: 1.5; }

/* CATEGORIES CAROUSEL (mobile) */
.cats-carousel { display: none; }
.cats-carousel__viewport { overflow: hidden; }
.cats-carousel__track { display: flex; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.cats-carousel__slide { flex: 0 0 100%; }
.cats-carousel__slide .cat-btn { width: 100%; }
.carousel-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 16px;
}
.carousel-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  color: var(--fg); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.carousel-arrow:disabled { opacity: .3; cursor: default; }
.carousel-arrow:not(:disabled):hover { background: var(--bg2); }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: var(--border); transition: all .2s; cursor: pointer;
}
.carousel-dot.active { width: 20px; background: var(--accent); }

/* CATALOG */
.products-section { display: none; }
.products-section.active { display: block; }
.section-catalog { background: var(--bg); padding: 32px 0 64px; }
.catalog-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.catalog-title { font-size: 32px; font-weight: 800; letter-spacing: -.8px; }
.catalog-sort { display: flex; gap: 8px; font-size: 13px; color: var(--fg-muted); align-items: center; }
.catalog-sort select {
  background: var(--bg2); color: var(--fg);
  border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 8px;
  font-family: inherit; font-size: 13px; cursor: pointer;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}
.product-card {
  background: var(--card-bg); padding: 14px;
  border-radius: 12px; border: 1px solid var(--border);
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(206,50,39,.1); }
.product-card__img {
  aspect-ratio: 1 / 1.05; background: var(--bg2);
  border-radius: 8px; margin-bottom: 12px;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.product-card__img svg { width: 100%; height: 100%; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.product-card__tag {
  position: absolute; top: 8px; left: 8px;
  background: var(--card-bg); color: var(--fg-muted);
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  font-weight: 600; border: 1px solid var(--border);
}
.product-card__price { font-size: 18px; font-weight: 700; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.product-card__name { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.product-card__desc { font-size: 12px; color: var(--fg-muted); line-height: 1.45; margin-bottom: 12px; flex: 1; }
.product-card__btn {
  width: 100%; padding: 10px;
  border: 1px solid var(--border); background: transparent;
  color: var(--fg); border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.product-card:hover .product-card__btn {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* CUSTOM BANNER */
.custom-banner {
  margin-top: 36px; padding: 28px 32px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(206,50,39,.85) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.custom-banner__body { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 280px; }
.custom-banner__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid rgba(255,255,255,.25);
}
.custom-banner__title { font-size: 22px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; letter-spacing: -.5px; }
.custom-banner__sub { font-size: 14px; opacity: .92; line-height: 1.5; }
.custom-banner__btn {
  background: #fff; color: var(--accent);
  padding: 16px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  display: inline-block; transition: opacity .15s;
}
.custom-banner__btn:hover { opacity: .9; }

/* EXTRAS */
.section-extras { background: var(--bg2); border-top: 1px solid var(--border); padding: 64px 0; }
.extras-slider { margin-top: 32px; }
.extras-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 24px; }
.slider-btn {
  width: 44px; height: 44px; border-radius: 22px;
  border: 1px solid var(--border); background: transparent;
  color: var(--fg); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s;
}
.slider-btn:disabled { opacity: .4; cursor: default; }
.slider-btn:not(:disabled):hover { background: var(--bg3); }
.extras-viewport { overflow: hidden; }
.extras-track { display: flex; gap: 16px; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.extra-card {
  flex: 0 0 calc(25% - 12px);
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.extra-card__cat { font-size: 11px; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; }
.extra-card__img {
  aspect-ratio: 1 / 1.05; background: var(--bg2);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--border);
  margin-bottom: 4px;
}
.extra-card__img svg { width: 100%; height: 100%; }
.extra-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.extra-card__name { font-size: 17px; font-weight: 500; line-height: 1.25; }
.extra-card__desc { font-size: 12px; color: var(--fg-muted); line-height: 1.5; flex: 1; }
.extra-card__price { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* DELIVERY */
.section-delivery { background: var(--bg); padding: 64px 0; }
.delivery-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 36px; align-items: stretch; }
.delivery-map {
  background: #f3ede0; border-radius: 4px;
  border: 1px solid var(--border);
  padding: 24px; position: relative;
  overflow: hidden; min-height: 380px;
}
.delivery-map svg.map-bg,
.delivery-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-legend { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; }
.map-badge {
  background: #fff; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 12px; color: var(--fg);
  display: flex; align-items: center; gap: 6px;
}
.map-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: #4caf50; }
.delivery-info { background: var(--card-bg); padding: 28px; border-radius: 14px; border: 1px solid var(--border); }
.delivery-info__lbl { font-size: 13px; color: var(--fg-muted); margin-bottom: 14px; font-weight: 600; }
.districts-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; margin-bottom: 20px; }
.district { font-size: 13px; padding: 6px 0; display: flex; align-items: center; gap: 6px; }
.district-dot { width: 4px; height: 4px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.delivery-prices { padding: 16px; background: rgba(206,50,39,.07); border-radius: 10px; font-size: 13px; line-height: 1.6; }

/* FAQ */
.section-faq { background: var(--bg2); border-top: 1px solid var(--border); padding: 64px 0; }
.section-faq .wrap { max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-toggle {
  width: 100%; background: none; border: none; color: var(--fg);
  padding: 24px 0; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: inherit;
}
.faq-q { font-size: 19px; font-weight: 500; line-height: 1.3; }
.faq-icon {
  width: 28px; height: 28px; border-radius: 14px;
  border: 1px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px; transition: transform .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .3s; }
.faq-item.open .faq-body { max-height: 400px; }
.faq-a { padding-bottom: 24px; font-size: 15px; color: var(--fg-muted); line-height: 1.65; padding-right: 60px; }

/* FOOTER */
footer { background: var(--bg); border-top: 1px solid var(--border); color: var(--fg-muted); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: var(--fg); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-desc { font-size: 13px; line-height: 1.6; max-width: 320px; }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--fg); margin-bottom: 12px; }
.footer-links { font-size: 14px; line-height: 2; }
.footer-links a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; font-size: 12px;
}

/* STICKY CALL */
.sticky-call {
  position: fixed; bottom: 16px;
  left: 50%; transform: translateX(-50%);
  z-index: 25;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  transform: translateX(-50%) translateY(8px);
}
.sticky-call.visible {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.sticky-call a {
  display: block;
  background: var(--accent); color: #fff;
  padding: 16px 32px; border-radius: 999px;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 12px 40px rgba(206,50,39,.4);
  white-space: nowrap; text-align: center;
  min-width: 260px;
}

/* ════════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 1024px) {
  .wrap { padding: 0 24px; }
  .products-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .wrap { padding: 0 16px; }

  /* Hide topbar on mobile */
  .topbar { display: none; }

  /* Header mobile */
  .header__nav, .header__phone, .header__right .btn-accent { display: none; }
  .header__burger { display: flex; }
  .header__right { gap: 8px; }

  /* Hero */
  .hero { min-height: 480px; }
  .hero__content { padding: 52px 0 60px; }
  .hero__gradient {
    background: linear-gradient(180deg,
      rgba(8,12,22,.88) 0%,
      rgba(8,12,22,.65) 50%,
      rgba(8,12,22,.78) 100%);
  }
  .hero h1 { letter-spacing: -1px; }
  .hero__desc { font-size: 16px; }
  .btn-hero { padding: 16px 24px; font-size: 15px; }
  .hero__stats { gap: 24px; margin-top: 32px; }
  .stat__num { font-size: 28px; }

  /* Categories: hide grid, show carousel */
  .cats-grid { display: none; }
  .cats-carousel { display: block; }

  /* Products: 1-column vertical */
  .products-grid { grid-template-columns: 1fr; gap: 10px; }
  .product-card {
    flex-direction: row; padding: 12px; gap: 14px;
    align-items: flex-start;
  }
  .product-card__img {
    width: 88px; height: 88px;
    aspect-ratio: unset; flex-shrink: 0;
    margin-bottom: 0;
  }
  .product-card__content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .product-card__price { font-size: 15px; margin-bottom: 4px; }
  .product-card__name { font-size: 13px; }
  .product-card__desc { font-size: 11px; margin-bottom: 8px; }
  .product-card__btn { padding: 8px; font-size: 12px; }

  /* Catalog header */
  .catalog-title { font-size: 24px; }
  .section-cats { padding: 40px 0 20px; }
  .section-catalog { padding: 20px 0 48px; }

  /* Custom banner */
  .custom-banner { padding: 20px; }
  .custom-banner__title { font-size: 17px; }
  .custom-banner__icon { display: none; }

  /* Extras: 1 card at a time */
  .extra-card { flex: 0 0 calc(100% - 16px); }

  /* Delivery */
  .delivery-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__btns { flex-direction: column; align-items: flex-start; }
  .btn-hero-outline { display: none; }
  .custom-banner__body { flex-direction: column; align-items: flex-start; }
  .faq-q { font-size: 16px; }
}

/* PWA install button — шапка (только десктоп) */
.btn-install {
  display: none;
  align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--accent); color: var(--accent);
  background: transparent; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-install:hover { background: var(--accent); color: #fff; }
@media (min-width: 769px) {
  .btn-install.visible { display: inline-flex; }
}

/* PWA install button — мобильное меню */
.btn-install-mobile {
  display: none;
  align-items: center; gap: 8px;
  margin-top: 16px; padding: 13px 20px; width: 100%;
  border-radius: 12px;
  border: 1.5px solid var(--accent); color: var(--accent);
  background: transparent; font-size: 15px; font-weight: 700;
  cursor: pointer;
}
.btn-install-mobile.visible { display: flex; }

@media (display-mode: standalone) {
  .btn-install, .btn-install-mobile, .install-col { display: none !important; }
}

/* PWA install button — футер */
.btn-install-footer {
  background: none; border: none; padding: 0;
  color: var(--accent); font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: underline; line-height: 2;
}
.btn-install-footer:hover { opacity: .75; }
.ios-hint { font-size: 13px; color: var(--fg-muted); margin-top: 8px; line-height: 1.5; }
