/*
Theme Name: Anastasia 2026
Theme URI: https://sv-anastasia.ru/
Author: Ростовская-на-Дону епархия
Description: Сайт храма святой великомученицы Анастасии Узорешительницы и Отдела по тюремному служению. Дизайн в стиле mobospas.ru.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: anastasia
*/

/* ============================================================
   sv-anastasia.ru — прототип
   Дизайн-система: mobospas.ru (navy / gold / Manrope)
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-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;
}

:root {
  --ink: #1c2434;
  --ink-soft: #4b5568;
  --paper: #f5f7fa;
  --card: #ffffff;
  --line: #e7eaf0;
  --accent: #c99a3f;
  --accent-dark: #a97f2c;
  --accent-soft: #f4ead6;
  --gold: #e8c07a;
  --navy: #233047;
  --navy-deep: #1b2536;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(28, 36, 52, .08);
  --shadow-lg: 0 18px 50px rgba(28, 36, 52, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 78px 0; }
.section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding-top: 0; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 14px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow--light { color: var(--gold); background: rgba(232, 192, 122, .13); }
h2.section-title {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.18;
}
.section-lead { color: var(--ink-soft); max-width: 640px; margin-top: 12px; font-size: 16.5px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px; line-height: 1.2;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent {
  background: linear-gradient(135deg, #d8ab52, #c99a3f);
  color: #fff; box-shadow: 0 8px 24px rgba(201, 154, 63, .35);
}
.btn-accent:hover { box-shadow: 0 12px 30px rgba(201, 154, 63, .45); }
.btn-ghost {
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .45); backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid #d4dbe6; }
.btn-outline:hover { border-color: var(--accent); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #2e3f5c; }
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 8px 26px rgba(28, 36, 52, .08); }
.nav { display: flex; align-items: center; gap: 18px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }
.brand-mark {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  background: linear-gradient(135deg, #233047, #3c5074);
  display: flex; align-items: center; justify-content: center;
  line-height: 0; box-shadow: var(--shadow);
}
.brand-mark svg { display: block; }
.brand-mark svg { display: block; }
.brand-name { font-size: 15.5px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.brand-sub {
  display: block; font-size: 9.5px; font-weight: 700; color: var(--ink-soft);
  letter-spacing: .07em; text-transform: uppercase; margin-top: 4px;
}
.menu { margin-left: auto; }
.menu ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.menu a {
  display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 9px 11px; border-radius: 10px; white-space: nowrap;
  transition: color .15s, background .15s;
}
.menu a:hover, .menu a.active { color: var(--accent-dark); background: var(--accent-soft); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--navy); white-space: nowrap;
}
.nav-phone svg { color: var(--accent-dark); }
.nav-cta { flex: none; padding: 12px 22px; font-size: 14px; }
.burger {
  display: none; width: 46px; height: 46px; flex: none;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 24px 22px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 4px; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { width: 100%; margin-top: 14px; }
.mobile-menu .mobile-phone { color: var(--accent-dark); font-weight: 700; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: #233047 url('assets/img/hero.webp') right center / contain no-repeat; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    #1b2536 0%,
    #1b2536 40%,
    rgba(27, 37, 54, .98) 45%,
    rgba(27, 37, 54, .78) 53%,
    rgba(27, 37, 54, .42) 64%,
    rgba(27, 37, 54, .1) 78%,
    rgba(27, 37, 54, 0) 92%);
}
.hero-inner { position: relative; padding: 92px 0 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  padding: 9px 16px; border-radius: 999px; margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.hero-badge svg { flex: none; }
.hero h1 {
  font-size: clamp(32px, 4.7vw, 54px); font-weight: 800;
  line-height: 1.1; letter-spacing: -.025em; max-width: 820px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.sub {
  margin: 22px 0 32px; max-width: 580px;
  font-size: 17px; color: rgba(255, 255, 255, .85);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stats {
  position: relative; margin-top: 70px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2); border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  backdrop-filter: blur(12px);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat { padding: 24px 26px; border-right: 1px solid rgba(255, 255, 255, .16); min-width: 0; }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: 29px; font-weight: 800; color: var(--gold); letter-spacing: -.02em; }
.stat span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .8); line-height: 1.45; margin-top: 3px; }

/* ---------- quick links ---------- */
.quick { padding: 36px 0 0; background: var(--paper); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
  display: flex; align-items: flex-start; gap: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 18px 19px; box-shadow: var(--shadow); min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #e3d3ae; }
.quick-card .ic {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark);
}
.quick-card b { display: block; font-size: 14.5px; line-height: 1.3; }
.quick-card span { display: block; font-size: 12px; color: var(--ink-soft); line-height: 1.45; margin-top: 3px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.about-text p { color: var(--ink-soft); margin-top: 14px; font-size: 15.5px; }
.about-text p b { color: var(--ink); }
.about-media { position: relative; min-width: 0; }
.about-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 20px; box-shadow: var(--shadow-lg);
}
.about-quote {
  position: absolute; left: -20px; bottom: -24px; max-width: 310px;
  background: #fff; border-radius: 14px; padding: 16px 18px;
  box-shadow: var(--shadow-lg); border-left: 3px solid var(--accent);
}
.about-quote p { font-size: 13px; font-style: italic; color: var(--ink-soft); line-height: 1.5; }
.about-quote span {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-dark); margin-top: 7px;
}
.person-card {
  display: flex; align-items: center; gap: 14px; margin-top: 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px 12px 12px;
}
.person-card img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; object-position: center 20%; flex: none; }
.person-card b { display: block; font-size: 14.5px; }
.person-card span { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.pill-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.pill {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-weight: 600; font-size: 13.5px;
}
.pill .ic {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark);
}

