/* TASK-024: frames follow the full image; portrait width stays bounded. */
.final-cover { width: 100%; max-width: 440px; justify-self: center; }
.final-cover img, .final-gallery img, .final-inline img,
.review-option .final-photo img, .media-section .gallery img,
.gallery .gallery__item img, .channel-block .gallery__item img, .gallery--atmosphere .gallery__item img {
  display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain;
}
.final-gallery { align-items: start; }
.final-gallery .final-photo { width: 100%; max-width: 440px; justify-self: center; }
.final-inline { max-width: 560px; }
.final-cover > .gallery__item, .final-gallery .gallery__item { padding: 7px; background: #eee5dc; }
.gallery, .media-photo-grid, .media-review-grid { align-items: start; }
.media-complete { padding-top: 30px; }
.media-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.media-full { width: 100%; padding: 7px; background: #eee5dc; }
.media-full img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.media-review-grid, .gallery--reviews, .final-reviews .gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start;
  overflow: visible; margin-top: 28px;
}
.media-review-grid .gallery__item, .gallery--reviews .gallery__item, .final-reviews .gallery > .gallery__item {
  width: 100%; max-width: 100%; min-width: 0; padding: 7px; background: #eee5dc; border: 0;
}
.media-review-grid img, .gallery--reviews .gallery__item img, .final-reviews .gallery img {
  display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; border: 0;
}
.gallery--reviews .gallery__item::after { margin-top: 7px; }
.media-fragment { display: block; padding: 8px; color: var(--color-text-muted); font-size: .8rem; }
/* Keep the agreed 5x2 / compact phone catalog, but show every whole photograph. */
.service-grid .service-card > img { height: auto; min-height: 0; aspect-ratio: auto; object-fit: contain; align-self: center; }
@media (max-width: 900px) { .media-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .media-photo-grid, .media-review-grid, .gallery--reviews, .final-reviews .gallery { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .final-cover { max-width: 340px; }
  .media-photo-grid > .gallery__item { max-width: 400px; justify-self: center; }
  .service-grid .service-card > img { width: 100px; height: auto; min-height: 0; align-self: start; }
}


/* TASK-025: правки Марии 05.11.2026 */
.price-accent { color: #b0162f; font-weight: 700; }
.about__caption { margin: 14px 0 0; text-align: center; line-height: 1.5; font-size: 1rem; }
.channel-lead { margin: 18px 0 0; font-size: .95rem; line-height: 1.7; }
.channel-block--wide .channel-motto--plain { font: inherit; font-size: 1.1rem; }
.author-quote { margin: 18px 0; padding: 14px 22px; border-left: 3px solid var(--color-accent); background: #f0e7df; font-style: italic; }
.client-quote { display: block; margin: 12px 0 0; padding: 12px 20px; border-left: 3px solid var(--color-accent); background: #f0e7df; font-style: italic; }
.queen-photo { max-width: 420px; margin-left: auto; margin-right: auto; }
.queen-photo img { width: 100%; height: auto; max-height: none; }
.queen-photo figcaption { margin-top: 12px; text-align: center; font-size: 1.15rem; }
.article-photo-right { float: right; width: min(38%, 300px); margin: 6px 0 18px 28px; }
.article-photo-right img { width: 100%; height: auto; }
.author-article::after { content: ""; display: block; clear: both; }
.footer__note { max-width: 760px; margin: 10px auto 0; font-size: .82rem; line-height: 1.55; opacity: .8; }
.page-contact .btn + .btn { margin-left: 8px; }
.author-copy .service-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0; }
@media (max-width: 640px) {
  .article-photo-right { float: none; width: 100%; margin: 0 0 18px; }
  .page-contact .btn + .btn { margin: 10px 0 0; }
}

/* TASK-025: настоящие видео грузятся только по нажатию */
.media-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; align-items: start; }
.media-video-grid .video-card { max-width: none; margin: 0; }
@media (max-width: 900px) { .media-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .media-video-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } .media-video-grid .video-card { max-width: 340px; margin: 0 auto; } }

/* TASK-025: фото и отзывы колонками, без пустот под короткими карточками */
.media-photo-grid { display: block; column-count: 3; column-gap: 20px; }
.media-review-grid { display: block; column-count: 2; column-gap: 22px; }
.media-photo-grid > .gallery__item, .media-review-grid > .gallery__item { display: block; break-inside: avoid; margin: 0 0 20px; }
@media (max-width: 900px) { .media-photo-grid { column-count: 2; } }
@media (max-width: 640px) { .media-photo-grid, .media-review-grid { column-count: 1; } .media-photo-grid > .gallery__item { margin: 0 auto 18px; } }

/* TASK-026: emphasis uses the existing face; no quotation decoration. */
strong { font-family: inherit; }
.integration-point { position: relative; padding-left: 1em; }
.integration-point::before { content: "●"; position: absolute; left: 0; font-size: .65em; top: .3em; }
.max-contact { display: block; font: inherit; padding: 12px 0; }
.contact-email { overflow-wrap: anywhere; margin: 12px 0; }
.task026-centered { max-width: 500px; margin: 32px auto; }
.consultation-direction h3 { line-height: 1.4; }
#services:has(.consultation-direction) .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 640px) { #services:has(.consultation-direction) .cards { grid-template-columns: minmax(0, 1fr); } }

/* TASK-027: approved spacing, captions, quotation styling and deferred photographs. */
.method-note { margin: 14px 0 20px; padding: 16px 20px; border-left: 3px solid var(--color-accent); background: var(--color-surface-muted); font-size: .95rem; line-height: 1.7; }
.atmosphere-more { margin: 24px 0; }
.atmosphere-more > summary { display: list-item; width: fit-content; cursor: pointer; margin: 0; }
.atmosphere-more[open] > .video-card { margin-top: 28px; }
#atmosphere-hidden img { width: 100%; height: auto; }
.retreat-announcement { margin: 28px 0 36px; }
.retreat-announcement p { max-width: 760px; margin: 0 0 24px; line-height: 1.8; }
.client-quote { margin: 12px 0; }
.lila-caption { margin: 8px 0 0; font: italic 1.35rem/1.35 var(--font-heading); text-align: center; }
.lila-hero { padding-bottom: 20px; }
.lila-hero > .final-hero-copy { align-self: end; }
body:has(.lila-hero) main > .author-copy { padding-top: 0; }
body:has(.lila-hero) main > .author-copy > h2:first-child { margin-top: 16px; }
#prices:has(+ .lila-contact) { padding-bottom: 24px; }
.lila-contact { padding-top: 0; }
#contraindications { padding-bottom: 16px; }
#contraindications + #prices { padding-top: 0; }
#contraindications + #prices > h2:first-child { margin-top: 16px; }
body:has(#retreat-about) .final-legacy-hero { padding-bottom: 16px; }
#retreat-about { padding-top: 0; }
.song-strength .video-card { margin: 24px auto; }
.song-description p { margin: 16px 0; }
@media (max-width: 640px) {
 .lila-hero { gap: 12px; }
 .lila-hero > .final-cover { grid-row: 3; }
 .lila-hero > .final-hero-copy { grid-row: 4; }
 .lila-hero .service-actions { margin-top: 8px; }
}

/* TASK-028 (Мария 09.11, 98517–98526): меньше расстояние между блоками на всех страницах. */
.section { padding-top: 40px; padding-bottom: 40px; }
.author-copy { padding-top: 0; }
main .author-copy > h2:first-child { margin-top: 32px; }
.page-contact > .btn:first-child { margin-top: 0; }
@media (max-width: 768px) {
  .section { padding-top: 28px; padding-bottom: 28px; }
  .author-copy { padding-top: 0; }
  main .author-copy h2 { margin-top: 32px; }
  main .author-copy > h2:first-child { margin-top: 24px; }
}
.event-intro--text { grid-template-columns: minmax(0, 1fr); }

/* TASK-029 (Мария 10.11): «Пробел поменьше» на Массаже чашами, «Сократить пробелы между абзацами» на Лиле. */
.bowls-photos { padding-bottom: 0; }
main #bowls-faq > h2:first-child { margin-top: 32px; }
.author-copy p { margin: 12px 0; }
.author-copy > p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  main #bowls-faq > h2:first-child { margin-top: 20px; }
}

/* TASK-029: кнопки мессенджеров — фирменный цвет и официальный значок (assets/icons/*.svg, одноцветная маска). */
.btn.btn-messenger { margin-top: 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; font-weight: 600; }
.btn-messenger::before { content: ""; flex: none; width: 1.35em; height: 1.35em; background: currentColor;
  -webkit-mask: var(--messenger-icon) center / contain no-repeat; mask: var(--messenger-icon) center / contain no-repeat; }
.btn-messenger--tg { --messenger-icon: url("../assets/icons/telegram.svg"); background: #229ED9; color: #fff; }
.btn-messenger--wa { --messenger-icon: url("../assets/icons/whatsapp.svg"); background: #25D366; color: #0b2e1a; }
.btn-messenger--max { --messenger-icon: url("../assets/icons/max.svg"); background: linear-gradient(100deg, #1591FF 0%, #3C22FE 55%, #8114FF 100%); color: #fff; }
.btn.btn-messenger--tg:hover { background: #1c8bc0; color: #fff; }
.btn.btn-messenger--wa:hover { background: #1fbf5b; color: #0b2e1a; }
.btn.btn-messenger--max:hover { background: linear-gradient(100deg, #1380e6 0%, #3219e0 55%, #6f0fe0 100%); color: #fff; }
.btn-messenger:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; }
/* Ряды с кнопками мессенджеров: ровно по верху и с одинаковым зазором (только там, где они есть). */
.service-actions:has(.btn-messenger) .btn { margin-top: 0; }
.service-bottom:has(.btn-messenger) { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.service-bottom:has(.btn-messenger) > .btn { margin: 0; }
.service-bottom:has(.btn-messenger) > p, .service-bottom:has(.btn-messenger) > a:last-child { flex-basis: 100%; margin-top: 14px; }
@media (max-width: 768px) {
  .service-bottom:has(.btn-messenger) > .btn { flex: 1 1 100%; }
}
