﻿/**
 * Лендинг «Мантии и конфедератки» — типографика, layout и компоненты .mirey-mantii-*.
 * Шапка: css/header.css (глобально). Футер: css/footer.css (глобально).
 * Text blocks (.mirey-banner и др.) — в style.css (переиспользуемые, пока не выносим).
 * Подключается на /vipusknie-mantii-i-konfederatki/ всегда (см. functions.php).
 */

/* ===== Base typography (template.css без 1.1 MB) ===== */

body.vipusknie-mantii-i-konfederatki {
  font-family: var(--tb-text-primary-font, Inter, sans-serif);
  font-variant: lining-nums;
  font-size: 16px;
  font-weight: normal;
  line-height: 32px;
  color: #555;
}

body.vipusknie-mantii-i-konfederatki #main-content a,
body.vipusknie-mantii-i-konfederatki .mirey-mantii-landing a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.vipusknie-mantii-i-konfederatki #main-content a:hover,
body.vipusknie-mantii-i-konfederatki #main-content a:focus,
body.vipusknie-mantii-i-konfederatki .mirey-mantii-landing a:hover,
body.vipusknie-mantii-i-konfederatki .mirey-mantii-landing a:focus {
  text-decoration: none;
  outline: 0;
}

@media (max-width: 767px) {
  body.vipusknie-mantii-i-konfederatki {
    font-size: 14px;
    line-height: 28px;
  }
}

body.vipusknie-mantii-i-konfederatki .wrapper-container {
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Rental landing — page /vipusknie-mantii-i-konfederatki/
   Шаблон: wp-content/themes/hara-child/page-vipusknie-mantii-i-konfederatki.php
   HTML: WP-админка (пост 13848) или scripts/rebuild_mantii_rental_landing.php
   ========================================================================= */
body.vipusknie-mantii-i-konfederatki {
  --mantii-gutter: clamp(22px, 4vw, 50px);
  --mantii-hero-photo-anchor: 67%;
  /* +25px eyebrow сверху, +12px под benefits (18→30) */
  --mantii-hero-extra-h: 37px;
  /* mobile.webp 1103×741 — высота слота фото = ширина hero × ratio */
  --mantii-hero-mobile-photo-ratio: calc(741 / 1103 * 100%);
  overflow-x: visible;
}

/* Единственный боковой отступ страницы — 50px у main, без margin:auto на landing. */
body.vipusknie-mantii-i-konfederatki #main-content,
body.vipusknie-mantii-i-konfederatki #main.site-main {
  padding-left: var(--mantii-gutter) !important;
  padding-right: var(--mantii-gutter) !important;
  overflow: visible;
  box-sizing: border-box;
}

body.vipusknie-mantii-i-konfederatki .mirey-mantii-gallery {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

body.vipusknie-mantii-i-konfederatki .mirey-mantii-landing:has(> .mirey-mantii-hero) {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

body.vipusknie-mantii-i-konfederatki .mirey-mantii-landing:has(> .mirey-mantii-hero) > :not(.mirey-mantii-hero) {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

body.vipusknie-mantii-i-konfederatki #tbay-breadcrumb {
  display: none;
}

body.vipusknie-mantii-i-konfederatki #main-container.container {
  max-width: 100%;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
  overflow-x: clip;
}

@media (max-width: 767px) {
  body.vipusknie-mantii-i-konfederatki #main-container.container,
  body.page-id-13848 #main-container.container {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

body.vipusknie-mantii-i-konfederatki #main-container > .row {
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
}

body.vipusknie-mantii-i-konfederatki #main-container > .row > [class*="col"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.vipusknie-mantii-i-konfederatki .mirey-mantii-landing {
  overflow: visible;
}

body.vipusknie-mantii-i-konfederatki #main.site-main {
  padding-bottom: 40px;
}

