@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Hubballi&family=Raleway:wght@400;500;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: 'Raleway', sans-serif;
  overflow-x: clip;
}

html {
  overflow-x: clip;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: auto;
  height: auto;
  margin: 0 auto;
  padding-top: 12px;
  padding-bottom: 64px;
  background: #ffffff;
  overflow-x: clip;
}

.hero-editorial {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 28px 36px;
  text-align: center;
}

.hero-editorial h1 {
  margin: 0 0 22px;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: #000000;
}

.hero-intro {
  margin: 0 auto;
  max-width: 500px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.72;
  color: #4a4a4a;
}

.products-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  overflow-x: clip;
}

.bg-blur {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 0;
  width: min(1180px, 108%);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  opacity: 0.42;
}

.products {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(16px, 2.2vw, 36px);
  row-gap: clamp(36px, 4vw, 48px);
  width: 100%;
  max-width: none;
  margin: 16px 0 0;
  padding: 30px clamp(16px, 2.5vw, 40px) 32px;
  align-items: start;
  box-sizing: border-box;
}

.product {
  position: relative;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  --text-content-left: clamp(12px, 1.5vw, 24px);
  --candle-visual-width: 146px;
}

.product img {
  display: block;
  width: 188px;
  max-width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.candle-visual-wrap {
  position: relative;
  width: 188px;
  max-width: 100%;
  margin-left: var(--text-content-left);
}

.product-badges {
  position: absolute;
  left: calc(100% + 30%);
  top: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  padding: 0;
  pointer-events: none;
  transform: rotate(90deg);
  transform-origin: top left;
}

.product-badges--stacked {
  gap: 22px;
}

.product-tag {
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  font-family: 'Raleway', sans-serif;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8a8a;
  white-space: nowrap;
}

.product-tag--bestseller {
  margin: 0;
  padding: 0 0 0 14px;
  border-top: none;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  color: #111111;
  font-weight: 500;
  letter-spacing: 0.14em;
}

/* Цветовые модификаторы не используются — единый editorial-стиль */
.product-tag--fruity,
.product-tag--fresh,
.product-tag--spicy,
.product-tag--fougere,
.product-tag--gourmand,
.product-tag--woody {
  color: #8a8a8a;
}

.product .candle-link {
  display: block;
  text-decoration: none;
}

.product .candle-link:hover img,
.product .candle-link:focus-visible img {
  transform: scale(1.06);
}

.product h2 {
  margin: 14px 0 0;
  margin-left: var(--text-content-left);
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: #000000;
  white-space: nowrap;
}

.product p.product-state {
  margin: 8px 0 0;
  margin-left: var(--text-content-left);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.65;
  color: #4a4a4a;
  max-width: 100%;
}

.product .product-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  margin-top: 14px;
  margin-left: var(--text-content-left);
}

/* 3 в ряд: центральная свеча под логотипом, боковые симметрично */
@media (min-width: 1101px) {
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(16px, 2.2vw, 36px);
    padding-inline: clamp(16px, 2.5vw, 40px);
  }

  .product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    --text-content-left: 0;
  }

  .candle-visual-wrap {
    margin-left: 0;
  }

  .product h2,
  .product p.product-state,
  .product .product-actions {
    margin-left: 0;
    width: 100%;
    max-width: min(100%, 300px);
  }

  .product .product-actions {
    justify-content: center;
  }
}

@media (max-width: 1100px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(14px, 2vw, 28px);
    row-gap: 40px;
    padding-inline: clamp(16px, 3vw, 32px);
  }

  .product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    --text-content-left: 0;
  }

  .candle-visual-wrap {
    position: relative;
    width: 188px;
    max-width: 100%;
    margin-inline: auto;
    margin-left: auto;
  }

  .product img {
    display: block;
    margin-inline: auto;
  }

  .product-badges {
    position: absolute;
    left: calc(100% + 22%);
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    margin: 0;
    width: auto;
    max-width: none;
    transform: rotate(90deg);
    transform-origin: top left;
  }

  .product-tag--bestseller {
    margin: 0;
    padding: 0 0 0 14px;
    border-top: none;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
  }

  .product h2 {
    margin-left: 0;
    white-space: normal;
  }

  .product p.product-state {
    margin-left: 0;
  }

  .product h2,
  .product p.product-state,
  .product .product-actions {
    width: 100%;
    max-width: min(100%, 300px);
  }

  .product .product-actions {
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 1200px) {
  .hero {
    width: 100%;
    max-width: 1200px;
    min-height: auto;
    height: auto;
  }

  .hero-editorial {
    padding-top: 32px;
    padding-bottom: 28px;
  }
}

