/* Вёрстка публичной части по артборду design/usluga-kapelnica.html.
 *
 * Что взято из макета дословно: палитра, типографика, ширина контейнера,
 * отступы внутри блоков, размеры и радиусы компонентов.
 *
 * Что нормализовано: вертикальные отступы секций. В артборде они гуляют от 4
 * до 68 пикселей — это след фиксированной высоты холста 6210px, а не решение
 * дизайнера. В живой вёрстке высота не фиксирована, поэтому у секций один
 * ритм; иначе первая же правка текста сломала бы подгонку.
 *
 * Чего в артборде нет и что добавлено здесь: адаптив. Макет нарисован на
 * 1440px; мобильный артборд отдельный, его метрики — в блоке @media внизу.
 */

@import url('/css/fonts.css');

:root {
  /* цвет */
  --ink: #2C234D;
  --ink-soft: #677294;
  --ink-mute: #8E96B3;
  --brand: #147F6C;
  --brand-hover: #18A48D;
  --brand-soft: #E8F3F0;
  --brand-pale: #57B6A0;
  --line: #F0F5FF;
  --line-strong: #C9CEDF;
  --bg: #FFFFFF;
  --bg-soft: #FBFCFE;
  --ink-deep: #050933;

  /* форма */
  --radius: 4px;
  --radius-lg: 6px;
  --wrap: 1200px;
  --gutter: 24px;
  --section-y: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Onest, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
p { margin: 0 0 14px; }
img { max-width: 100%; height: auto; }

/* --- типографика по макету --- */
.serif, h1, h2, h3 { font-family: Literata, Georgia, serif; color: var(--ink); }

h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -1.3px;
  text-wrap: pretty;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; line-height: 1.3; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--brand);
}
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.mute2 { color: var(--ink-mute); }
.small { font-size: 13.5px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }

/* --- сетка --- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: var(--section-y) 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 40px 0; }
/* Секция и контейнер одним элементом: для простых страниц лишняя обёртка
   только добавляет шанс не закрыть div. */