body.vipusknie-mantii-i-konfederatki .mirey-mantii-hero {
  position: relative;
  left: auto;
  width: calc(100% + 2 * var(--mantii-gutter));
  max-width: none;
  margin-top: 0;
  margin-left: calc(-1 * var(--mantii-gutter));
  margin-right: calc(-1 * var(--mantii-gutter));
  right: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Планшет и ПК: фото/подложка hero — якорь 67% (мобилка <768px отдельно). */
@media (min-width: 768px) {
  body.vipusknie-mantii-i-konfederatki .mirey-mantii-hero__bg,
  body.vipusknie-mantii-i-konfederatki .mirey-mantii-hero__photo {
    top: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    max-width: 100%;
    left: var(--mantii-hero-photo-anchor);
    right: auto;
    transform: translateX(-50%);
    border-radius: 0;
  }
}

.mirey-mantii-landing {
  --mantii-ink: #241914;
  --mantii-muted: #6f625d;
  --mantii-line: rgba(88, 55, 39, 0.14);
  --mantii-cream: #fff8f2;
  --mantii-warm: #f7eadf;
  --mantii-red: #8e3537;
  --mantii-gold: #c89b4f;
  color: var(--mantii-ink);
  font-family: Inter, Arial, sans-serif;
}

.mirey-mantii-landing *,
.mirey-mantii-landing *::before,
.mirey-mantii-landing *::after {
  box-sizing: border-box;
}

.mirey-mantii-landing h2,
.mirey-mantii-landing h3,
.mirey-mantii-landing p {
  margin-top: 0;
}

.mirey-mantii-landing h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--mantii-ink);
}

.mirey-mantii-landing h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--mantii-ink);
}

.mirey-mantii-landing p,
.mirey-mantii-landing li,
.mirey-mantii-landing dd {
  font-size: 16px;
  line-height: 1.65;
  color: var(--mantii-muted);
}

.mirey-mantii-eyebrow {
  margin-bottom: 10px;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1.3 !important;
  letter-spacing: 0.14em;
  color: var(--mantii-red) !important;
  text-transform: uppercase;
}

.mirey-mantii-nowrap {
  white-space: nowrap;
}

.mirey-mantii-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: clamp(437px, calc(48vw + var(--mantii-hero-extra-h)), 617px);
  /* Боковые поля hero = --mantii-gutter (50px), как у #main */
  padding: clamp(22px, 4vw, 48px) var(--mantii-gutter) clamp(22px, 4vw, 48px) var(--mantii-gutter);
  margin: 0px auto 22px;
  overflow: visible;
  border: 1px solid var(--mantii-line);
  box-shadow: 0 24px 80px rgba(78, 45, 33, 0.18);
  background-color: #0d0b0a;
}

/* Подложка hero: mantle-bg.png; выпускники — picture.mirey-mantii-hero__photo > img. */
.mirey-mantii-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-color: #0d0b0a;
  background-image: url("../mantle-bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

/* Фото выпускников: picture > img; слой над подложкой, под текстом. */
picture.mirey-mantii-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  pointer-events: none;
}

picture.mirey-mantii-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  user-select: none;
}

/* Полная ширина: сюда же можно добавлять блоки с align-self: center для центрирования */
.mirey-mantii-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: none;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}

.mirey-mantii-hero__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(520px, 92%);
  text-align: left;
  overflow: visible;
}

.mirey-mantii-hero__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-left: 0;
  overflow: visible;
}

.mirey-mantii-hero__title {
  max-width: 640px;
  margin-bottom: 14px !important;
  font-size: clamp(30px, 4.5vw, 54px) !important;
  line-height: 1.08 !important;
  color: #fff !important;
  text-shadow: none;
}

.mirey-mantii-hero__title-line {
  display: block;
}

.mirey-mantii-hero__title-line--accent {
  color: #8e3537 !important;
}

.mirey-mantii-hero .mirey-mantii-hero__title-line--accent {
  text-shadow:
    0 0 16px rgba(255, 235, 228, 0.16),
    0 1px 2px rgba(255, 255, 255, 0.09),
    0 2px 12px rgba(0, 0, 0, 0.58);
}

/* До 992px — вертикальные отступы hero не трогаем (позже мобилка). */
.mirey-mantii-hero__head {
  margin-top: 0;
}

.mirey-mantii-hero__benefits {
  max-width: 550px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.mirey-mantii-hero__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  font-size: clamp(15px, 1.55vw, 18px) !important;
  line-height: 1.45 !important;
  color: rgba(255, 255, 255, 0.94) !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.mirey-mantii-hero__benefits li:last-child {
  margin-bottom: 0;
}

.mirey-mantii-hero__benefit-icon {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.92);
}

