/* ============================================================
   Храм пророка Илии и мученицы Татианы ЧВВАКУШ (Челябинск)
   Современный приходской сайт — единый стиль
   ============================================================ */

:root {
  --navy: #1c2b45;          /* глубокий синий — военная/церковная строгость */
  --navy-2: #24365a;
  --gold: #c9a24b;          /* золото куполов */
  --gold-light: #e3c27d;
  --cream: #faf7f0;         /* тёплый светлый фон */
  --paper: #ffffff;
  --ink: #2b2b33;
  --muted: #6b7280;
  --line: #e7e1d3;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(28, 43, 69, .10);
  --font: 'PT Serif', Georgia, 'Times New Roman', serif;
  --sans: 'PT Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Шапка ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.header-top {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 0;
}
.header-top .logo { display: flex; align-items: center; gap: 12px; }
.header-top .logo img { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; }
.header-top .logo .t1 { font-family: var(--font); font-size: 17px; line-height: 1.25; color: #fff; }
.header-top .logo .t1 small { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--gold-light); letter-spacing: .4px; }
.header-contacts { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.header-contacts a { color: #fff; font-size: 15px; }
.header-contacts a:hover { color: var(--gold-light); }
.header-contacts .phone { font-size: 17px; font-weight: 700; }

.main-nav { border-top: 1px solid rgba(255,255,255,.12); }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a {
  display: block; padding: 13px 15px; color: rgba(255,255,255,.88);
  font-size: 13.5px; letter-spacing: 1.2px; font-weight: 700;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { color: var(--gold-light); border-bottom-color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; padding: 6px 10px; }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  min-height: 68vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover; background-position: center;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.75));
}
.hero-inner { padding: 80px 20px; max-width: 900px; }
.hero .eyebrow {
  display: inline-block; letter-spacing: 4px; font-size: 13px;
  text-transform: uppercase; color: var(--gold-light);
  border: 1px solid rgba(201,162,75,.6); border-radius: 40px;
  padding: 7px 18px; margin-bottom: 26px; background: rgba(0,0,0,.25);
}
.hero h1 {
  font-family: var(--font); font-size: clamp(30px, 5vw, 54px);
  line-height: 1.18; margin-bottom: 18px; font-weight: 700;
  text-shadow: 0 3px 20px rgba(0,0,0,.5);
}
.hero p.lead { font-size: clamp(16px, 2.2vw, 20px); color: rgba(255,255,255,.92); max-width: 700px; margin: 0 auto 30px; }
.btn {
  display: inline-block; background: var(--gold); color: #1c2330 !important;
  font-weight: 700; padding: 14px 30px; border-radius: 50px;
  letter-spacing: .6px; transition: .2s; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 15.5px;
}
.btn:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(201,162,75,.4); }
.btn.ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.85); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-light) !important; box-shadow: none; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Секции ---------- */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .kicker {
  color: var(--gold); letter-spacing: 3px; text-transform: uppercase;
  font-size: 12.5px; font-weight: 700; margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font); font-size: clamp(26px, 3.6vw, 40px);
  color: var(--navy); line-height: 1.2;
}
.section-head p { color: var(--muted); margin-top: 12px; }
section.alt { background: var(--paper); }
section.navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}
section.navy .section-head h2 { color: #fff; }
section.navy .section-head p { color: rgba(255,255,255,.75); }
section.navy .kicker { color: var(--gold-light); }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(28,43,69,.16); }
.card img { width: 100%; height: 210px; object-fit: cover; }
.card .body { padding: 22px 24px 26px; }
.card h3 { font-family: var(--font); font-size: 21px; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .tag {
  display: inline-block; background: rgba(201,162,75,.14); color: #8a6d2f;
  font-size: 12px; font-weight: 700; letter-spacing: .6px;
  padding: 4px 12px; border-radius: 30px; margin-bottom: 12px;
}

/* ---------- Факты (цифры) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  text-align: center; background: var(--paper); border-radius: var(--radius);
  padding: 34px 18px; box-shadow: var(--shadow);
}
.stat .num { font-family: var(--font); font-size: 44px; font-weight: 700; color: var(--gold); line-height: 1; }
.stat .lbl { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* ---------- Две колонки с текстом ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split h2 { font-family: var(--font); color: var(--navy); font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; line-height: 1.25; }
.split p { color: var(--muted); margin-bottom: 14px; }
.split ul { list-style: none; margin-top: 6px; }
.split li { padding: 7px 0 7px 30px; position: relative; color: var(--ink); }
.split li::before {
  content: "✦"; position: absolute; left: 0; top: 7px; color: var(--gold); font-size: 14px;
}

/* ---------- Таблица расписания ---------- */
.schedule-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.schedule-table th { background: var(--navy); color: #fff; padding: 14px 18px; text-align: left; font-size: 14px; letter-spacing: 1px; }
.schedule-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.schedule-table tr:nth-child(even) td { background: #fbf8f1; }
.schedule-table td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- Аккордеон ---------- */
.accordion { max-width: 860px; margin: 0 auto; }
.acc-item { background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 22px; font-family: var(--font); font-size: 19px; font-weight: 700;
  color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.acc-head .plus { color: var(--gold); font-size: 24px; transition: .25s; }
.acc-item.open .plus { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-body-inner { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; }

/* ---------- Приход в лицах ---------- */
.person { text-align: center; }
.person .photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid var(--gold-light); box-shadow: var(--shadow); }
.person h3 { font-family: var(--font); color: var(--navy); font-size: 19px; }
.person .role { color: var(--gold); font-size: 13.5px; font-weight: 700; letter-spacing: .8px; margin-top: 4px; }

/* ---------- Новости / список ---------- */
.news-item {
  display: flex; gap: 22px; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; align-items: flex-start;
}
.news-item .date {
  flex: 0 0 auto; width: 66px; text-align: center; background: var(--navy); color: #fff;
  border-radius: 12px; padding: 10px 4px; line-height: 1.15;
}
.news-item .date b { display: block; font-family: var(--font); font-size: 24px; }
.news-item .date span { font-size: 12px; color: var(--gold-light); }
.news-item h3 { font-family: var(--font); font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.news-item p { color: var(--muted); font-size: 15px; }

/* ---------- Нужды храма ---------- */
.need {
  background: var(--paper); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); border-left: 5px solid var(--gold);
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.need h3 { font-family: var(--font); color: var(--navy); font-size: 20px; margin-bottom: 6px; }
.need p { color: var(--muted); font-size: 15px; }

/* ---------- Пожертвование ---------- */
.donate-box {
  text-align: center; background: var(--paper); border-radius: 24px;
  padding: 44px 30px; max-width: 640px; margin: 0 auto; box-shadow: var(--shadow);
}
.donate-box h2 { font-family: var(--font); color: var(--navy); font-size: 30px; margin-bottom: 8px; }
.donate-box p { color: var(--muted); margin-bottom: 22px; }
.amounts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.amount {
  border: 2px solid var(--line); background: #fff; border-radius: 50px;
  padding: 10px 22px; font-size: 17px; font-weight: 700; color: var(--navy); cursor: pointer; transition: .2s;
}
.amount:hover, .amount.sel { border-color: var(--gold); background: rgba(201,162,75,.1); }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.contact-card { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card h3 { font-family: var(--font); color: var(--navy); font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.contact-card h3 .ico { color: var(--gold); }
.contact-card p { color: var(--muted); margin-bottom: 8px; }
.contact-card a { font-weight: 600; }

.req-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.req-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-table td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; width: 30%; }

/* ---------- Формы ---------- */
.form-card { background: var(--paper); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.form-card h3 { font-family: var(--font); color: var(--navy); font-size: 22px; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; letter-spacing: .4px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-family: var(--sans); font-size: 15.5px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { border-radius: 14px; overflow: hidden; position: relative; display: block; }
.gallery img { height: 240px; width: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery .cap {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(15,23,42,.8));
  color: #fff; font-size: 13.5px; font-weight: 600; opacity: 0; transition: .3s;
}
.gallery a:hover .cap { opacity: 1; }

/* ---------- Видео ---------- */
.video-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-card .thumb { position: relative; }
.video-card .thumb img { height: 200px; width: 100%; object-fit: cover; }
.video-card .play {
  position: absolute; inset: 0; margin: auto; width: 60px; height: 60px;
  background: rgba(201,162,75,.92); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; transition: .25s;
}
.video-card:hover .play { transform: scale(1.12); }
.video-card .body { padding: 16px 20px 20px; }
.video-card h3 { font-family: var(--font); font-size: 18px; color: var(--navy); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { padding: 16px 0; font-size: 13.5px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs span { margin: 0 8px; color: var(--gold); }

/* ---------- Подвал ---------- */
.site-footer { background: #141c2c; color: rgba(255,255,255,.75); padding: 54px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer-grid h4 { color: #fff; font-family: var(--font); font-size: 17px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,.72); }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand p { margin-top: 12px; color: rgba(255,255,255,.55); line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center;
  font-size: 13px; color: rgba(255,255,255,.45);
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav ul { display: none; flex-direction: column; }
  .main-nav ul.open { display: flex; }
  .main-nav a { padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .header-contacts { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { height: 160px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat .num { font-size: 34px; }
  .news-item { flex-direction: column; }
  .hero { min-height: 58vh; }
}
