body.chai25-about-page {
  --chai-bg: #fff8ea;
  --chai-card: #fffaf1;
  --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-red: #c94b42;
  --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-about-page .wp-site-blocks,
body.chai25-about-page main.wp-block-group {
  background: transparent;
}

body.chai25-about-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-about-page .entry-content,
body.chai25-about-page .wp-block-post-content {
  max-width: none !important;
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}

body.chai25-about-page main > .wp-block-group.alignfull {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
}

body.chai25-about-page .wp-block-post-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(44px, 5.4vw, 82px);
  line-height: .94;
  font-weight: 950;
  letter-spacing: -0.065em;
}

body.chai25-about-page .wp-block-post-title::before {
  content: "🌿";
  display: inline-block;
  margin-right: .18em;
  font-size: .55em;
  vertical-align: .13em;
}

body.chai25-about-page .wp-block-post-content > .wp-block-group {
  width: min(1280px, calc(100vw - 36px)) !important;
  max-width: min(1280px, calc(100vw - 36px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* Общие блоки */
body.chai25-about-page .wp-block-post-content h2,
body.chai25-about-page .wp-block-post-content h3 {
  color: var(--chai-text);
  font-weight: 950;
  letter-spacing: -0.035em;
}

body.chai25-about-page .wp-block-post-content p {
  color: var(--chai-muted);
  font-size: 17px;
  line-height: 1.62;
}

body.chai25-about-page .wp-block-post-content p.has-medium-font-size {
  font-size: 18px !important;
  line-height: 1.58;
}

body.chai25-about-page .wp-block-post-content a {
  color: var(--chai-brown);
  text-underline-offset: 3px;
}

body.chai25-about-page .wp-block-post-content figure {
  margin-top: 0;
  margin-bottom: 0;
}

body.chai25-about-page .wp-block-post-content img {
  max-width: 100%;
  height: auto;
}

/* Hero */
body.chai25-about-page .chai25-about-hero {
  position: relative;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  padding: clamp(18px, 3vw, 34px) !important;
  border: 1px solid var(--chai-border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 10%, rgba(122, 79, 43, .14), transparent 28%),
    radial-gradient(circle at 6% 92%, rgba(111, 143, 63, .12), transparent 30%),
    linear-gradient(135deg, #fffaf1, #fff8ea 62%, #f8eddc);
  box-shadow: var(--chai-shadow);
  overflow: hidden;
}

body.chai25-about-page .chai25-about-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(122, 79, 43, .08);
  pointer-events: none;
}

body.chai25-about-page .chai25-about-hero > .wp-block-columns {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 4vw, 54px) !important;
  align-items: stretch !important;
  margin: 0 !important;
}

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

body.chai25-about-page .chai25-about-hero > .wp-block-columns > .wp-block-column:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--chai-border-2);
  border-radius: 24px;
  background: rgba(255, 250, 241, .78);
  backdrop-filter: blur(3px);
}

body.chai25-about-page .chai25-about-hero > .wp-block-columns > .wp-block-column:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px);
  min-width: 0;
}

body.chai25-about-page .chai25-about-hero h2 {
  margin: 0 0 22px !important;
  color: var(--chai-text);
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-align: left !important;
}

body.chai25-about-page .chai25-about-hero h2 strong {
  color: var(--chai-brown);
}

body.chai25-about-page .chai25-about-hero p {
  max-width: 760px;
  margin-top: 0;
  color: #4b3b30;
}

body.chai25-about-page .chai25-about-hero .wp-block-image {
  text-align: center;
}

body.chai25-about-page .chai25-about-hero .wp-block-image img {
  width: min(220px, 70vw) !important;
  height: auto !important;
  border-radius: 26px;
  filter: drop-shadow(0 14px 24px rgba(84, 49, 21, .12));
}

/* Кнопки hero */
body.chai25-about-page .chai25-about-hero .wp-block-buttons {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 9px !important;
  width: 100%;
  margin: 0 !important;
}

