/* Worship Night site v2 — styles from design/worship-site.html as is, additions at the end. */
/* Worship Night — сайт события. Шесть блоков, ничего лишнего:
   первый экран-кадр → о вечере → лента фото → место → билет → подвал одной строкой.
   Типографика — главный герой: гротеск Onest + курсив Cormorant Garamond, подписи моно капсом.
   Цвета: почти чёрный со сливовым, почти белый, один красный BTL. Сетка 4 / 12 колонок.
   Фото пока нет: кадры — тональные плоскости с зерном и виньеткой и подписью кадра. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.site { background: var(--site-bg) var(--site-grain); color: var(--site-ink); font-family: var(--f-display); font-size: var(--t-m); line-height: 1.5; color-scheme: dark; }
.site :focus-visible { outline: 2px solid var(--site-ink); outline-offset: 3px; }
:root { --gap: 16px; --sec: clamp(96px, 12vw, 176px); }
.g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.cap { font-family: var(--f-cap); font-size: .75rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--site-muted); line-height: 1.5; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--site-accent); vertical-align: .1em; margin-right: 10px; }

/* кнопки: плоские, стрелка уезжает при наведении */
.act { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 60px; padding: 0 22px 0 24px; border: 0; border-radius: 0; background: var(--site-accent); color: var(--site-accent-ink); font: inherit; font-size: 1.125rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.act .ms { font-size: 24px; vertical-align: 0; transition: transform var(--t-med) var(--ease); }
@media (hover: hover) { .act:hover { background: var(--site-accent-press); } .act:hover .ms { transform: translateX(5px); } .act--line:hover { background: var(--site-ink); color: var(--site-bg); } }
.act--line { background: transparent; color: var(--site-ink); box-shadow: inset 0 0 0 1px var(--site-ink); }
.act--block { width: 100%; }
.act--s { min-height: var(--tap); font-size: var(--t-s); padding: 0 16px; gap: var(--s-3); }

/* кадр: место под фото или видео. Пока пусто — тональная плоскость, зерно, виньетка */
.slot { position: relative; background: var(--site-photo) var(--site-grain); overflow: hidden; margin: 0; }
.slot::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 95% at 50% 42%, transparent 52%, var(--site-vignette)); pointer-events: none; }
.slot img, .slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-tone); }
.slot:has(img)::before { display: none; }
.slot figcaption { text-shadow: 0 1px 8px var(--site-bg); }
.slot:has(img) figcaption { color: var(--site-ink); }
.slot figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; justify-content: space-between; gap: var(--s-3); }

/* ===== 1. первый экран: кадр на всю ширину, текст плотной группой внизу ===== */
.hero { position: relative; isolation: isolate; height: 100vh; height: 100svh; min-height: min-content; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.hero > .slot { position: absolute; inset: 0; z-index: -1; }
.hero > .slot img { object-position: 57% 30%; }
.hero > .slot::after { content: ''; position: absolute; inset: 0; background: var(--hero-scrim); }
.bar { display: flex; align-items: center; gap: var(--s-4); padding-top: calc(var(--s-3) + env(safe-area-inset-top, 0px)); padding-bottom: var(--s-3); }
.bar__brand { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); color: var(--site-ink); margin-right: auto; }
.bar__brand .mark { width: 40px; }
.bar__nav { display: none; }
.lang { display: inline-flex; }
.lang button { min-width: var(--tap); min-height: var(--tap); border: 0; background: transparent; color: var(--site-muted); font-family: var(--f-cap); font-size: .75rem; letter-spacing: .14em; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--site-ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--site-accent); text-decoration-thickness: 2px; }


.hero__group { padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px)); row-gap: var(--s-4); }
.hero__group > * { grid-column: 1 / -1; }
.hero__sub, .hero .lang button { color: var(--site-ink); }
.hero__sub { margin-top: -6px; }
.hero .lang button[aria-pressed="false"] { opacity: .78; }
.title { margin: 0; font-weight: 600; font-size: min(20vw, 112px); line-height: .9; letter-spacing: -.055em; padding-bottom: .16em; }
.title span, .title em { display: block; }
.title em { font-size: 1.1em; line-height: .82; letter-spacing: -.025em; margin-left: -.02em; }
.hero__when { margin: 0; font-size: 1.25rem; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hero__info { display: grid; gap: 6px; }
.hero__cta { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.count b { color: var(--site-ink); font-weight: 500; text-transform: none; letter-spacing: .04em; }

/* ===== секции ===== */
.sec { padding-block: var(--sec); }
.sec + .sec { border-top: 1px solid var(--site-line); }
.h2 { margin: 0; font-weight: 600; font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5.75rem); line-height: .98; letter-spacing: -.045em; }
.h2 em { font-size: 1.08em; letter-spacing: -.02em; }
.ln { display: block; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ln, .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 60%; }
    .ln + .ln { animation-range: entry 12% entry 68%; }
    @keyframes rise { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
  }
}

