/* AB1-MARE-20: блоки конструктора страниц. Цвета — только из палитры сайта (site.css :root).
   Варианты оформления: blk--cream (светлый), blk--beige (бежевый), blk--navy (тёмный). */

.blk { padding: 96px 56px; position: relative; }
.blk--cream { background: var(--cream); color: var(--text-dark); }
.blk--beige { background: var(--beige-alt); color: var(--text-dark); }
.blk--navy  { background: var(--navy); color: var(--cream); }
.blk-inner { max-width: 1120px; margin: 0 auto; position: relative; }
#main > .blk:first-of-type { padding-top: 168px; }   /* под фиксированной шапкой */

.blk-head { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.blk-eyebrow {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 500;
  letter-spacing: 2.8px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.blk-heading {
  font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.12;
  font-size: clamp(30px, 3.4vw, 48px); color: inherit;
}
h1.blk-heading { font-size: clamp(38px, 5vw, 68px); }
.blk-sub, .blk-text, .blk-note {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--text-mid);
}
.blk-sub { margin-top: 20px; }
.blk-sub p + p, .blk-text p + p, .blk-note p + p { margin-top: 14px; }
.blk--navy .blk-sub, .blk--navy .blk-text, .blk--navy .blk-note { color: var(--card-beige); }
.blk--navy .blk-eyebrow { color: var(--gold-light); }
.blk-buttons { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.blk--navy .btn-cta-ghost { color: var(--cream); border-color: var(--gold-light); }

/* ── Баннер ── */
.blk-banner { text-align: center; overflow: hidden; }
.blk-banner .blk-head { margin-bottom: 0; }
.blk-banner--media { min-height: 72vh; display: flex; align-items: center; justify-content: center; color: #fff; }
.blk-banner--media.blk { background: var(--navy); }
.blk-banner-bg { position: absolute; inset: 0; }
.blk-banner-bg img, .blk-banner-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.blk-banner--media .blk-banner-bg::after { content: ""; position: absolute; inset: 0; background: rgba(28, 43, 58, 0.45); }
.blk-banner--media .blk-sub, .blk-banner--media .page-crumbs, .blk-banner--media .page-crumbs a { color: var(--cream); }
.blk-banner--media .blk-eyebrow { color: var(--gold-light); }
.blk-banner-inner { z-index: 1; }

/* ── Текст + фото ── */
.blk-ti { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.blk-ti--left .blk-ti-img { order: -1; }
.blk-ti--solo .blk-ti { grid-template-columns: 1fr; max-width: 780px; }
.blk-ti .blk-head { text-align: left; margin: 0 0 24px; }
.blk-ti .blk-buttons { justify-content: flex-start; }
.blk-ti-img img { width: 100%; height: auto; display: block; border-radius: 16px; }

/* ── Галерея ── */
.blk-gallery { list-style: none; display: grid; gap: 20px; }
.blk-cols-2 { grid-template-columns: repeat(2, 1fr); }
.blk-cols-3 { grid-template-columns: repeat(3, 1fr); }
.blk-cols-4 { grid-template-columns: repeat(4, 1fr); }
.blk-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 14px; }
.blk-gallery figcaption {
  margin-top: 12px; font-family: 'Cormorant Garamond', serif; font-size: 19px; text-align: center;
}

/* ── Цены ── */
.blk-prices { list-style: none; max-width: 760px; margin: 0 auto; }
.blk-prices li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(139, 115, 85, 0.22); }
.blk-price-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; }
.blk-price-dots { flex: 1; }
.blk-price-value { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--gold); white-space: nowrap; }
.blk--navy .blk-price-value { color: var(--gold-light); }
.blk-prices + .blk-note, .blk-prices + .blk-buttons { margin-top: 28px; text-align: center; }
.blk-prices .blk-note { text-align: center; }
.blk-note { text-align: center; margin-top: 24px; }

/* ── Отзывы (карточки как на главной) ── */
.blk-reviews-score { text-align: center; margin: -24px 0 36px; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-mid); }
.blk-reviews-score strong { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; color: var(--gold); margin-right: 6px; }
.blk-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blk-reviews .review-card { background: #FAFAFA; border: 1px solid rgba(44,36,22,0.07); border-radius: 16px; padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 16px; color: var(--text-dark); }
.blk-reviews .review-card-top { display: flex; align-items: center; gap: 14px; }
.blk-reviews .review-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; color: #fff; }
.blk-reviews .review-author-name { font-size: 13.5px; font-weight: 500; }
.blk-reviews .review-author-date { font-size: 11.5px; font-weight: 300; color: var(--text-mid); margin-top: 2px; }
.blk-reviews .review-card-stars { display: flex; gap: 3px; }
.blk-reviews .review-card-stars svg { width: 15px; height: 15px; fill: #FBBC04; }
.blk-reviews .review-text { font-size: 13.5px; font-weight: 300; line-height: 1.75; color: var(--text-mid); flex: 1; }
.blk--navy .blk-reviews-score { color: var(--card-beige); }

/* ── Мастера: сетка и карточки из site.css (.team-grid / .team-card) ── */
.blk-team.blk--navy .team-card { color: var(--text-dark); }

/* ── Кнопка записи: оформление .cta из site.css, здесь только варианты ── */
.blk-cta.blk--beige { background: var(--beige-alt); }
.blk-cta.blk--navy { background: var(--navy); }
.blk-cta.blk--navy .blk-heading { color: var(--cream); }
.blk-cta .blk-head { margin-bottom: 36px; }

/* ── FAQ ── */
.blk-faq-inner { max-width: 860px; }
.blk-faq { border-top: 1px solid rgba(139, 115, 85, 0.25); }
.blk-faq details { border-bottom: 1px solid rgba(139, 115, 85, 0.25); }
.blk-faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.blk-faq summary::-webkit-details-marker { display: none; }
.blk-faq-q { font-family: 'Cormorant Garamond', serif; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.3; }
.blk-faq-icon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold-light); flex-shrink: 0; position: relative; transition: transform .3s, background .25s; }
.blk-faq-icon::before, .blk-faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--gold); transform: translate(-50%, -50%); }
.blk-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.blk-faq details[open] .blk-faq-icon { transform: rotate(45deg); background: var(--gold-light); }
.blk-faq details[open] .blk-faq-icon::before, .blk-faq details[open] .blk-faq-icon::after { background: #fff; }
.blk-faq-a { padding: 0 0 24px; font-size: 14.5px; font-weight: 300; line-height: 1.8; color: var(--text-mid); max-width: 720px; }
.blk--navy .blk-faq-a { color: var(--card-beige); }
.blk-faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 900px) {
  .blk { padding: 64px 24px; }
  #main > .blk:first-of-type { padding-top: 128px; }
  .blk-ti { grid-template-columns: 1fr; gap: 32px; }
  .blk-ti--left .blk-ti-img { order: 0; }
  .blk-reviews { grid-template-columns: 1fr; }
  .blk-cols-3, .blk-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .blk-cols-2, .blk-cols-3, .blk-cols-4 { grid-template-columns: 1fr; }
}
