* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1e1b;
  line-height: 1.4;
  padding-top: 80px;
}

/* Main */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px 0 32px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 48px 20px 64px;
  background: linear-gradient(135deg, #f9fbf8 0%, #ffffff 100%);
  border-radius: 48px;
  margin-bottom: 56px;
}

.hero-section h1 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #2c5e2a, #4faf54, #60a87a, #2c5e2a, #3c8c3a);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 4s ease infinite;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.1rem;
  color: #6f7e6a;
  max-width: 600px;
  margin: 0 auto;
}

/* Линии товаров */
.categories-section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 32px;
  color: #1e2a21;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: linear-gradient(135deg, #fafaf8, #ffffff);
  border-radius: 32px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #f0efea;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(79, 175, 84, 0.15);
  border-color: #4faf54;
}

.line-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.line-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.category-card:hover .line-img {
  transform: scale(1.05);
}

.line-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: all 0.35s ease;
  pointer-events: none;
}

.category-card:hover .line-overlay {
  height: 50%;
}

.line-overlay-content {
  color: white;
  text-align: center;
  padding: 20px 16px 20px;
  width: 100%;
}

.line-overlay-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: white;
}

.line-overlay-desc {
  font-size: 0.7rem;
  line-height: 1.3;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.category-card:hover .line-overlay-desc {
  opacity: 1;
  transform: translateY(0);
}

.no-lines {
  text-align: center;
  padding: 60px 20px;
  background: #fafaf8;
  border-radius: 32px;
  color: #8aa185;
}

/* Товары */
.products-section {
  margin-bottom: 56px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.product-card {
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0efea;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
  border-color: #e0e8da;
}

.product-image {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #fafaf8, #f5f5f0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #f44336, #e57373);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  z-index: 2;
}

.product-info {
  padding: 16px;
}

.product-category {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9bae95;
  margin-bottom: 6px;
  font-weight: 600;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1e2a21;
  line-height: 1.4;
}

.product-description {
  font-size: 0.7rem;
  color: #7b8b76;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Кнопка каталога внизу */
.catalog-btn-wrapper {
  text-align: center;
  margin-top: 20px;
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 2px solid #4faf54;
  padding: 12px 32px;
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4faf54;
  text-decoration: none;
  transition: all 0.3s ease;
}

.catalog-btn:hover {
  background: #4faf54;
  color: white;
  transform: translateY(-2px);
}

/* Баннер */
.banner-section {
  margin-bottom: 56px;
  width: 100%;
}

.banner-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 32px;
}

.banner-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.banner-link:hover .banner-image {
  transform: scale(1.02);
}

/* Кнопка купить - зеленый блок */
.buy-button-section {
  background: linear-gradient(135deg, #2c5e2a, #4faf54);
  border-radius: 48px;
  padding: 48px 32px;
  text-align: center;
  color: white;
  margin-bottom: 56px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.buy-button-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -12px rgba(79, 175, 84, 0.4);
}

.buy-button-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.buy-button-section p {
  font-size: 1rem;
  margin-bottom: 24px;
}

.buy-btn-large {
  display: inline-block;
  background: white;
  color: #2c5e2a;
  padding: 14px 40px;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.buy-btn-large:hover {
  transform: translateY(-2px);
  background: #f8f8f8;
}

/* Footer */
footer {
  border-top: 1px solid #f0f0ef;
  padding: 40px 0 36px;
  text-align: center;
  font-size: 0.7rem;
  color: #8a9b86;
}

.footer-social {
  margin-top: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mini-img-in-div {
  width: 40px;
}

.social-icon {
  display: inline-block;
}

/* Toast */
.toast-message {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #1e2a21;
  color: white;
  padding: 10px 24px;
  border-radius: 60px;
  font-size: 0.8rem;
  z-index: 1001;
  opacity: 0;
  transition: all 0.2s;
  pointer-events: none;
}

.toast-message.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.no-products {
  text-align: center;
  padding: 60px 20px;
  background: #fafaf8;
  border-radius: 32px;
  color: #8aa185;
}

.no-products i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Анимация градиента */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========== АДАПТИВ ========== */
@media (max-width: 900px) {
  .main-wrapper {
    padding: 20px 20px 0 20px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section {
    padding: 32px 16px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .banner-container {
    height: 250px;
  }
  
  .buy-button-section h3 {
    font-size: 1.4rem;
  }
  
  .buy-btn-large {
    padding: 10px 28px;
    font-size: 0.9rem;
  }
}

@media (max-width: 550px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .banner-container {
    height: 180px;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 70px;
  }
  
  .main-wrapper {
    padding: 16px 16px 0 16px;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .hero-section p {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .buy-button-section {
    padding: 32px 20px;
  }
  
  .buy-button-section h3 {
    font-size: 1.2rem;
  }
  
  .catalog-btn {
    padding: 8px 20px;
    font-size: 0.8rem;
  }
}