body.chai25-about-page .chai25-about-hero .wp-block-button {
  width: 100%;
}

body.chai25-about-page .chai25-about-hero .wp-block-button__link {
  width: 100%;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 14px !important;
  border: 1px solid var(--chai-border) !important;
  border-radius: 14px !important;
  background: var(--chai-card) !important;
  color: var(--chai-text) !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  text-align: center;
  text-decoration: none !important;
  box-sizing: border-box;
  box-shadow: 0 10px 22px rgba(84, 49, 21, .05);
}

body.chai25-about-page .chai25-about-hero .wp-block-button:first-of-type .wp-block-button__link {
  border-color: var(--chai-brown) !important;
  background: var(--chai-brown) !important;
  color: #fffaf0 !important;
  box-shadow: 0 14px 26px rgba(95, 55, 21, .18);
}

body.chai25-about-page .chai25-about-hero .wp-block-button__link:hover,
body.chai25-about-page .chai25-about-hero .wp-block-button__link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--chai-brown) !important;
  outline: none;
}

/* Hero facts from paragraphs */
body.chai25-about-page .chai25-about-hero .wp-block-column:nth-child(2) p:last-child {
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--chai-border-2);
  border-radius: 18px;
  background: rgba(255, 250, 241, .86);
  color: var(--chai-text);
  font-weight: 850;
}

/* Секции */
body.chai25-about-page .chai25-about-section {
  margin-top: 24px !important;
  margin-bottom: 0 !important;
  padding: clamp(18px, 3vw, 30px) !important;
  border: 1px solid var(--chai-border);
  border-radius: 28px;
  background: var(--chai-card);
  box-shadow: var(--chai-shadow);
}

body.chai25-about-page .chai25-about-section > .wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 26px !important;
  align-items: start !important;
  margin: 0 !important;
}

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

body.chai25-about-page .chai25-about-section h2 {
  margin: 0 0 14px !important;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
}

body.chai25-about-page .chai25-about-section h2::before {
  content: "";
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--chai-soft);
  color: var(--chai-brown);
  font-size: 20px;
  vertical-align: middle;
}

body.chai25-about-page .chai25-about-section--prep h2::before {
  content: "🍓";
}

body.chai25-about-page .chai25-about-section--resin h2::before {
  content: "🍵";
}

body.chai25-about-page .chai25-about-section--eco h2::before {
  content: "♻️";
}

body.chai25-about-page .chai25-about-section p {
  margin-top: 0;
}

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

/* Галереи и изображения */
body.chai25-about-page .chai25-about-section .wp-block-gallery,
body.chai25-about-page .chai25-about-section .wp-block-image,
body.chai25-about-page .chai25-about-section figure {
  margin: 0;
}

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

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

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

body.chai25-about-page .chai25-about-section img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: var(--chai-soft);
  box-shadow: 0 10px 22px rgba(84, 49, 21, .06);
}

body.chai25-about-page .chai25-about-section--eco img,
body.chai25-about-page .chai25-about-section--segments img {
  aspect-ratio: 4 / 3;
}

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


/* v2: важные информационные изображения показываем целиком */
body.chai25-about-page .chai25-about-section--eco img,
body.chai25-about-page .chai25-about-section--segments img {
  aspect-ratio: auto !important;
  height: auto !important;
  object-fit: contain !important;
  background: #fff8ea;
}

body.chai25-about-page .chai25-about-section--eco .wp-block-image,
body.chai25-about-page .chai25-about-section--segments .wp-block-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Экология: выделяем проценты */
body.chai25-about-page .chai25-about-section--eco p {
  font-size: 17px;
}

