@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,800;0,900;1,900&display=swap');

:root {
  --black:   #0a0a0a;
  --white:   #ffffff;
  --red:     #c0392b;
  --gray:    #f2f2f2;
  --muted:   #888888;
  --border:  #e0e0e0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

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

/* ── Шапка ── */
header {
  background: var(--black);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color 0.15s;
}
.logo:hover { color: var(--red); }

nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
nav a:hover, nav a.active { color: var(--white); }

.cart-icon {
  position: relative;
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  transition: color 0.15s;
}
.cart-icon:hover { color: var(--white); }

.cart-badge {
  position: absolute;
  top: -7px;
  right: -10px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  width: 17px;
  height: 17px;
  font-size: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Hero (Параллакс) ── */
.hero-parallax {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 72px;
}

.hero-parallax-bg {
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  bottom: -30%;
  background-size: cover;
  background-position: center 40%;
  will-change: transform;
  z-index: 0;
}

.hero-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(0,0,0,0.08) 100%
  );
  z-index: 1;
}

.hero-parallax-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-parallax-content .hero-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.hero-parallax-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.hero-parallax-content h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-parallax-content p {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 420px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-parallax-content .btn-primary {
  background: white;
  color: var(--black);
}

.hero-parallax-content .btn-primary:hover {
  background: var(--red);
  color: white;
}

/* ── Кнопки ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 0;
  text-decoration: none;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: #a93226;
}

/* ── Секции ── */
.section {
  padding: 64px 48px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--black);
  padding-bottom: 16px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  color: var(--black);
}

.section-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}
.section-link:hover { color: var(--red); }

/* ── Сетка товаров ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  background: var(--border);
}

/* ── Карточка товара (стиль Лебедева: текст сверху, фото снизу) ── */
.product-card {
  background: var(--white);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 0;
  position: relative;
}
.product-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.product-card:hover::after {
  transform: scaleX(1);
}
.product-card:hover {
  background: var(--gray);
}

.product-card-body {
  padding-bottom: 16px;
}

.product-card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--red);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 2.4rem;
  margin-top: auto;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.03);
}

/* ── Фильтры ── */
.filters {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.filter-btn:hover { color: var(--black); }
.filter-btn.active {
  color: var(--black);
  border-bottom-color: var(--red);
}

/* ── Полоса-манифест ── */
.manifesto {
  background: var(--black);
  overflow: hidden;
  padding: 0;
}

.manifesto-ticker {
  overflow: hidden;
  width: 100%;
  padding: 36px 0;
}

.manifesto-track {
  display: flex;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  letter-spacing: 0.06em;
  color: var(--white);
  animation: ticker 20s linear infinite;
}

.manifesto-track:hover {
  animation-play-state: paused;
}

.manifesto-dot {
  color: var(--red);
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ── Футер ── */
footer {
  background: var(--black);
  padding: 32px 48px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}

footer a {
  color: rgba(255,255,255,0.4);
  transition: color 0.15s;
}
footer a:hover { color: var(--white); }

/* ── Утилиты ── */
.container { max-width: 1200px; margin: 0 auto; }

/* ── Медиа галерея товара ── */
.product-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-main-photo-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s;
}
.product-thumb.active,
.product-thumb:hover {
  border-color: var(--red);
}
.product-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: block;
}
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.avito-link {
  text-align: center;
  text-decoration: none;
}

/* ── Счётчик количества ── */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--black);
  width: fit-content;
}
.qty-btn {
  background: var(--black);
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover:not(:disabled) {
  background: var(--red);
}
.qty-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.qty-value {
  width: 52px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  user-select: none;
}

/* ── Empty state ── */
.empty-state {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
