/*
Theme Name: Archevêché — Классика
Theme URI: https://archeveche.eu
Author: LiVideo
Author URI: https://livideo.fr
Description: Тема сайта Архиепископии Православных Церквей Русской Традиции в Западной Европе. Работает вместе с плагином «Archevêché — ядро сайта» и Polylang.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: archeveche
*/

:root {
  --blue: #232f66; --blue-2: #34448a; --blue-3: #1a2350; --blue-soft: #eef0f8; --blue-line: #dfe3f2;
  --red: #d9432b; --red-2: #c23a24; --red-soft: #f0a090;
  --bg: #fbf9f4; --panel: #f4f1e8; --paper: #fff; --img-bg: #f1eee6;
  --line: #d9d4c7; --line-2: #e3e0d6; --line-3: #eeebe3; --input: #c9c4b6;
  --text: #1f2433; --text-2: #3a3f4f; --muted: #5b6070;
  --serif-d: 'Cormorant Garamond', Georgia, serif; --serif: 'PT Serif', Georgia, serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--serif); font-size: 16px; line-height: 1.65; }
a { color: var(--blue-2); }
a:hover { color: var(--red-2); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: var(--blue-line); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--red-2); }
.h-display { font-family: var(--serif-d); font-weight: 600; color: var(--blue); line-height: 1.1; margin: 0; }
.btn { display: inline-block; padding: 11px 22px; background: var(--blue-2); color: #fff; text-decoration: none; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--blue-2); cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue-2); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue); }
.more-link { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--red-2); }

/* ---------- Верхняя полоса и шапка ---------- */
.topbar { background: var(--blue); color: #dfe3f2; }
.topbar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 2px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { font-size: 13px; letter-spacing: .04em; padding: 4px 12px; color: #dfe3f2; text-decoration: none; }
.topbar a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar a.current { background: var(--red); color: #fff; }
.site-header { background: #fff; border-bottom: 3px double var(--blue-2); position: relative; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 26px 24px 18px; }
.brand a { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 112px; width: auto; display: block; }
.brand .name { font-family: var(--serif-d); font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; color: var(--blue); max-width: 780px; text-wrap: balance; }
.brand .patr { display: flex; align-items: center; gap: 12px; color: var(--red); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.brand .patr::before, .brand .patr::after { content: ""; width: 48px; height: 1px; background: var(--red); }

.main-nav { border-top: 1px solid var(--line-2); }
.main-nav > .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; padding: 0 12px; }
.nav-toggle { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.menu > li { position: relative; }
.menu > li > a { display: flex; align-items: center; gap: 6px; padding: 13px 9px; white-space: nowrap; text-decoration: none; font-size: 15px; color: var(--text); border-bottom: 2px solid transparent; }
.menu > li.menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 2px; }
.menu > li:hover > a, .menu > li.open > a { color: var(--blue); border-bottom-color: var(--red); }
.menu > li.current-menu-item > a, .menu > li.current-menu-ancestor > a, .menu > li.current_page_item > a { color: var(--blue); border-bottom-color: var(--blue-2); }
.menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.menu > li > .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--red); box-shadow: 0 12px 28px rgba(35,47,102,.14); padding: 14px 8px; width: max-content; min-width: 250px; max-width: min(620px, 92vw); }
.menu > li:hover > .sub-menu, .menu > li.open > .sub-menu { display: flex; flex-direction: column; gap: 0; }
.menu > li > .sub-menu > li.menu-item-has-children { order: -1; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line-3); }
.menu .sub-menu a { display: block; padding: 7px 14px; text-decoration: none; color: var(--text); font-size: 15px; }
.menu .sub-menu a:hover { background: var(--blue-soft); color: var(--blue); }
.menu .sub-menu > li.menu-item-has-children { min-width: 230px; }
.menu .sub-menu > li.menu-item-has-children > a { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red-2); pointer-events: none; padding-bottom: 4px; }
.menu .sub-menu .sub-menu { display: block; position: static; }
.menu .sub-menu .sub-menu a { padding-left: 24px; }
.menu > li:last-child > .sub-menu, .menu > li:nth-last-child(2) > .sub-menu { left: auto; right: 0; }
.nav-search { display: flex; align-items: center; padding: 13px 14px; color: var(--blue-2); }