/* ---------- ministry (dark) ---------- */
.ministry {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #1d293d 0%, #263650 55%, #2b3a55 100%);
}
.ministry::before {
  content: ""; position: absolute; right: -160px; top: -180px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 154, 63, .18), transparent 70%);
  pointer-events: none;
}
.ministry .container { position: relative; }
.ministry-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 50px; align-items: start; }
.ministry h2 { color: #fff; }
.ministry p { color: rgba(255, 255, 255, .78); margin-top: 14px; font-size: 15.5px; }
.ministry .stat-inline { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 4px; }
.ministry .stat-inline b { font-size: 46px; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -.03em; }
.ministry .stat-inline span { font-size: 13px; color: rgba(255, 255, 255, .7); max-width: 220px; line-height: 1.45; }
.ministry .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.ministry .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); }
.inst {
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px;
  margin-top: 4px;
}
.inst a {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 11px; padding: 10px 13px;
  font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .9);
  transition: background .18s, border-color .18s;
}
.inst a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(232, 192, 122, .45); }
.inst .dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--gold); }
.inst a:last-child { grid-column: 1 / -1; }
.inst-note { margin-top: 14px; font-size: 11.5px; color: rgba(255, 255, 255, .55); }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.news-card {
  display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #e3d3ae; }
.news-card .thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.news-card .body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; min-width: 0; }
.news-date {
  align-self: flex-start; display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--accent-soft); border-radius: 999px; padding: 5px 11px; color: var(--accent-dark);
}
.news-date b { font-size: 13px; font-weight: 800; line-height: 1; }
.news-date span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.news-card h3 { font-size: 16px; font-weight: 700; line-height: 1.42; }
.news-card p {
  font-size: 13px; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .more { margin-top: auto; padding-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--accent-dark); }
.news-card:hover .more { text-decoration: underline; }

/* ---------- help / projects ---------- */
.help { background: linear-gradient(160deg, #eef2f8, #e6ecf4); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.help-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 34px; margin-top: 38px; align-items: start; }
.project-list { display: grid; gap: 12px; }
.project-row {
  display: flex; align-items: center; gap: 15px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 17px; box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.project-row:hover { transform: translateX(3px); border-color: #e3d3ae; }
.project-row .ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark);
}
.project-row b { display: block; font-size: 14.5px; }
.project-row span { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.project-row .arrow { margin-left: auto; color: var(--accent-dark); font-weight: 700; flex: none; }
.help-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-soft); }
.donate-box {
  background: linear-gradient(150deg, #233047, #33456a);
  border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg); color: #fff;
}
.donate-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.donate-box .hint { color: rgba(255, 255, 255, .72); font-size: 13.5px; margin-bottom: 20px; }
.qr-row { display: flex; gap: 16px; align-items: center; }
.qr {
  width: 104px; height: 104px; flex: none; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .3);
  display: grid; place-items: center; text-align: center;
  font-size: 10px; line-height: 1.35; color: rgba(255, 255, 255, .65); padding: 8px;
}
.qr svg { margin: 0 auto 4px; }
.qr-text b { display: block; font-size: 13px; color: #fff; margin-bottom: 3px; }
.qr-text span { display: block; font-size: 12px; color: rgba(255, 255, 255, .68); line-height: 1.5; }
.donate-actions { display: grid; gap: 9px; margin-top: 20px; }
.donate-actions .btn { width: 100%; }
.donate-link { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .28); }
.donate-link:hover { border-color: var(--gold); background: rgba(255, 255, 255, .07); }
.donate-fine { margin-top: 14px; font-size: 11px; color: rgba(255, 255, 255, .5); line-height: 1.5; }

