body.chai25-home-page {
  --chai-bg: #fff8ea;
  --chai-card: #fffaf1;
  --chai-card-2: #fff7e8;
  --chai-soft: #f3e5cf;
  --chai-border: #e8d8bf;
  --chai-border-2: #ead8bd;
  --chai-text: #2b1b10;
  --chai-muted: #7c6b5b;
  --chai-brown: #7a4f2b;
  --chai-brown-dark: #5b3519;
  --chai-green: #6f8f3f;
  --chai-yellow: #f1a91b;
  --chai-shadow: 0 18px 46px rgba(84, 49, 21, .08);
  background: var(--chai-bg);
  color: var(--chai-text);
  overflow-x: hidden;
}

body.chai25-home-page .wp-site-blocks,
body.chai25-home-page main.wp-block-group {
  background: transparent !important;
}

body.chai25-home-page main.wp-block-group {
  max-width: none !important;
  width: 100% !important;
  margin-top: 0 !important;
  padding: 24px 18px 58px;
  box-sizing: border-box;
  overflow-x: hidden;
}

body.chai25-home-page .entry-content,
body.chai25-home-page .wp-block-post-content {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow-x: hidden;
}

body.chai25-home-page .wp-block-post-content > * {
  box-sizing: border-box;
}

/* Заголовок страницы на главной скрываем: первый экран уже содержит главный H1 */
body.chai25-home-page main > .wp-block-post-title,
body.chai25-home-page .wp-block-post-content > .wp-block-post-title {
  display: none !important;
}

body.chai25-home-page .wp-block-post-title::before {
  display: none;
  content: none;
}

/* Общая карточка секции */
body.chai25-home-page .chai25-home-section {
  width: min(1280px, calc(100vw - 36px)) !important;
  max-width: min(1280px, calc(100vw - 36px)) !important;
  margin: 24px auto 0 !important;
  padding: clamp(18px, 3vw, 30px) !important;
  border: 1px solid var(--chai-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 79, 43, .07), transparent 28%),
    var(--chai-card);
  box-shadow: var(--chai-shadow);
  box-sizing: border-box;
  overflow: hidden;
}

body.chai25-home-page .chai25-home-section h2,
body.chai25-home-page .chai25-home-section h3 {
  color: var(--chai-text);
  font-weight: 950;
  letter-spacing: -0.035em;
}

body.chai25-home-page .chai25-home-section h2 {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.02;
}

body.chai25-home-page .chai25-home-section h3 {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.08;
}

body.chai25-home-page .chai25-home-section p {
  color: var(--chai-muted);
  font-size: 16px;
  line-height: 1.58;
}

body.chai25-home-page .chai25-home-section p:last-child {
  margin-bottom: 0;
}

body.chai25-home-page .chai25-home-section a {
  color: var(--chai-brown);
  text-underline-offset: 3px;
}

body.chai25-home-page .chai25-home-section img {
  max-width: 100%;
  height: auto;
}

/* Главный заголовок внутри контента */
body.chai25-home-page .wp-block-post-content > h1:first-child,
body.chai25-home-page .wp-block-post-content > h2:first-child,
body.chai25-home-page .chai25-home-hero-title {
  width: min(1280px, calc(100vw - 36px)) !important;
  max-width: min(1280px, calc(100vw - 36px)) !important;
  margin: 0 auto 22px !important;
  color: var(--chai-text);
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: .98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

body.chai25-home-page .wp-block-post-content > h1:first-child::before,
body.chai25-home-page .wp-block-post-content > h2:first-child::before,
body.chai25-home-page .chai25-home-hero-title::before {
  content: "🍵";
  display: inline-block;
  margin-right: .18em;
  font-size: .48em;
  vertical-align: .12em;
}


/* v5: антискачок первого экрана.
 * Причина скачка: у блока стоит is-not-stacked-on-mobile, WordPress сначала рисует 4 картинки в одну линию,
 * а потом JS добавляет chai25-home-hero-gallery и CSS перестраивает их в сетку.
 * Эти правила работают сразу по порядку блока, ещё до JS.
 */
body.chai25-home-page .wp-block-post-content > .wp-block-group:first-of-type {
  width: min(1280px, calc(100vw - 36px)) !important;
  max-width: min(1280px, calc(100vw - 36px)) !important;
  margin: 24px auto 0 !important;
  padding: 14px !important;
  border: 1px solid var(--chai-border);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, .92), rgba(248, 237, 220, .9)),
    var(--chai-card);
  box-shadow: var(--chai-shadow);
  box-sizing: border-box;
  overflow: hidden;
}