.section-wrap { display: block; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: var(--section-y) var(--gutter); }
.section-wrap.narrow { max-width: calc(760px + var(--gutter) * 2); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__note { font-size: 14px; color: var(--ink-soft); }
.section__head--stack { display: block; }
.section__head--stack .section__note { display: block; margin-top: 14px; max-width: 720px; }

/* --- кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: #fff; font-weight: 500; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--lg { height: 58px; padding: 0 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* --- шапка --- */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu { display: none; }
.mobile-menu__toggle { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.mobile-menu__toggle::-webkit-details-marker { display: none; }
.mobile-menu__toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.mobile-menu__close, .mobile-menu[open] .mobile-menu__hamburger { display: none; }
.mobile-menu[open] .mobile-menu__close { display: block; }
.mobile-menu__panel { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; padding: 12px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgb(44 35 77 / 10%); max-height: calc(100dvh - 170px); overflow-y: auto; }
.mobile-menu__panel > a:not(.btn) { display: flex; align-items: center; min-height: 44px; padding: 10px 0; color: var(--ink); }
.mobile-menu__panel > a:hover { color: var(--brand); }
.mobile-menu__phone { border-top: 1px solid var(--line); margin-top: 8px; }
.mobile-menu__panel .btn { margin-top: 8px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 21px 22px; }
.logo { display: flex; align-items: center; gap: 13px; color: var(--ink); flex: none; }
.logo__mark { flex-shrink: 0; }
.logo__text { font-family: Literata, Georgia, serif; font-size: 20px; font-weight: 600; letter-spacing: -0.2px; white-space: nowrap; }
.nav { display: flex; align-items: center; }
.nav a { padding: 0 12px; height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.nav a:hover, .nav a.is-active { color: var(--brand); font-weight: 600; }
.site-header__cta { display: flex; align-items: center; gap: 18px; flex: none; }
.site-header__phone { font-family: Literata, Georgia, serif; font-size: 19px; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* --- крошки --- */
.crumbs { border-bottom: 1px solid var(--line); }
.crumbs__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-block: 19px 20px; font-size: 13.5px; color: var(--ink-soft); }

/* --- первый экран --- */
.hero__inner { display: flex; gap: 80px; align-items: flex-start; }
.hero__main { flex: 1 1 690px; min-width: 0; }
.hero__illustration { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); margin-bottom: 20px; }
.hero__aside { flex: 0 1 400px; }
.hero .lead { margin: 0 0 30px; max-width: 590px; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 30px;
}
.fact__value { font-family: Literata, Georgia, serif; font-size: 26px; font-weight: 600; line-height: 1.05; margin: 0 0 8px; overflow-wrap: anywhere; }
.fact__value span { font-size: 15px; font-weight: 400; color: var(--ink-soft); }
.fact__label { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- карточка формы --- */
.card-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg-soft);
}
.card-form__title { font-family: Literata, Georgia, serif; font-size: 21px; font-weight: 600; margin: 0 0 6px; }
.card-form__sub { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 22px; }
.card-form__promises { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }

.tick { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.tick::before {
  content: '';
  flex: none;
  width: 15px; height: 15px;
  margin-top: 3px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' stroke='%23147F6C' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink); }
.ticks li::before {
  content: '';
  flex: none;
  width: 16px; height: 16px;
  margin-top: 3px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' stroke='%23147F6C' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --- главная: три факта в ряд с разделителями, как в артборде --- */
.facts--home { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 0; padding-bottom: 0; gap: 0; }
.facts--home > div { padding: 26px 24px 0; border-right: 1px solid var(--line); }
.facts--home > div:first-child { padding-left: 0; }
.facts--home > div:last-child { padding-right: 0; border-right: 0; }
.facts--home .fact__value { font-size: 32px; white-space: nowrap; }
.facts--home .fact__label { font-size: 13.5px; }

/* --- карточка «кто приедет» --- */
.face { display: flex; gap: 16px; align-items: center; }
.face__photo-link { flex:none; width:62px; }
.face__avatar { display:block; width:100%; height:auto; border-radius:8px; }
.face > div { min-width:0; overflow-wrap:anywhere; }
@media (max-width:450px) { .face { flex-direction:column; align-items:flex-start; } .face__photo-link { width:80px; } }
.face__name { font-family: Literata, Georgia, serif; font-size: 19px; font-weight: 600; margin: 0 0 2px; }
.face__role { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* --- полоса доверия --- */
.trust { background: var(--ink); color: #fff; padding: 45px 0 46px; }
.trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.trust__item { display: flex; gap: 13px; align-items: flex-start; }
.trust__item::before {
  content: '';
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' stroke='%2357B6A0' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.trust__title { font-size: 15.5px; font-weight: 600; color: #fff; margin: 0 0 4px; }
.trust__note { font-size: 13px; color: var(--line-strong); margin: 0; line-height: 1.45; }

/* --- шаги в ряд --- */
.steps.steps--row { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 28px; }
.steps.steps--row li { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.steps--row li strong { color: var(--ink); }

/* --- что входит в цену --- */
.included { display: grid; grid-template-columns: minmax(0, 1fr) 1px 360px; gap: 40px; align-items: start; }
.included__list ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.included__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; line-height: 1.5; margin: 0; }
.included__list li::before {
  content: '';
  flex: none;
  width: 16px; height: 16px;
  margin-top: 3px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' stroke='%23147F6C' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.included__list p:first-child { margin-top: 0; }
.included__list h3, .included__list strong { font-size: 15px; }
.included__rule { background: var(--line); width: 1px; height: 100%; }
.extras__title { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.extras__row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.extras__row:last-of-type { border-bottom: 0; }
.extras__price { font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.extras__note { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-top: 14px; }

/* --- тарифы --- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.tier { min-width: 0; overflow-wrap: anywhere; }
.tier__features { padding-left: 20px; margin: 0 0 18px; line-height: 1.6; }
.tier__features li + li { margin-top: 8px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: #fff; display: flex; flex-direction: column; }
.tier--featured { border-color: var(--brand); box-shadow: 0 2px 18px rgba(20, 127, 108, .08); }
.tier__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tier__title { font-family: Literata, Georgia, serif; font-size: 19px; font-weight: 600; margin: 0; }
.tier__badge { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); border-radius: 3px; padding: 5px 8px; line-height: 1.2; text-align: center; }
.tier__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 auto; }
.tier__price { font-family: Literata, Georgia, serif; font-size: clamp(22px, 2vw, 28px); font-weight: 600; margin: 24px 0 18px; }
.tier__price span { font-size: 15px; font-weight: 400; color: var(--ink-soft); }

.callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--brand-soft);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-top: 24px;
  font-size: 14.5px;
  line-height: 1.55;
}

/* --- зоны выезда --- */
.zone-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.zone-chip { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 20px; font-size: 14px; font-weight: 500; color: var(--ink); background: #fff; }
.zone-chip--on { background: var(--brand); border-color: var(--brand); color: #fff; }
.zone-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.zone-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; }
.zone-card__title { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.zone-card__eta { font-family: Literata, Georgia, serif; font-size: 26px; font-weight: 600; line-height: 1; }
.zone-card__eta span { font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.zone-card__note { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }

/* --- две колонки --- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cols--wide { gap: 64px; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(step);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px; font-weight: 600;
  font-family: Literata, Georgia, serif;
}

.warn { border: 1px solid var(--line-strong); border-left: 3px solid var(--brand); border-radius: var(--radius-lg); padding: 24px; background: #fff; }

/* --- текст из базы --- */
.prose { font-size: 15.5px; line-height: 1.65; }
.prose > :last-child { margin-bottom: 0; }
.prose h3 { margin: 28px 0 10px; }
.prose h4 { margin: 22px 0 8px; font-size: 16px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 7px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.prose { overflow-wrap: anywhere; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 600; }

/* --- таблицы прайса --- */
/* Длинные названия услуг не влезают в узкий экран: таблица прокручивается
   внутри своей рамки, а не растягивает всю страницу. */
.table-scroll { overflow-x: auto; }
.prose .service-information-table { table-layout: fixed; }
.service-information-table caption { text-align: left; font-weight: 600; padding: 0 0 12px; color: var(--ink); }
.service-information-table th, .service-information-table td { overflow-wrap: anywhere; vertical-align: top; }
.service-information-table th:first-child { width: 35%; }
.service-information-table tbody th { text-align: left; font-weight: 600; background: #f5f9f7; }
.table-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.price-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 14.5px; }
.price-table th { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); text-align: left; padding: 0 0 12px; border-bottom: 1px solid var(--line-strong); }
.price-table td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table__value { font-weight: 600; }
.price-table__group td { padding-top: 26px; font-family: Literata, Georgia, serif; font-size: 17px; font-weight: 600; border-bottom: 0; }

/* --- карточки --- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; color: inherit; }
.card:hover { border-color: var(--brand); color: inherit; }
.card__title { font-family: Literata, Georgia, serif; font-size: 17px; font-weight: 600; }
.card__lead { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.card__price { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.catalog-cards { align-items: start; }
.catalog-cards .card__price { margin-top: 0; }
.catalog-cards ul { margin: 8px 0 0; padding-left: 20px; }
.catalog-cards li + li { margin-top: 8px; }
.home-team { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.home-team__people { display: flex; gap: 16px; margin: 16px 0; }
.home-team__person { flex: 1; min-width: 0; font-size: 12px; line-height: 1.4; }
.home-team__person img { display: block; width: 64px; height: 80px; object-fit: contain; margin-bottom: 8px; }
.home-team__person span { display: block; color: var(--ink-soft); margin-top: 4px; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.person { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; }
.person__name { font-family: Literata, Georgia, serif; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.person__role { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }
.person__meta { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.review__text { font-size: 14.5px; line-height: 1.6; margin: 0; }
.review__meta { margin-top: auto; font-size: 13px; color: var(--ink-soft); }

/* --- вопросы и ответы --- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 18px 22px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; font-size: 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq .prose { margin-top: 12px; color: var(--ink-soft); font-size: 14.5px; }

.inline-list { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 14.5px; }
.inline-list a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.inline-list a:hover { color: var(--brand); border-color: var(--brand); }

/* --- финальный призыв --- */
.cta { background: var(--ink); color: #fff; padding: 68px 0; }
.cta h2 { color: #fff; }
.cta__inner { display: flex; gap: 48px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.cta__text { flex: 1 1 340px; }
.cta__text p { color: var(--line-strong); margin-bottom: 24px; }
.cta__form { flex: 0 1 420px; background: #fff; border-radius: var(--radius-lg); padding: 26px; color: var(--ink); }
.cta .btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }

/* --- авторство --- */
.byline { padding: 28px 0; font-size: 13.5px; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* --- подвал --- */
.site-footer { background: var(--ink-deep); color: #C9CEDF; padding: 40px 0 26px; margin-top: 0; }
.site-footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 26px; border-bottom: 1px solid var(--ink); }
.site-footer__brand { font-family: Literata, Georgia, serif; font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.site-footer__phone { font-family: Literata, Georgia, serif; font-size: 21px; font-weight: 600; color: #fff; margin-bottom: 6px; display: block; }
.site-footer__phone:hover { color: #fff; }
.site-footer__title { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-pale); margin-bottom: 14px; }
.site-footer__list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__list a, .site-footer a { color: #C9CEDF; }
.site-footer__list a:hover, .site-footer a:hover { color: #fff; }
.site-footer__hours { font-size: 13.5px; line-height: 1.7; }
.site-footer__hours strong { color: #fff; font-weight: 600; }
.site-footer__bottom { padding-top: 20px; display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-mute); line-height: 1.6; }
.site-footer__legal { max-width: 780px; }
.site-footer__links { display: flex; gap: 22px; flex-wrap: wrap; flex-shrink: 0; }

/* --- форма заявки --- */
.lead-form { display: grid; gap: 14px; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.lead-form label { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-soft); }
.lead-form input, .lead-form textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  height: 52px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; width: 100%;
}
.lead-form textarea { height: auto; padding: 13px 16px; resize: vertical; line-height: 1.5; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--brand); }
.lead-form .btn { width: 100%; height: 52px; }
.lead-form__note { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.lead-form label.lead-form__consent { display: flex; align-items: flex-start; gap: 9px; }
.lead-form__consent input { width: 17px; height: 17px; flex: none; margin-top: 2px; accent-color: var(--brand); }
.lead-form__consent span { font-size: 12.5px; line-height: 1.45; }
/* Ловушка для роботов: человек её не видит и не заполняет. */
.lead-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: #FDECEA; color: #B3261E; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; font-size: 14px; }
.form-errors ul { margin: 0; padding-left: 18px; }

/* --- липкая панель (мобильный артборд) --- */
.sticky-bar { display: none; }

/* ---------------------------------------------------------------- адаптив */
@media (max-width: 1100px) {
  .hero__inner { gap: 40px; }
  .included { grid-template-columns: 1fr 1fr; }
  .included__rule { display: none; }
  .included__extras { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 28px; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 24px 30px; }
}

@media (max-width: 860px) {
  /* Панель перекрывает низ страницы — добавляем запас под неё. */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; align-items: center; gap: 8px;
    height: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 12px max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: #fff; border-top: 1px solid #E5EAF5;
    box-shadow: 0 -6px 24px rgba(5, 9, 51, .14);
  }
  .sticky-bar .btn { flex: 1 1 0; height: 52px; padding: 0 12px; font-size: 15.5px; min-width: 0; }

  .facts--home { grid-template-columns: 1fr; }
  .facts--home > div { padding: 18px 0 0; border-right: 0; border-top: 1px solid var(--line); }
  .facts--home > div:first-child { border-top: 0; padding-top: 0; }
  :root { --section-y: 44px; --gutter: 20px; }
  .nav { display: none; }
  .mobile-menu { display: block; flex: none; }
  .site-header__cta { margin-left: auto; }
  .site-header__cta .btn { display: none; }
  .site-header__phone { font-size: 17px; }
  .hero__inner { flex-direction: column; }
  .hero__main { flex-basis: auto; width: 100%; }
  .hero__aside { flex-basis: auto; width: 100%; }
  .hero__inner > .card-form { width: 100%; min-width: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .facts--home { grid-template-columns: 1fr; }
  .cols, .included { grid-template-columns: 1fr; gap: 32px; }
  .cta { padding: 44px 0; }
  .cta__form { flex-basis: auto; width: 100%; }
}

@media (max-width: 560px) {
  .cards, .tiers, .reviews { grid-template-columns: minmax(0, 1fr); }
  /* Метрики мобильного артборда design/mobile-usluga-kapelnica.html */
  h1 { font-size: 33px; line-height: 1.14; letter-spacing: -0.8px; margin-bottom: 16px; }
  h2 { font-size: 25px; letter-spacing: -0.3px; }
  .trust__grid { grid-template-columns: 1fr; gap: 18px; }
  .trust { padding: 32px 0; }
  /* Телефон доступен в меню и нижней панели; в шапке оставляем место кнопке меню. */
  .site-header__cta { display: none; }
  .site-header__phone { font-size: 15.5px; }
  .logo__text { font-size: 17px; }
  .logo { gap: 9px; }
  .logo__mark { width: 28px; height: 28px; }
  .site-header__inner { gap: 12px; }
  .lead { font-size: 16px; }
  .lead-form__row { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .hero__actions .btn { width: 100%; height: auto; min-height: 58px; white-space: normal; text-align: center; }
  .zone-chip { padding: 9px 14px; font-size: 13.5px; }
}

/* District selection and responsive editorial media */
.steps--row li p { margin: 10px 0 0; }
.zone-chip { cursor: pointer; font-family: inherit; }
.zone-chip:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.zone-detail { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; background: white; border: 1px solid var(--line-strong); margin-bottom: 20px; }
.zone-detail[hidden] { display: none; }
.zone-detail > div { min-width: 0; }
.zone-detail .btn { flex-shrink: 0; }
.article-cover { display: block; width: 100%; height: auto; }
.blog-topics { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.blog-topics a { padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 4px; }
.blog-topic { margin-top: 44px; scroll-margin-top: 100px; }
.blog-topic h2 { margin-bottom: 24px; }
.article-next { margin: 32px 0; padding: 24px; background: var(--bg-soft, #f8fafb); border: 1px solid var(--line); }
.article-next li { margin: 12px 0; }
.article-banner { display: grid; grid-template-columns: minmax(0, 1fr); margin: 36px 0; border: 1px solid var(--line-strong); background: #f1f7f5; overflow: hidden; }
.article-banner__image { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }
.article-banner__content { padding: 24px; min-width: 0; }
.article-banner__content h2 { margin: 0 0 16px; font-size: 25px; line-height: 1.3; }
.article-banner .lead-form__row { grid-template-columns: 1fr; }
.article-banner .btn { width: 100%; white-space: normal; height: auto; min-height: 52px; padding: 12px; }
.article-banner__urgent { font-weight: 600; }
@media (max-width: 650px) { .article-banner__content { padding: 18px; } .article-banner__content h2 { font-size: 22px; } }
.article-illustration { margin: 32px 0; }
.article-illustration img { display: block; width: 100%; height: auto; }
.article-illustration figcaption { padding: 10px 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.article-banner .article-illustration { margin: 0; }
.article-table-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; }
.article-table-scroll table { width: 100%; border-collapse: collapse; min-width: 480px; }
.article-table-scroll caption { text-align: left; font-weight: 600; padding: 0 0 12px; }
.article-table-scroll th, .article-table-scroll td { text-align: left; vertical-align: top; padding: 12px; border: 1px solid var(--line-strong); }
.article-table-scroll th { background: #edf5f1; }
.prose [id], #article-questions { scroll-margin-top: 100px; }
.related-articles .article-cover, .blog-topic .article-cover { aspect-ratio: 3 / 2; object-fit: cover; }
.nav a { padding: 0 7px; font-size: 14px; }
@media (min-width: 861px) and (max-width: 1200px) {
  .nav { display: none; }
  .mobile-menu { display: block; flex: none; }
  .site-header__cta { margin-left: auto; }
  .site-header__cta .btn { display: none; }
}
.contact-map { width: 100%; height: 420px; border: 0; }
@media (max-width: 650px) { .zone-detail { flex-direction: column; align-items: stretch; padding: 18px; } .contact-map { height: 320px; } }
/* Team photos preserve the supplied portrait; author cards also work at 320px. */
.person__photo { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; border-radius:12px; margin-bottom:16px; background:#f5f8f7; }
.specialist-photo { display:block; width:min(100%,360px); height:auto; border-radius:16px; margin:0 0 24px; }
.specialist-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:24px 0; overflow-wrap:anywhere; }
.specialist-facts dt { font-weight:600; margin-bottom:8px; }
.specialist-facts dd { margin:0; line-height:1.65; }
@media (max-width:650px) { .specialist-facts { grid-template-columns:minmax(0,1fr); } }
.article-author { display:flex; align-items:center; gap:24px; margin:32px 0 20px; padding:24px; background:#f1f7f5; border:1px solid #d7e6df; border-radius:16px; }
.article-author img { width:112px; height:112px; object-fit:contain; border-radius:12px; flex-shrink:0; }
.article-author p { margin:0 0 8px; }
.article-author > div { min-width:0; }
.author-articles li { margin-bottom:12px; }
@media(max-width:480px) { .article-author { align-items:flex-start; flex-direction:column; gap:16px; padding:20px; } }
/* Keep anchors, keyboard focus and the open menu clear of persistent controls. */
:root { --header-height: 103px; --bottom-bar-height: 0px; }
html { scroll-padding-top: calc(var(--header-height) + 16px); scroll-padding-bottom: calc(var(--bottom-bar-height) + 16px); }
.mobile-menu__panel { max-height: calc(100dvh - var(--header-height) - var(--bottom-bar-height)); overscroll-behavior: contain; }
@media (max-width: 860px) {
  :root { --bottom-bar-height: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .site-header__inner { padding-block: 12px; }
  .sticky-bar__call { gap: 8px; }
}
@media print {
  .site-header { position: static; }
  .sticky-bar, .mobile-menu { display: none; }
  body { padding-bottom: 0; }
}
/* Long procedure names must wrap even on 320px screens. */
main h1, main h2, main h3, .breadcrumbs { overflow-wrap: anywhere; }
.home-price-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.home-price-table th, .home-price-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line-strong); }
.home-price-table th:last-child, .home-price-table td:last-child { text-align: right; white-space: nowrap; }
.home-price-details summary { cursor: pointer; color: var(--brand); padding-block: 12px; }
.home-price-details .ticks { margin-top: 12px; }
.home-hero .hero__aside { flex-basis: 400px; }
.home-steps.steps--row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .home-steps.steps--row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .home-hero .hero__aside { flex-basis: auto; } .home-steps.steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-steps.steps--row { grid-template-columns: minmax(0, 1fr); } .home-price-table th, .home-price-table td { padding-inline: 4px; font-size: 14px; } }
.home-price-table caption { text-align: left; color: var(--ink-soft); font-size: 14px; padding-bottom: 12px; }