@media (max-width: 768px) {
  .hero {
    max-width: 100%;
    min-height: auto;
    height: auto;
    padding-bottom: 40px;
  }

  .hero-editorial {
    padding: 28px 20px 24px;
  }

  .hero-editorial h1 {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .hero-intro {
    max-width: 100%;
    font-size: 13.5px;
    line-height: 1.65;
  }

  .bg-blur {
    width: min(1180px, 100%);
    top: 38%;
    opacity: 0.38;
  }

  .products {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 48px;
    margin-top: 8px;
    margin-inline: auto;
    padding: 0 20px 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product {
    --badge-gutter: clamp(40px, 12vw, 56px);
    max-width: min(352px, 100%);
    width: 100%;
    margin-inline: auto;
    justify-self: center;
    padding-inline: var(--badge-gutter);
    box-sizing: border-box;
  }

  .candle-visual-wrap {
    margin-inline: auto;
  }

  .product-badges {
    left: calc(100% + 10px);
  }

  .product img {
    width: 188px;
    height: 230px;
    margin-inline: auto;
  }

  .product a.product-cart-link--editorial {
    min-height: 40px;
    font-size: 12.5px;
    padding: 0 18px;
  }
}

@media (max-width: 480px) {
  .hero-editorial {
    padding: 24px 16px 20px;
  }

  .hero-editorial h1 {
    font-size: 24px;
  }

  .hero-intro {
    font-size: 13px;
    line-height: 1.62;
  }

  .bg-blur {
    width: min(1180px, 100%);
    top: 36%;
    opacity: 0.35;
  }

  .products {
    row-gap: 48px;
    padding-bottom: 32px;
  }
}

/* Блок под «К вашим услугам» — главная */
body.home-page .site-prefooter--note .site-prefooter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

body.home-page .site-prefooter--note .site-prefooter-text--lead {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 72px;
  text-align: center;
  text-wrap: balance;
}

body.home-page .site-prefooter--note .site-prefooter-grid--note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  justify-items: stretch;
  width: 100%;
  max-width: min(980px, 100%);
  margin: 0 auto;
  gap: clamp(32px, 4vw, 56px);
  padding-inline: clamp(12px, 2vw, 24px);
  box-sizing: border-box;
}

body.home-page .site-prefooter--note .site-prefooter-item {
  display: block;
  text-align: center;
  width: 100%;
  max-width: none;
}

body.home-page .site-prefooter--note .site-prefooter-item .site-prefooter-label,
body.home-page .site-prefooter--note .site-prefooter-item .site-prefooter-text {
  display: block;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  text-wrap: normal;
}

@media (max-width: 900px) {
  body.home-page .site-prefooter--note .site-prefooter-inner {
    align-items: stretch;
    width: 100%;
  }

  body.home-page .site-prefooter--note .site-prefooter-text--lead {
    padding-bottom: 56px;
    max-width: min(560px, 92vw);
    align-self: center;
  }

  body.home-page .site-prefooter--note .site-prefooter-grid--note {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 44px;
    padding-inline: 0;
    justify-items: stretch;
  }

  body.home-page .site-prefooter--note .site-prefooter-item {
    display: block;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 560px) {
  body.home-page .site-prefooter--note .site-prefooter-item {
    display: block;
    width: 100%;
    max-width: none;
  }

  body.home-page .site-prefooter--note .site-prefooter-grid--note {
    width: 100%;
    max-width: 100%;
  }

  body.home-page .site-prefooter--note .site-prefooter-item .site-prefooter-label,
  body.home-page .site-prefooter--note .site-prefooter-item .site-prefooter-text {
    display: block;
    max-width: none;
    width: 100%;
    text-wrap: normal;
  }
}