.mirey-mantii-hero__benefit-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.mirey-mantii-hero__lead {
  max-width: 520px;
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(16px, 1.7vw, 19px) !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* ПК: интервал между заголовком hero и лидом — через margin-bottom у .mirey-mantii-hero__title */
@media (min-width: 992px) {
  /* Фиксированная высота hero на ПК */
  .mirey-mantii-hero {
    height: clamp(437px, calc(48vw + var(--mantii-hero-extra-h)), 617px);
    min-height: clamp(437px, calc(48vw + var(--mantii-hero-extra-h)), 617px);
    max-height: clamp(437px, calc(48vw + var(--mantii-hero-extra-h)), 617px);
    /* низ ~40px до края подложки */
    padding: clamp(22px, 4vw, 48px) var(--mantii-gutter) 40px var(--mantii-gutter);
  }

  /*
    Контент в прямоугольнике padding: верхний блок (__main) по вертикали как раньше по центру свободной зоны,
    кнопки отдельно внизу (не тянут eyebrow/лид/цену вверх).
  */
  .mirey-mantii-hero__content {
    position: absolute;
    top: max(0px, calc(clamp(22px, 4vw, 48px) - 30px));
    right: 0;
    bottom: 40px;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    width: auto;
    max-width: none;
    box-sizing: border-box;
  }

  .mirey-mantii-hero__column {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .mirey-mantii-hero__main {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 0;
    margin-left: 80px;
  }

  .mirey-mantii-hero__head {
    margin-top: -30px;
  }

  .mirey-mantii-hero .mirey-mantii-price {
    margin-bottom: 0;
  }

  .mirey-mantii-hero .mirey-mantii-actions {
    flex: 0 0 auto;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 80px;
  }

  .mirey-mantii-hero .mirey-mantii-actions .mirey-mantii-button {
    border-radius: 14px;
  }

  .mirey-mantii-hero__title {
    margin-bottom: 22px !important;
  }

  .mirey-mantii-hero__lead,
  .mirey-mantii-hero__benefits {
    margin-top: 0;
  }
}

.mirey-mantii-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 14px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid rgba(142, 53, 55, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(142, 53, 55, 0.12);
}

.mirey-mantii-price--card {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  align-self: flex-start;
  gap: 0;
  width: 100%;
  max-width: min(420px, 100%);
  height: auto !important;
  min-height: 0;
  max-height: none;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f1eeeb 100%);
  box-shadow: 0 10px 28px rgba(20, 14, 11, 0.18);
}

.mirey-mantii-hero .mirey-mantii-price--card {
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  height: auto !important;
  min-height: 0;
}

.mirey-mantii-hero__main > .mirey-mantii-price--card {
  flex: 0 0 auto !important;
}

.mirey-mantii-price--card .mirey-mantii-price__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  height: auto !important;
  min-height: 0;
  padding: 8px 10px;
  text-align: center;
}

.mirey-mantii-price--card .mirey-mantii-price__bundle {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: auto !important;
  min-height: 0;
  padding: 8px 12px;
  text-align: left;
  border-left: 1px solid rgba(111, 98, 93, 0.22);
}

.mirey-mantii-price__icon:empty {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 0 !important;
}

.mirey-mantii-price--card .mirey-mantii-price__amount {
  margin: 0;
  text-align: center;
  line-height: 1.1 !important;
  transform: translateY(1px);
}

.mirey-mantii-price__amount {
  margin: 0;
  line-height: 1;
}

.mirey-mantii-price--card .mirey-mantii-price__label {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}

.mirey-mantii-price__from {
  font-size: 14px;
  font-weight: 600;
  color: var(--mantii-muted);
}

.mirey-mantii-price__icon {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  color: var(--mantii-red);
}

.mirey-mantii-price__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.mirey-mantii-price--card .mirey-mantii-price__bundle-text {
  display: block;
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  color: var(--mantii-muted);
}

.mirey-mantii-price__bundle-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  color: var(--mantii-muted);
}