body.chai25-home-page .wp-block-post-content > .wp-block-group:first-of-type > .wp-block-columns,
body.chai25-home-page .wp-block-post-content > .wp-block-group:first-of-type .wp-block-columns:first-of-type {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.chai25-home-page .wp-block-post-content > .wp-block-group:first-of-type .wp-block-column {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  flex-basis: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.chai25-home-page .wp-block-post-content > .wp-block-group:first-of-type figure {
  margin: 0 !important;
}

body.chai25-home-page .wp-block-post-content > .wp-block-group:first-of-type img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 22px !important;
  border: 1px solid var(--chai-border) !important;
  box-shadow: 0 10px 26px rgba(84, 49, 21, .07);
}

@media (max-width: 980px) {
  body.chai25-home-page .wp-block-post-content > .wp-block-group:first-of-type > .wp-block-columns,
  body.chai25-home-page .wp-block-post-content > .wp-block-group:first-of-type .wp-block-columns:first-of-type {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.chai25-home-page .wp-block-post-content > .wp-block-group:first-of-type {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  body.chai25-home-page .wp-block-post-content > .wp-block-group:first-of-type > .wp-block-columns,
  body.chai25-home-page .wp-block-post-content > .wp-block-group:first-of-type .wp-block-columns:first-of-type {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.chai25-home-page .wp-block-post-content > .wp-block-group:first-of-type img {
    border-radius: 14px !important;
  }
}

/* Первый визуальный блок */
body.chai25-home-page .chai25-home-hero-gallery {
  margin-top: 0 !important;
  padding: 14px !important;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, .92), rgba(248, 237, 220, .9)),
    var(--chai-card);
}

body.chai25-home-page .chai25-home-hero-gallery .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px !important;
  margin: 0 !important;
}

body.chai25-home-page .chai25-home-hero-gallery .wp-block-column {
  min-width: 0;
  margin: 0 !important;
}

body.chai25-home-page .chai25-home-hero-gallery figure {
  margin: 0 !important;
}

body.chai25-home-page .chai25-home-hero-gallery img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px !important;
  border: 1px solid var(--chai-border) !important;
  box-shadow: 0 10px 26px rgba(84, 49, 21, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}

body.chai25-home-page .chai25-home-hero-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(84, 49, 21, .11);
}

/* Новинки */
body.chai25-home-page .chai25-home-new > .wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(20px, 3vw, 34px) !important;
  align-items: stretch !important;
  margin: 0 !important;
}

body.chai25-home-page .chai25-home-new > .wp-block-columns > .wp-block-column {
  min-width: 0;
  flex-basis: auto !important;
}

body.chai25-home-page .chai25-home-new .wp-block-gallery,
body.chai25-home-page .chai25-home-new figure {
  margin: 0 !important;
}

body.chai25-home-page .chai25-home-new .wp-block-gallery img,
body.chai25-home-page .chai25-home-new > .wp-block-columns > .wp-block-column:first-child img {
  width: 100% !important;
  height: auto !important;
  max-height: 560px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(84, 49, 21, .08);
}

/* Товары на главной */
body.chai25-home-page .chai25-home-new .wp-block-woocommerce-product-collection {
  margin: 0 !important;
  width: 100% !important;
}

body.chai25-home-page .chai25-home-new .wc-block-product-template,
body.chai25-home-page .chai25-home-new .wp-block-woocommerce-product-template {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.chai25-home-page .chai25-home-new .wc-block-product {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid var(--chai-border);
  border-radius: 20px;
  background: rgba(255, 248, 234, .74);
  box-shadow: 0 12px 26px rgba(84, 49, 21, .05);
  box-sizing: border-box;
}

body.chai25-home-page .chai25-home-new .wc-block-components-product-image,
body.chai25-home-page .chai25-home-new .wc-block-grid__product-image {
  margin: 0 !important;
  overflow: hidden;
  border-radius: 16px;
  background: var(--chai-soft);
}

body.chai25-home-page .chai25-home-new .wc-block-components-product-image a,
body.chai25-home-page .chai25-home-new .wc-block-grid__product-image a {
  display: block;
  line-height: 0;
}

body.chai25-home-page .chai25-home-new .wc-block-components-product-image img,
body.chai25-home-page .chai25-home-new .wc-block-grid__product-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  border-radius: 16px;
}