body.chai25-about-page .chai25-about-section--eco p:nth-of-type(2) {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

body.chai25-about-page .chai25-about-section--eco p:nth-of-type(2)::before {
  content: "Скидки за повторное использование";
  display: block;
  color: var(--chai-text);
  font-size: 15px;
  font-weight: 950;
}

/* Сегменты */
body.chai25-about-page .chai25-about-section--segments {
  padding: clamp(18px, 3vw, 32px) !important;
}

body.chai25-about-page .chai25-about-section--segments > h2:first-child {
  margin: 0 0 20px !important;
  color: var(--chai-text);
  font-size: clamp(32px, 4vw, 54px);
  line-height: .98;
  text-align: left !important;
}

body.chai25-about-page .chai25-about-section--segments > h2:first-child::before {
  content: "⑤";
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  border-radius: 999px;
  background: var(--chai-brown);
  color: #fffaf0;
  font-size: 22px;
  vertical-align: middle;
}

body.chai25-about-page .chai25-about-section--segments > .wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 48px) !important;
  align-items: start !important;
  margin: 0 !important;
}

body.chai25-about-page .chai25-about-section--segments .wp-block-image img {
  border-radius: 20px;
}

body.chai25-about-page .chai25-about-section--segments > .wp-block-columns > .wp-block-column:nth-child(2) {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--chai-border-2);
  border-radius: 22px;
  background: rgba(255, 248, 234, .72);
}

body.chai25-about-page .chai25-about-section--segments > .wp-block-columns > .wp-block-column:nth-child(2) > p:first-child {
  margin-top: 0;
}

body.chai25-about-page .chai25-about-section--segments > .wp-block-columns > .wp-block-column:nth-child(2) p {
  max-width: 760px;
}

body.chai25-about-page .chai25-about-section--segments .wp-block-column:nth-child(2) > h2:not(:first-child) {
  margin-top: 22px;
}

body.chai25-about-page .chai25-segment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

body.chai25-about-page .chai25-segment-card {
  padding: 16px;
  border: 1px solid var(--chai-border-2);
  border-radius: 18px;
  background: var(--chai-soft);
  box-shadow: 0 10px 22px rgba(84, 49, 21, .04);
}

body.chai25-about-page .chai25-segment-card h2 {
  margin: 0 0 8px !important;
  font-size: 22px;
  line-height: 1.1;
}

body.chai25-about-page .chai25-segment-card h2::before {
  display: none !important;
}

body.chai25-about-page .chai25-segment-card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.48;
}

body.chai25-about-page .chai25-segment-card p:first-of-type {
  color: var(--chai-text);
  font-weight: 950;
}

body.chai25-about-page .chai25-segment-card p:last-child {
  margin-bottom: 0;
}

body.chai25-about-page .chai25-segment-card:nth-child(1) {
  border-color: rgba(111, 143, 63, .34);
}

body.chai25-about-page .chai25-segment-card:nth-child(2) {
  border-color: rgba(122, 79, 43, .32);
}

body.chai25-about-page .chai25-segment-card:nth-child(3) {
  border-color: rgba(241, 169, 27, .38);
}

body.chai25-about-page .chai25-segment-card:nth-child(4) {
  border-color: rgba(150, 114, 84, .34);
}

body.chai25-about-page .chai25-segment-card:nth-child(5) {
  border-color: rgba(201, 75, 66, .30);
}

/* Аккуратный блок "главное отличие" */
body.chai25-about-page .chai25-segment-note {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid var(--chai-border-2);
  border-radius: 18px;
  background: #fff8ea;
  box-shadow: 0 10px 22px rgba(84, 49, 21, .04);
}

body.chai25-about-page .chai25-segment-note h2 {
  margin-top: 0 !important;
  font-size: 24px;
}

body.chai25-about-page .chai25-segment-note h2::before {
  content: "★";
  width: 34px;
  height: 34px;
  margin-right: 9px;
  background: var(--chai-yellow);
  color: #fffaf0;
  font-size: 16px;
}


/* v3: не растягиваем информационные изображения */
body.chai25-about-page .chai25-about-section--eco .wp-block-image,
body.chai25-about-page .chai25-about-section--eco figure.wp-block-image,
body.chai25-about-page .chai25-about-section--segments .wp-block-image,
body.chai25-about-page .chai25-about-section--segments figure.wp-block-image {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow: visible !important;
}