.mirey-mantii-price__label {
  color: var(--mantii-muted);
  font-size: 14px;
}

.mirey-mantii-price--card .mirey-mantii-price__value {
  font-size: clamp(22px, 2.4vw, 28px);
}

.mirey-mantii-price__value {
  color: var(--mantii-red);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1;
}

.mirey-mantii-hero__set {
  max-width: 560px;
  margin-bottom: 24px;
  font-weight: 700;
  color: #fff !important;
}

.mirey-mantii-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mirey-mantii-hero .mirey-mantii-actions {
  flex-wrap: nowrap;
  align-items: center;
  width: auto;
  max-width: 100%;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.mirey-mantii-hero .mirey-mantii-actions .mirey-mantii-button {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  white-space: nowrap;
}

.mirey-mantii-hero .mirey-mantii-button--primary {
  padding: 20px 50px;
  font-size: 20px;
}

.mirey-mantii-order-dropdown {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  z-index: 6;
}

.mirey-mantii-order-dropdown .mirey-mantii-order-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(139, 94, 52, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(70, 45, 28, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.mirey-mantii-order-dropdown.is-open .mirey-mantii-order-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mirey-mantii-order-dropdown.is-open .mirey-mantii-order-dropdown__toggle {
  background: #732a2c;
}

.mirey-mantii-order-dropdown__toggle {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.mirey-mantii-order-menu__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #2f241d;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.mirey-mantii-order-menu__option + .mirey-mantii-order-menu__option {
  margin-top: 4px;
}

.mirey-mantii-order-menu__option:hover,
.mirey-mantii-order-menu__option:focus {
  background: rgba(255, 218, 185, 0.62);
  color: #67401f;
}

.mirey-mantii-order-menu__option:hover .mirey-mantii-order-menu__phone,
.mirey-mantii-order-menu__option:focus .mirey-mantii-order-menu__phone {
  color: #67401f;
}

.mirey-mantii-order-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 250, 244, 0.95);
}

.mirey-mantii-order-menu__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.mirey-mantii-order-menu__icon--phone i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: #3da95a;
}

.mirey-mantii-order-menu__icon--phone i.tb-icon-phone-call-1::before {
  display: block;
  line-height: 1;
}

.mirey-mantii-order-menu__text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.mirey-mantii-order-menu__label {
  font-weight: 700;
}

.mirey-mantii-order-menu__phone {
  color: #67401f;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .mirey-mantii-order-dropdown .mirey-mantii-order-menu {
    max-width: calc(100vw - 32px);
  }
}

.mirey-mantii-hero .mirey-mantii-button--secondary {
  font-size: 16px;
}

.mirey-mantii-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 20px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mirey-mantii-button:hover {
  transform: translateY(-1px);
}

.mirey-mantii-button--primary {
  color: #fff !important;
  background: var(--mantii-red);
  box-shadow: 0 14px 30px rgba(142, 53, 55, 0.24);
}

.mirey-mantii-button--primary:hover {
  background: #732a2c;
}

.mirey-mantii-button--secondary {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 12px 28px rgba(20, 14, 11, 0.16);
  backdrop-filter: blur(3px);
}

.mirey-mantii-button--whatsapp {
  gap: 10px;
  color: #fff !important;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
  backdrop-filter: none;
}

.mirey-mantii-button--whatsapp:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mirey-mantii-button__icon {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
}

.mirey-mantii-button__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.mirey-mantii-hero .mirey-mantii-eyebrow {
  padding-left: 0;
  color: #8e3537 !important;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 14px rgba(255, 235, 228, 0.14),
    0 1px 2px rgba(255, 255, 255, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.52);
}

.mirey-mantii-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto clamp(24px, 4vw, 48px);
}

.mirey-mantii-trust__item,
.mirey-mantii-card,
.mirey-mantii-review {
  background: #fff;
  border: 1px solid var(--mantii-line);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(70, 45, 28, 0.08);
}

.mirey-mantii-trust__item {
  padding: 20px;
}

.mirey-mantii-trust__item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--mantii-ink);
  font-size: 18px;
}

.mirey-mantii-trust__item span {
  display: block;
  color: var(--mantii-muted);
  font-size: 15px;
  line-height: 1.55;
}