@media (max-width: 960px) {
  .brand { padding: 18px 16px 14px; }
  .brand img { height: 78px; }
  .nav-toggle { display: flex; align-items: center; gap: 10px; margin: 0 auto; padding: 12px 18px; border: 0; background: none; font-family: inherit; font-size: 15px; color: var(--blue); cursor: pointer; letter-spacing: .08em; text-transform: uppercase; }
  .nav-toggle svg { width: 20px; height: 20px; }
  .main-nav > .wrap { flex-direction: column; align-items: stretch; padding: 0; }
  .main-nav .menu { display: none; flex-direction: column; border-top: 1px solid var(--line-2); }
  .main-nav.is-open .menu { display: flex; }
  .menu > li > a { justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line-3); }
  .menu > li > .sub-menu { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--red); margin: 0 0 6px 18px; width: auto; max-width: none; padding: 6px 0; }
  .menu > li:hover > .sub-menu { display: none; }
  .menu > li.open > .sub-menu { display: flex; flex-direction: column; }
  .nav-search { display: none; }
}

/* ---------- Заголовок страницы ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line-2); }
.page-head .wrap { padding-top: 40px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--blue-2); text-decoration: none; }
.page-head h1 { font-family: var(--serif-d); font-weight: 600; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; color: var(--blue); margin: 0; text-wrap: balance; }
.page-head .meta { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); }
.ornament { display: flex; align-items: center; gap: 12px; }
.ornament::before { content: ""; width: 56px; height: 2px; background: var(--red); }
.ornament::after { content: ""; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }

/* ---------- Сетки ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 80px; }
.layout.wide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; } }

/* ---------- Текст статей и страниц ---------- */
.entry { font-size: 17px; line-height: 1.75; max-width: 780px; overflow-wrap: break-word; }
.entry > *:first-child { margin-top: 0; }
.entry p { margin: 0 0 1.05em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.entry h1 { display: none; }
.entry h2, .entry h3, .entry h4 { font-family: var(--serif-d); font-weight: 600; color: var(--blue); line-height: 1.2; margin: 1.4em 0 .5em; }
.entry h2 { font-size: 30px; } .entry h3 { font-size: 25px; } .entry h4 { font-size: 21px; }
.entry .lead { font-family: var(--serif-d); font-size: clamp(22px, 2.2vw, 26px); line-height: 1.45; color: var(--blue); font-style: italic; }
.entry blockquote { margin: 1.2em 0; padding: 24px 28px; background: #fff; border-left: 4px solid var(--red); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.entry blockquote p { font-family: var(--serif-d); font-size: 24px; line-height: 1.35; color: var(--blue); margin: 0 0 .4em; }
.entry blockquote cite { font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); }
.entry img { height: auto; border: 1px solid var(--line); background: var(--img-bg); }
.entry figure { margin: 1.2em 0; max-width: 100%; }
.entry figcaption, .entry .wp-element-caption { font-size: 13.5px; font-style: italic; color: var(--muted); margin-top: 6px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .35em; }
.entry table { border-collapse: collapse; width: 100%; font-size: 15px; }
.entry td, .entry th { border: 1px solid var(--line); padding: 8px 10px; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry iframe { max-width: 100%; }
.entry .wp-block-columns { display: flex; gap: 24px; flex-wrap: wrap; }
.entry .wp-block-column { flex: 1 1 240px; min-width: 0; }
.entry .wp-block-gallery, .entry .blocks-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; list-style: none; padding: 0; }
.entry .wp-block-gallery figure, .entry .blocks-gallery-item { margin: 0; }
.entry .wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--img-bg); }
.entry .wp-block-file, .entry .doc-link a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-2); text-decoration: none; color: var(--blue); }
.entry .wp-block-file__button { margin-left: auto; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.entry .numbered { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; margin-bottom: 1em; }
.entry .numbered .num { font-family: var(--serif-d); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--red-2); }
.entry .sublist { list-style: none; padding-left: 18px; border-left: 2px solid var(--blue-line); }
.entry .signature { text-align: right; font-family: var(--serif-d); font-weight: 600; font-size: 22px; color: var(--blue); }
.entry .template-box { background: #fff; border: 1px dashed #9aa3cc; padding: 22px 26px; margin: 1em 0; }
.entry .mailpoet_form, .entry .mailpoet_form_popup_overlay { display: none; }
.alignleft { float: left; margin: 0 1.2em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.2em; } .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.has-large-font-size { font-size: 1.35em; } .has-medium-font-size { font-size: 1.15em; }

/* ---------- Боковая колонка ---------- */
.sidebar { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.box { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue-2); padding: 22px; }
.box.red { border-top-color: var(--red); }
.box h3, .side-list h3 { margin: 0 0 12px; font-family: var(--serif-d); font-weight: 600; font-size: 22px; color: var(--blue); }
.box p { margin: 0 0 10px; font-size: 14.5px; color: var(--text-2); }
.search-form { display: flex; }
.search-form input[type=search] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--input); border-right: 0; font-family: inherit; font-size: 15px; background: var(--bg); color: var(--text); outline: none; }
.search-form button { padding: 0 16px; border: 0; background: var(--blue-2); color: #fff; cursor: pointer; font-family: inherit; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.search-form button:hover { background: var(--blue); }
.side-list h3 { border-bottom: 1px solid var(--blue-2); padding-bottom: 8px; margin-bottom: 4px; }
.side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--text); font-size: 15px; }
.side-list a::after { content: "›"; color: var(--blue-2); }
.side-list a:hover { color: var(--red-2); }
.side-list a.current { color: var(--blue); font-weight: 700; }
.donate-box { background: var(--blue); color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.donate-box h3 { margin: 0; font-family: var(--serif-d); font-weight: 600; font-size: 24px; color: #fff; }
.donate-box a { display: block; padding: 10px 14px; border: 1px solid #6f7bb3; color: #fff; text-decoration: none; font-size: 14.5px; }
.donate-box a:hover { background: var(--blue-2); color: #fff; }
.agenda-mini { list-style: none; margin: 0 0 12px; padding: 0; }
.agenda-mini li { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-3); font-size: 14.5px; line-height: 1.45; }
.agenda-mini .d { font-family: var(--serif-d); font-weight: 700; font-size: 18px; color: var(--red-2); line-height: 1.2; }
.agenda-mini .m { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--serif); font-weight: 400; }
.agenda-mini .who { display: block; font-size: 12.5px; color: var(--muted); }

/* ---------- Главная: об Архиепископии ---------- */
.home-about { background: #fff; border-bottom: 1px solid var(--line-2); }
.home-about .wrap { padding-top: 56px; padding-bottom: 56px; }
.home-about .inner { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.home-about h1 { font-size: clamp(32px, 3.6vw, 46px); }
.home-about .txt p { margin: 0 0 12px; color: var(--text-2); text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.home-about .txt p:first-child { font-size: 17px; color: var(--text); }
.home-about .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- Новости ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--blue-2); padding-bottom: 10px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; font-family: var(--serif-d); font-weight: 600; font-size: 36px; color: var(--blue); }
.news-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; text-decoration: none; color: var(--text); padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.news-featured:hover { color: var(--blue); }
.news-featured .img, .news-card .img { width: 100%; background: var(--img-bg); border: 1px solid var(--line); display: block; overflow: hidden; }
.news-featured .img { aspect-ratio: 4/3; }
.news-featured .img img, .news-card .img img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* изображения не обрезаются: целиком, на нейтральном фоне */
.news-featured .img, .news-card .img { background: var(--img-bg); }
.news-featured .txt { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.news-featured h3 { margin: 0; font-family: var(--serif-d); font-weight: 600; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; text-wrap: balance; }
.news-featured .read { font-size: 14px; color: var(--blue-2); text-decoration: underline; text-underline-offset: 4px; }
.news-featured .exc { color: var(--text-2); font-size: 15px; margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 28px 24px; }
.news-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); }
.news-card:hover { color: var(--blue); }
.news-card .img { aspect-ratio: 4/3; border-color: var(--line-2); }
.news-card .date, .news-featured .date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-2); }
.news-card .t { font-family: var(--serif-d); font-weight: 600; font-size: 19px; line-height: 1.25; text-wrap: pretty; }
.no-img { display: grid; place-items: center; width: 100%; height: 100%; }
.no-img img { width: 34% !important; height: auto !important; object-fit: contain !important; opacity: .35; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--blue-2); }
.pagination .current { background: var(--blue-2); color: #fff; border-color: var(--blue-2); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.chip { padding: 6px 12px; font-size: 14px; line-height: 1.3; background: #fff; color: var(--text); border: 1px solid var(--line); text-decoration: none; cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--blue-2); color: var(--blue); }
.chip.on { background: var(--blue-2); color: #fff; border-color: var(--blue-2); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.post-nav a { text-decoration: none; max-width: 48%; }
.post-thumb { margin: 0 0 28px; border: 1px solid var(--line); background: var(--img-bg); }
.post-thumb img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.lang-alt { font-size: 14px; color: var(--muted); margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line-3); }
.lang-alt a { margin-right: 10px; }

/* ---------- Справочники ---------- */
.dir-filter { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue-2); padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.dir-search { position: relative; max-width: 520px; }
.dir-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.dir-search input { width: 100%; padding: 11px 12px 11px 38px; border: 1px solid var(--input); font-family: inherit; font-size: 15px; background: var(--bg); color: var(--text); outline: none; }
.chips-group { display: flex; flex-direction: column; gap: 8px; }
.chips-group .lbl { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dir-count { font-size: 14px; font-style: italic; color: var(--muted); margin-bottom: 14px; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.dir-card { background: #fff; border: 1px solid var(--line-2); padding: 0; display: flex; text-decoration: none; color: var(--text); }
.dir-card:hover { border-color: var(--blue-2); }
.dir-card .ph { flex: none; width: 76px; background: var(--img-bg); border-right: 1px solid var(--line-3); overflow: hidden; }
.dir-card .ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dir-card .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dir-card .rank { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); }
.dir-card .nm { font-family: var(--serif-d); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--blue); text-wrap: balance; }
.dir-card .pl { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.dir-card .pl svg { flex: none; margin-top: 3px; }
.dir-card[hidden] { display: none; }
.dir-empty { padding: 22px; background: #fff; border: 1px solid var(--line); font-style: italic; color: var(--muted); }

.card-single { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 720px) { .card-single { grid-template-columns: minmax(0,1fr); } }
.card-single .portrait { background: var(--img-bg); border: 1px solid var(--line); }
.card-single .portrait img { display: block; width: 100%; height: auto; }
.info-rows { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue-2); padding: 8px 24px; }
.info-row { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line-3); }
.info-row:last-child { border-bottom: 0; }
.info-row .l { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); }
.info-row .v { font-size: 16px; overflow-wrap: anywhere; }
.info-row .v p { margin: 0 0 6px; }
.term-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }

/* ---------- Православный календарь ---------- */
.ocal-sec { background: var(--panel); border-bottom: 1px solid var(--line-2); }
.ocal-sec > .wrap { padding-top: 48px; padding-bottom: 48px; }
.ocal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--blue-2); padding-bottom: 10px; margin-bottom: 24px; }
.ocal-head h2 { margin: 0; font-family: var(--serif-d); font-weight: 600; font-size: 36px; color: var(--blue); }
.ocal-switches { display: flex; gap: 10px; flex-wrap: wrap; }
.ocal-style { display: flex; border: 1px solid var(--blue-2); }
.ocal-style[hidden] { display: none; }
.ocal-kind { border-color: var(--red-2); }
.ocal-kind button { color: var(--red-2); }
.ocal-kind button.on { background: var(--red-2); color: #fff; }
.ocal-style button { border: 0; cursor: pointer; font-family: inherit; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px; background: transparent; color: var(--blue-2); }
.ocal-style button.on { background: var(--blue-2); color: #fff; }
.ocal-body { display: flex; flex-wrap: wrap; gap: 40px; }
.ocal-date { flex: 1 1 220px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ocal-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ocal-big .n { font-family: var(--serif-d); font-weight: 600; font-size: 96px; line-height: .95; color: var(--blue); }
.ocal-big .n.red { color: var(--red-2); }
.ocal-big .my { font-family: var(--serif-d); font-weight: 600; font-size: 28px; line-height: 1.1; color: var(--blue); }
.ocal-note { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ocal-alt { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); display: flex; flex-direction: column; }
.ocal-alt .d { font-family: var(--serif-d); font-weight: 600; font-size: 24px; color: var(--blue); }
.ocal-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.ocal-nav button { padding: 8px 14px; border: 1px solid var(--blue-2); background: transparent; color: var(--blue-2); cursor: pointer; font-family: inherit; font-size: 15px; }
.ocal-nav button:hover { background: var(--blue-soft); }
.ocal-nav .today { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.ocal-nav .today.on { background: var(--blue-2); color: #fff; }
.ocal-main { flex: 2 1 380px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ocal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ocal-tags span { padding: 4px 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--blue); }
.ocal-tags span.fast { background: var(--blue-soft); border-color: #9aa3cc; }
.ocal-tags span.nofast { color: var(--muted); }
.ocal-feast { margin: 0; font-family: var(--serif-d); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--red-2); text-wrap: balance; }
.ocal-text { font-size: 15.5px; line-height: 1.6; }
.ocal-text p { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line-2); text-wrap: pretty; }
.ocal-text p:first-child { padding-top: 0; }
.ocal-text strong, .ocal-text b { color: var(--red-2); }
.ocal-text p.reading { border-bottom: 0; padding-top: 12px; color: var(--text); }
.ocal-text p.reading::before { content: attr(data-label); display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--red-2); margin-bottom: 4px; }
.ocal-text p.reading a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.ocal-text p.m-note, .ocal-text .notes p { font-size: 13.5px; color: var(--muted); border-bottom: 0; }
.ocal-text .notes { margin-top: 4px; }
.ocal-approx { font-size: 13px; font-style: italic; color: var(--muted); background: #fff; border: 1px dashed var(--line); padding: 8px 12px; }
.ocal-loading { color: var(--muted); font-style: italic; }
.ocal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.ocal-month { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: #fff; border: 1px solid var(--line); padding: 16px; align-self: flex-start; }
.ocal-mhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ocal-mhead button { border: 0; background: transparent; color: var(--blue-2); cursor: pointer; font-size: 20px; padding: 4px 10px; }
.ocal-mhead .t { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ocal-mhead .t b { font-family: var(--serif-d); font-weight: 600; font-size: 21px; color: var(--blue); }
.ocal-mhead .t span { font-size: 12px; color: var(--muted); }
.ocal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.ocal-grid .h { text-align: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 0; color: var(--muted); }
.ocal-grid .h.sun { color: var(--red-2); }
.ocal-grid button { aspect-ratio: 1; min-height: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; font-family: inherit; cursor: pointer; background: #fff; color: var(--text); border: 1px solid transparent; }
.ocal-grid button:hover { border-color: var(--blue-2); }
.ocal-grid button .a { font-size: 15px; line-height: 1.1; }
.ocal-grid button .b { font-size: 10px; line-height: 1.1; opacity: .75; }
.ocal-grid button .dot { width: 4px; height: 4px; border-radius: 50%; margin-top: 2px; background: transparent; }
.ocal-grid button.fast .dot { background: var(--blue-2); }
.ocal-grid button.red { color: var(--red-2); }
.ocal-grid button.red .a { font-weight: 700; }
.ocal-grid button.today { border-color: var(--red); }
.ocal-grid button.sel { background: var(--blue); color: #fff; }
.ocal-grid button.sel .dot { background: #fff; }
.ocal-grid .empty { visibility: hidden; }
.ocal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding-top: 4px; }
.ocal-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); margin-right: 6px; vertical-align: middle; }
.ocal-legend b { color: var(--red-2); margin-right: 6px; }
.ocal-bu { margin-top: 28px; background: #fff; border: 1px solid var(--line); }
.ocal-bu summary { cursor: pointer; padding: 14px 18px; font-family: var(--serif-d); font-weight: 600; font-size: 22px; color: var(--blue); }
.ocal-bu .in { padding: 0 22px 22px; font-size: 15.5px; line-height: 1.65; }
.ocal-bu .in p { margin: 0 0 .7em; }
.ocal-src { font-size: 12.5px; color: var(--muted); }

/* ---------- Календарь архиепископа ---------- */
.agenda-month { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); margin-bottom: 26px; }
.agenda-month .hd { padding: 18px 24px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.agenda-month .hd h2 { margin: 0; font-family: var(--serif-d); font-weight: 600; font-size: 30px; color: var(--blue); }
.agenda-month .hd .navs { display: flex; gap: 8px; }
.agenda-month .hd .navs a { padding: 6px 12px; border: 1px solid var(--blue-2); text-decoration: none; font-size: 14px; }
.agenda-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 14px 24px; border-bottom: 1px solid var(--line-3); align-items: baseline; }
.agenda-row:last-child { border-bottom: 0; }
.agenda-row .d { font-family: var(--serif-d); font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--red-2); }
.agenda-row .d small { display: block; font-family: var(--serif); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.agenda-row .t { font-size: 16.5px; line-height: 1.5; }
.agenda-row .t b { font-weight: 400; color: var(--text); }
.agenda-row .t .who { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 2px; }
.agenda-row .t .pl { display: block; font-size: 14px; color: var(--muted); }
.agenda-empty { padding: 22px 24px; font-style: italic; color: var(--muted); }
@media (max-width: 560px) { .agenda-row { grid-template-columns: 74px minmax(0,1fr); padding: 12px 16px; } .agenda-row .d { font-size: 22px; } }

/* ---------- Подвал ---------- */
.site-footer { background: var(--blue-3); color: #c9cfe8; border-top: 4px solid var(--red); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 28px; }
.site-footer .logo { background: #fff; border-radius: 50%; width: 84px; height: 84px; display: grid; place-items: center; }
.site-footer .logo img { height: 66px; width: auto; }
.site-footer .nm { font-family: var(--serif-d); font-weight: 600; font-size: 19px; line-height: 1.25; color: #fff; }
.site-footer .col { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.site-footer .col .t { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--red-soft); margin-bottom: 4px; }
.site-footer a { color: #dfe3f2; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid var(--blue-2); }
.site-footer .bottom .wrap { padding-top: 16px; padding-bottom: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #9aa3cc; }
.site-footer .credit, .site-footer .credit a { font-size: 11.5px; color: #7f88b5; }
.site-footer .credit a:hover { color: #dfe3f2; }

.notfound { padding: 60px 0 100px; }
.ocal-alt[hidden] { display: none; }
.lang-badge { color: var(--muted); letter-spacing: .06em; text-transform: none; font-style: italic; }

/* ---------- Flickr ---------- */
.flickr-album { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.flickr-album h2 { font-family: var(--serif-d); font-weight: 600; font-size: 28px; color: var(--blue); margin: 0 0 16px; }
.flickr-embed { background: var(--img-bg); border: 1px solid var(--line); margin-bottom: 14px; }
.flickr-embed iframe, .flickr-embed img { display: block; width: 100%; max-width: 100%; height: auto; }
.flickr-embed iframe { aspect-ratio: 3/2; height: auto; }
.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.photo-strip a { display: block; aspect-ratio: 1; background: var(--img-bg); border: 1px solid var(--line-2); overflow: hidden; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.photo-strip a:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
