/* ============================================================
   КАПУЦЫНЫ Ў БЕЛАРУСІ — дызайн-сістэма
   На аснове зацверджанага рэферэнс-стылю (манастырская готыка)
   ============================================================ */

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

:root {
  --brown-deep:   #3b1f0a;
  --brown-mid:    #6b3a1f;
  --brown-warm:   #a0522d;
  --cream:        #f5ecd7;
  --cream-light:  #fdf6e9;
  --gold:         #c9a84c;
  --gold-light:   #e8cc80;
  --text-dark:    #2a1408;
  --text-mid:     #5c3317;

  --font-serif: 'EB Garamond', serif;
  --font-display: 'Cinzel', serif;

  --container-w: 1040px;
  --container-narrow: 760px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream-light);
  color: var(--text-dark);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }

/* ── NAV ── */
.site-header {
  background: var(--brown-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-wrap {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { font-family: var(--font-display); font-weight: 600; line-height: 1.1; }
.brand-text .big { display: block; font-size: 17px; letter-spacing: 0.03em; }
.brand-text .small { display: block; font-size: 10px; letter-spacing: 0.15em; color: var(--gold-light); opacity: 0.8; }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 12px 14px;
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--gold); color: var(--brown-deep); }
.nav-link--parent { cursor: default; }
.nav-link--parent:hover { background: transparent; color: var(--cream); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--gold);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 10;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 12px 18px;
  color: var(--brown-deep);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(59,31,10,0.12);
}
.nav-dropdown a:hover { background: var(--brown-deep); color: var(--gold-light); }

.nav-caret {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 16px;
  cursor: pointer;
  padding: 8px 14px;
}

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--gold);
    color: var(--cream);
    font-size: 22px;
    padding: 6px 12px;
    cursor: pointer;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 16px;
  }
  .nav-list.open { display: flex; }
  .nav-item { display: flex; flex-wrap: wrap; align-items: center; }
  .nav-link { flex: 1; }
  .nav-caret { display: block; }
  .nav-dropdown { position: static; display: none; width: 100%; order: 3; }
  .nav-item.open .nav-dropdown { display: block; }
}

/* ── HERO (внутренние страницы) ── */
.page-hero {
  background:
    radial-gradient(ellipse at 50% 0%, #6b3a1f44 0%, transparent 60%),
    linear-gradient(170deg, #2d1409 0%, #5a2e10 45%, #3b1f0a 100%);
  color: var(--cream);
  padding: 64px 0 48px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
}
.page-hero .breadcrumb { font-size: 13px; color: var(--gold-light); opacity: 0.75; margin-top: 10px; }

/* ── HOME HERO ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, #6b3a1f44 0%, transparent 60%),
    linear-gradient(170deg, #2d1409 0%, #5a2e10 45%, #3b1f0a 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero::after {
  content: '☩';
  position: absolute;
  font-size: 420px;
  color: #ffffff06;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-badge {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 6px 20px;
  margin-bottom: 32px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 780px;
  margin-bottom: 20px;
}
.hero-sub {
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #e8cc80cc;
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-region {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  max-width: 640px;
  margin-bottom: 40px;
}
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #b8892e);
  color: var(--brown-deep);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 38px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 30px #c9a84c55;
}
.btn:hover { background: linear-gradient(135deg, #e8cc80, var(--gold)); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--brown-deep);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 26px;
}
.btn-outline:hover { background: var(--gold); }

/* ── SECTION HEADERS ── */
.section-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brown-warm);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 600;
  color: var(--brown-deep);
  line-height: 1.2;
  margin-bottom: 20px;
}
.gold-divider { width: 56px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); margin: 16px 0 28px; }
.section-intro { max-width: 640px; color: var(--text-mid); font-style: italic; }

/* ── CARD GRID (Хто мы / тизеры) ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; margin-top: 40px; }
.teaser-card {
  background: var(--cream);
  border: 1px solid #a0522d22;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.teaser-card:hover { box-shadow: 0 10px 34px #6b3a1f22; transform: translateY(-3px); }
.teaser-card img { width: 100%; height: 170px; object-fit: cover; }
/* Portrait/artwork images cropped to this short wide box lose their subject
   with a plain center crop — the El Greco painting's face sits in the
   upper third, not dead center, so bias the crop upward for that card. */
.card-grid .teaser-card:nth-child(1) img { object-position: center 20%; }
.teaser-card .body { padding: 20px; }
.teaser-card h3 { font-family: var(--font-display); font-size: 16px; color: var(--brown-deep); margin-bottom: 8px; }
.teaser-card p { font-size: 14.5px; color: var(--text-mid); line-height: 1.55; }
.teaser-card .more { display: inline-block; margin-top: 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown-warm); }

/* ── QUOTE CARDS (Быць капуцынам) ── */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 40px 0; }
.quote-card {
  padding: 26px 28px;
  border: 1px solid #a0522d22;
  background: var(--cream-light);
  position: relative;
}
.quote-card::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.quote-card h4 { font-family: var(--font-display); font-size: 14px; color: var(--brown-deep); letter-spacing: 0.04em; margin-bottom: 12px; }
.quote-card p { font-style: italic; color: var(--text-mid); font-size: 15px; margin-bottom: 10px; }
.quote-card cite { font-size: 13px; color: var(--brown-warm); font-style: normal; }