/* 2. о вечере */
.about { row-gap: var(--s-5); }
.about > * { grid-column: 1 / -1; }
.about__p { color: var(--site-muted); font-size: 1.25rem; line-height: 1.5; max-width: 34rem; }
.about__p b { color: var(--site-ink); font-weight: 500; }
.words { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4em; margin: var(--s-4) 0 0; padding: var(--s-5) 0 0; border-top: 1px solid var(--site-line); list-style: none; font-size: clamp(2rem, 1.4rem + 3vw, 4rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; }
.words li:nth-child(even) { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; margin-top: var(--s-6); }
.wide img { object-position: 50% 45%; }
.words li:not(:last-child)::after { content: ''; display: inline-block; width: .14em; height: .14em; margin-left: .4em; border-radius: 50%; background: var(--site-accent); vertical-align: .22em; }

/* 3. лента фото */
.reel { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px)); padding: 0 max(16px, env(safe-area-inset-left, 0px)) var(--s-4); scrollbar-width: thin; scrollbar-color: var(--site-line) transparent; }
.reel .slot { flex: none; height: 92vw; max-height: 70svh; scroll-snap-align: start; }
.reel .slot--w { aspect-ratio: 3 / 2; }
.reel .slot--t { aspect-ratio: 2 / 3; }
.reel .slot img { object-position: 50% 35%; }
.reel::after { content: ''; flex: none; width: 1px; }
.band { padding-block: 0 var(--sec); }
.band__head { display: flex; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-4); }

/* 4. место */
.place { row-gap: var(--s-5); }
.place > * { grid-column: 1 / -1; }
.place__addr { font-size: 1.375rem; line-height: 1.35; letter-spacing: -.015em; }
.place__time { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--site-line); }
.place__time div { display: grid; gap: 2px; }
.place__time dd { margin: 0; font-family: var(--f-cap); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.place .act { justify-self: start; }

/* 5. билет */
.reg { row-gap: var(--s-6); }
.reg__info { grid-column: 1 / -1; display: grid; gap: var(--s-4); align-content: start; }
.reg__info p { color: var(--site-muted); font-size: 1.125rem; max-width: 28rem; }
.reg__info p b { color: var(--site-ink); font-weight: 500; }
.panel { grid-column: 1 / -1; background: var(--site-bg-2); padding: var(--s-5) var(--s-4); display: grid; gap: var(--s-5); align-content: start; min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.panel__head h3 { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; }
/* поля — общие компоненты worship.css, перекрашенные в палитру сайта */
.form { --night-3: var(--site-bg); --night-edge: var(--site-edge); --night-ink: var(--site-ink); --night-muted: var(--site-muted); --night-line: var(--site-line);
  --light: var(--site-ink); --light-ink: var(--site-bg); --r-s: 2px; display: grid; gap: var(--s-4); }
.form .input { font-family: inherit; }
.form .field__label { font-weight: 500; }
.errors { --night-3: var(--site-bg); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { display: inline-flex; align-items: center; min-height: var(--tap); margin: -18px 0 -6px 38px; justify-self: start; color: var(--site-ink); font-size: var(--t-s); text-underline-offset: 4px; text-decoration-color: var(--site-muted); }
.state { display: grid; gap: var(--s-4); justify-items: center; text-align: center; }
.state > .ms { font-size: 40px; vertical-align: 0; color: var(--site-ink); }
.state h3 { margin: 0; font-weight: 600; font-size: 2.25rem; line-height: 1; letter-spacing: -.04em; }
.state > p { color: var(--site-muted); max-width: 34ch; }
.state > p b { display: block; color: var(--site-ink); font-weight: 500; overflow-wrap: anywhere; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); width: 100%; max-width: 380px; }
.actions .act { justify-content: center; }
.actions .act--wide { grid-column: 1 / -1; }
/* билет в языке сайта */
.state .ticket { --ticket-cut: var(--site-bg-2); margin-top: var(--s-2); box-shadow: none; border-radius: 4px; }
.site .ticket__head { background: var(--site-bg); border-radius: 4px 4px 0 0; gap: 10px; padding-block: 20px 22px; }
.site .ticket__brand { color: var(--site-muted); font-family: var(--f-cap); font-weight: 400; letter-spacing: .14em; }
.site .ticket__brand .mark { color: var(--site-ink); width: 26px; }
.site .ticket__title { font-family: var(--f-display); font-weight: 600; text-transform: none; letter-spacing: -.045em; font-size: 2.5rem; line-height: .95; color: var(--site-ink); }
.site .ticket__title em { letter-spacing: -.02em; }
.site .ticket__when b { font-weight: 500; }
.site .ticket__when span { color: var(--site-muted); }
.site .ticket__body { border-radius: 0 0 4px 4px; }
.site .ticket__no { font-family: var(--f-cap); }

/* 6. подвал одной строкой */
.foot { border-top: 1px solid var(--site-line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-4); padding-block: var(--s-4); }
.foot__in .mark { width: 32px; color: var(--site-ink); }
.foot__in a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--site-ink); text-decoration: none; }
@media (hover: hover) { .foot__in a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.foot__in .sp { margin-right: auto; }

/* липкая кнопка на телефоне */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--site-bg); border-top: 1px solid var(--site-line); transform: translateY(110%); transition: transform var(--t-med) var(--ease); }
.dock.is-on { transform: none; }