/* ---------- schedule ---------- */
.schedule-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: start; }
.schedule-table { width: 100%; border-collapse: collapse; margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.schedule-table th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-soft);
  background: var(--paper); padding: 12px 18px; border-bottom: 1px solid var(--line);
}
.schedule-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table .date { white-space: nowrap; font-weight: 800; color: var(--navy); }
.schedule-table .date small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.schedule-table .name { font-weight: 700; }
.schedule-table .place { color: var(--ink-soft); font-size: 12.5px; }
.badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft);
  border-radius: 999px; padding: 3px 9px; margin-left: 6px; vertical-align: 1px;
}
.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px; margin-top: 30px;
}
.info-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.info-card p { font-size: 13px; color: var(--ink-soft); }
.info-card ul { list-style: none; display: grid; gap: 9px; margin-top: 12px; }
.info-card li { display: flex; gap: 9px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.info-card li svg { flex: none; color: var(--accent-dark); margin-top: 2px; }

/* ---------- contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 11px; margin-top: 28px; }
.contact-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px;
}
.contact-card .ic {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark);
}
.contact-card b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin-bottom: 2px; }
.contact-card span, .contact-card a { font-size: 14px; font-weight: 600; line-height: 1.5; }
.contact-card a:hover { color: var(--accent-dark); }
.map {
  position: relative; min-height: 420px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #dfe6ef;
}
.map iframe, .map-img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.map-open {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 700;
  color: var(--navy); box-shadow: var(--shadow);
}
.map-open:hover { color: var(--accent-dark); border-color: var(--accent); }
.map-credit {
  position: absolute; right: 8px; bottom: 6px; z-index: 2;
  font-size: 9px; color: var(--ink-soft); background: rgba(255, 255, 255, .82);
  padding: 2px 6px; border-radius: 5px;
}
.map-credit a { text-decoration: underline; }
.contacts-note { margin-top: 14px; font-size: 12px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding: 56px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .brand-mark { width: 42px; height: 42px; border-radius: 12px; box-shadow: none; display: flex; align-items: center; justify-content: center; }
.footer-brand b { display: block; color: #fff; font-size: 14.5px; line-height: 1.3; }
.footer-brand > div > span { display: block; font-size: 11px; color: rgba(255, 255, 255, .5); margin-top: 4px; }
.footer-about { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .58); max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.footer-col a:hover { color: var(--gold); }
.footer-contact { font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .62); }
.footer-contact b { color: rgba(255, 255, 255, .9); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 38px; padding-top: 18px;
  font-size: 11.5px; color: rgba(255, 255, 255, .4);
}
.footer-bottom a { color: rgba(255, 255, 255, .55); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- внутренние страницы ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, #1d293d, #2b3a55 65%, #33456a);
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -160px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 154, 63, .2), transparent 70%);
}
.page-hero .container { position: relative; padding: 54px 24px 58px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, .55); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--gold); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.14; max-width: 820px; }
.page-hero p { margin-top: 12px; max-width: 640px; font-size: 15.5px; color: rgba(255, 255, 255, .75); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0 0; }
.filter {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 8px 15px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.filter:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
.article-body { max-width: 760px; }
.article-body .lead { font-size: 17px; color: var(--ink-soft); margin-bottom: 22px; }
.article-body h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 30px 0 12px; }
.article-body p { margin-bottom: 16px; font-size: 15.5px; color: #33405a; }
.article-body figure { margin: 24px 0; }
.article-body figure img { width: 100%; border-radius: 16px; }
.article-body figcaption { margin-top: 8px; font-size: 12px; color: var(--ink-soft); text-align: center; }
.article-body blockquote {
  margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--accent);
  background: #fff; border-radius: 0 14px 14px 0; font-style: italic; color: var(--ink-soft);
}
.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 18px; }
.article-meta .cat { color: var(--accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.article-share { display: flex; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.share-btn {
  width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; color: var(--navy); cursor: pointer;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.side-card p { font-size: 12.5px; color: var(--ink-soft); }
.side-card .btn { width: 100%; margin-top: 14px; }
.side-list { list-style: none; display: grid; gap: 12px; margin-top: 4px; }
.side-list a { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.45; }
.side-list b { display: block; color: var(--accent-dark); font-size: 10.5px; letter-spacing: .05em; margin-bottom: 2px; }
.side-list img { width: 64px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700;
}
.pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .nav-phone { display: none; }
  .menu a { padding: 9px 9px; font-size: 13.5px; }
  .brand-name { font-size: 14.5px; }
}
@media (max-width: 1020px) {
  nav.menu { display: none; }
  .burger { display: flex; margin-left: auto; }
  .nav-cta { display: none; }
  .hero-inner { padding-top: 76px; }
  .stats { margin-top: 56px; }
  .stat { padding: 20px; }
  .stat b { font-size: 25px; }
  .about-grid, .ministry-grid, .help-grid, .schedule-grid, .contacts-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-quote { position: static; margin-top: 14px; max-width: none; border-left-width: 3px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map { min-height: 340px; }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .nav { min-height: 68px; gap: 10px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 13.5px; }
  .brand-sub { font-size: 8.5px; }
  .hero-bg { background-size: cover; background-position: 68% top; }
  .hero-inner { padding-top: 58px; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); }
  .hero p.sub { font-size: 15px; margin: 18px 0 26px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: 1fr; margin-top: 44px; }
  .stat { display: flex; align-items: baseline; gap: 14px; padding: 13px 18px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .stat:last-child { border-bottom: none; }
  .stat b { font-size: 22px; min-width: 86px; flex: none; }
  .stat span { font-size: 11.5px; margin-top: 0; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick-card { padding: 14px; gap: 10px; }
  .quick-card .ic { width: 36px; height: 36px; }
  .quick-card b { font-size: 13px; }
  .quick-card span { font-size: 11px; }
  .news-grid { grid-template-columns: 1fr; }
  .inst { grid-template-columns: 1fr; }
  .pill-list { grid-template-columns: 1fr; }
  .schedule-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .schedule-table thead { display: none; }
  .schedule-table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .schedule-table tr:last-child { border-bottom: none; }
  .schedule-table td { display: block; padding: 0; border: none; }
  .schedule-table td + td { margin-top: 4px; }
  .schedule-table .date { font-size: 14px; }
  .schedule-table td[data-label]::before {
    content: attr(data-label); display: block;
    font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--ink-soft); margin: 8px 0 1px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .page-hero .container { padding: 40px 18px 44px; }
  .article-body p { font-size: 15px; }
  .qr { width: 88px; height: 88px; }
}
@media (max-width: 360px) {
  .quick-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- WordPress: служебное и контент ---------- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
body.admin-bar .site-header { top: 32px; }
.news-card .thumb.placeholder {
  display: grid; place-items: center; aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #233047, #3c5074);
}
.menu li.current-menu-item > a,
.menu li.current_page_item > a,
.menu li.current-menu-ancestor > a { color: var(--accent-dark); background: var(--accent-soft); font-weight: 700; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu li a { border-bottom: none; }
.footer-col .menu ul { list-style: none; display: grid; gap: 8px; }

.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 6px; font-size: 15.5px; color: #33405a; }
.article-body h3 { font-size: 20px; font-weight: 800; margin: 26px 0 10px; letter-spacing: -.01em; }
.article-body h4 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; }
.article-body a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--navy); }
.article-body img { height: auto; border-radius: 14px; }
.article-body iframe { max-width: 100%; border-radius: 14px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-body th { background: var(--paper); font-weight: 700; }
.article-body .wp-block-image { margin: 22px 0; }
.article-body .wp-block-quote { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--accent); background: #fff; border-radius: 0 14px 14px 0; }
.article-body .wp-block-quote p { font-style: italic; color: var(--ink-soft); }
.article-body .wp-block-quote cite { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.article-body .alignleft { float: left; margin: 6px 20px 14px 0; }
.article-body .alignright { float: right; margin: 6px 0 14px 20px; }
.article-body .aligncenter { margin: 20px auto; }

.pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700;
}
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent-dark); }
.pagination .dots { border: none; background: transparent; }

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