.mirey-mantii-trust__item span strong {
  display: inline;
  margin-bottom: 0;
  color: var(--mantii-ink);
  font-size: inherit;
  font-weight: 700;
}

.mirey-mantii-section {
  margin: clamp(28px, 4vw, 52px) auto;
}

.mirey-mantii-section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.mirey-mantii-section--package {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.72fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.mirey-mantii-section--package .mirey-mantii-colors {
  grid-column: 1 / -1;
}

.mirey-mantii-section--warm {
  padding: clamp(24px, 4vw, 42px);
  background: var(--mantii-warm);
  border: 1px solid var(--mantii-line);
  border-radius: 28px;
}

.mirey-mantii-section--photo {
  max-width: 820px;
  text-align: center;
}

.mirey-mantii-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mirey-mantii-group-photo {
  width: 100%;
  margin: 0 auto clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(111, 98, 93, 0.14);
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 18px 44px rgba(70, 45, 28, 0.12);
  line-height: 0;
}

.mirey-mantii-group-photo picture {
  display: block;
}

.mirey-mantii-group-photo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 992px) {
  body.vipusknie-mantii-i-konfederatki .mirey-mantii-group-photo,
  body.page-id-13848 .mirey-mantii-group-photo {
    width: 80%;
    max-width: 80%;
  }
}

.mirey-mantii-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mirey-mantii-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mirey-mantii-card {
  padding: clamp(20px, 3vw, 28px);
}

.mirey-mantii-card p {
  margin-bottom: 0;
}

.mirey-mantii-card--accent {
  background: linear-gradient(145deg, #fff 0%, #fff3e8 100%);
}

.mirey-mantii-list {
  margin: 0;
  padding-left: 1.1em;
}

.mirey-mantii-list li {
  margin-bottom: 6px;
}

.mirey-mantii-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mirey-mantii-colors__block {
  padding: 22px;
  background: #f7f1eb;
  border: 1px solid var(--mantii-line);
  border-radius: 22px;
}

.mirey-mantii-colors__block h3 {
  margin-bottom: 14px;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mirey-mantii-colors__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.mirey-mantii-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mirey-mantii-colors__row span:not(.mirey-swatch) {
  color: var(--mantii-muted);
  font-size: 15px;
}

.mirey-mantii-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mantii-step;
}

.mirey-mantii-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 6px;
  align-items: start;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(88, 55, 39, 0.12);
  border-radius: 20px;
  counter-increment: mantii-step;
}

.mirey-mantii-steps li::before {
  content: counter(mantii-step);
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: var(--mantii-red);
  border-radius: 50%;
}

.mirey-mantii-steps strong,
.mirey-mantii-steps span {
  display: block;
}

.mirey-mantii-steps strong {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  color: var(--mantii-ink);
  font-size: 17px;
  line-height: 1.25;
}

.mirey-mantii-steps span {
  grid-column: 2;
  grid-row: 2;
  color: var(--mantii-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mirey-mantii-gallery {
  margin-top: 12px !important;
  margin-bottom: 18px !important;
}

.mirey-mantii-gallery.wp-block-gallery.has-nested-images {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.mirey-mantii-gallery.wp-block-gallery.has-nested-images figure.wp-block-image {
  width: 100% !important;
  max-width: none !important;
  height: 549px;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(70, 45, 28, 0.1);
}

.mirey-mantii-gallery.wp-block-gallery.has-nested-images figure.wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mirey-mantii-gallery.wp-block-gallery.has-nested-images:not(.is-expanded) > figure.wp-block-image:nth-of-type(n+13) {
  display: none !important;
}

.mirey-mantii-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
  transform: scale(1.035);
}

.mirey-mantii-gallery-more {
  display: flex;
  justify-content: center;
  margin: 22px auto clamp(34px, 6vw, 72px);
}

.mirey-mantii-gallery-more__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 360px);
  min-height: 56px;
  padding: 18px 44px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  background: #762938;
  border: none;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(90, 30, 50, 0.26);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mirey-mantii-gallery-more__button:hover,
.mirey-mantii-gallery-more__button:focus {
  background: #632430;
  transform: translateY(-1px);
}

.mirey-mantii-section--reviews {
  padding: clamp(24px, 4vw, 42px);
  background: var(--mantii-cream);
  border: 1px solid var(--mantii-line);
  border-radius: 28px;
}

.mirey-mantii-review {
  padding: 22px;
}

.mirey-mantii-review p {
  margin-bottom: 14px;
  color: #4f413b !important;
}

.mirey-mantii-review strong {
  color: var(--mantii-red);
}

.mirey-mantii-faq {
  margin: clamp(28px, 4vw, 52px) auto;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--mantii-line);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(70, 45, 28, 0.08);
}

