/* MultiScreenShower — главная страница сайта. Шрифты свои (OFL), без внешних сервисов. */
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(/fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(/fonts/golos-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(/fonts/golos-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(/fonts/golos-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url(/fonts/literata-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url(/fonts/literata-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* затемнённый зал и проектор */
  --night: #141a26;
  --night-2: #1d2433;
  --screen: #0e1118;
  /* свеча / латунь — цвет значка программы */
  --gold: #e8b45a;
  --gold-ink: #8f5c12;
  /* светлые разделы — холодный дневной свет, не «бумага» */
  --day: #ffffff;
  --mist: #edf0f5;
  --ink: #1d2433;
  --slate: #566074;
  --line: #d9dee7;
  --on-air: #d0473d;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root { --day: #171c27; --mist: #1d2331; --ink: #e9eaee; --slate: #a6adbd; --line: #2d3445; --gold-ink: #e8b45a; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--day); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 38px); max-width: 22ch; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.small { font-size: 14px; }
.muted { color: var(--slate); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section.wrap, .band > .wrap { padding-top: 88px; padding-bottom: 88px; }
.section-lead { color: var(--slate); max-width: 62ch; margin-top: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 10px;
  font: 600 16px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: #f0c375; }
.btn-line { border-color: rgba(246, 241, 231, .45); color: #f6f1e7; }
.btn-line:hover { border-color: #f6f1e7; }
.btn-ghost { color: #f6f1e7; border-color: rgba(246, 241, 231, .3); min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------------------------------------------------------- навигация */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 12px 24px;
  padding-top: max(12px, env(safe-area-inset-top)); background: rgba(20, 26, 38, .94); backdrop-filter: blur(8px); color: #f6f1e7; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; font-size: 17px; }
.brand svg { width: 30px; height: 30px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: #c9ccd4; text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: #fff; }
@media (max-width: 900px) { .nav nav { display: none; } .nav .btn-ghost { margin-left: auto; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* ---------------------------------------------------------------- первый экран */
.hero { background: radial-gradient(1200px 600px at 80% 0%, #232c40 0%, transparent 60%), var(--night); color: #f6f1e7;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center;
  padding: 72px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 88px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; max-width: 14ch; }
.lead { font-size: 19px; color: #c9ccd4; margin-top: 22px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: #8f96a6; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; } }

/* демонстрация: три экрана одной церкви */
.demo { display: flex; flex-direction: column; gap: 14px; }
.demo figure { margin: 0; }
.demo figcaption { font-size: 13px; color: #8f96a6; margin-top: 8px; }
.screen-body { background: var(--screen); border-radius: 6px; aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px #2a3245, 0 24px 60px rgba(0, 0, 0, .45); container-type: inline-size; }
.hall .screen-body { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5%; text-align: center; }
.hall .screen-body::before { content: ""; position: absolute; top: 10px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--on-air);
  box-shadow: 0 0 0 4px rgba(208, 71, 61, .25); }
#d-hall { font: 600 4.6cqw/1.35 var(--sans); color: #fff; text-shadow: 0 1px 3px #000; white-space: pre-line; }
#d-cap { margin-top: 3%; font-size: 2.4cqw; color: #aeb4c2; }
.demo-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 16px; align-items: start; }
.stage .screen-body { padding: 4% 5%; font-family: var(--mono); }
.stage-head { display: flex; justify-content: space-between; font: 500 3.6cqw/1.2 var(--sans); color: #8f96a6; }
.stage-head span:first-child { color: var(--gold); }
#d-stage { margin: 3% 0 0; font: 500 3.5cqw/1.22 var(--mono); color: #fff; white-space: pre; overflow: hidden; }
#d-stage .ch { color: var(--gold); }
.stage-next { position: absolute; left: 5%; right: 5%; bottom: 5%; font: 400 3.4cqw/1.2 var(--sans); color: #8f96a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone { width: 132px; }
.phone-body { background: var(--screen); border-radius: 18px; aspect-ratio: 9 / 18; padding: 22px 10px; box-shadow: 0 0 0 5px #2a3245, 0 18px 40px rgba(0, 0, 0, .45);
  display: flex; align-items: center; }
#d-phone { font: 500 12px/1.45 var(--sans); color: #fff; white-space: pre-line; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.demo-controls button { font: 500 14px/1 var(--sans); color: #c9ccd4; background: transparent; border: 1px solid #3a4459; border-radius: 8px;
  padding: 9px 13px; cursor: pointer; }
.demo-controls button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }
.fade { animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } }
@media (max-width: 520px) { .demo-row { grid-template-columns: minmax(0, 1fr) 96px; } .phone { width: 96px; } #d-phone { font-size: 9px; } }

/* ---------------------------------------------------------------- полосы */
.band { background: var(--mist); }

/* шаги служения — это последовательность, поэтому нумерация */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--gold); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font: 600 34px/1 var(--serif); color: var(--gold-ink); margin-bottom: 12px; }
.steps p { color: var(--slate); margin-top: 10px; font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* возможности: три колонки-оглавления, без карточек */
.feature-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 44px; }
.feature-group h3 { font-size: 15px; font-family: var(--sans); color: var(--slate); font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.feature-group dl { margin: 0; }
.feature-group dt { font: 600 21px/1.25 var(--serif); margin-top: 26px; }
.feature-group dd { margin: 8px 0 0; color: var(--slate); font-size: 16px; }
@media (max-width: 960px) { .feature-groups { grid-template-columns: 1fr; gap: 24px; } }

/* телефон */
.band-phone { background: var(--night-2); color: #f6f1e7; }
.band-phone h2 { color: #fff; }
.phone-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: center; }
.phone.tall { width: 240px; margin: 0 auto; }
.phone.tall .phone-body { aspect-ratio: 9 / 16; display: block; padding: 18px 14px; font-family: var(--sans); }
.ph-top { font-size: 12px; color: #8f96a6; }
.ph-live { margin-top: 12px; background: #000; border-radius: 6px; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; padding: 8px; }
.ph-live p { font-size: 10.5px; line-height: 1.35; color: #fff; text-align: center; }
.ph-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.ph-list li { background: #232b3c; border-radius: 6px; padding: 7px 9px; font-size: 10.5px; color: #c9ccd4; line-height: 1.35; }
.ph-list li b { display: block; color: var(--gold); font-size: 9.5px; font-weight: 600; }
.ph-list li.on { background: rgba(208, 71, 61, .28); }
.ph-buttons { display: grid; grid-template-columns: 1fr 2fr; gap: 6px; margin-top: 14px; }
.ph-buttons span { text-align: center; font-size: 11px; padding: 9px 0; border-radius: 8px; background: #2d3549; }
.ph-buttons .go { background: var(--gold); color: var(--night); font-weight: 600; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; max-width: 60ch; }
.checks li { padding-left: 26px; position: relative; color: #c9ccd4; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.checks b { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .phone-grid { grid-template-columns: 1fr; gap: 40px; } .phone-shot { order: 2; } }

/* скачать */
.downloads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); }
.dl { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 26px 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.dl + .dl { padding-left: 24px; border-left: 1px solid var(--line); }
.dl strong { font: 600 21px/1.25 var(--serif); }
.dl span { color: var(--slate); font-size: 15px; flex: 1; }
.dl em { font-style: normal; font-weight: 600; color: var(--gold-ink); }
a.dl:hover em { text-decoration: underline; text-underline-offset: 4px; }
.dl-soon em { color: var(--slate); }
@media (max-width: 960px) {
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) { .downloads { grid-template-columns: 1fr; } .dl + .dl { border-left: 0; padding-left: 0; } }

/* история: две даты — это последовательность, поэтому линия времени */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { font: 600 30px/1.1 var(--serif); color: var(--gold-ink); }
.timeline p { color: var(--slate); margin-top: 8px; max-width: 60ch; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 8px; } }

/* пожертвования */
.band-donate { background: var(--mist); }
.donate { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; align-items: center; }
.donate p { margin-top: 16px; max-width: 58ch; }
.donate-box { border-left: 3px solid var(--gold); padding: 8px 0 8px 28px; display: grid; gap: 14px; justify-items: start; }
#donate-details { white-space: pre-line; font-size: 16px; margin: 0; }
@media (max-width: 860px) { .donate { grid-template-columns: 1fr; gap: 28px; } }

/* подвал */
.footer { background: var(--night); color: #8f96a6; font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.foot a { color: #c9ccd4; margin-left: 18px; }
.foot a:first-child { margin-left: 0; }