body.chai25-home-page .chai25-home-new .wp-block-post-title {
  width: auto !important;
  max-width: none !important;
  margin: 2px 0 0 !important;
  color: var(--chai-text);
  font-size: 16px !important;
  line-height: 1.16 !important;
  letter-spacing: -0.015em;
  text-align: center !important;
}

body.chai25-home-page .chai25-home-new .wp-block-post-title::before {
  display: none;
  content: none;
}

body.chai25-home-page .chai25-home-new .wp-block-post-title a {
  color: var(--chai-text);
  text-decoration: none;
}

body.chai25-home-page .chai25-home-new .wp-block-woocommerce-product-price {
  margin: auto 0 0 !important;
  color: var(--chai-text);
  font-size: 18px !important;
  font-weight: 950;
  text-align: center !important;
}

body.chai25-home-page .chai25-home-new .wc-block-components-product-button {
  margin: 0 !important;
}

body.chai25-home-page .chai25-home-new .wc-block-components-product-button__button {
  width: 100%;
  min-height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 14px !important;
  border: 1px solid var(--chai-brown) !important;
  background: var(--chai-brown) !important;
  color: #fffaf0 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(95, 55, 21, .16);
}

/* Описание магазина */
body.chai25-home-page .chai25-home-intro > .wp-block-columns,
body.chai25-home-page .chai25-home-why,
body.chai25-home-page .chai25-home-shop > .wp-block-columns,
body.chai25-home-page .chai25-home-delivery .wp-block-columns {
  display: grid !important;
  gap: clamp(18px, 3vw, 30px) !important;
}

body.chai25-home-page .chai25-home-intro > .wp-block-columns {
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  align-items: center !important;
  margin: 0 !important;
}

body.chai25-home-page .chai25-home-intro .wp-block-column {
  min-width: 0;
  flex-basis: auto !important;
}

body.chai25-home-page .chai25-home-intro .display_none_mobile img,
body.chai25-home-page .chai25-home-intro figure img {
  width: 100% !important;
  height: auto !important;
  max-height: 540px;
  object-fit: contain;
  border-radius: 24px;
  background: var(--chai-soft);
}

body.chai25-home-page .chai25-home-intro .wp-block-column:nth-child(2) {
  padding: clamp(16px, 2.6vw, 28px);
  border: 1px solid var(--chai-border-2);
  border-radius: 22px;
  background: rgba(255, 248, 234, .72);
}

body.chai25-home-page .chai25-home-intro h3 {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.02;
}

/* Почему покупают */
body.chai25-home-page .chai25-home-why {
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
  align-items: center !important;
}

body.chai25-home-page .chai25-home-why > .wp-block-column {
  min-width: 0;
  flex-basis: auto !important;
}

body.chai25-home-page .chai25-home-why .wp-block-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px !important;
  margin: 18px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.chai25-home-page .chai25-home-why .wp-block-list li {
  position: relative;
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 14px 16px 14px 46px !important;
  border: 1px solid var(--chai-border-2);
  border-radius: 16px;
  background: rgba(255, 248, 234, .82);
  color: var(--chai-text);
  font-size: 15px;
  line-height: 1.42;
  font-weight: 760;
  text-align: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

body.chai25-home-page .chai25-home-why .wp-block-list li strong,
body.chai25-home-page .chai25-home-why .wp-block-list li b,
body.chai25-home-page .chai25-home-why .wp-block-list li span,
body.chai25-home-page .chai25-home-why .wp-block-list li em,
body.chai25-home-page .chai25-home-why .wp-block-list li a {
  display: inline !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

body.chai25-home-page .chai25-home-why .wp-block-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--chai-green);
  color: #fffaf0;
  font-size: 13px;
  font-weight: 950;
}

body.chai25-home-page .chai25-home-why .wp-block-list li br {
  display: none !important;
}

body.chai25-home-page .chai25-home-why > .wp-block-column:nth-child(2) img {
  width: min(280px, 100%) !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 16px 22px rgba(84, 49, 21, .12));
}

/* Соцсети специально НЕ стилизуем. */
body.chai25-home-page .chai25-home-why .wp-block-social-links {
  margin-top: 18px !important;
}

/* Магазин / самовывоз */
body.chai25-home-page .chai25-home-shop {
  padding: clamp(18px, 3vw, 28px) !important;
  overflow: visible !important;
}

