:root {
  --bg:        #f4f2ef;
  --bg-alt:    #ebe8e3;
  --surface:   #ffffff;
  --ink:       #1d1f22;
  --ink-soft:  #4a4e54;
  --muted:     #7c8088;
  --line:      #ddd8d1;
  --accent:    #2b2f36;   /* графит */
  --accent-2:  #8a7b63;   /* приглушённый тёплый */
  --radius:    14px;
  --maxw:      1120px;
  --serif:     Georgia, "Times New Roman", "PT Serif", serif;
  --sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 .5rem; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

/* ---------- ШАПКА ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244,242,239,.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .3px; }
.brand-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.header-contact { display: flex; align-items: center; gap: 14px; }
.badge {
  font-size: .72rem; font-weight: 700; letter-spacing: 1px;
  color: var(--surface); background: var(--accent);
  padding: 4px 9px; border-radius: 999px;
}
.phone-link { font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
.phone-link:hover { color: var(--accent-2); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 110px) 0 clamp(48px, 8vw, 90px); }
.hero-church {
  position: absolute; right: -30px; bottom: -40px;
  width: min(42vw, 440px); height: min(42vw, 440px);
  color: var(--ink); opacity: .05; pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: .78rem; color: var(--accent-2); font-weight: 600; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2rem, 5.6vw, 3.4rem); margin: 0 0 1.2rem; }
.hero-lead { font-size: clamp(1.02rem, 2vw, 1.18rem); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 1.8rem 0 1rem; }
.hero-note { font-size: .9rem; color: var(--muted); }

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--surface); }

/* ---------- МЕССЕНДЖЕРЫ ---------- */
.messengers { display: flex; gap: 10px; }
.msg {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--line);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.msg svg { width: 24px; height: 24px; }
.msg:hover { transform: translateY(-2px); background: var(--accent); color: var(--surface); }
.messengers-light .msg { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.messengers-light .msg:hover { background: #fff; color: var(--accent); }

/* ---------- ПОЛОСА ДОВЕРИЯ ---------- */
.trust { background: var(--accent); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 34px 24px; }
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-num { font-family: var(--serif); font-size: 1.7rem; color: #fff; }
.trust-text { font-size: .95rem; color: #c7cace; }

/* ---------- СЕКЦИИ ---------- */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: .76rem; color: var(--accent-2); font-weight: 600; margin-bottom: .6rem; }
.section-lead { color: var(--muted); }

/* ---------- КАРТОЧКИ УСЛУГ ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(29,31,34,.08); border-color: var(--accent-2); }
.card h3 { border-left: 3px solid var(--accent-2); padding-left: 12px; }
.card p { margin: 0; font-size: .96rem; }

/* ---------- ШАГИ ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--serif); font-size: 1.15rem; margin-bottom: 14px;
}
.step p { margin: 0; font-size: .92rem; }

/* ---------- ОРГАНИЗАТОР ---------- */
.about-inner { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.about-figure { position: relative; display: grid; place-items: center; }
.about-photo {
  width: 100%; max-width: 280px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(29,31,34,.14);
}
.about-angel-mark {
  position: absolute; right: -14px; bottom: -14px;
  width: 62px; height: 62px; color: var(--accent-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 50%; padding: 12px;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text .btn { margin-top: .6rem; }

/* ---------- CTA ---------- */
.cta { background: var(--accent); color: #fff; padding: clamp(56px, 9vw, 92px) 0; text-align: center; }
.cta h2 { color: #fff; }
.cta-lead { color: #c7cace; max-width: 480px; margin: 0 auto 1.6rem; }
.cta-phone { display: inline-block; font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 600; color: #fff; margin-bottom: 1.4rem; }
.cta-phone:hover { color: var(--accent-2); }
.cta .messengers { justify-content: center; }

/* ---------- FOOTER ---------- */
.site-footer { background: #15171a; color: #c7cace; padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand strong { color: #fff; font-family: var(--serif); font-weight: 600; }
.footer-sub { font-size: .85rem; color: var(--muted); }
.footer-phone { font-weight: 700; font-size: 1.1rem; color: #fff; white-space: nowrap; }
.footer-phone:hover { color: var(--accent-2); }
.footer-copy { width: 100%; margin: 6px 0 0; font-size: .82rem; color: var(--muted); }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-figure { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 18px; padding: 26px 24px; }
  .brand-sub { display: none; }
  .header-contact .phone-link { display: none; }
  .hero-actions { gap: 14px; }
  .btn-primary { width: 100%; text-align: center; }
}
@media (max-width: 400px) {
  .container { padding: 0 18px; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- МОБИЛЬНАЯ ПАНЕЛЬ СВЯЗИ ---------- */
.mobile-bar { display: none; }
@media (max-width: 620px) {
  .mobile-bar {
    display: flex; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: rgba(244,242,239,.97);
    backdrop-filter: saturate(140%) blur(8px);
    border-top: 1px solid var(--line);
  }
  .mbtn {
    flex: 1; text-align: center; padding: 12px 6px; border-radius: 8px;
    font-weight: 600; font-size: .9rem;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  }
  .mbtn-call { background: var(--accent); color: var(--surface); border-color: var(--accent); }
  body { padding-bottom: 68px; }
}