.mirey-mantii-faq dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.mirey-mantii-faq dt {
  padding-top: 20px;
  margin-top: 20px;
  color: var(--mantii-ink);
  font-size: 18px;
  font-weight: 800;
  border-top: 1px solid var(--mantii-line);
}

.mirey-mantii-faq dt:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.mirey-mantii-faq dd {
  margin: 8px 0 0;
}

.mirey-mantii-cta-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  margin: clamp(28px, 4vw, 44px) auto clamp(24px, 4vw, 36px);
  padding: clamp(28px, 4vw, 46px);
  text-align: left;
  background:
    radial-gradient(circle at 88% 18%, rgba(142, 53, 55, 0.12), transparent 32%),
    linear-gradient(135deg, #fff8f0 0%, #f3e4d5 100%);
  border: 1px solid var(--mantii-line);
  border-radius: 30px;
  box-shadow: 0 18px 46px rgba(70, 45, 28, 0.12);
}

.mirey-mantii-cta-bottom .mirey-mantii-eyebrow {
  margin-bottom: 12px;
}

.mirey-mantii-cta-bottom h2 {
  max-width: 640px;
  margin: 0 0 14px;
  color: var(--mantii-ink);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
}

.mirey-mantii-cta-bottom__note {
  max-width: 600px;
  margin: 0 0 18px;
  color: var(--mantii-muted);
  font-size: 17px;
  line-height: 1.55;
}

.mirey-mantii-cta-bottom__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mirey-mantii-cta-bottom__tags li {
  padding: 8px 12px;
  color: #6b322d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(142, 53, 55, 0.12);
  border-radius: 999px;
}

.mirey-mantii-cta-bottom__box {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(142, 53, 55, 0.14);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(70, 45, 28, 0.1);
}

