/* --- Variables & Reset --- */


.product-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-color-main);
}

.category-info h3 {
    font-family: 'Manrope', sans-serif;   /* обычный шрифт вместо Cormorant Garamond */
    font-size: 18px;                      /* чуть больше, чем было 16px */
    font-weight: 700;                     /* жирное начертание */
    margin: 0;
    color: var(--text-color-main);
}

:root {
  --color-brown: #a58b78;
  --color-brown-dark: #3f3733;
  --color-bg-beige: #f7f1ea;
  --color-bg-light: #ffffff;
  --text-color-main: #4a4845;
  --text-color-muted: #8a8a8a;
  --hero-text-color: #ffffff;
  --font-inter: 'Inter', sans-serif;
  --container-padding: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 100px 0;
  min-height: 500px;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  /* Фон задается в HTML через inline style */
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: 0 var(--container-padding);
}

.hero__content {
  max-width: 580px;
}

.hero__title {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 400;
  color: var(--hero-text-color);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero__desc {
  font-size: 16px;
  color: var(--hero-text-color);
  line-height: 1.6;
  margin-bottom: 35px;
}

.btn--primary {
  background-color: #ffffff;
  color: var(--color-brown-dark);
  padding: 16px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.btn--primary:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* --- Promo Section --- */
.promo-section {
  padding: 60px 0;
  background-color: var(--color-bg-beige);
}

.promo-card {
  display: flex;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.promo-card__image {
  flex: 1;
  min-height: 350px;
  background: var(--color-bg-beige);
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-card__image img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.promo-card__content {
  flex: 1.2;
  padding: 48px;
  background: #f1eee9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-badge {
  display: inline-block;
  background: var(--color-brown);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.promo-title {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text-color-main);
  margin-bottom: 12px;
}

.promo-desc {
  color: var(--text-color-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 400px;
}

.btn--dark {
  background: var(--color-brown-dark);
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  width: fit-content;
  transition: 0.3s;
}

.btn--dark:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header--with-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
}

.section-title {
  font-size: clamp(24px, 5vw, 30px);
  color: var(--text-color-main);
  margin-bottom: 6px;
}

.section-subtitle {
  color: var(--text-color-muted);
  font-size: 14px;
}

.section-action {
  color: var(--text-color-main);
  text-decoration: none;
  font-weight: 500;
}

/* --- Categories Section --- */
.categories-section {
  padding: 60px 0 20px;
  background: #fff;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: #fff;
  border: 1px solid #f0ece7;
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.category-card:hover .category-link {
  color: var(--color-brown);
}

.category-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f1ec;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}

.category-info h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  color: var(--text-color-main);
}

.category-link {
  font-size: 13px;
  color: var(--text-color-muted);
  text-decoration: none;
}

.category-link:hover {
  color: var(--color-brown);
}

/* --- Products Section --- */
.products-section {
  padding: 40px 0 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  border-radius: 20px;
  background: #fff;
  padding: 16px;
  border: 1px solid #f0ece7;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.product-card__link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
}

.product-image {
  border-radius: 16px;
  background: #f5f1ec;
  overflow: hidden;
  margin-bottom: 16px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-desc {
  font-size: 13px;
  color: var(--text-color-muted);
  margin-bottom: 20px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0ece7;
  padding-top: 16px;
  margin-top: auto;
}

.product-price {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color-main);
}

.currency {
  font-size: 13px;
  color: var(--text-color-muted);
  font-weight: 400;
}

.btn--cart {
  background: var(--color-brown-dark);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.btn--cart:hover {
  background: var(--color-brown);
  transform: scale(1.03);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .products-grid,
  .categories-grid {
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .promo-card {
    flex-direction: column;
  }
  .promo-card__image {
    min-height: 250px;
  }
  .promo-card__content {
    padding: 32px;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 70px 0;
    min-height: 400px;
  }
  .hero__inner {
    justify-content: center;
  }
  .hero__content {
    text-align: center;
  }
  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }
  .btn--primary {
    padding: 14px 28px;
  }
  .promo-card__content {
    padding: 24px;
  }
  .promo-badge {
    align-self: center;
  }
  .promo-title,
  .promo-desc {
    text-align: center;
  }
  .promo-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .btn--dark {
    align-self: center;
  }
  .section-header--with-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .products-grid {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero {
    padding: 50px 0;
    min-height: 350px;
  }
  .hero__title {
    font-size: 28px;
  }
  .hero__desc {
    font-size: 14px;
  }
  .promo-card__image {
    min-height: 200px;
  }
  .product-card {
    padding: 12px;
  }
  .product-image {
    height: 200px;
  }
  .product-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: center;
  }
  .btn--cart {
    justify-content: center;
    width: 100%;
    padding: 12px;
  }
  .product-price {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 15px;
  }
  .hero__inner {
    padding: 0 15px;
  }
  .promo-card__content {
    padding: 20px;
  }
  .promo-title {
    font-size: 22px;
  }
  .section-header {
    margin-bottom: 30px;
  }
  .category-card {
    padding: 14px 18px;
  }
}

@media (max-width: 360px) {
  .hero__title {
    font-size: 24px;
  }
  .btn--primary {
    padding: 12px 20px;
  }
  .product-title {
    font-size: 16px;
  }
}

/* --- Улучшения для устройств с вырезом (iPhone notch) --- */
@supports (padding: max(0px)) {
  .hero__inner {
    padding-left: max(var(--container-padding), env(safe-area-inset-left));
    padding-right: max(var(--container-padding), env(safe-area-inset-right));
  }
}

/* --- Уважение к настройкам уменьшенного движения --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}