body.chai25-about-page .chai25-about-section--eco figure.wp-block-image,
body.chai25-about-page .chai25-about-section--segments figure.wp-block-image {
  flex-direction: column !important;
}

body.chai25-about-page .chai25-about-section--eco img,
body.chai25-about-page .chai25-about-section--segments img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 560px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
}

body.chai25-about-page .chai25-about-section--segments img {
  max-height: 720px !important;
}

/* v3: карточки сегментов с нормальным расстоянием */
body.chai25-about-page .chai25-segment-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  margin-top: 22px !important;
}

body.chai25-about-page .chai25-segment-grid .chai25-segment-card {
  margin: 0 !important;
}

body.chai25-about-page .chai25-segment-card + .chai25-segment-card {
  margin-top: 16px !important;
}

body.chai25-about-page .chai25-segment-grid .chai25-segment-card + .chai25-segment-card {
  margin-top: 0 !important;
}

body.chai25-about-page .chai25-segment-card {
  background: #f6ead6 !important;
  border-color: #dec7a8 !important;
}

body.chai25-about-page .chai25-segment-card h2 {
  margin-bottom: 12px !important;
}

body.chai25-about-page .chai25-segment-card p {
  margin-bottom: 10px !important;
}

body.chai25-about-page .chai25-segment-card p:last-child {
  margin-bottom: 0 !important;
}


/* v4: страховка от горизонтального выезда */
body.chai25-about-page,
body.chai25-about-page .wp-site-blocks,
body.chai25-about-page main.wp-block-group,
body.chai25-about-page .wp-block-post-content {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body.chai25-about-page .wp-block-post-content *,
body.chai25-about-page .chai25-about-hero *,
body.chai25-about-page .chai25-about-section * {
  box-sizing: border-box;
  min-width: 0;
}

/* v4: картинки можно открыть */
body.chai25-about-page .chai25-about-lightbox-link {
  cursor: zoom-in;
  display: inline-flex;
  max-width: 100%;
  text-decoration: none !important;
}

body.chai25-about-page .chai25-about-lightbox-link img {
  cursor: zoom-in;
}

/* v4: оверлей просмотра */
.chai25-about-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(43, 27, 16, .82);
  backdrop-filter: blur(6px);
}

.chai25-about-lightbox.is-open {
  display: flex;
}

.chai25-about-lightbox__img {
  max-width: min(96vw, 1280px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: #fff8ea;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
}

.chai25-about-lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 250, 240, .5);
  border-radius: 999px;
  background: #fffaf1;
  color: #2b1b10;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

/* v4: убираем искусственную высоту у картинок/фигур */
body.chai25-about-page .chai25-about-section--eco .wp-block-image,
body.chai25-about-page .chai25-about-section--eco figure,
body.chai25-about-page .chai25-about-section--segments .wp-block-image,
body.chai25-about-page .chai25-about-section--segments figure {
  min-height: 0 !important;
  height: auto !important;
}

body.chai25-about-page .chai25-about-section--eco figcaption,
body.chai25-about-page .chai25-about-section--segments figcaption {
  width: 100%;
}


/* v5: блок картинки = высота картинки + подпись, без огромных пустот */
body.chai25-about-page .chai25-about-section--eco figure.wp-block-image,
body.chai25-about-page .chai25-about-section--eco .wp-block-image,
body.chai25-about-page .chai25-about-section--eco .wp-block-column:has(figure.wp-block-image),
body.chai25-about-page .chai25-about-section--segments figure.wp-block-image,
body.chai25-about-page .chai25-about-section--segments .wp-block-image,
body.chai25-about-page .chai25-about-section--segments .wp-block-column:has(figure.wp-block-image) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: start !important;
}

