:root {
  --red: #B02B33;
  --red-dark: #8a2129;
  --navy: #093969;
  --cream: #F1EBD4;
  --ink: #2b2b2b;
  --ink-soft: #5a5a5a;
  --paper: #ffffff;
  --paper-deep: #faf8f3;
  --line: #e4dfd0;
  --radius: 4px;
  --shadow: 0 10px 24px rgba(30, 25, 15, 0.08);
  --serif: Georgia, "PT Serif", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 15.5px;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.55em;
  color: var(--navy);
}

.page-title { font-size: clamp(24px, 3vw, 30px); margin: 28px 0 20px; padding-bottom: 14px; border-bottom: 2px solid var(--cream); }
.section-title { font-size: clamp(20px, 2.4vw, 25px); margin-bottom: 20px; }
.section-lead { color: var(--ink-soft); max-width: 700px; margin: -8px 0 24px; font-size: 15px; }

.breadcrumbs { font-size: 12.5px; color: #999; margin: 14px 0 0; }
.breadcrumbs a { color: #999; }

/* Top bar */
.top-bar { background: var(--navy); color: rgba(255,255,255,0.85); font-size: 13px; padding: 8px 0; text-align: center; }
.top-bar a { color: #fff; font-weight: 700; }

/* Header */
.site-header { background: #fff; border-bottom: 3px solid var(--red); }
.header-inner { padding: 22px 0; text-align: center; }
.site-title { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--red); letter-spacing: 0.02em; margin: 0; }
.site-subtitle { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

.nav-bar { background: var(--navy); }
.main-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.main-nav a { display: block; color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 11px 20px; }
.main-nav a:hover, .main-nav a.active { background: var(--red); text-decoration: none; }

/* Content */
.content-section { padding: 40px 0; }
.content-section.alt { background: var(--paper-deep); }
.article-body p { margin: 0 0 15px; color: var(--ink-soft); font-size: 15px; }
.article-body ul { color: var(--ink-soft); margin: 0 0 15px; padding-left: 20px; }
.article-body li { margin-bottom: 6px; }

/* News list */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item img { width: 100%; height: 165px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.news-item .no-img { width: 100%; height: 165px; background: var(--cream); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--navy); font-family: var(--serif); font-size: 13px; text-align: center; padding: 10px; }
.news-item time { display: block; font-size: 12px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 6px; }
.news-item h3 { font-size: 17px; margin: 0 0 8px; }
.news-item h3 a { color: var(--navy); }
.news-item p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Church list */
.hramy-list { display: flex; flex-direction: column; }
.hram-item { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.hram-item:first-child { padding-top: 0; }
.hram-item::before { content: "☦"; color: var(--red); margin-right: 10px; font-weight: 700; }

/* Gallery */
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-strip img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }

/* Contact box */
.contact-box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 26px 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 700px; }
.contact-box h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); }
.contact-box p { margin: 0; font-size: 15px; color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.78); padding: 32px 0 20px; margin-top: 10px; font-size: 13px; text-align: center; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: rgba(255,255,255,0.85); }
.footer-bottom { padding-top: 14px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 12px; color: rgba(255,255,255,0.5); }

@media (max-width: 800px) {
  .main-nav { flex-wrap: wrap; }
  .news-item { grid-template-columns: 1fr; }
  .news-item img, .news-item .no-img { height: 200px; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .contact-box { grid-template-columns: 1fr; }
}
