/* Montserrat, вариативный шрифт 300–700 (fontsource), локально */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/montserrat-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/montserrat-var-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/montserrat-var-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}

:root {
  --bg: #120603;
  --bg-2: #1c0c06;
  --line: rgba(244, 173, 123, .28);
  --text: #fff;
  --muted: rgba(255, 255, 255, .78);
  --accent: #f4ad7b;
  --accent-2: #e18442;
  --btn-text: #2b1307;
  --radius: 14px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-weight: 400; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(900px + 2 * var(--gutter)); }
.center { text-align: center; }
.lead { font-size: clamp(15px, 1.4vw, 17px); color: var(--muted); font-weight: 500; }
.h-caps { font-size: clamp(24px, 3.4vw, 42px); text-transform: uppercase; letter-spacing: .01em; }
.h-light { font-size: clamp(30px, 4.2vw, 56px); font-weight: 300; }
section { padding: clamp(56px, 8vw, 110px) 0; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--btn-text); font-weight: 600; font-size: 15px; text-decoration: none; text-align: center;
  border: 0; border-radius: 8px; cursor: pointer;
  box-shadow: 0 5px 0 rgba(225, 132, 66, .35), 0 10px 30px rgba(225, 132, 66, .18);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(225, 132, 66, .35); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--lg { min-height: 58px; padding: 16px 38px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; white-space: nowrap; }
.linkbtn { background: none; border: 0; padding: 8px 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- шапка ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 5; padding: 18px 0; }
.page-privacy .top, .page-404 .top { position: static; border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 12px; font-weight: 600; line-height: 1.35; max-width: 230px; }
.brand img { width: 46px; flex: none; }
.top__mail { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto; color: var(--text); text-decoration: none; font-weight: 500; }
.top__mail img { width: 16px; }
.top__side { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.top__mail + .top__side { margin-left: 0; }

.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .15s; }
.social a:hover { background: rgba(244, 173, 123, .25); }
.social img { width: 18px; height: 18px; }

