@font-face { font-family: "Grot"; src: url(assets/fonts/inter-tight-cyrillic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Grot"; src: url(assets/fonts/inter-tight-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Grot"; src: url(assets/fonts/inter-tight-cyrillic-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Grot"; src: url(assets/fonts/inter-tight-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Disp"; src: url(assets/fonts/playfair-display-cyrillic-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: block; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Disp"; src: url(assets/fonts/playfair-display-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: block; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --g: 32px;
  --hdr: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --line: color-mix(in srgb, currentColor 24%, transparent);
  --cream: #FBF5EA;
}
[data-theme="blue"] {
  --accent: #252C5A;
  --gl-deep: #1F2550;
  --gl-bright: #3B4582;
  --on-accent: #F8F2E7;
  --on-accent-2: #F8F2E7;
  --surface: #F6F0E5;
  --ink: #252C5A;
  --card: #F6F0E5;
  --card-2: #E9E0CF;
  --on-card: #252C5A;
  --bar: #252C5A;
  --round: #F6F0E5;
  --round-ink: #252C5A;
  --sel: #252C5A;
  --hero-word: #FBF5EA;
  --hero-tint: linear-gradient(rgba(37,44,90,.22), rgba(37,44,90,.22));
}
[data-theme="yellow"] {
  --accent: #EDCB74;
  --gl-deep: #E6C062;
  --gl-bright: #F6DE9A;
  --on-accent: #2A2116;
  --on-accent-2: #2A2116;
  --surface: #1C1812;
  --ink: #F1D284;
  --card: #1C1812;
  --card-2: #2C2519;
  --on-card: #F5ECD6;
  --bar: #F1D284;
  --round: #2A2116;
  --round-ink: #F1D284;
  --sel: #F1D284;
  --hero-word: #F7DF9E;
  --hero-tint: linear-gradient(rgba(120,90,20,.12), rgba(120,90,20,.12));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-variant-numeric: lining-nums;
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 17px/1.42 "Grot", system-ui, sans-serif; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html.is-loading, html.is-loading body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
p, h1, h2, h3, figure { margin: 0; font: inherit; }
em { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--sel); color: var(--surface); }

.serif { font-family: "Disp", Georgia, serif; font-weight: 500; font-style: italic; letter-spacing: -.015em; font-variant-numeric: lining-nums; }
.caps { text-transform: uppercase; font-size: 13.5px; line-height: 1.4; letter-spacing: .045em; font-weight: 500; }
.tag { font-family: "Disp", Georgia, serif; font-weight: 500; font-style: italic; font-size: 21px; letter-spacing: 0; }
.lead { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.36; letter-spacing: -.012em; }
.h3 { font-family: "Disp", Georgia, serif; font-weight: 500; font-style: italic; font-size: clamp(29px, 2.7vw, 39px); line-height: 1.16; letter-spacing: -.01em; }
.display { font-size: clamp(40px, 5.6vw, 88px); line-height: 1.08; letter-spacing: -.025em; font-weight: 400; }
.display .serif { letter-spacing: -.012em; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; display: block; }

/* Split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .1em .16em; margin: -.12em -.1em -.16em; }
.ch { display: inline-block; transform: translateY(46%); opacity: 0; transition: transform 1.5s var(--ease), opacity 1.1s ease; transition-delay: calc(var(--i) * 14ms); will-change: transform; }
.in .ch { transform: none; opacity: 1; }

/* Loader */
.loader { display: none; }
.is-loading .loader, .loader.leaving {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 50;
  background: var(--accent); color: var(--on-accent);
}
.loader.leaving { transform: translateY(-100%); transition: transform .95s cubic-bezier(.76, 0, .24, 1); }
.loader__ring { position: absolute; width: min(450px, 78vw); aspect-ratio: 1; transform: rotate(-90deg); }
.loader__ring circle { fill: none; stroke: currentColor; stroke-opacity: .7; stroke-width: .18; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ring 2.3s cubic-bezier(.45, 0, .2, 1) .1s forwards; vector-effect: none; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.loader__mask { height: 1.75em; overflow: hidden; font-size: clamp(34px, 3.06vw, 44px); -webkit-mask-image: linear-gradient(#000 0, #000 100%); position: relative; }
.loader__days { display: flex; flex-direction: column; align-items: center; animation: days 2.4s cubic-bezier(.62, .02, .12, 1) forwards; }
.loader__days span { height: 1.17em; line-height: 1.17; flex: none; letter-spacing: -.03em; }
.loader__days .serif { font-size: 1.14em; height: 1.026em; line-height: 1.026; }
@keyframes days { from { transform: translateY(.3em); } to { transform: translateY(calc(-6 * 1.17em + .36em)); } }

/* Header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--hdr); padding: 0 var(--g);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--ink); background: var(--surface); transition: color .2s, background-color .2s;
}
.hdr[data-tone="accent"] { color: var(--on-accent); background: var(--accent); }
.hdr.is-top { background: transparent; color: var(--cream); }
.hdr__side { display: flex; gap: 44px; font-size: 14px; letter-spacing: .05em; font-weight: 500; }
.hdr__side--r { justify-content: flex-end; padding-right: 84px; }
.hdr__logo { font-size: 33px; line-height: 1; opacity: 1; transition: opacity .25s; }
.hdr.is-top .hdr__logo { opacity: 0; pointer-events: none; }
.hdr__burger { display: none; }
.hdr__tools { position: absolute; right: var(--g); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; }
.tgl { display: grid; place-items: center; width: 56px; height: 44px; }
.tgl__track { position: relative; display: block; width: 56px; height: 28px; border-radius: 28px; background: #1F1A17; box-shadow: 0 0 0 1px rgba(255,255,255,.22); }
.tgl__dot { position: absolute; top: 7px; width: 14px; height: 14px; border-radius: 50%; }
.tgl__dot--blue { left: 7px; background: #5563B8; }
.tgl__dot--yellow { right: 7px; background: #EDCB74; }
.tgl__ring { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #F6F0E5; transition: transform .45s var(--ease); }
.tgl[aria-checked="true"] .tgl__ring { transform: translateX(28px); }
.roll { display: inline-block; overflow: hidden; height: 1.2em; line-height: 1.2; }
.roll span { display: block; position: relative; transition: transform .6s var(--ease); }
.roll span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
@media (hover: hover) { .roll:hover span { transform: translateY(-100%); } }

.menu { position: fixed; inset: 0; z-index: 29; background: var(--accent); color: var(--on-accent); padding: 110px 20px 32px; display: flex; flex-direction: column; gap: 12px; font: italic 500 48px/1.12 "Disp", Georgia, serif; }
.menu[hidden] { display: none; }
.menu .caps { margin-top: auto; font-family: "Grot", system-ui, sans-serif; font-style: normal; }

/* Intro and hero */
.intro { position: relative; }
.hero { --on-accent: var(--cream); --on-accent-2: var(--cream); position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 1; background: #120E0C; color: var(--cream); overflow: hidden; will-change: clip-path; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gl--low { -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); }
.hero__bg { position: absolute; inset: 0; display: block; overflow: hidden; }
.hero__bg img { object-position: 50% 62%; transform: scale(var(--hz, 1.08)); transform-origin: 50% 60%; will-change: transform; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18,12,8,.46) 0, rgba(18,12,8,.08) 36%, rgba(18,12,8,.12) 54%, rgba(18,12,8,.8) 100%), var(--hero-tint); }
.hero__inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: 0 var(--g) 32px; }
.hero__word { color: var(--hero-word); font-size: 28vw; line-height: 1; white-space: nowrap; margin-top: 7vh; letter-spacing: -.015em; }
.hero__foot { margin-top: auto; display: grid; grid-template-columns: 5fr 1.8fr 2fr; gap: 24px 32px; align-items: end; }
.hero__lead { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -.012em; max-width: 20em; color: var(--on-accent-2); }
.hero__col { display: grid; gap: 16px; }
.hero__cta { display: none; }

.chip { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border: 1px solid currentColor; border-radius: 55px; font-size: 16px; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--ink); color: var(--surface); }
.chip--on-accent { background: rgba(18,12,8,.26); }
.chip--on-accent:hover { background: var(--cream); color: #2A201A; }

/* About */
.about { position: relative; z-index: 2; padding: 100px var(--g) 0; }
.ticker { overflow: hidden; border-block: 1px solid var(--line); }
.ticker__run { display: flex; width: max-content; animation: run 90s linear infinite; padding: 12px 0; }
.ticker__run span { display: inline-flex; align-items: center; white-space: nowrap; }
.ticker__run span::after { content: ""; width: 5px; height: 5px; margin: 0 56px; border-radius: 50%; background: currentColor; }
@keyframes run { to { transform: translateX(-33.3333%); } }
.about__title { display: flex; justify-content: space-between; gap: 32px; margin-top: 16vh; }
.about__r { margin-top: 62vh; }
.about__meta { display: grid; grid-template-columns: 5fr 1.5fr 3fr; gap: 32px; margin-top: 40vh; align-items: start; }
.about__facts { display: contents; }
.about__facts .ico--arrow { grid-column: 2; justify-self: end; }
.about__facts .caps { grid-column: 3; }
.about__lead { grid-column: 3; margin-top: 40px; }
.grow-space { height: 170vh; }

.reel-rail { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.reel-stage { position: sticky; top: 0; height: 100vh; }
.reel { position: absolute; left: 50%; top: 56%; width: 300px; height: 236px; transform: translateX(-50%); background: var(--card-2); border-radius: 18px; overflow: hidden; color: var(--on-card); pointer-events: auto; }
.reel__head { position: absolute; inset: 12px 15px auto; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--on-card); }
.reel__media { position: absolute; inset: var(--head, 88px) var(--pad, 12px) var(--pad, 20px); overflow: hidden; border-radius: 10px; background: #120E0C; }
.reel__media img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.reel__media img.on { opacity: 1; }

/* Schedule */
.sched { position: relative; z-index: 5; background: var(--surface); padding: 14vh var(--g) 14vh; }
.head-c { text-align: center; display: grid; gap: 24px; justify-items: center; margin-bottom: 72px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.day { position: relative; min-height: 320px; padding: 22px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: background-color .25s, color .25s; }
.day:nth-child(7) { border-right: 0; }

.day__n { font-size: 15px; line-height: 1.38; opacity: .86; max-width: 15em; }
.day__d { margin-top: auto; align-self: flex-end; font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(44px, 4.2vw, 62px); line-height: 1; }
.day--empty .day__d { opacity: .26; }
.day__time { font-size: clamp(30px, 2.8vw, 40px); line-height: 1; letter-spacing: -.025em; }
.day--on { background: var(--accent); color: var(--on-accent); }
a.day:not(.day--on):hover { background: var(--ink); color: var(--surface); }
.groups { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; min-height: 112px; padding: 0 18px 0 16px; border-top: 1px solid var(--line); transition: background-color .25s, color .25s; }
.groups__t { font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(28px, 2.5vw, 36px); }
.groups .round { margin-left: auto; }
.groups:hover { background: var(--ink); color: var(--surface); }
.round { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--surface); transition: transform .5s var(--ease); }
.groups:hover .round { background: var(--surface); color: var(--ink); transform: rotate(45deg); }
.round svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2; }
/* First visit stack */
.first { position: relative; z-index: 5; background: var(--surface); padding: 0 var(--g) 16vh; }
.first__head { display: grid; grid-template-columns: 1fr 2.05fr; align-items: baseline; padding-bottom: 60px; font-size: 21px; }
.stack { border-bottom: 1px solid var(--line); }
.row { position: sticky; top: calc(var(--hdr) + var(--n) * 70px); display: grid; grid-template-columns: 1fr 1.25fr .9fr; gap: 32px; min-height: 332px; padding: 28px 0 48px; border-top: 1px solid var(--line); background: var(--surface); }
.row:nth-child(1) { --n: 0; } .row:nth-child(2) { --n: 1; } .row:nth-child(3) { --n: 2; } .row:nth-child(4) { --n: 3; }
.row__n { font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(64px, 6.6vw, 96px); line-height: 1; }
.row__b { display: grid; gap: 18px; align-content: start; }
.row__b p { font-size: 18px; line-height: 1.42; max-width: 27em; }
.frame { background: var(--card-2); border-radius: 130px 130px 18px 18px; padding: 10px; height: 268px; }
.frame img { border-radius: 120px 120px 11px 11px; }

/* Gallery */
.gal { position: relative; z-index: 5; background: var(--surface); padding: 4vh 0 16vh; overflow: hidden; }
.gal__head { padding: 0 var(--g); display: grid; gap: 24px; margin-bottom: 64px; }
.gal__rows { display: grid; gap: 16px; }
.gal__row { display: flex; gap: 16px; width: max-content; height: clamp(240px, 27vw, 400px); will-change: transform; }
.gal__i { flex: none; height: 100%; padding: 8px; background: var(--card-2); border-radius: 18px; }
.gal__i img { width: auto; height: 100%; border-radius: 11px; }
.gal__i:has(img[width="666"]) { border-radius: 999px 999px 18px 18px; }
.gal__i:has(img[width="666"]) img { border-radius: 999px 999px 11px 11px; }

/* Wide photo */
.wide { position: relative; z-index: 5; background: var(--surface); height: 200vh; }
.wide__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.wide__fig { position: absolute; inset: 0; clip-path: inset(var(--wi, 22%) var(--wx, 22%) round 24px); will-change: clip-path; color: #fff; background: #08080C; }
.wide__fig img { transform: scale(var(--wz, 1.14)); will-change: transform; }
.wide__fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,12,8,.68), rgba(18,12,8,0) 46%); }
.wide__fig figcaption { position: absolute; z-index: 1; left: var(--g); right: var(--g); bottom: 4.5vh; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; opacity: var(--wo, 0); }
.wide__fig .serif { font-size: clamp(46px, 6.4vw, 104px); line-height: 1.05; }
.wide__fig .caps { text-align: right; max-width: 22em; }

/* Ministries */
.mtitle { position: relative; z-index: 5; background: var(--accent); color: var(--on-accent-2); min-height: 76vh; padding: 16vh var(--g) 15vh; display: flex; flex-direction: column; justify-content: flex-end; }
.mtitle__w { font-weight: 400; font-size: clamp(64px, 12.6vw, 190px); line-height: 1.04; letter-spacing: -.03em; display: flex; flex-direction: column; }
.mtitle__b { align-self: flex-end; line-height: 1.04; padding-right: .04em; letter-spacing: -.012em; }
.mtitle__c { position: absolute; left: var(--g); bottom: 5vh; }
.mtitle__d { position: absolute; left: 22%; bottom: 5vh; }

.hs { position: relative; z-index: 5; background: var(--accent); color: var(--on-accent); }
.hs__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hs__track { position: relative; height: 100%; display: flex; width: max-content; padding: 0 18vw 0 18vw; will-change: transform; }
.m { display: grid; grid-template-columns: auto 720px 300px; gap: 24px; align-items: start; margin-top: max(84px, calc((100vh - 580px) / 2 - 56px)); }
.m--low { margin-top: max(120px, calc((100vh - 580px) / 2 + 40px)); }
.m__n { font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: 34px; line-height: 1; padding-top: 4px; }
.card { position: relative; display: block; height: min(578px, calc(100vh - 150px)); background: var(--card); color: var(--on-card); border-radius: 22px; padding: 14px; }
.card img { height: calc(100% - 96px); border-radius: 12px; }
.card__t { position: absolute; left: 20px; bottom: 24px; font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.1; }
.pin { position: absolute; right: 18px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%; background: var(--on-card); color: var(--card); display: grid; place-items: center; transform: scale(.48); transform-origin: 100% 100%; transition: transform .5s var(--ease); }
.pin svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 2; opacity: 0; transition: opacity .2s; }
.card:hover .pin, .card:focus-visible .pin { transform: none; }
.card:hover .pin svg, .card:focus-visible .pin svg { opacity: 1; }
.m__meta { display: grid; gap: 14px; margin-top: 230px; }
.m__links { display: flex; gap: 8px; flex-wrap: wrap; }
.m__links a { display: inline-flex; align-items: center; min-height: 38px; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 15px; padding: 0 14px; border: 1px solid var(--line); border-radius: 40px; }
.m__links a:hover { background: var(--on-accent); color: var(--accent); }

/* Pastor */
.pastor { position: relative; z-index: 5; background: var(--surface); padding: 18vh var(--g) 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: stretch; }
.pastor__l { display: flex; flex-direction: column; gap: 28px; padding-top: 0; justify-content: flex-start; }
.pastor__l hr { margin-top: auto; margin-bottom: 40px; }
.pastor__box { border: 1px solid var(--line); border-radius: 999px 999px 22px 22px; padding: 130px 44px 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 34px; }

/* Contacts */
.contacts { position: relative; z-index: 5; background: var(--surface); padding: 20vh var(--g) 16vh; }
.table { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.col { position: relative; padding: 26px 24px 30px; min-height: 470px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.col:last-child { border-right: 0; }
.col__n { font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: 24px; }
.col__line { display: none; }
.col__t { margin-top: 56px; font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.12; }
.col__p { margin-top: 16px; font-size: 17px; line-height: 1.42; max-width: 19em; min-height: 4.4em; }
.bars { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.bar { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--bar); color: var(--surface); border-radius: 40px; font-size: 15px; transition: opacity .3s; }
.bar:hover { opacity: .82; }

/* Digits */
.digits { position: relative; z-index: 5; background: var(--surface); height: 170vh; }
.digits__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12vh; }
.digits__tag { position: absolute; left: 0; right: 0; top: calc(var(--hdr) + 3vh); text-align: center; }
.digits__row { display: flex; justify-content: center; align-items: flex-end; font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: 27vw; line-height: 1; letter-spacing: 0; }
.digits__row span { display: block; transform-origin: 50% 100%; will-change: transform; overflow: hidden; padding: 0 .02em; }

/* Footer */
main { position: relative; z-index: 2; background: var(--surface); margin-bottom: 100vh; }
.foot { position: fixed; inset: auto 0 0 0; height: 100vh; height: 100svh; z-index: 1; background: var(--accent); color: var(--on-accent); display: flex; flex-direction: column; overflow: hidden; visibility: hidden; }
.foot.show { visibility: visible; }
.foot__link { position: relative; margin: auto; padding: 0 var(--g); display: grid; justify-items: center; }
.foot__w { font-size: 11vw; line-height: 1; white-space: nowrap; }
.round--xl { position: relative; margin-top: 2.2vw; width: clamp(84px, 8.4vw, 120px); height: clamp(84px, 8.4vw, 120px); background: var(--round); color: var(--round-ink); }
.foot__link:hover .round { transform: rotate(45deg); }
.foot__nav { position: relative; display: flex; justify-content: center; gap: 36px; padding-bottom: 28px; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__base { position: relative; display: flex; justify-content: space-between; padding: 0 var(--g) 20px; opacity: .7; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 76px; z-index: 40; transform: translate(-50%, 16px); padding: 12px 18px; border-radius: 40px; background: var(--card-2); color: var(--on-card); font-size: 15px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, transform .4s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Phones and small tablets */
@media (max-width: 860px) {
  :root { --g: 20px; --hdr: 64px; }
  .tag { font-size: 20px; }
  .hdr { grid-template-columns: 1fr auto; border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
  .hdr.is-top { border-bottom-color: transparent; }
  .hdr__side { display: none; }
  .hdr__logo { font-size: 30px; }
  .hdr__tools { position: static; transform: none; }
  .hdr__burger { display: grid; gap: 7px; width: 44px; height: 44px; align-content: center; justify-items: end; }
  .hdr__burger i { width: 28px; height: 2.5px; background: currentColor; transition: transform .3s var(--ease); }
  .hdr__burger[aria-expanded="true"] i:first-child { transform: translateY(4.75px) rotate(45deg); }
  .hdr__burger[aria-expanded="true"] i:last-child { transform: translateY(-4.75px) rotate(-45deg); }

  .intro { display: flex; flex-direction: column; }
  .hero { order: 1; }
  .hero__bg img { object-position: 50% 50%; }
  .hero__veil { background: linear-gradient(to bottom, rgba(18,12,8,.5) 0, rgba(18,12,8,.1) 30%, rgba(18,12,8,.3) 50%, rgba(18,12,8,.88) 100%), var(--hero-tint); }
  .hero__inner { padding-top: 64px; padding-bottom: 28px; }
  .hero__word { margin-top: 4vh; }
  .hero__foot { grid-template-columns: 1fr 1fr; align-items: start; gap: 22px 16px; }
  .hero__lead { grid-column: 1 / -1; font-size: 22px; }
  .hero__col { gap: 8px; }
  .hero__col:nth-of-type(2) .ico { display: none; }
  .hero__cta { grid-column: 1 / -1; display: flex; gap: 8px; }
  .chip--on-accent { flex: 1; justify-content: center; }

  .about { order: 2; padding-top: 72px; }
  .about__title { display: block; margin-top: 56px; }
  .about__title br { display: inline; }
  .about__l, .about__r { display: block; margin: 0; }
  .about__meta { display: block; margin-top: 56px; }
  .about__facts { display: grid; grid-template-columns: 100px 1fr; margin-top: 40px; }
  .about__facts .ico--arrow { grid-column: 1; justify-self: start; }
  .about__facts .caps { grid-column: 2; }
  .about__lead { margin-top: 40px; }
  .grow-space { height: 56px; }

  .reel-rail { order: 3; position: relative; inset: auto; padding: 0 var(--g); }
  .reel-stage { position: static; height: auto; }
  .reel { position: relative; left: auto; top: auto; transform: none; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 22px; --head: 0px; --pad: 0px; }
  .reel__head { display: none; }

  .sched { padding: 80px var(--g) 72px; }
  .head-c { text-align: left; justify-items: start; margin-bottom: 40px; gap: 16px; }
  .week { display: block; border-radius: 20px; }
  .day { display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; min-height: 96px; padding: 18px 16px; border-right: 0; border-bottom: 1px solid var(--line); align-content: center; }
  .day--empty { display: none; }
  .day__d { grid-column: 1; grid-row: 1 / span 3; align-self: start; font-size: 36px; margin: 0; }
  .day__time, .day__t, .day__n { grid-column: 2; }
  .day__t br { display: none; }
  .day__n { font-size: 16px; }
  .day__time { font-size: 34px; }
  .groups { min-height: 96px; flex-wrap: wrap; gap: 4px 14px; padding: 14px; border-top: 0; position: relative; }
  .groups__t { font-size: 27px; width: calc(100% - 56px); }
  .groups .caps { width: calc(100% - 56px); }
  .groups .round { position: absolute; right: 14px; top: 50%; margin: -22px 0 0; width: 44px; height: 44px; }
  .first { padding-bottom: 72px; }
  .first__head { display: block; padding-bottom: 28px; }
  .first__sub { margin-top: 10px; font-size: 25px; line-height: 1.22; letter-spacing: -.015em; }
  .row { position: static; grid-template-columns: 1fr; gap: 18px; padding: 18px 0 32px; }
  .row__n { font-size: 58px; }
  .row__b { gap: 12px; }
  .frame { padding: 8px; height: 66vw; }

  .gal { padding: 0 0 72px; }
  .gal__head { margin-bottom: 32px; gap: 16px; }
  .gal__rows, .gal__row { gap: 8px; }
  .gal__row { height: 56vw; }
  .gal__i { padding: 6px; }
  .wide { height: 150vh; }
  .wide__fig img { object-position: 62% 50%; }
  .wide__fig figcaption { display: grid; gap: 10px; bottom: 6vh; }
  .wide__fig .caps { text-align: left; }

  .mtitle { min-height: 0; padding-top: 88px; padding-bottom: 48px; }
  .mtitle__w { font-size: 19vw; }
  .mtitle__b { align-self: flex-start; font-size: .86em; }
  .mtitle__c, .mtitle__d { position: static; margin-top: 18px; }
  .mtitle__d { display: none; }

  .hs__stage { position: static; height: auto; overflow: visible; }
  .gl--low { display: none; }
  .hs__track { display: block; width: auto; padding: 0 var(--g) 72px; transform: none !important; }
  .m, .m--low { display: block; margin: 0 0 56px; }
  .m__n { margin-bottom: 16px; }
  .card { height: auto; padding: 12px; border-radius: 20px; }
  .card img { height: 54vw; }
  .card__t { position: static; margin: 18px 6px 6px; font-size: 26px; padding-right: 44px; }
  .pin { right: 14px; bottom: 14px; transform: none; width: 36px; height: 36px; }
  .pin svg { opacity: 1; }
  .m__meta { margin-top: 16px; grid-template-columns: 1fr 1.7fr; gap: 6px 12px; }
  .m__meta p:first-child { grid-row: span 2; }

  .pastor { display: block; padding: 48px var(--g) 0; }
  .pastor__l hr { display: none; }
  .pastor__box { margin-top: 32px; padding: 84px 26px 32px; gap: 24px; }

  .contacts { padding: 80px var(--g) 56px; }
  .table { display: block; }
  .col { min-height: 0; padding: 20px 18px 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .col:last-child { border-bottom: 0; }
  .col__t { margin-top: 14px; font-size: 30px; }
  .col__p { font-size: 17px; min-height: 0; margin-top: 10px; }
  .bars { margin-top: 18px; }

  .digits { height: 110vh; }
  .digits__stage { padding-bottom: 20vh; }
  .digits__row { font-size: 30vw; }

  .foot__w { font-size: 16vw; white-space: normal; text-align: center; line-height: .98; }
  .foot__nav { flex-wrap: wrap; gap: 4px 20px; padding-inline: var(--g); }
  .round--xl { margin-top: 24px; }
  .toast { bottom: 62px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ch { transform: none; opacity: 1; transition: none; }
  .ticker__run { animation: none; }
}