body.chai25-home-page .chai25-home-shop > .wp-block-columns:first-child {
  margin-bottom: 14px !important;
}

/* Два независимых столбца без наложения */
body.chai25-home-page .chai25-home-shop > .wp-block-columns:nth-child(2),
body.chai25-home-page .chai25-home-shop .wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(300px, 460px) minmax(280px, 420px);
  gap: clamp(24px, 4vw, 46px) !important;
  align-items: start !important;
  justify-content: center !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 980px !important;
}

body.chai25-home-page .chai25-home-shop .wp-block-column {
  min-width: 0 !important;
  flex-basis: auto !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Левая карточка: уже и выше, карта вытянута вертикально */
body.chai25-home-page .chai25-home-shop .wp-block-column:first-child {
  position: relative;
  z-index: 2;
  width: 100% !important;
  max-width: 460px !important;
  padding: 20px !important;
  border: 1px solid var(--chai-border-2);
  border-radius: 20px;
  background: rgba(255, 248, 234, .94);
  box-shadow: 0 12px 28px rgba(84, 49, 21, .07);
  box-sizing: border-box;
}

body.chai25-home-page .chai25-home-shop .wp-block-column:nth-child(2) {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: 420px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0 !important;
  margin: 0 auto !important;
}

body.chai25-home-page .chai25-home-shop h2,
body.chai25-home-page .chai25-home-shop h3 {
  text-align: left !important;
}

body.chai25-home-page .chai25-home-shop p {
  text-align: left !important;
}

/* Карта */
body.chai25-home-page .chai25-home-shop .wp-block-column:first-child iframe {
  display: block !important;
  width: 100% !important;
  height: clamp(360px, 44vw, 520px) !important;
  min-height: 360px !important;
  max-height: 520px !important;
  border: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 28px rgba(84, 49, 21, .08);
}

/* Видео / фото справа: не обрезаем и не растягиваем */
body.chai25-home-page .chai25-home-shop .wp-block-column:nth-child(2) .wp-block-video,
body.chai25-home-page .chai25-home-shop .wp-block-column:nth-child(2) figure.wp-block-video,
body.chai25-home-page .chai25-home-shop .wp-block-column:nth-child(2) .wp-block-image,
body.chai25-home-page .chai25-home-shop .wp-block-column:nth-child(2) figure.wp-block-image {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  border-radius: 20px;
  overflow: hidden;
}

body.chai25-home-page .chai25-home-shop .wp-block-column:nth-child(2) video,
body.chai25-home-page .chai25-home-shop .wp-block-column:nth-child(2) iframe {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 20px;
  object-fit: contain !important;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(84, 49, 21, .08);
}

body.chai25-home-page .chai25-home-shop .wp-block-column:nth-child(2) .wp-block-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(84, 49, 21, .08);
}

body.chai25-home-page .chai25-home-shop figcaption {
  width: 100%;
  margin: 8px 0 0 !important;
  color: var(--chai-muted);
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}

body.chai25-home-page .chai25-home-shop .wp-block-group {
  padding: 0 !important;
  background: transparent !important;
}

/* Доставка */
body.chai25-home-page .chai25-home-delivery .wp-block-group.alignfull {
  padding: 0 !important;
  background: transparent !important;
}

body.chai25-home-page .chai25-home-delivery .wp-block-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px !important;
}

body.chai25-home-page .chai25-home-delivery .wp-block-column {
  min-width: 0;
  padding: 18px !important;
  border: 1px solid var(--chai-border-2);
  border-radius: 20px;
  background: rgba(255, 248, 234, .80) !important;
  box-shadow: 0 10px 22px rgba(84, 49, 21, .04);
}

body.chai25-home-page .chai25-home-delivery .wp-block-column h3::before {
  content: "🚚";
  display: inline-flex;
  margin-right: 8px;
}

body.chai25-home-page .chai25-home-delivery .wp-block-column:nth-child(2) h3::before {
  content: "🎁";
}

body.chai25-home-page .chai25-home-delivery .wp-block-column:nth-child(3) h3::before {
  content: "📦";
}

/* Упаковка и подарки */
body.chai25-home-page .chai25-home-pack .wp-block-separator {
  border-color: var(--chai-border);
  margin: 30px 0 !important;
}

body.chai25-home-page .chai25-home-pack .wp-block-gallery {
  display: grid !important;
  gap: 10px !important;
  margin: 16px 0 !important;
}

