/**
 * Page-specific styles — главная страница
 * Hero, категории, продукты, промо, блоки
 */

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}
/* Hero — бежевый фон, объёмная зелёная карточка */
.hero-concept1 {
  background: var(--cream);
}
.hero-concept1 .hero-bg {
  background:
    radial-gradient(ellipse 80% 70% at 70% 50%, rgba(241,201,148,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 30%, rgba(0,49,40,0.04) 0%, transparent 50%);
  background-color: var(--cream);
}
.hero-concept1 .hero-ripples { opacity: 0.6; }
.hero-concept1 .hero-ripple { opacity: 0.08; }
/* Hero: весь блок по центру, контент слева, картинки справа — без наложения */
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 80px var(--content-padding-x);
  width: 100%;
  box-sizing: border-box;
}
.hero-concept1 .hero-content {
  flex: 1 1 580px;
  min-width: 0;
  max-width: 640px;
  text-align: left;
}
.hero .hero-search { margin-left: 0; margin-right: 0; }
.hero .hero-ctas { justify-content: flex-start; }

/* Объёмная карточка с заголовком и описанием */
.hero-intro-card {
  background: linear-gradient(145deg, #004538 0%, var(--dark-green) 50%, #002a22 100%);
  border-radius: var(--radius-md);
  padding: 36px 48px 40px;
  margin-bottom: 28px;
  box-shadow:
    0 4px 12px rgba(0,49,40,0.2),
    0 12px 32px rgba(0,49,40,0.25),
    inset 0 1px 0 rgba(255,255,255,0.06);
  border: 1px solid rgba(0,49,40,0.15);
  overflow: visible;
  box-sizing: border-box;
}
.hero-intro-card .hero-h1 {
  margin-bottom: 12px;
  font-size: clamp(22px,2.8vw,34px);
  line-height: 1.2;
}
/* Бежевый и жёлтый текст */
.hero-intro-card .hero-title-line1 { color: var(--peach-light); }
.hero-intro-card .hero-title-accent { color: var(--peach); }
.hero-intro-card .hero-intro-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--peach-light);
  margin: 0;
}
.hero-concept1 .hero-search-input {
  background: var(--white);
  border-color: rgba(0,49,40,0.12);
  color: var(--dark-green);
}
.hero-concept1 .hero-search-input::placeholder { color: rgba(44,44,44,0.58); }
.hero-concept1 .hero-search-input:focus { border-color: var(--peach); }
.hero-concept1 .hero-search-btn { background: var(--dark-green); color: var(--white); }
.hero-concept1 .hero-search-btn:hover { background: #004538; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 70% 50%, rgba(0,49,40,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 30%, rgba(241,201,148,0.2) 0%, transparent 50%);
  background-color: var(--cream);
}
.hero-ripples {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}
.hero-ripple {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.06;
}
.hero-ripple.r2 { width: 220px; height: 220px; top: 55%; right: 8%; background-image: url("../images/ripple-2.webp"); transform: rotate(25deg); }
.hero-ripple.r3 { width: 140px; height: 140px; top: 25%; right: 25%; background-image: url("../images/ripple-2.webp"); transform: rotate(5deg) scaleX(-1); }
.hero-ripple.r4 { width: 200px; height: 200px; bottom: 15%; left: 8%; background-image: url("../images/ripple-1.webp"); transform: rotate(-8deg) scaleX(-1); }
.hero-ripple.r5 { width: 100px; height: 100px; top: 70%; left: 35%; background-image: url("../images/ripple-1.webp"); opacity: 0.04; transform: rotate(20deg); }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-title-wrap {
  position: relative;
  display: inline-block;
}
.hero-pattern-bg {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 260px;
  background: url("../images/hero-pattern.png") no-repeat center;
  background-size: contain;
  opacity: 0.06;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero h1 {
  color: var(--dark-green);
  margin-bottom: 20px;
}
.hero h1 em,
.hero-title-accent {
  font-style: normal;
  color: var(--dark-green);
  opacity: 0.9;
}
.hero-title-line1 {
  white-space: normal;
}
.hero p {
  color: rgba(0,49,40,0.75);
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 36px;
}

/* Hero search */
.hero-search {
  position: relative;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-search-input {
  width: 100%;
  height: 58px;
  padding: 1px 56px 0 20px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(0,49,40,0.12);
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark-green);
  box-shadow: 0 4px 20px rgba(0,49,40,0.08);
  -webkit-appearance: none;
  appearance: none;
}
.hero-search-input::placeholder {
  font-family: var(--font-ui);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(44,44,44,0.58);
}
.hero-search-input:focus { outline: none; border-color: var(--dark-green); box-shadow: 0 4px 24px rgba(0,49,40,0.12); }
.hero-search-btn {
  position: absolute;
  right: 6px; top: 6px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.hero-search-btn:hover { background: #004538; transform: scale(1.02); }
.hero-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 100;
}
.hero-search-suggestions.open { display: block; }
.suggestion-thumb {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.suggestion-thumb-teal { background: radial-gradient(circle, #4a90a4, #1a3a4a); }
.suggestion-thumb-green { background: radial-gradient(circle, #3d7a5c, #1a3528); }
.suggestion-thumb-brown { background: radial-gradient(circle, #8b5e3c, #3d2010); }
.suggestion-thumb-violet { background: radial-gradient(circle, #6b4c8f, #2a1540); }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero right — карточки с картинками (не накладываются на контент) */
.hero-visual {
  flex: 0 0 auto;
  width: 420px;
  max-width: 42%;
  overflow: visible;
}
.hero-visual-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  align-items: center;
  justify-items: center;
  transform: rotate(6deg);
  transform-origin: center center;
  aspect-ratio: 1;
  max-height: 480px;
}
.hero-product-card {
  background: var(--white);
  border: 5px solid var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,49,40,0.12);
  width: 90%;
  max-width: 210px;
  height: auto;
  aspect-ratio: 1;
}
.hero-product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.hero-product-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.hero-product-info {
  padding: 6px 8px;
  background: var(--white);
}
.hero-product-info p {
  font-size: 10px;
  color: var(--dark-green);
  margin-bottom: 2px;
}
.hero-product-info span {
  font-size: 11px;
  font-weight: 700;
  color: var(--bordo);
}

/* Section background modifiers */
.section-cream { background: var(--cream); }
.section-peach { background: var(--cream); }
.reviews-section { background: var(--peach-light); }

/* ===== QUICK CATEGORIES ===== */
.categories {
  background: var(--peach-light);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition), opacity var(--transition);
  text-align: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.cat-card:hover {
  border-color: var(--peach);
  background: var(--cream);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.cat-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: transform var(--transition);
}
.cat-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; opacity: 0.95; }
.cat-card:hover .cat-icon { transform: scale(1.1); }
.ci1 { background: linear-gradient(135deg, #4a90a4, #1a5a7a); }
.ci2 { background: linear-gradient(135deg, #8b6343, #5a3820); }
.ci3 { background: linear-gradient(135deg, #3d7a5c, #1a4a38); }
.ci4 { background: linear-gradient(135deg, #b8860b, #8b6400); }
.ci5 { background: linear-gradient(135deg, #6b4c8f, #3d1f60); }
.ci6 { background: linear-gradient(135deg, #c0392b, #8b1a1a); }
.ci-sale { background: linear-gradient(135deg, #9f2447, #5a0f25); }
.ci-new { background: linear-gradient(135deg, #1f6f5f, #0b3f34); }
.cat-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.cat-card--sale {
  background: linear-gradient(180deg, rgba(65, 8, 24, 0.02) 0%, rgba(65, 8, 24, 0.08) 100%);
}
.cat-card--sale .cat-badge {
  background: var(--bordo);
}
.cat-card--sale .cat-name {
  color: var(--bordo);
}
.cat-card--new {
  background: linear-gradient(180deg, rgba(0, 49, 40, 0.02) 0%, rgba(0, 49, 40, 0.08) 100%);
}
.cat-card--new .cat-badge {
  background: var(--dark-green);
}
.cat-card--new .cat-name {
  color: var(--dark-green);
}
.cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-green);
}
.cat-count {
  font-size: 11px;
  color: var(--gray);
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition), opacity var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-card-img-wrap {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 1;
  overflow: hidden;
}
.product-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--transition);
}
.product-card-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100%;
}
.product-img-amazonite { background-image: url("../images/Амазонит Шар 18мм_1700.jpg"); }
.product-img-turtles { background-image: url("../images/Керамика Черепашки 13мм микс_300.jpg"); }
.product-img-ring { background-image: url("../images/Кольцо глянцевое биколор р7 (18мм)_450.jpeg"); }
.product-img-set { background-image: url("../images/Набор золотые серьги и подвеска Микс_700.jpeg"); }
.product-img-pearl { background-image: url("../images/Нить жемчужная Барочный 1621мм_4050.jpg"); }
.product-img-glass { background-image: url("../images/Стекло Шайба гран 4 на 2.5мм зелёнАБ_250.jpg"); }
.product-img-pliers { background-image: url("../images/Тонкогубцы с рельефной поверхностью TDK_250.jpg"); }
.product-img-shatons { background-image: url("../images/Шатоны зол. Красный кр. 4мм_200.jpeg"); }
.product-card-img-alt {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .product-card-img { opacity: 0; }
.product-card:hover .product-card-img-alt { opacity: 1; }
.product-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.badge-new    { background: var(--dark-green); color: var(--white); }
.badge-sale   { background: var(--bordo); color: var(--white); }
.badge-hit    { background: var(--peach); color: var(--dark-green); }
.badge-excl   { background: var(--dark-green); color: var(--peach); }

.product-wish-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition), opacity var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.product-card:hover .product-wish-btn { opacity: 1; }
.product-wish-btn.active { color: var(--bordo); }

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 16px 16px;
}
.product-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-green);
  line-height: 1.45;
  margin-bottom: 4px;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-art {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 10px;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-green);
}
.product-price-old {
  font-size: 14px;
  color: var(--gray);
  text-decoration: line-through;
}
.product-price-wholesale {
  font-size: 14px;
  color: var(--bordo);
  font-weight: 500;
}
.is-hidden { display: none !important; }
.product-stock {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 12px;
}
.stock-in { color: #2d7a4f; }
.stock-low { color: #d4850a; }
.stock-out { color: var(--gray); }

/* Add to cart button area */
.product-cart-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-details {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-green);
  padding: 6px 0;
  margin-top: auto;
  margin-bottom: 8px;
  border: 1px solid rgba(0,49,40,0.2);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.btn-details:hover {
  background: var(--dark-green);
  color: var(--white);
}
.btn-cart {
  flex: 1;
  height: 38px;
  background: var(--bordo);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition), opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-cart:hover { background: #5a0e23; }
.btn-cart-muted {
  background: var(--gray);
  cursor: default;
}
.btn-cart-muted:hover {
  background: var(--gray);
  transform: none;
  box-shadow: none;
}
.qty-ctrl {
  display: none;
  align-items: center;
  gap: 4px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  flex: 1;
}
.qty-ctrl.active { display: flex; }
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 4px;
  background: var(--white);
  color: var(--dark-green);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--peach); }
.qty-val {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-green);
}
.product-unit {
  font-size: 12px;
  color: var(--gray);
}

/* ===== PROMO SECTION ===== */
.promo-section {
  background: var(--bordo);
  padding: 20px 0;
  overflow: hidden;
}

/* ===== WHOLESALE BANNER ===== */
.wholesale-banner {
  background: var(--dark-green);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.wholesale-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(241,201,148,0.06);
}
.wholesale-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; right: 120px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(241,201,148,0.04);
}
.wholesale-label {
  display: inline-block;
  background: rgba(241,201,148,0.15);
  border: 1px solid rgba(241,201,148,0.3);
  color: var(--peach);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.wholesale-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.wholesale-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 480px;
}
.wholesale-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.wholesale-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.wholesale-feature::before {
  content: '✓';
  color: var(--peach);
  font-weight: 700;
}
.wholesale-ctas { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* ===== PATTERN OVERLAY ===== */
.pattern-bg { position: relative; }
.pattern-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../images/logo.png');
  background-size: 120px 120px; background-repeat: repeat;
  opacity: 0.07; pointer-events: none; z-index: 0;
}
.pattern-bg > * { position: relative; z-index: 1; }

/* ===== MARQUEE ===== */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SPECIAL OFFER ===== */
.special-offer { background: var(--bordo); overflow: visible; position: relative; }
.special-offer .container { position: relative; z-index: 11; background: transparent; }
.special-offer-inner {
  display: grid; grid-template-columns: 1fr;
  align-items: center; gap: 48px; padding: 56px 0;
  background: transparent;
}
.special-offer .fade-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
.special-offer-content {
  flex: 1;
  min-width: 0;
}
.special-offer-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--peach); background: rgba(241,201,148,0.15); border: 1px solid rgba(241,201,148,0.3); padding: 5px 14px; border-radius: 20px; margin-bottom: 16px; }
.special-offer-content h2 {
  width: 80%;
  max-width: 80%;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.2vw, 26px);
  margin: 0 0 12px;
}
.special-offer-btn { flex-shrink: 0; }
.special-offer p { color: rgba(255,255,255,0.78); font-size: 15px; font-weight: 500; line-height: 1.5; margin-bottom: 28px; }
.special-offer-right { position: relative; display: flex; justify-content: center; align-items: center; }
.coupon-card {
  width: min(370px, 100%);
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  position: relative;
}
.coupon-card::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: -12px;
  width: 24px;
  border-radius: 12px;
  background:
    radial-gradient(circle at right center, transparent 8px, var(--bordo) 8px);
  background-size: 24px 24px;
  background-repeat: repeat-y;
}
.coupon-media {
  height: 148px;
  overflow: hidden;
}
.coupon-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coupon-content {
  display: grid;
  padding: 18px 20px 20px;
  gap: 2px;
}
.coupon-kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
}
.coupon-value {
  font-family: var(--font-heading);
  color: var(--bordo);
  font-size: clamp(46px, 5.4vw, 64px);
  line-height: 1;
}
.coupon-note {
  color: var(--dark-green);
  font-size: 15px;
  font-weight: 500;
}
.special-marquee-wrap { background: transparent; border-top: 1px solid rgba(255,255,255,0.12); overflow: hidden; height: 40px; display: flex; align-items: center; position: relative; z-index: 50; }
.special-marquee { display: flex; gap: 0; white-space: nowrap; animation: marquee 20s linear infinite; color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.special-marquee span { padding: 0 32px; }
.special-sep { color: rgba(255,255,255,0.5); }
.section-peach-light {
  background: var(--peach-light);
}
.section-cream-blog {
  background: var(--cream);
}
.lead-centered-compact {
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
}
.lead-centered-wide {
  max-width: 460px;
  margin: 0 auto;
}
.section-header-spacious {
  text-align: center;
  margin-bottom: 56px;
}
.section-header-compact {
  margin-bottom: 40px;
}
.section-title-offset {
  margin-top: 12px;
}
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.25s; }
.fade-delay-3 { transition-delay: 0.4s; }
.fade-delay-4 { transition-delay: 0.55s; }

/* ===== TWO WORLDS (Мастерам/оптовикам) ===== */
.two-worlds-section {
  background: linear-gradient(to right, var(--peach-light) 0 50%, var(--dark-green) 50% 100%);
}
.two-worlds { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.world-card { padding: 72px 56px; display: flex; flex-direction: column; }
.world-card > a.btn { margin-top: auto; }
.world-card-beige { background: var(--peach-light); position: relative; overflow: hidden; }
.world-card-beige::before { content:''; position:absolute; inset:0; background-image:url('../images/logo.png'); background-size:80px 80px; background-repeat:repeat; opacity:0.06; pointer-events:none; }
.world-card-beige > * { position: relative; z-index: 1; }
.world-card-dark { background: var(--dark-green); }
.world-icon { font-size: 48px; margin-bottom: 20px; }
.world-title { margin-bottom: 8px; }
.world-title-bordo { color: var(--bordo); }
.world-title-white { color: var(--white); }
.world-subtitle { font-size: 15px; font-weight: 500; line-height: 1.45; margin-bottom: 32px; }
.world-subtitle { font-size: 16px; font-weight: 500; line-height: 1.55; margin-bottom: 32px; }
.world-subtitle-muted { color: var(--gray); }
.world-subtitle-light { color: rgba(255,255,255,0.65); }
.world-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.world-list-item { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; font-weight: 500; line-height: 1.45; }
.world-list-item-light { color: rgba(255,255,255,0.9); }
.world-check { width: 20px; height: 20px; background: var(--bordo); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; margin-top: 2px; }
.world-check-emerald { background: var(--peach); color: var(--dark-green); }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--cream); }
.how-it-works .section-label { color: var(--bordo); }
.how-it-works .h2 { color: var(--dark-green); }
.how-it-works .step-num,
.how-it-works .step-title,
.how-it-works .step-desc { color: var(--dark-green); }
.how-it-works .step:not(:last-child)::after { color: var(--peach); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { padding: 36px 28px; text-align: center; position: relative; }
.step:not(:last-child)::after { content: '→'; position: absolute; right: -16px; top: 36px; font-size: 24px; font-weight: 700; z-index: 1; }
.step-num { font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.step-icon { font-size: 36px; margin-bottom: 16px; }
.step-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; line-height: 1.35; }
.step-desc { font-size: 14px; font-weight: 500; line-height: 1.5; }

/* ===== PICKUP ===== */
.pickup { background: var(--peach-light); position: relative; }
.pickup-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; }
.pickup-title {
  color: var(--bordo);
  margin-bottom: 28px;
}
.map-placeholder { height: 400px; background: #e8e8e8; border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; cursor: pointer; transition: background var(--transition); border: 2px dashed #ccc; }
.map-placeholder:hover { background: #ddd; }
.map-placeholder-icon { font-size: 48px; }
.map-placeholder-text { font-size: 14px; color: var(--gray); }
.pickup-info h3 { margin-bottom: 24px; }
.pickup-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.pickup-detail-icon { font-size: 20px; flex-shrink: 0; }
.pickup-detail-text { font-size: 14px; color: var(--dark-green); line-height: 1.6; }
.pickup-detail-text strong { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--gray); margin-bottom: 2px; letter-spacing: 0.06em; }
.pickup-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

/* ===== LEAD FORM (Не нашли товар) ===== */
.lead-form-section { background: var(--bordo); overflow: hidden; }
.lead-form-inner { text-align: center; padding: 80px 0; max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.lead-form-title { color: var(--white); margin-bottom: 12px; }
.lead-form-sub { color: rgba(255,255,255,0.78); font-size: 16px; font-weight: 500; margin-bottom: 32px; line-height: 1.6; }
.lead-form {
  display: flex; gap: 12px; align-items: stretch; justify-content: center; flex-wrap: wrap;
  max-width: 520px; margin: 0 auto;
}
.lead-input {
  flex: 0 1 160px; min-width: 120px; max-width: 180px;
  height: 48px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.12);
  color: var(--white); font-size: 16px; font-family: var(--font-ui); font-weight: 500; line-height: 1.2;
  transition: background var(--transition), border-color var(--transition);
}
.lead-input::placeholder { color: rgba(255,255,255,0.6); font-weight: 500; }
.lead-input:focus { outline: none; background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }
.lead-form .btn { height: 48px; padding: 0 24px; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.lead-form-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}
.lead-form-consent input[type="checkbox"] { flex-shrink: 0; accent-color: var(--peach); }
.lead-form-consent a { color: var(--peach); text-decoration: underline; text-underline-offset: 2px; }
.lead-form-consent a:hover { color: var(--white); }

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.benefit-icon {
  width: var(--icon-md);
  height: var(--icon-md);
  border-radius: var(--radius-md);
  background: var(--peach-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform var(--transition);
}
.benefit-card:hover .benefit-icon { transform: scale(1.1) rotate(-5deg); }
.benefit-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-green);
  line-height: 1.35;
}
.benefit-desc {
  font-size: 16px;
  font-weight: 500;
  color: #8c8c8c;
  line-height: 1.55;
}

/* ===== INSPIRATION ===== */
.inspiration { background: var(--cream); }
.inspiration .section-label { color: var(--bordo); }
.inspiration .h2 { color: var(--dark-green); }
.inspiration .section-link { color: var(--bordo); }
.inspiration .lead { color: rgba(0,49,40,0.85); }
.inspiration .section-link:hover { color: var(--peach); }

/* Карусель идей: стрелки + трек */
.inspiration-carousel-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.inspiration-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(0,49,40,0.15);
  color: var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  align-self: center;
}
.inspiration-arrow:hover {
  background: var(--dark-green);
  color: var(--white);
  border-color: var(--dark-green);
  transform: scale(1.05);
}
.inspiration-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.inspiration-arrow:disabled:hover {
  background: var(--white);
  color: var(--dark-green);
  border-color: rgba(0,49,40,0.15);
}
.inspiration-carousel {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.inspiration-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}
.inspiration-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 100%;
  min-width: 0;
  border: 1px solid rgba(0,49,40,0.12);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}
.inspiration-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0,49,40,0.2);
}
.inspiration-img {
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
  aspect-ratio: 4/5;
}
.inspiration-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inspiration-card:hover .inspiration-img img { transform: scale(1.04); }
.inspiration-img img { transition: transform 0.4s ease; }
.inspiration-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,49,40,0.85) 0%, rgba(0,49,40,0.3) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.inspiration-tag {
  display: inline-block;
  background: var(--bordo);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  width: fit-content;
}
.inspiration-title {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.inspiration-desc {
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 2 карточки на планшетах */
@media (min-width: 480px) {
  .inspiration-track { gap: 20px; }
  .inspiration-card { flex: 0 0 calc((100% - 20px) / 2); }
}

/* 3 карточки на средних экранах */
@media (min-width: 768px) {
  .inspiration-track { gap: 20px; }
  .inspiration-card { flex: 0 0 calc((100% - 40px) / 3); }
}

/* 4 карточки на больших экранах */
@media (min-width: 1024px) {
  .inspiration-carousel-wrap { gap: 16px; }
  .inspiration-track { gap: 20px; }
  .inspiration-card { flex: 0 0 calc((100% - 60px) / 4); }
  .inspiration-arrow { width: 48px; height: 48px; min-width: 48px; }
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: #f0a500;
}
.review-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark-green);
  margin-bottom: 20px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.av1 { background: var(--bordo); }
.av2 { background: var(--dark-green); }
.av3 { background: #7b5c3a; }
.review-name { font-size: 15px; font-weight: 500; line-height: 1.35; }
.review-date { font-size: 13px; font-weight: 500; line-height: 1.4; color: #8f8f8f; }

/* ===== BLOG ===== */
.blog { background: var(--white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition), opacity var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--gray-light);
}
.blog-card .blog-excerpt {
  flex: 1;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--gray);
}
.blog-category {
  background: var(--peach);
  color: var(--dark-green);
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 700;
}
.blog-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-green);
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-excerpt {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 14px;
}
.blog-read-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--bordo);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.blog-read-more:hover { gap: 8px; }
.blog-read-more::after { content: '→'; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.fade-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }
/* special-offer: всегда видимы — иначе смена opacity ломает stacking и скрывает маракушу */
.special-offer .fade-left,
.special-offer .fade-right { opacity: 1; transform: none; }
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE: HERO + LANDING BLOCKS ===== */

/* --- Tablet (768–1024px) --- */
@media (max-width: 1024px) {
  /* Hero: убираем визуал, центрируем контент */
  .hero { min-height: auto; }
  .hero-visual { display: none; }
  .hero-inner { padding: 56px 0; justify-content: center; }
  .hero .hero-content { text-align: center; }
  .hero-intro-card { padding: 28px 32px 32px; }
  .hero-intro-card .hero-h1 { font-size: clamp(20px, 2.6vw, 30px); }
  .hero-search { max-width: 440px; margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-form { flex-direction: column; max-width: 320px; }
  .lead-form .lead-input { max-width: none; flex: none; width: 100%; }

  /* Two Worlds: vertical split background fix */
  .two-worlds-section {
    background: none;
  }

  /* Special offer: кнопку под текст */
  .special-offer .fade-left {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  /* Hero: компактный для мобильных */
  .hero { min-height: auto; }
  .hero-inner { padding: 40px 0; gap: 24px; }
  .hero-concept1 .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-intro-card {
    padding: 24px 20px 28px;
    margin-bottom: 20px;
  }
  .hero-intro-card .hero-h1 {
    font-size: 22px;
    line-height: 1.25;
  }
  .hero-intro-card .hero-intro-desc {
    font-size: 14px;
    line-height: 1.5;
  }
  .hero-search {
    max-width: 100%;
    margin-bottom: 24px;
  }
  .hero-search-input {
    height: 50px;
    font-size: 15px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Prevent horizontal overflow from pseudo-elements */
  .wholesale-banner,
  .hero,
  .hero-content,
  .lead-form-section,
  .special-offer {
    overflow: hidden;
  }

  /* Special offer: stack on mobile */
  .special-offer .fade-left {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .special-offer-content h2 {
    width: 100%;
    max-width: 100%;
  }
  .special-offer-btn {
    width: 100%;
    justify-content: center;
  }

  /* Категории: 3 col compact */
  .cat-card { padding: 14px 8px; gap: 8px; }
  .cat-icon { width: 56px; height: 56px; }
  .cat-name { font-size: 12px; }
  .cat-count { font-size: 10px; }

  /* Steps: убираем стрелки, компактнее */
  .step { padding: 24px 16px; }

  /* Two Worlds: вертикальный layout */
  .two-worlds-section {
    background: none;
  }
  .world-card-beige { background: var(--peach-light); }
  .world-card-dark { background: var(--dark-green); }

  /* Inspiration: hide arrows on mobile, enable swipe */
  .inspiration-arrow { display: none; }
  .inspiration-carousel { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .inspiration-card { scroll-snap-align: start; }

  /* Product cards: wishlist always visible on touch */
  .product-wish-btn { opacity: 1; }

  /* Reviews: horizontal scroll on mobile */
  .reviews-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .review-card {
    padding: 20px;
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  /* Blog: компактнее */
  .blog-grid { gap: 16px; }

  /* Benefits: 2 col + horizontal card layout */
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .benefit-card { flex-direction: row; align-items: center; }
  .benefit-icon { width: 48px; height: 48px; font-size: 24px; flex-shrink: 0; }
  .benefit-title { font-size: 15px; }
  .benefit-desc { font-size: 14px; }

  /* Pickup: компактная карта */
  .map-placeholder { height: 220px; }
  .pickup-btns .btn { width: 100%; justify-content: center; }

  /* Lead form: full-width */
  .lead-form-inner { padding: 56px 0; }
  .lead-form { max-width: 100%; }
  .lead-input { max-width: none; flex: none; width: 100%; }
}

/* --- Small mobile (≤480px) --- */
@media (max-width: 480px) {
  .hero-inner { padding: 32px 0; }
  .hero-intro-card {
    padding: 20px 16px 24px;
    border-radius: var(--radius-sm);
  }
  .hero-intro-card .hero-h1 { font-size: 20px; }
  .hero-intro-card .hero-intro-desc { font-size: 13px; }
  .hero-search-input { height: 46px; font-size: 14px; }

  /* Product cards: минимальные отступы, защита от overflow на 320px */
  .product-card { min-width: 0; }
  .product-card-body { padding: 10px 12px 12px; min-width: 0; }
  .product-name { font-size: 13px; min-height: auto; overflow-wrap: break-word; }
  .product-art { font-size: 10px; }
  .product-price { font-size: 16px; }
  .btn-cart { font-size: 12px; height: 34px; }

  /* Категории: ещё компактнее */
  .cat-card { padding: 10px 6px; gap: 6px; }
  .cat-icon { width: 44px; height: 44px; }
  .cat-name { font-size: 11px; }

  /* Benefits: 1 column on very small screens */
  .benefits-grid { grid-template-columns: 1fr; gap: 16px; }
  .benefit-card { flex-direction: row; align-items: center; }
  .benefit-icon { font-size: 22px; flex-shrink: 0; }

  /* Two Worlds: compact text */
  .world-card { padding: 32px 16px; }
  .world-list-item { font-size: 14px; }
  .world-icon { font-size: 36px; margin-bottom: 12px; }

  /* Steps: compact */
  .step { padding: 16px 12px; }
  .step-icon { font-size: 28px; margin-bottom: 10px; }
  .step-title { font-size: 14px; }
  .step-desc { font-size: 13px; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-left,
  .fade-right,
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .special-marquee { animation: none; }
  .inspiration-track { transition: none; }
}