.mirey-mantii-price-card__price,
.mirey-mantii-cta-bottom__box .mirey-mantii-price-card__price {
  color: #762938;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.mirey-mantii-price-card__note,
.mirey-mantii-cta-bottom__box .mirey-mantii-price-card__note {
  max-width: 240px;
  margin-bottom: 8px;
  color: var(--mantii-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.mirey-mantii-cta-bottom .mirey-mantii-order-dropdown {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.mirey-mantii-cta-bottom .mirey-mantii-order-dropdown__toggle {
  width: 100%;
  min-height: 56px;
  padding: 18px 30px;
  background: #762938;
  box-shadow: 0 14px 30px rgba(90, 30, 50, 0.22);
}

.mirey-mantii-cta-bottom .mirey-mantii-order-dropdown__toggle:hover,
.mirey-mantii-cta-bottom .mirey-mantii-order-dropdown.is-open .mirey-mantii-order-dropdown__toggle {
  background: #632430;
}

.mirey-mantii-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: center;
  padding: clamp(26px, 4vw, 46px);
  margin: clamp(28px, 4vw, 52px) auto 26px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(200, 155, 79, 0.35), transparent 30%),
    linear-gradient(135deg, #241914 0%, #7b1f1f 100%);
  border-radius: 30px;
}

.mirey-mantii-final h2,
.mirey-mantii-final p,
.mirey-mantii-final .mirey-mantii-eyebrow {
  color: #fff !important;
}

.mirey-mantii-final__box {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 22px;
  overflow: visible;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
}

.mirey-mantii-final__box--price-card {
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(142, 53, 55, 0.14);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(70, 45, 28, 0.1);
}

.mirey-mantii-final__box--price-card .mirey-mantii-price-card__price {
  font-size: clamp(28px, 3.4vw, 38px);
}

.mirey-mantii-final__box--price-card .mirey-mantii-price-card__note {
  max-width: 240px;
  margin-bottom: 8px;
}

.mirey-mantii-final__box strong {
  display: block;
  width: 100%;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
}

.mirey-mantii-final__box .mirey-mantii-order-dropdown {
  width: 100%;
  max-width: none;
}

.mirey-mantii-final__box--price-card .mirey-mantii-order-dropdown__toggle,
.mirey-mantii-final__box .mirey-mantii-order-dropdown__toggle {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 20px 28px;
  white-space: nowrap;
  color: #fff !important;
  background: #762938;
  border: none;
  box-shadow: 0 14px 30px rgba(90, 30, 50, 0.34);
}

.mirey-mantii-final__box .mirey-mantii-order-dropdown__toggle:hover {
  background: #632430;
}

.mirey-mantii-final__box .mirey-mantii-order-dropdown.is-open .mirey-mantii-order-dropdown__toggle {
  background: #632430;
}

@media (max-width: 991px) {
  .mirey-mantii-hero {
    height: auto;
    max-height: none;
    min-height: 0;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: clamp(22px, 4vw, 40px);
    padding-right: var(--mantii-gutter);
    padding-bottom: var(--mantii-hero-mobile-photo-ratio);
    padding-left: var(--mantii-gutter);
  }

  /* mantle-bg: плитка по вертикали под высоту hero (свет остаётся сверху) */
  body.vipusknie-mantii-i-konfederatki .mirey-mantii-hero__bg,
  body.page-id-13848 .mirey-mantii-hero__bg {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    transform: none;
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% auto;
  }

  body.vipusknie-mantii-i-konfederatki .mirey-mantii-hero__photo,
  body.page-id-13848 .mirey-mantii-hero__photo {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    transform: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  body.vipusknie-mantii-i-konfederatki .mirey-mantii-hero__photo img,
  body.page-id-13848 .mirey-mantii-hero__photo img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .mirey-mantii-hero__content {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 0;
    width: 100%;
  }

  .mirey-mantii-hero__column {
    flex: none;
    min-height: 0;
    width: auto;
  }

  .mirey-mantii-hero__main {
    flex: none;
    justify-content: flex-start;
    margin-left: 0;
  }

  .mirey-mantii-hero .mirey-mantii-actions {
    margin-left: 0;
  }

  .mirey-mantii-hero .mirey-mantii-actions .mirey-mantii-button {
    border-radius: 20px;
  }

  .mirey-mantii-hero .mirey-mantii-button--secondary {
    min-height: 42px;
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 16px;
  }

  .mirey-mantii-price--card {
    align-self: center;
    width: 80%;
    border-radius: 40px;
  }

  .mirey-mantii-price--card .mirey-mantii-price__main {
    padding-bottom: 5px;
  }

  .mirey-mantii-price--card .mirey-mantii-price__bundle {
    padding-top: 5px;
  }

  .mirey-mantii-hero__benefits {
    margin-bottom: 17px;
  }

  .mirey-mantii-hero__column {
    max-width: min(440px, 94%);
  }

  .mirey-mantii-section--split,
  .mirey-mantii-section--package,
  .mirey-mantii-cta-bottom,
  .mirey-mantii-final {
    grid-template-columns: 1fr;
  }

  .mirey-mantii-cta-bottom {
    text-align: center;
  }

  .mirey-mantii-cta-bottom h2,
  .mirey-mantii-cta-bottom__note {
    margin-right: auto;
    margin-left: auto;
  }

  .mirey-mantii-cta-bottom__tags {
    justify-content: center;
  }

  .mirey-mantii-gallery.wp-block-gallery.has-nested-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mirey-mantii-gallery.wp-block-gallery.has-nested-images figure.wp-block-image {
    height: 468px;
  }

  .mirey-mantii-trust,
  .mirey-mantii-grid--three,
  .mirey-mantii-grid--four,
  .mirey-mantii-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mirey-mantii-hero,
  .mirey-mantii-section--warm,
  .mirey-mantii-section--reviews,
  .mirey-mantii-faq,
  .mirey-mantii-final,
  .mirey-mantii-cta-bottom {
    border-radius: 20px;
  }

  .mirey-mantii-hero {
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 22px;
    padding-right: var(--mantii-gutter);
    padding-bottom: var(--mantii-hero-mobile-photo-ratio);
    padding-left: var(--mantii-gutter);
  }

  .mirey-mantii-hero__content {
    align-items: flex-start;
    max-width: 100%;
  }

  .mirey-mantii-hero__column {
    max-width: 100%;
  }

  .mirey-mantii-hero .mirey-mantii-eyebrow {
    margin-bottom: 8px;
    font-size: 12px !important;
    letter-spacing: 0.09em;
  }

  .mirey-mantii-hero__title {
    margin-bottom: 10px !important;
    font-size: clamp(26px, 9vw, 36px) !important;
    line-height: 1.06 !important;
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  }

  .mirey-mantii-hero__head {
    margin-top: 0;
  }

  .mirey-mantii-hero__lead {
    display: block;
    margin-top: 0;
    margin-bottom: 14px;
  }

  .mirey-mantii-hero__benefits {
    display: block;
    margin-top: 0;
    margin-bottom: 17px;
  }

  .mirey-mantii-hero__benefits li {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .mirey-mantii-price {
    padding: 8px 14px;
    margin-bottom: 12px;
  }

  .mirey-mantii-price--card {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .mirey-mantii-price--card .mirey-mantii-price__main,
  .mirey-mantii-price--card .mirey-mantii-price__bundle {
    width: 100%;
    height: auto !important;
  }

  .mirey-mantii-price--card .mirey-mantii-price__main {
    padding: 8px 10px 5px;
  }

  .mirey-mantii-price--card .mirey-mantii-price__bundle {
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    padding: 5px 12px 8px;
    border-top: 1px solid rgba(111, 98, 93, 0.22);
    border-left: none;
  }

  .mirey-mantii-price__label {
    font-size: 12px;
  }

  .mirey-mantii-price__from {
    font-size: 12px;
  }

  .mirey-mantii-price__value {
    font-size: 24px;
  }

  .mirey-mantii-price__bundle-text {
    font-size: 12px;
  }

  .mirey-mantii-hero__set {
    margin-bottom: 16px;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .mirey-mantii-trust,
  .mirey-mantii-grid,
  .mirey-mantii-grid--three,
  .mirey-mantii-grid--four,
  .mirey-mantii-colors,
  .mirey-mantii-steps {
    grid-template-columns: 1fr;
  }

  .mirey-mantii-steps {
    gap: 10px;
  }

  .mirey-mantii-steps li {
    padding: 14px 16px;
    column-gap: 10px;
    row-gap: 6px;
  }

  .mirey-mantii-gallery.wp-block-gallery.has-nested-images {
    grid-template-columns: 1fr;
  }

  .mirey-mantii-gallery.wp-block-gallery.has-nested-images figure.wp-block-image {
    height: clamp(468px, 100vw, 672px);
  }

  .mirey-mantii-actions,
  .mirey-mantii-button,
  .mirey-mantii-final__box,
  .mirey-mantii-cta-bottom .mirey-mantii-order-dropdown {
    width: 100%;
  }

  .mirey-mantii-cta-bottom .mirey-mantii-order-dropdown {
    max-width: none;
  }

  .mirey-mantii-button {
    padding: 16px 18px;
    min-height: 48px;
  }

  .mirey-mantii-hero .mirey-mantii-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .mirey-mantii-hero .mirey-mantii-actions .mirey-mantii-button {
    flex: 1 1 auto;
    width: auto !important;
    max-width: 100%;
    min-width: min(100%, 200px);
    white-space: normal;
  }

  .mirey-mantii-hero .mirey-mantii-order-dropdown {
    width: 100%;
    max-width: 100%;
  }

  .mirey-mantii-hero .mirey-mantii-order-dropdown__toggle {
    width: 100%;
    max-width: 100%;
  }

  .mirey-mantii-hero .mirey-mantii-button--primary {
    padding: 10px 40px;
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .mirey-mantii-nowrap {
    white-space: normal;
  }
}