body.chai25-home-page .chai25-home-pack .wp-block-gallery.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.chai25-home-page .chai25-home-pack .wp-block-gallery.columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.chai25-home-page .chai25-home-pack .wp-block-gallery figure,
body.chai25-home-page .chai25-home-pack .wp-block-gallery .wp-block-image {
  width: auto !important;
  margin: 0 !important;
}

body.chai25-home-page .chai25-home-pack .wp-block-gallery img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: var(--chai-soft);
  box-shadow: 0 10px 22px rgba(84, 49, 21, .05);
}

body.chai25-home-page .chai25-home-pack figcaption {
  margin-top: 8px !important;
  color: var(--chai-muted);
  font-size: 12px;
  line-height: 1.32;
  text-align: left;
}

/* Отзывы/карта */
body.chai25-home-page .chai25-home-reviews iframe {
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(84, 49, 21, .08);
}

body.chai25-home-page .chai25-home-reviews .wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);
  gap: 22px !important;
}


/* v2: принудительные исправления читаемости */
body.chai25-home-page .chai25-home-why {
  overflow: visible !important;
}

body.chai25-home-page .chai25-home-why > .wp-block-column:first-child {
  min-width: 0 !important;
}

body.chai25-home-page .chai25-home-why .wp-block-list li * {
  letter-spacing: normal !important;
}

/* Если на странице остался системный заголовок, скрываем его */
body.chai25-home-page h1.wp-block-post-title,
body.chai25-home-page .entry-title {
  display: none !important;
}

/* Пустые абзацы */
body.chai25-home-page .wp-block-post-content > p:empty,
body.chai25-home-page .wp-block-post-content > p.chai25-home-empty {
  display: none !important;
}


