:root {
  --bg-color: #fafafa;
  --accent-color: #d4af37;
  --dark-color: #2f2f2f;
  --text-color: #333;
  --text-light: #7a7a7a;
  --white: #fff;
  --beige: #f5efe7;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.12);
  --font-heading: "Playfair Display", serif;
  --font-body: "Open Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-color);
  color: var(--text-color);
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-color);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.nav a {
  font-weight: 600;
  color: var(--dark-color);
}

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

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #fff 0%, #faf7f1 100%);
}

.hero__inner {
  text-align: center;
  max-width: 860px;
}

.hero__eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  font-size: .85rem;
}

.hero h1,
.section-title,
.footer h3,
.footer h4 {
  font-family: var(--font-heading);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  color: var(--dark-color);
}

.hero__text {
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--text-light);
  font-size: 1.05rem;
}

.hero__link {
  display: inline-flex;
  margin-top: 28px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent-color);
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.catalog,
.styles {
  padding: 64px 0;
}

.styles {
  background: var(--beige);
}

.section-title {
  margin: 0 0 28px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-align: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: white;
  color: var(--dark-color);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: .25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

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

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

.product-card {
  cursor: pointer;
}

.style-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.product-media {
  aspect-ratio: 4 / 3;
  min-height: 260px;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px dashed rgba(47, 47, 47, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  font-weight: 700;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, .14), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, .10), transparent 26%),
    #fcfcfc;
  padding: 18px;
}

.product-body {
  padding: 22px;
}

.product-title {
  font-size: 1.5rem;
}

.product-category {
  font-size: 1rem;
}

.style-card {
  padding: 22px;
  text-align: left;
}

.style-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--dark-color);
}

.style-text {
  margin: 0;
  color: var(--text-light);
  line-height: 1.7;
}

.footer {
  background: var(--dark-color);
  color: rgba(255, 255, 255, .92);
  padding: 48px 0 22px;
}

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

.footer h3 {
  margin: 0 0 12px;
  color: var(--accent-color);
  font-size: 1.7rem;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.footer p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .75);
}

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

.footer__copy {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
  color: rgba(255, 255, 255, .5);
}

@media (max-width: 768px) {
  .header__inner {
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    justify-content: center;
  }

  .catalog,
  .styles,
  .hero {
    padding-top: 52px;
    padding-bottom: 52px;
  }
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.is-hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1000;
  padding: 24px;
}

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

.modal__content {
  position: relative;
  width: min(92vw, 980px);
  max-height: 90vh;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  z-index: 2;
}

.modal__image {
  display: block;
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  background: #111;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
  }

  .product-media {
    min-height: 220px;
  }
}

.filter-description {
  margin: 20px 0 28px;
  padding: 18px 24px;
  background: var(--beige);
  border-radius: 12px;
  line-height: 1.6;
  color: var(--dark-color);
  font-size: 0.95rem;
  white-space: pre-line;  /* ✅ Сохраняет переносы строк из текста */
}