@media (min-width: 600px) {
  .panel { padding: var(--s-6); }
  .reel .slot { height: clamp(320px, 42vw, 600px); }
}
@media (min-width: 960px) {
  :root { --gap: 24px; }
  .g { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bar { padding-top: calc(var(--s-5) + env(safe-area-inset-top, 0px)); }
  .bar__nav { display: flex; gap: var(--s-1); margin-right: var(--s-3); }
  .bar__nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; color: var(--site-ink); text-decoration: none; }
  @media (hover: hover) { .bar__nav a:hover { text-decoration: underline; text-underline-offset: 6px; } }
  .hero > .slot img { object-position: 50% 32%; }
  .hero__group { padding-bottom: var(--s-7); align-items: end; }
  .title { font-size: clamp(64px, 10.6vw, 168px); line-height: .92; padding-block: .16em .12em; }
  .title span, .title em { display: inline; }
  .title em { margin-left: .06em; }
  .hero__info { grid-column: 1 / 8; gap: var(--s-2); }
  .hero__cta { grid-column: 9 / -1; margin: 0; }
  .hero__cta .count { text-align: right; }
  .hero__when { font-size: 1.5rem; }
  .about .cap { grid-column: 1 / 4; padding-top: .9em; }
  .about .h2 { grid-column: 4 / -1; }
  .about__p { grid-column: 4 / 10; }
  .words { grid-column: 4 / -1; }
  .wide { aspect-ratio: 21 / 9; margin-top: var(--s-7); }
  .band__head { padding-inline: max(calc((100vw - var(--page)) / 2 + 16px), 16px); }
  .reel { padding-inline: max(calc((100vw - var(--page)) / 2 + 16px), 16px); scroll-padding-inline: max(calc((100vw - var(--page)) / 2 + 16px), 16px); }
  .place .cap:first-child { grid-column: 1 / 4; padding-top: .9em; }
  .place .h2 { grid-column: 4 / -1; }
  .place__addr { grid-column: 4 / 9; }
  .place__time { grid-column: 4 / 10; }
  .place .act { grid-column: 4 / 8; }
  .reg__info { grid-column: 1 / 6; }
  .panel { grid-column: 7 / -1; padding: var(--s-7); }
  .dock { display: none; }
}

/* ===== additions for the live app (not in the prototype) ===== */
/* Language switch is a pair of links (/ru, /ro) instead of buttons: same look. */
.lang a { display: inline-grid; place-items: center; min-width: var(--tap); min-height: var(--tap); color: var(--site-muted); font-family: var(--f-cap); font-size: .75rem; letter-spacing: .14em; text-decoration: none; }
.lang a[aria-current="page"] { color: var(--site-ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--site-accent); text-decoration-thickness: 2px; }
.hero .lang a { color: var(--site-ink); }
.hero .lang a:not([aria-current]) { opacity: .78; }
.ticket__qr img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
/* Single pages (guest ticket, privacy): a plain bar and one column. */
.page-bar { border-bottom: 1px solid var(--site-line); }
.solo { padding-block: var(--s-6) var(--s-7); display: grid; gap: var(--s-5); justify-items: center; }
.prose { display: grid; gap: var(--s-4); max-width: 60ch; padding-block: var(--s-6) var(--s-7); }
.prose p { color: var(--site-muted); }