.langs { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.langs a, .langs span { padding: 6px 8px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.langs span { color: var(--btn-text); background: var(--accent); }
.langs a:hover { color: var(--text); }

/* ---------- первый экран ---------- */
.hero {
  position: relative; min-height: min(100vh, 900px); display: flex; align-items: center;
  padding: 140px 0 100px; text-align: center;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(18, 6, 3, .55) 35%, rgba(18, 6, 3, .45) 100%), var(--img, none) center / cover no-repeat var(--bg);
}
@media (max-width: 799px) {
  .hero { background-image: linear-gradient(0deg, var(--bg) 0%, rgba(18, 6, 3, .55) 35%, rgba(18, 6, 3, .45) 100%), var(--img-s, var(--img, none)); }
}
.hero__in { max-width: 900px; }
.hero__title { font-size: clamp(40px, 7vw, 84px); font-weight: 300; margin-bottom: .4em; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.hero__text { max-width: 720px; margin: 0 auto 36px; font-size: clamp(15px, 1.5vw, 17px); font-weight: 500; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }

/* ---------- проект храма и галерея ---------- */
.project { padding-top: 20px; }
.project .lead { max-width: 760px; margin: 0 auto 40px; }
.gallery { position: relative; margin-bottom: 40px; }
.gallery__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: none; margin: 0; height: clamp(300px, 42vw, 560px); scroll-snap-align: center; }
.gallery__item img { height: 100%; width: auto; max-width: none; border-radius: var(--radius); object-fit: cover; }
.gallery__nav {
  position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(18, 6, 3, .75); backdrop-filter: blur(4px); transition: background .15s;
}
.gallery__nav:hover { background: rgba(18, 6, 3, .95); }
.gallery__nav--prev { left: max(12px, calc(50% - 640px)); }
.gallery__nav--next { right: max(12px, calc(50% - 640px)); }
.gallery__nav--next img { transform: scaleX(-1); }
.gallery__nav[disabled] { opacity: .3; cursor: default; }

/* ---------- почему ---------- */
.why { background: radial-gradient(ellipse at 20% 50%, rgba(225, 132, 66, .12), transparent 60%), #000; border-radius: 40px 40px 0 0; }
.why__in { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 6vw, 90px); align-items: center; }
.why__num {
  font-size: clamp(120px, 20vw, 280px); font-weight: 300; line-height: .8;
  background: linear-gradient(180deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.why .lead { max-width: 640px; }

/* ---------- священники ---------- */
.priests {
  background: linear-gradient(180deg, #000 0%, rgba(18, 6, 3, .55) 35%, rgba(18, 6, 3, .75) 75%, var(--bg) 100%), var(--img, none) center / cover no-repeat var(--bg);
}
.priests__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.priest { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: var(--radius); background: rgba(18, 6, 3, .55); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .08); }
.priest h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; }
.priest__text { flex: 1; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }

/* ---------- другие интенции ---------- */
.services__box { border: 1.5px solid var(--accent); border-radius: 36px; padding: clamp(28px, 5vw, 64px); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.service { display: flex; flex-direction: column; align-items: center; text-align: center; }
.service__img { width: 100%; aspect-ratio: 280 / 190; object-fit: cover; border-radius: 10px; margin-bottom: 20px; }
.service h3 { font-size: 19px; font-weight: 600; }
.service__text { flex: 1; font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* ---------- вопросы ---------- */
.faq .lead { max-width: 720px; margin: 0 auto; }
.faq__list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(18px, 2.2vw, 26px); color: var(--accent); line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #000
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M7 0v14M0 7h14' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 24px; color: var(--muted); font-size: 15px; }

/* ---------- текстовые блоки ---------- */
.rich h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.rich h3 { font-size: 20px; margin: 1.5em 0 .5em; color: var(--accent); }
.rich ul { padding-left: 1.2em; margin: 0 0 1em; }
.rich li { margin-bottom: .3em; }
.rich > :first-child { margin-top: 0; }
.article { padding-top: 0; }
.article__body { color: var(--muted); }
.js .article__body.is-collapsed { max-height: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.doc { padding-top: 60px; }

/* ---------- подвал ---------- */
.foot { background: #0b0402; padding: 44px 0 24px; border-top: 1px solid rgba(255, 255, 255, .06); }
.foot__in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; }
.foot__brand { display: flex; gap: 12px; align-items: center; font-size: 12px; font-weight: 600; max-width: 240px; }
.foot__brand img { width: 46px; flex: none; }
.foot__contacts { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.foot__contacts a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; }
.foot__contacts a:hover { color: var(--accent); }
.foot__side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 13px; color: rgba(255, 255, 255, .5); }
.foot__bottom a { color: rgba(255, 255, 255, .6); }

/* ---------- окно заказа ---------- */
.modal {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line);
  border-radius: 18px; background: var(--bg-2); color: var(--text); overflow: auto;
}
.modal::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(3px); }
.order, .order__done { position: relative; padding: 36px clamp(20px, 5vw, 40px) 32px; }
.order h2 { font-size: 26px; padding-right: 30px; }
.order__intro { color: var(--muted); font-size: 14px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px;
}
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .09); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 16px; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-2); }
.order__msg { min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--accent); }
.order__msg.is-error { color: #ff8f7a; }
.order__submit { width: 100%; }
.order__submit[disabled] { opacity: .6; cursor: wait; }
.order__done p { font-size: 20px; margin: 30px 0 10px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .top__mail { display: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}
@media (max-width: 900px) {
  .priests__grid { grid-template-columns: 1fr; gap: 18px; }
  .foot__in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot__side { align-items: center; }
  .foot__brand { max-width: none; }
}
@media (max-width: 720px) {
  .top { padding: 12px 0; }
  .top .social { display: none; }
  .top__side { gap: 10px; }
  .brand { font-size: 11px; max-width: 150px; }
  .brand img { width: 38px; }
  .hero { min-height: 92vh; padding: 110px 0 70px; }
  .why { border-radius: 26px 26px 0 0; }
  .why__in { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .why .lead { margin: 0 auto; }
  .gallery__nav { width: 44px; height: 44px; margin-top: -22px; }
  .gallery__item { height: 300px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .foot__bottom { flex-direction: column; align-items: center; }
  .services__box { border-radius: 24px; }
}
@media (max-width: 520px) {
  .services__grid { grid-template-columns: 1fr; }
  .top .btn--sm { padding: 8px 12px; font-size: 13px; }
  .langs a, .langs span { padding: 5px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html, .gallery__track { scroll-behavior: auto; }
  .btn, .faq__item summary::after { transition: none; }
}

/* ---------- меню ---------- */
.page-page .top, .page-article .top, .page-blog .top { position: static; }
.nav { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 14px; }
.page-home .nav { background: linear-gradient(rgba(18, 6, 3, .35), transparent); }
.nav__in { display: flex; gap: 4px 26px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 2px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .08); cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 20px; height: 2px; background: #fff; content: ''; transition: transform .2s; }
.burger span { top: 20px; }
.burger span::before { top: -6px; left: 0; }
.burger span::after { top: 6px; left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 28px; }
.foot__nav a { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 14px; }
.foot__nav a:hover { color: var(--accent); }

/* ---------- внутренние страницы ---------- */
.crumbs { padding-top: 18px; font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; color: rgba(255, 255, 255, .55); }
.crumbs li + li::before { content: '›'; margin-right: 4px; }
.crumbs a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.doc { padding-top: 34px; }
.doc__head { margin-bottom: 30px; }
.doc__head .lead { font-size: clamp(16px, 1.7vw, 19px); }
.doc__head .btn { margin-top: 8px; }
.doc__img { width: 100%; border-radius: var(--radius); margin-bottom: 30px; }
.doc__body { font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, .88); }
.doc__body h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; color: var(--text); margin: 1.8em 0 .6em; scroll-margin-top: 20px; }
.doc__body h3 { font-size: 20px; }
.doc__body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.doc__body table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 15px; display: block; overflow-x: auto; }
.doc__body th, .doc__body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc__body th { color: var(--accent); font-weight: 600; }
.doc__body .note { padding: 16px 20px; border-radius: 10px; background: rgba(244, 173, 123, .08); border: 1px solid var(--line); }
.todo { background: #ffe24a; color: #000; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: rgba(255, 255, 255, .55); font-size: 14px; }
.toc { margin: 0 0 30px; padding: 18px 22px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.toc__title { font-weight: 600; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.page-faq { margin-top: 50px; }
.page-faq h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; }
.page-faq .faq__item summary { font-size: clamp(17px, 1.8vw, 21px); }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 56px 0 40px; padding: clamp(22px, 4vw, 36px); border: 1.5px solid var(--accent); border-radius: 22px; background: radial-gradient(ellipse at 10% 0%, rgba(225, 132, 66, .14), transparent 60%); }
.cta-box h2 { font-size: 24px; margin-bottom: .3em; }
.cta-box p { color: var(--muted); margin: 0; }
.related { margin-bottom: 60px; }
.related h2 { font-size: 20px; font-weight: 600; margin-top: 28px; }
.related ul { padding-left: 1.2em; }
.related li { margin: 6px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px 0; }
.card { display: flex; flex-direction: column; padding: 22px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card img { width: calc(100% + 44px); margin: -22px -22px 16px; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px 16px 0 0; }
.card h2, .card h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.service h3 a { color: inherit; text-decoration: none; }
.service h3 a:hover { color: var(--accent); }
.service__more { margin-top: 10px; font-size: 13px; font-weight: 600; text-decoration: none; }
.latest { padding-top: 0; }
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .burger { display: inline-block; }
  .nav { display: none; }
  .nav.is-open { display: block; background: var(--bg-2); }
  .page-home .nav.is-open { background: rgba(18, 6, 3, .96); }
  .nav__in { flex-direction: column; gap: 0; padding-bottom: 10px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 16px; }
  .top__side:has(.burger) .btn--sm { display: none; }
  .cards { grid-template-columns: 1fr; }
  .doc__body { font-size: 16px; }
}
.doc section { padding: 0; }

/* ---------- выбор языка ---------- */
.langsel { position: relative; }
.langsel > summary {
  display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08);
  font-size: 13px; font-weight: 700; color: var(--text); user-select: none;
}
.langsel > summary::-webkit-details-marker { display: none; }
.langsel > summary::before {
  content: ''; width: 16px; height: 16px; flex: none; opacity: .85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9s-1.3 6.3-3.8 9c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.langsel > summary::after { content: ''; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.langsel[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.langsel > summary:hover { background: rgba(244, 173, 123, .2); }
.langsel__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px; max-height: min(70vh, 520px); overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; border-radius: 12px; background: var(--bg-2);
  border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.langsel--up .langsel__list { top: auto; bottom: calc(100% + 8px); }
.langsel__list a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.langsel__list a b { width: 24px; font-size: 11px; color: var(--muted); }
.langsel__list a:hover { background: rgba(255, 255, 255, .06); }
.langsel__list a[aria-current] { background: rgba(244, 173, 123, .16); color: var(--accent); }
.langsel__list a[aria-current] b { color: var(--accent); }
@media (max-width: 720px) {
  .langsel__list { position: fixed; left: 16px; right: 16px; top: 64px; min-width: 0; }
  .langsel--up .langsel__list { top: auto; bottom: 16px; }
}

/* ---------- картинка страницы ---------- */
.doc__fig { margin: 0 0 34px; }
.doc__fig .doc__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 0; }
.doc__fig figcaption, .churchbox__img figcaption { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.doc__fig figcaption a, .churchbox__img figcaption a { color: rgba(255, 255, 255, .6); }

/* ---------- блок «костёл + форма» ---------- */
.churchbox {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 44px); margin: 56px 0 50px;
  padding: clamp(20px, 4vw, 36px); border: 1.5px solid var(--accent); border-radius: 24px;
  background: radial-gradient(ellipse at 0% 0%, rgba(225, 132, 66, .12), transparent 60%), var(--bg-2);
}
.churchbox h2 { font-size: clamp(21px, 2.3vw, 26px); font-weight: 400; margin-bottom: .5em; }
.churchbox__info p { color: var(--muted); font-size: 15px; }
.churchbox__img { margin: 0 0 20px; }
.churchbox__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.churchbox__form .order { padding: 0; }
.churchbox__form .order__intro { color: var(--muted); font-size: 14px; }
.home-church { padding-top: 0; }
@media (max-width: 900px) { .churchbox { grid-template-columns: 1fr; } }
.churchbox > * { min-width: 0; }
.churchbox .field select, .churchbox .field input, .churchbox .field textarea { max-width: 100%; }

/* ---------- главная по новой структуре ---------- */
.hero__kicker { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.hero__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn--ghost { background: rgba(18, 6, 3, .45); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(244, 173, 123, .18); }
.home-sec { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 0; }
.home-sec + .home-sec { padding-top: clamp(40px, 5vw, 70px); }
.more-links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.more-links a { display: inline-block; padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 600; }
.more-links a:hover { background: rgba(244, 173, 123, .12); }
.steps { list-style: none; padding: 0; margin: 34px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.step__n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; margin-bottom: 14px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: var(--btn-text); font-weight: 700; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }
.how .linkbtn { margin-top: 10px; }
.priests__lead { max-width: 760px; }
.priest h3 a { color: inherit; text-decoration: none; }
.priest h3 a:hover { color: var(--accent); }
.home-final { padding-top: 0; }
.churchbox--final { margin-top: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- баннер cookie ---------- */
.cc {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 16px 50px rgba(0, 0, 0, .55);
}
.cc[hidden] { display: none; }
.cc p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.cc p a { color: var(--accent); }
.cc__btns { display: flex; gap: 10px; flex: none; }
.cc__reject { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.cc__reject:hover { background: rgba(255, 255, 255, .06); }
.foot__links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.linkish-foot { background: none; border: 0; padding: 0; color: rgba(255, 255, 255, .6); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) { .cc { flex-direction: column; align-items: stretch; } .cc__btns .btn { flex: 1; } }
.gallery__item img { height: 100%; width: auto; }

/* ---------- галерея вдвое меньше + кнопки-ссылки (19.09) ---------- */
.gallery__item { height: clamp(170px, 21vw, 280px); }
.gallery { margin-top: 34px; }
.gallery__nav { width: 44px; height: 44px; margin-top: -22px; background: rgba(18, 6, 3, .85); box-shadow: inset 0 0 0 1.5px var(--line); }
.gallery__nav:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.more-links { gap: 12px; margin: 24px 0 0; }
.more-links a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 20px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 173, 123, .14), rgba(225, 132, 66, .08));
  border: 1px solid rgba(244, 173, 123, .45);
  color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: .01em;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.more-links a::after {
  content: ''; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%232b1307' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h8M6.5 2.5 10 6l-3.5 3.5'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .2s;
}
.more-links a:hover {
  background: linear-gradient(180deg, rgba(244, 173, 123, .26), rgba(225, 132, 66, .16));
  border-color: var(--accent); transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(225, 132, 66, .18);
}
.more-links a:hover::after { transform: translateX(3px); }
@media (max-width: 720px) {
  .gallery__item { height: 180px; }
  .more-links a { font-size: 13px; padding: 9px 14px 9px 16px; }
}
.project .narrow .lead { margin-left: 0; margin-right: 0; }