body.chai25-about-page .chai25-about-section--eco figure.wp-block-image,
body.chai25-about-page .chai25-about-section--segments figure.wp-block-image {
  display: block !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.chai25-about-page .chai25-about-section--eco .chai25-about-lightbox-link,
body.chai25-about-page .chai25-about-section--segments .chai25-about-lightbox-link {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.chai25-about-page .chai25-about-section--eco img,
body.chai25-about-page .chai25-about-section--segments img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

body.chai25-about-page .chai25-about-section--eco figcaption,
body.chai25-about-page .chai25-about-section--segments figcaption {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

/* v6: высота блока картинки строго по содержимому */
body.chai25-about-page figure.chai25-about-fixed-figure {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  display: block !important;
}

body.chai25-about-page figure.chai25-about-fixed-figure .chai25-about-lightbox-link {
  display: block !important;
  line-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.chai25-about-page figure.chai25-about-fixed-figure img {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto !important;
}

body.chai25-about-page figure.chai25-about-fixed-figure figcaption {
  display: block !important;
  height: auto !important;
  margin: 8px 0 0 !important;
  line-height: 1.3 !important;
}


/* v7: чистая медиакарточка вместо проблемного figure/колонки */
body.chai25-about-page .chai25-about-media-card {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  line-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body.chai25-about-page .chai25-about-media-card__link {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  cursor: zoom-in;
}

body.chai25-about-page .chai25-about-media-card__img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
  border-radius: 18px !important;
  background: #fff8ea !important;
  box-shadow: 0 10px 22px rgba(84, 49, 21, .06) !important;
}

body.chai25-about-page .chai25-about-media-card__caption {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  color: var(--chai-muted);
  font-size: 12px;
  line-height: 1.3 !important;
  text-align: left;
}

/* Старые проблемные figure после замены скрываем полностью */
body.chai25-about-page figure.chai25-about-original-hidden,
body.chai25-about-page .wp-block-image.chai25-about-original-hidden {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.chai25-about-page .chai25-about-section--eco .wp-block-column,
body.chai25-about-page .chai25-about-section--segments .wp-block-column {
  min-height: 0 !important;
  height: auto !important;
}

/* v8: аварийно скрываем старые проблемные WP-figure после JS-пересборки */
body.chai25-about-page .chai25-about-section--eco figure.chai25-about-original-hidden,
body.chai25-about-page .chai25-about-section--segments figure.chai25-about-original-hidden,
body.chai25-about-page .chai25-about-section--eco .wp-block-image.chai25-about-original-hidden,
body.chai25-about-page .chai25-about-section--segments .wp-block-image.chai25-about-original-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* v8: новая карточка без лишней высоты */
body.chai25-about-page .chai25-about-section--eco .chai25-about-media-card,
body.chai25-about-page .chai25-about-section--segments .chai25-about-media-card {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  line-height: 0 !important;
}

body.chai25-about-page .chai25-about-section--eco .chai25-about-media-card__link,
body.chai25-about-page .chai25-about-section--segments .chai25-about-media-card__link {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  cursor: zoom-in;
}

body.chai25-about-page .chai25-about-section--eco .chai25-about-media-card__img,
body.chai25-about-page .chai25-about-section--segments .chai25-about-media-card__img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
  border-radius: 18px !important;
  background: #fff8ea !important;
  box-shadow: 0 10px 22px rgba(84, 49, 21, .06) !important;
}

body.chai25-about-page .chai25-about-section--eco .chai25-about-media-card__caption,
body.chai25-about-page .chai25-about-section--segments .chai25-about-media-card__caption {
  display: block !important;
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  color: var(--chai-muted);
  font-size: 12px;
  line-height: 1.3 !important;
  text-align: left;
}

@media (max-width: 760px) {
  body.chai25-about-page .chai25-about-section--eco .chai25-about-media-card__img,
  body.chai25-about-page .chai25-about-section--segments .chai25-about-media-card__img {
    width: 100% !important;
  }
}

/* Мобильная версия */
@media (max-width: 980px) {
  body.chai25-about-page .chai25-about-hero > .wp-block-columns,
  body.chai25-about-page .chai25-about-section > .wp-block-columns,
  body.chai25-about-page .chai25-about-section--segments > .wp-block-columns {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.chai25-about-page .chai25-about-section--prep .wp-block-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.chai25-about-page .chai25-segment-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  body.chai25-about-page .wp-block-post-title,
  body.chai25-about-page .wp-block-post-content > .wp-block-group {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.chai25-about-page .chai25-about-hero,
  body.chai25-about-page .chai25-about-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.chai25-about-page .chai25-about-hero > .wp-block-columns,
  body.chai25-about-page .chai25-about-section > .wp-block-columns,
  body.chai25-about-page .chai25-about-section--segments > .wp-block-columns {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.chai25-about-page .chai25-about-hero > .wp-block-columns > .wp-block-column,
  body.chai25-about-page .chai25-about-section > .wp-block-columns > .wp-block-column,
  body.chai25-about-page .chai25-about-section--segments > .wp-block-columns > .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
  }

  body.chai25-about-page .wp-block-post-title {
    font-size: 42px;
    margin-bottom: 14px !important;
  }

  body.chai25-about-page .chai25-about-hero {
    padding: 14px !important;
    border-radius: 22px;
  }

  body.chai25-about-page .chai25-about-hero > .wp-block-columns > .wp-block-column:first-child,
  body.chai25-about-page .chai25-about-hero > .wp-block-columns > .wp-block-column:nth-child(2) {
    padding: 14px;
    border-radius: 18px;
  }

  body.chai25-about-page .chai25-about-hero h2 {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 18px !important;
  }

  body.chai25-about-page .chai25-about-hero p,
  body.chai25-about-page .wp-block-post-content p,
  body.chai25-about-page .wp-block-post-content p.has-medium-font-size {
    font-size: 15px !important;
    line-height: 1.55;
  }

  body.chai25-about-page .chai25-about-hero .wp-block-button__link {
    min-height: 42px;
    font-size: 13px !important;
  }

  body.chai25-about-page .chai25-about-section {
    margin-top: 16px !important;
    padding: 16px !important;
    border-radius: 20px;
  }

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

  body.chai25-about-page .chai25-about-section h2::before {
    width: 34px;
    height: 34px;
    margin-right: 8px;
    font-size: 16px;
  }

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

  body.chai25-about-page .chai25-about-section img {
    border-radius: 14px;
  }

  body.chai25-about-page .chai25-about-section--eco .wp-block-image,
  body.chai25-about-page .chai25-about-section--eco figure,
  body.chai25-about-page .chai25-about-section--segments .wp-block-image,
  body.chai25-about-page .chai25-about-section--segments figure {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  body.chai25-about-page .chai25-about-section--eco img,
  body.chai25-about-page .chai25-about-section--segments img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  body.chai25-about-page .chai25-about-section--eco figcaption,
  body.chai25-about-page .chai25-about-section--segments figcaption {
    display: block !important;
    margin: 8px 0 0 !important;
    width: 100% !important;
    font-size: 11px;
  }

  body.chai25-about-page .chai25-segment-grid {
    gap: 14px !important;
  }

  body.chai25-about-page .chai25-segment-card + .chai25-segment-card {
    margin-top: 14px !important;
  }

  body.chai25-about-page .chai25-segment-grid .chai25-segment-card + .chai25-segment-card {
    margin-top: 0 !important;
  }

  body.chai25-about-page .chai25-about-section figcaption {
    display: none;
  }

  body.chai25-about-page .chai25-about-section--segments > h2:first-child {
    font-size: 30px;
  }

  body.chai25-about-page .chai25-about-section--segments > .wp-block-columns > .wp-block-column:nth-child(2) {
    padding: 14px;
    border-radius: 18px;
  }

  body.chai25-about-page .chai25-segment-card {
    padding: 14px;
    border-radius: 16px;
  }

  body.chai25-about-page .chai25-segment-card h2 {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  body.chai25-about-page .chai25-about-section .wp-block-gallery,
  body.chai25-about-page .chai25-about-section--prep .wp-block-gallery {
    grid-template-columns: 1fr;
  }
}