/* ── STEPS (Як стаць капуцынам) ── */
.steps-list { margin-top: 40px; display: flex; flex-direction: column; gap: 30px; position: relative; }
.steps-list::before {
  content: '';
  position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.step { display: flex; gap: 24px; position: relative; }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  background: var(--cream-light);
  color: var(--brown-deep);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  z-index: 1;
}
.step-title { font-family: var(--font-display); font-size: 16px; color: var(--brown-deep); margin-bottom: 6px; }
.step-desc { color: var(--text-mid); font-size: 15.5px; }

/* ── NEWS ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.news-card { background: var(--cream); border-left: 3px solid var(--gold); padding: 22px 24px; text-decoration: none; color: inherit; display: block; }
.news-card:hover { background: var(--cream-light); }
.news-date { font-size: 12px; color: var(--brown-warm); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.news-card h3 { font-family: var(--font-display); font-size: 16.5px; color: var(--brown-deep); margin-bottom: 8px; line-height: 1.3; }
.news-card p { font-size: 14.5px; color: var(--text-mid); }

/* ── LOCATIONS ── */
.loc-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.loc-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--gold);
  color: var(--cream);
  padding: 10px 24px;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s;
}
.loc-pill:hover { background: var(--gold); color: var(--brown-deep); }
.locations-band { background: linear-gradient(135deg, var(--brown-deep), var(--brown-mid)); color: var(--cream); text-align: center; }
.locations-band .section-title, .locations-band .section-label { color: var(--gold-light); }

.loc-meta { background: var(--cream); border: 1px solid #a0522d22; padding: 24px 28px; margin-top: 32px; }
.loc-meta dt { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown-warm); margin-top: 14px; }
.loc-meta dt:first-child { margin-top: 0; }
.loc-meta dd { font-size: 15.5px; color: var(--text-dark); }

/* ── ARTICLE / RICH TEXT ── */
.article { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.article img { margin: 32px 0; }
.loc-hero { margin: 32px 0; }
.loc-hero picture, .loc-hero img {
  width: 100%;
  height: 374px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: 2px;
  margin: 0;
}
.article h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--brown-deep); margin: 36px 0 14px; }
.article h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--brown-mid); margin: 26px 0 10px; }
.article p { margin-bottom: 18px; }
.article blockquote {
  font-style: italic;
  color: var(--text-mid);
  border-left: 3px solid var(--gold);
  padding: 4px 24px;
  margin: 24px 0;
}
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 6px; }
.article .prayer-block {
  background: var(--cream);
  border: 1px solid #a0522d22;
  padding: 32px;
  margin: 28px 0;
  font-style: italic;
}
.article .prayer-block p:last-child { margin-bottom: 0; }

/* ── LIBRARY INDEX ── */
.lib-group { margin-bottom: 40px; }
.lib-group h2 { font-family: var(--font-display); font-size: 1.15rem; color: var(--brown-deep); margin-bottom: 14px; }
.lib-group ul { list-style: none; }
.lib-group li { margin-bottom: 8px; }
.lib-group a { color: var(--brown-warm); text-decoration: none; border-bottom: 1px solid transparent; }
.lib-group a:hover { border-color: var(--brown-warm); }

/* ── PEOPLE LIST (Браты) ── */
.people-list { list-style: none; margin-top: 32px; columns: 2; column-gap: 40px; }
.people-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dashed #a0522d33; font-size: 15.5px; }
.people-list li.featured { font-weight: 600; color: var(--brown-deep); }
@media (max-width: 700px) { .people-list { columns: 1; } }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-item .icon { font-size: 20px; color: var(--gold); }
.map-embed iframe { width: 100%; height: 320px; border: 1px solid #a0522d22; }

/* ── FOOTER ── */
.site-footer { background: var(--brown-deep); color: #c9a89966; }
.footer-top {
  padding: 40px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 32px;
}
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}
.footer-contact-item { color: #e8d9b8cc; text-decoration: none; font-size: 14.5px; }
a.footer-contact-item:hover { color: var(--gold-light); }
.footer-address { color: #e8d9b8aa; }
.footer-sep { width: 4px; height: 4px; border-radius: 50%; background: #c9a84c55; display: inline-block; }
.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #c9a84c44;
  border-radius: 50%;
  color: #e8d9b8cc;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social a:hover { color: var(--brown-deep); background: var(--gold-light); border-color: var(--gold-light); }

@media (max-width: 640px) {
  .footer-top { flex-direction: column; gap: 20px; padding: 36px 0 20px; }
  .footer-contacts { flex-direction: column; gap: 8px; }
  .footer-sep { display: none; }
  .footer-bottom { font-size: 9.5px; line-height: 1.6; padding: 20px 16px; }
}
.footer-bottom {
  border-top: 1px solid #c9a84c22;
  text-align: center;
  padding: 22px 24px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c9a84c99;
}
.footer-bottom .tau { width: 34px; height: auto; display: block; margin: 0 auto 12px; opacity: 0.75; }
/* ── FORM ── */
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; letter-spacing: 0.04em; color: var(--brown-mid); }
.field input, .field select, .field textarea {
  font-family: var(--font-serif);
  font-size: 15.5px;
  padding: 12px 14px;
  border: 1px solid #a0522d44;
  background: var(--cream-light);
  color: var(--text-dark);
}
.field textarea { resize: vertical; min-height: 110px; }

/* ── REVEAL ANIM ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── GALLERY ── */
.gallery-grid {
  columns: 280px 3;
  column-gap: 20px;
  margin-top: 24px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
}
.gallery-item picture, .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.gallery-caption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mid);
  text-align: center;
}