/* v3: защита мобильной версии от смещения вправо */
@media (max-width: 760px) {
  body.chai25-home-page,
  body.chai25-home-page .wp-site-blocks,
  body.chai25-home-page main.wp-block-group,
  body.chai25-home-page .entry-content,
  body.chai25-home-page .wp-block-post-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body.chai25-home-page main.wp-block-group {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.chai25-home-page .wp-block-post-content > *,
  body.chai25-home-page .chai25-home-section,
  body.chai25-home-page .chai25-home-hero-title {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Мобильная версия */
@media (max-width: 980px) {
  body.chai25-home-page .chai25-home-hero-gallery .wp-block-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.chai25-home-page .chai25-home-new > .wp-block-columns,
  body.chai25-home-page .chai25-home-intro > .wp-block-columns,
  body.chai25-home-page .chai25-home-why,
  body.chai25-home-page .chai25-home-shop > .wp-block-columns:nth-child(2),
  body.chai25-home-page .chai25-home-delivery .wp-block-columns,
  body.chai25-home-page .chai25-home-reviews .wp-block-columns {
    grid-template-columns: 1fr !important;
  }

  body.chai25-home-page .chai25-home-why .wp-block-list {
    grid-template-columns: 1fr;
  }

  body.chai25-home-page .chai25-home-pack .wp-block-gallery.columns-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.chai25-home-page main.wp-block-group {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 10px 42px !important;
  }

  body.chai25-home-page .wp-block-post-content > h1:first-child,
  body.chai25-home-page .wp-block-post-content > h2:first-child,
  body.chai25-home-page .chai25-home-hero-title,
  body.chai25-home-page .chai25-home-section {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.chai25-home-page .wp-block-post-content > h1:first-child,
  body.chai25-home-page .wp-block-post-content > h2:first-child,
  body.chai25-home-page .chai25-home-hero-title {
    font-size: 38px;
    line-height: 1.02;
    margin-bottom: 14px !important;
  }

  body.chai25-home-page .chai25-home-section {
    padding: 14px !important;
    border-radius: 20px;
  }

  body.chai25-home-page .chai25-home-hero-gallery {
    padding: 10px !important;
  }

  body.chai25-home-page .chai25-home-hero-gallery .wp-block-columns {
    gap: 8px !important;
  }

  body.chai25-home-page .chai25-home-hero-gallery img {
    border-radius: 16px !important;
  }

  body.chai25-home-page .chai25-home-new .wc-block-product-template,
  body.chai25-home-page .chai25-home-new .wp-block-woocommerce-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }

  body.chai25-home-page .chai25-home-new .wc-block-product {
    padding: 9px !important;
    border-radius: 16px;
  }

  body.chai25-home-page .chai25-home-new .wp-block-post-title {
    font-size: 13px !important;
    line-height: 1.18 !important;
  }

  body.chai25-home-page .chai25-home-new .wp-block-woocommerce-product-price {
    font-size: 15px !important;
  }

  body.chai25-home-page .chai25-home-new .wc-block-components-product-button__button {
    min-height: 38px;
    font-size: 12px !important;
    border-radius: 12px !important;
  }

  body.chai25-home-page .chai25-home-section h2 {
    font-size: 28px;
  }

  body.chai25-home-page .chai25-home-section h3 {
    font-size: 22px;
  }

  body.chai25-home-page .chai25-home-section p {
    font-size: 14px;
    line-height: 1.52;
  }

  body.chai25-home-page .chai25-home-intro .display_none_mobile {
    display: none !important;
  }

  body.chai25-home-page .chai25-home-why .wp-block-list li {
    padding: 11px 11px 11px 40px;
    font-size: 13px;
  }

  body.chai25-home-page .chai25-home-why .wp-block-list {
    grid-template-columns: 1fr !important;
  }

  body.chai25-home-page .chai25-home-why .wp-block-list li {
    line-height: 1.4;
    text-align: left !important;
  }

  body.chai25-home-page .chai25-home-shop > .wp-block-columns:nth-child(2),
  body.chai25-home-page .chai25-home-shop .wp-block-columns {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.chai25-home-page .chai25-home-shop > .wp-block-columns:nth-child(2),
  body.chai25-home-page .chai25-home-shop .wp-block-columns {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 14px !important;
  }

  body.chai25-home-page .chai25-home-shop .wp-block-column:first-child,
  body.chai25-home-page .chai25-home-shop .wp-block-column:nth-child(2),
  body.chai25-home-page .chai25-home-shop .wp-block-video,
  body.chai25-home-page .chai25-home-shop figure.wp-block-video,
  body.chai25-home-page .chai25-home-shop .wp-block-image,
  body.chai25-home-page .chai25-home-shop figure.wp-block-image {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.chai25-home-page .chai25-home-shop .wp-block-column:first-child iframe {
    width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }

  body.chai25-home-page .chai25-home-shop video,
  body.chai25-home-page .chai25-home-shop .wp-block-column:nth-child(2) iframe,
  body.chai25-home-page .chai25-home-shop .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }

  body.chai25-home-page .chai25-home-delivery .wp-block-column,
  body.chai25-home-page .chai25-home-shop .wp-block-column:first-child,
  body.chai25-home-page .chai25-home-intro .wp-block-column:nth-child(2) {
    padding: 14px !important;
    border-radius: 16px;
  }

  body.chai25-home-page .chai25-home-pack .wp-block-gallery.columns-3,
  body.chai25-home-page .chai25-home-pack .wp-block-gallery.columns-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }

  body.chai25-home-page .chai25-home-pack figcaption {
    display: none;
  }
}

@media (max-width: 390px) {
  body.chai25-home-page .chai25-home-new .wc-block-product-template,
  body.chai25-home-page .chai25-home-new .wp-block-woocommerce-product-template {
    gap: 8px !important;
  }

  body.chai25-home-page .chai25-home-new .wc-block-product {
    padding: 8px !important;
  }
}


.chai25-home-page .chai-home-reviews-managed{margin-top:1.25rem}.chai25-home-page .chai-home-reviews-managed__note{text-align:center;color:#6f6258;font-size:.9rem}.chai25-home-page .chai-home-reviews-managed__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.chai25-home-page .chai-home-reviews-managed__card{padding:1rem;border:1px solid #ead8bd;border-radius:18px;background:#fffaf1;min-width:0}.chai25-home-page .chai-home-reviews-managed__card h3{margin-top:0}.chai25-home-page .chai-home-reviews-managed__card .wp-block-button__link{appearance:none;border:0;border-radius:999px;padding:.75rem 1rem;background:#7a4f2b;color:#fff;font-weight:700;cursor:pointer}.chai25-home-page .chai-home-reviews-managed__card .wp-block-button__link:focus-visible{outline:3px solid rgba(122,79,43,.32);outline-offset:3px}.chai25-home-page .chai-home-reviews-managed__card .wp-block-button__link[aria-disabled="true"]{opacity:.6;cursor:default}.chai25-home-page .chai-home-reviews-managed__frame{margin-top:1rem;min-height:2px}.chai25-home-page .chai-home-reviews-managed__iframe{display:block;width:100%;height:min(824px,80vh);border:1px solid #e6e6e6;border-radius:12px;background:#fff}.chai25-home-page .chai-home-reviews-managed__link{display:inline-block;margin-top:.75rem;font-size:.85rem}@media(max-width:760px){.chai25-home-page .chai-home-reviews-managed__grid{grid-template-columns:1fr}.chai25-home-page .chai-home-reviews-managed__iframe{height:70vh}}

.chai25-home-page .chai-home-map-managed{width:100%;max-width:100%;padding:.75rem;border:1px solid #ead8bd;border-radius:18px;background:#fffaf1;box-sizing:border-box}.chai25-home-page .chai-home-map-managed__note{margin-top:0;text-align:center;color:#6f6258;font-size:.9rem}.chai25-home-page .chai-home-map-managed .wp-block-buttons{justify-content:center}.chai25-home-page .chai-home-map-managed .wp-block-button__link{appearance:none;border:0;border-radius:999px;padding:.75rem 1rem;background:#7a4f2b;color:#fff;font-weight:700;cursor:pointer}.chai25-home-page .chai-home-map-managed .wp-block-button__link:focus-visible{outline:3px solid rgba(122,79,43,.32);outline-offset:3px}.chai25-home-page .chai-home-map-managed .wp-block-button__link[aria-disabled="true"]{opacity:.6;cursor:default}.chai25-home-page .chai-home-map-managed__frame{margin-top:1rem;min-height:2px}.chai25-home-page .chai-home-map-managed__iframe{display:block;width:100%;height:350px;border:1px solid #e6e6e6;border-radius:12px;background:#fff}.chai25-home-page .chai-home-map-managed__link{margin:.75rem 0 0;text-align:center;font-size:.85rem}@media(max-width:760px){.chai25-home-page .chai-home-map-managed__iframe{height:320px}}

/* Forward compatibility: preserve the former home-spacing behavior inside the canonical home owner. */
@media (max-width: 760px) {
			body.chai25-home-page main.wp-block-group {
				padding-top: 0 !important;
			}

			body.chai25-home-page .wp-block-post-content {
				margin-top: 0 !important;
				padding-top: 0 !important;
			}

			body.chai25-home-page .chai25-home-hero-gallery {
				margin-top: 8px !important;
			}

			body.chai25-home-page .wp-block-post-content > .wp-block-spacer:first-child,
			body.chai25-home-page .wp-block-post-content > .wp-block-spacer:empty {
				display: none !important;
				height: 0 !important;
				margin: 0 !important;
				padding: 0 !important;
			}

			body.chai25-home-page .wp-block-post-content > *:first-child {
				margin-top: 0 !important;
			}
		}

/* v6: карта и отзывы загружаются сразу; click-to-load controls остаются только как no-JS fallback. */
body.chai-home-embeds-autoload .chai-home-map-managed__note,
body.chai-home-embeds-autoload .chai-home-map-managed > .wp-block-buttons,
body.chai-home-embeds-autoload .chai-home-reviews-managed__note,
body.chai-home-embeds-autoload .chai-review-card-2gis > .wp-block-buttons,
body.chai-home-embeds-autoload .chai-review-card-yandex > .wp-block-buttons {
  display: none !important;
}

body.chai-home-embeds-autoload .chai-home-map-managed__frame {
  min-height: 350px;
  margin-top: 0;
}

body.chai-home-embeds-autoload .chai-home-reviews-managed__frame {
  min-height: min(824px, 80vh);
  margin-top: .75rem;
}

body.chai-home-embeds-autoload .chai-home-map-managed__frame[aria-busy="true"],
body.chai-home-embeds-autoload .chai-home-reviews-managed__frame[aria-busy="true"] {
  background:
    linear-gradient(90deg, rgba(122,79,43,.035), rgba(122,79,43,.08), rgba(122,79,43,.035));
  background-size: 200% 100%;
  animation: chai-home-embed-loading 1.4s linear infinite;
}

@keyframes chai-home-embed-loading {
  to { background-position: -200% 0; }
}

@media (max-width: 760px) {
  body.chai-home-embeds-autoload .chai-home-map-managed__frame {
    min-height: 320px;
  }

  body.chai-home-embeds-autoload .chai-home-reviews-managed__frame {
    min-height: 70vh;
  }
}

