﻿:root {
    --bg-page: #f5f3ef;
    --bg-card: #f5f3ef;
    --bg-soft: #ebe6dd;
    --text-main: #111111;
    --text-muted: #6d6b65;
    --border-soft: #ded9d0;
    --accent: #c08457;
    --accent-dark: #a86a41;
    --danger: #b44439;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont,
      "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
  }
  
  body {
    min-height: 100vh;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  /* ===== LAYOUT ===== */
  
  .page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 40px;
  }
  
  /* ===== HERO ===== */
  
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    padding-top: 12px;
    padding-bottom: 40px;
    align-items: flex-start;
  }
  
  .hero-text {
    max-width: 520px;
  }
  
  .hero-title {
    font-size: 32px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 0 0 18px;
    text-align: center;
  }
  
  .hero-subtitle-city {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: none;
  }

  .hero-subtitle-only {
    text-transform: uppercase;
  }
  
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 18px;
  }
  
  
  .hero-subtitle-wrap {
    margin: 0 0 18px;
  }

  .hero-subtitle {
    margin: 0;
  }

  .hero-subtitle.is-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-more {
    display: inline-flex;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-main);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: none;
    text-decoration: underline;
    cursor: pointer;
  }

  
.hero-note {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
  }
  
  .hero-note--accent {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-main);
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--text-main);
  }
  
  .hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
  }
  
  .hero-media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--bg-soft);
    height: clamp(280px, 30vh, 220px);
  }
  
  .hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* ===== FILTER BAR ===== */
  
  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 14px 0;
    margin-bottom: 18px;
    font-size: 12px;
  }
  
  .filter-group-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
  }
  
  .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .pill {
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid #d7d1c7;
    background-color: transparent;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease,
      border-color 0.25s ease, transform 0.2s ease;
  }
  
  .pill.is-active {
    background-color: var(--text-main);
    border-color: var(--text-main);
    color: var(--bg-page);
  }

  .pill:active {
    transform: scale(0.98);
  }
  
  .filter-meta {
    font-size: 11px;
    color: var(--text-muted);
  }
  
  /* ===== PRODUCTS GRID ===== */
  
  .products-section-title {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 20px 0 10px;
  }
  
  .products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }
  
  .product-card {
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 1s ease, box-shadow 1s ease;
    animation: cardFade 0.5s ease;
  }
  
  .product-card__image-wrap {
    position: relative;
    padding-top: 130%;
    overflow: hidden;
    border-radius: 18px;
    background-color: var(--bg-soft);
  }
  
  .product-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease, filter 1s ease;
  }

  .product-card__discount-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 76px;
    height: 76px;
    object-fit: contain;
    pointer-events: none;
  }
  
  .product-card__badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(245, 243, 239, 0.9);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  
  .product-card__info {
    padding: 8px 3px 6px;
  }
  
  .product-card__title {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 4px;
  }
  
  .product-card__meta {
    font-size: 10px;
    color: var(--text-muted);
    margin: 0 0 2px;
  }
  
  .product-card__label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 9px;
    margin-right: 4px;
    color: var(--text-main);
  }
  
  .product-card__price {
    font-size: 11px;
    font-weight: 500;
    margin: 4px 0 0;
  }
  
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
  }
  
  .product-card:hover .product-card__image {
    transform: scale(1.08);
    filter: saturate(1.05);
  }



  @keyframes cardFade {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* ===== GALLERY OVERLAY (3-превью карусель) ===== */
  
  .gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 7, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 40;
  }
  
  .gallery-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  
  .gallery-modal {
    width: min(900px, 94vw);
    padding: 18px 16px 20px;
    border-radius: 20px;
    background: #111111;
    color: #f5f3ef;
    position: relative;
  }
  
  .gallery-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: #f5f3ef;
    font-size: 22px;
    cursor: pointer;
  }
  
  .gallery-track {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 0.8fr 1.4fr 0.8fr;
    gap: 12px;
    align-items: center;
  }
  
  .gallery-img-wrap {
    position: relative;
    padding-top: 135%;
    overflow: hidden;
    border-radius: 16px;
  }
  
  .gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .gallery-img--side {
    filter: blur(3px);
    opacity: 0.6;
  }
  
  .gallery-nav {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  
  .gallery-nav-btn {
    border-radius: 999px;
    border: 1px solid #666;
    background: transparent;
    color: #f5f3ef;
    font-size: 16px;
    line-height: 1;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
      transform 0.15s ease;
  }
  
  .gallery-nav-btn:hover {
    background: #f5f3ef;
    color: #111;
    border-color: #f5f3ef;
    transform: translateY(-1px);
  }
  
  .gallery-counter {
    margin-top: 8px;
    font-size: 11px;
    text-align: center;
    color: #b8b8b8;
  }
  
  /* ===== FOOTER ===== */
  
  .page-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-soft);
    padding: 18px 24px 22px;
    font-size: 11px;
    color: var(--text-muted);
  }
  
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  /* ===== RESPONSIVE ===== */
  
  @media (max-width: 1024px) {
    .hero {
      grid-template-columns: 1fr;
    }
  
    .hero-media {
      order: -1;
    }
  
    .products-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .hero-media-img {
      object-fit: contain;
    }

    .hero {
      padding-top: 10px;
      gap: 26px;
    }
  
    .hero-title {
      font-size: 26px;
    }
  
    .page-inner {
      padding: 16px 16px 32px;
    }
  
    .products-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  
    .gallery-modal {
      width: min(480px, 94vw);
    }
  
    /* мобильная версия карусели:
       — только центр. фото
       — стрелки по краям на одной линии
       — тап по фото закрывает (логика в JS) */
    .gallery-track {
      grid-template-columns: 1fr;
    }
  
    .gallery-img--side {
      display: none;
    }
  
    .gallery-nav {
      margin-top: 0;
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      transform: translateY(-50%);
      padding: 0 8px;
      justify-content: space-between;
      pointer-events: none;
    }
  
    .gallery-nav-btn {
      pointer-events: auto;
      width: 32px;
      height: 32px;
      min-width: 32px;
      min-height: 32px;
      border-radius: 999px;
      font-size: 18px;
      background: rgba(30, 30, 30, 0.9);
      padding: 0;
    }
  }
  
  @media (max-width: 480px) {
    .products-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .hero-title {
      font-size: 22px;
      letter-spacing: 0.12em;
    }
  }
  


