/* =========================================================
   Дом Поклонения · House of Worship — Limassol
   Стиль по мотивам hungrygen.com: монохром, Montserrat + Lato,
   карточки со скруглением 7px и мягкой тенью, «таблетки»-кнопки.
   ========================================================= */

:root {
  --black: #000;
  --ink: #1e1e1e;
  --text: #323232;
  --muted: #6b6b6b;
  --muted-2: #767676;
  --line: rgba(0, 0, 0, .09);
  --grey: #f0f0f0;
  --white: #fff;

  /* Градиент в цветах баннера: янтарь → терракота → тёмный бордо */
  --amber: #e57b01;
  --rust: #a23a1d;
  --maroon: #562004;
  --night: #210d02;
  --grad: linear-gradient(135deg, #c95a10 0%, #b54a17 30%, #a23a1d 55%, #562004 85%, #210d02 100%);
  --grad-btn: linear-gradient(100deg, #e57b01 0%, #c4521b 35%, #a23a1d 65%, #562004 100%);
  --grad-btn-hover: linear-gradient(100deg, #f08a0c 0%, #d2601a 35%, #b0421f 65%, #6a2808 100%);

  --radius: 7px;
  --shadow: 0 7px 28px rgba(0, 0, 0, .2);
  --shadow-sm: 0 3px 12px rgba(0, 0, 0, .12);

  --f-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  /* Lato для латиницы, Carlito (на базе Lato) — для кириллицы */
  --f-body: "Lato", "Carlito", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.i { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #000; color: #fff; padding: 8px 14px; border-radius: 4px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid #000; outline-offset: 3px; border-radius: 4px; }

/* ---------- Шапка ---------- */
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  transition: box-shadow .25s;
}
.masthead.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.masthead__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: block; line-height: 0; }
.brand img { height: 58px; width: auto; }

.masthead__right { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }

.social { display: flex; align-items: center; gap: 16px; }
.social a { font-size: 18px; display: inline-flex; transition: opacity .2s, transform .2s; }
.social a:hover { opacity: .6; transform: translateY(-1px); }

.lang { display: inline-flex; border: 2px solid #646464; border-radius: 999px; padding: 2px; }
.lang button {
  font-family: var(--f-head); font-weight: 700; font-size: 11px; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--rust); color: #fff; }

.burger {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 0;
}
.burger__lines { width: 22px; height: 14px; position: relative; display: inline-block; }
.burger__lines i { position: absolute; left: 0; right: 0; height: 2px; background: #000; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger__lines i:nth-child(1) { top: 0; }
.burger__lines i:nth-child(2) { top: 6px; }
.burger__lines i:nth-child(3) { top: 12px; }

/* ---------- Off-canvas меню ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .5);
  opacity: 0; transition: opacity .35s;
}
.menu-overlay.is-visible { opacity: 1; }

.menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 100vw); background: #fff; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  visibility: hidden;
}
.menu.is-open { transform: none; visibility: visible; }
.menu__close { position: absolute; top: 14px; right: 16px; font-size: 22px; padding: 6px; color: var(--muted); }
.menu__close:hover { color: #000; }

.menu__block { padding: 28px 32px; }
.menu__block:first-of-type { padding-top: 34px; }
.menu__block--grey { background: var(--grey); }
.menu__label {
  font-family: var(--f-head); font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.menu__main a {
  display: block; font-family: var(--f-body); font-weight: 300; font-size: 26px; line-height: 1.3; padding: 4px 0;
  transition: padding .2s, opacity .2s;
}
.menu__main a:hover { padding-left: 6px; opacity: .65; }
.menu__link { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 300; }
.menu__link .i { font-size: 14px; }
.menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.menu__grid a, .menu__info li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.menu__grid a:hover, .menu__info a:hover { opacity: .6; }
.menu__info { display: grid; gap: 8px; }
.menu__info .i { color: var(--muted); }
.lang--menu button { font-size: 12px; padding: 6px 16px; }

/* ---------- Общие блоки ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card--pad { padding: clamp(22px, 4vw, 40px) clamp(18px, 3.5vw, 36px); }
.card--dark { background: var(--grad); color: #fff; position: relative; }
.card--dark::after { /* лёгкое свечение, как на баннере */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 0% 0%, rgba(229, 123, 1, .75), transparent 60%);
}
.card--dark > * { position: relative; z-index: 1; }

.section { padding-top: clamp(56px, 8vw, 96px); }
.section--tight { padding-top: clamp(32px, 5vw, 56px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section-title {
  font-family: var(--f-head); text-align: center; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: clamp(22px, 3vw, 34px);
}
.section-title span { font-weight: 300; }
.section-title b { font-weight: 700; }

.title-xl {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; margin-bottom: 18px;
}
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--text); max-width: 900px; }

.eyebrow {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
  color: var(--ink); margin: 0 0 6px;
}
.eyebrow--center { text-align: center; color: var(--muted); margin: clamp(34px, 5vw, 48px) 0 20px; }

/* Кнопки */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--f-head); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 18px; border-radius: 4px; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn .i { font-size: 16px; }
.btn--dark { background: var(--grad-btn); color: #fff; box-shadow: 0 4px 14px rgba(162, 58, 29, .35); }
.btn--dark:hover { background: var(--grad-btn-hover); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(162, 58, 29, .45); }
.btn--light { background: #fff; color: #000; box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--xl {
  font-size: clamp(14px, 1.6vw, 17px); letter-spacing: .1em; padding: 20px clamp(30px, 5vw, 48px); border-radius: 999px; gap: 14px;
}
.btn--xl .i { font-size: 18px; }

/* ---------- Hero ---------- */
.hero { padding-top: 8px; }
.hero__media { margin: 0; aspect-ratio: 16 / 9; background: #1a1a1a; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption { text-align: center; padding: clamp(24px, 4vw, 40px) 0 0; }
/* На баннере девиз уже написан по-русски — в RU-версии заголовок скрыт визуально (остаётся для SEO и скринридеров) */
html[lang="ru"] .hero__title {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hero__title {
  font-family: var(--f-head); font-weight: 600; font-size: clamp(26px, 4vw, 44px); line-height: 1.15; letter-spacing: -.02em;
}
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px;
  margin: 12px 0 26px; font-size: clamp(15px, 1.6vw, 17px); color: var(--text);
}
.hero__meta .i { color: var(--muted); }
.hero__meta .nowrap { white-space: nowrap; }
.hero__meta .dot { margin: 0 6px; color: var(--muted); }

/* ---------- Расписание ---------- */
.schedule { text-align: center; }
.tabs { display: flex; justify-content: center; gap: 24px; margin-bottom: clamp(26px, 4vw, 44px); }
.tabs__item {
  font-family: var(--f-body); font-weight: 900; font-size: clamp(16px, 1.8vw, 20px); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 4px;
}
.tabs__item.is-active { color: var(--ink); border-bottom: 2px solid var(--ink); }
.schedule__time {
  font-family: var(--f-head); font-weight: 500; font-size: clamp(48px, 8vw, 76px); line-height: 1; letter-spacing: -.02em; margin: 6px 0 14px;
}
.schedule__day, .schedule__addr { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 4px; color: var(--text); }
.schedule__day .i, .schedule__addr .i { color: var(--muted); }
.schedule__addr a { border-bottom: 1px solid var(--line); }
.schedule__addr a:hover { border-color: #000; }
/* Служения в течение недели */
.week { margin-top: clamp(28px, 4vw, 40px); padding-top: clamp(24px, 3.5vw, 34px); border-top: 1px solid var(--line); }
.eyebrow--muted { color: var(--muted); margin-bottom: 18px; }
.week__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 20px); text-align: left; }
.week__item {
  position: relative; background: var(--grey); border-radius: var(--radius); padding: 20px 20px 18px; overflow: hidden;
}
.week__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.week__item p { margin: 0; }
.week__day {
  font-family: var(--f-head); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rust);
}
.week__time { font-family: var(--f-head); font-weight: 500; font-size: 30px; line-height: 1.1; letter-spacing: -.01em; margin: 4px 0 8px !important; color: #000; }
.week__title { font-family: var(--f-head); font-weight: 600; font-size: 15px; line-height: 1.35; color: #000; margin-bottom: 8px !important; }
.week__place { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
.week__place .i { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; border: 2px solid #646464; border-radius: 999px;
  padding: 5px 14px; font-size: 13px; color: var(--text);
}
.chip--main { background: var(--grad-btn); border-color: transparent; color: #fff; }
.schedule__note { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 15px; }

/* ---------- Видение / Цели ---------- */
.vision-lead { text-align: center; }
.vision-lead__motto {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(22px, 3.4vw, 36px); line-height: 1.2; margin-bottom: 14px;
}
.vision-lead__text { max-width: 760px; margin: 0 auto; color: rgba(255, 255, 255, .88); font-size: clamp(16px, 1.6vw, 18px); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.feature { position: relative; color: var(--text); font-size: 15.5px; }
.feature__num {
  display: block; font-family: var(--f-head); font-weight: 300; font-size: 14px; letter-spacing: .1em; color: var(--muted-2);
  margin-bottom: 14px;
}
.feature__num::after { content: ""; display: block; width: 28px; height: 2px; background: var(--grad-btn); margin-top: 10px; }
.feature__title {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase; color: #000;
  font-size: clamp(16px, 1.6vw, 18px); line-height: 1.3; letter-spacing: .02em; margin-bottom: 12px;
}
.feature p { margin: 0; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1.05fr 1fr; }
.contacts__info { padding: clamp(24px, 4vw, 40px) clamp(18px, 3.5vw, 36px); }
.contact-list { display: grid; gap: 20px; margin-bottom: 6px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list__icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--grey); display: grid; place-items: center; flex: none; font-size: 18px;
}
.contact-list__value { font-size: 18px; color: var(--text); margin: 0; }
a.contact-list__value:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.contacts__info > .eyebrow { margin-top: 30px; }
.social-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.social-list a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--grey);
  font-family: var(--f-head); font-weight: 600; font-size: 13px; transition: background .2s, color .2s;
}
.social-list a:hover { background: var(--grad-btn); color: #fff; }
.social-list .i { font-size: 18px; }
.contacts__map { min-height: 360px; background: var(--grey); }
.map-facade {
  height: 100%; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(162, 58, 29, .10), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(0, 0, 0, .05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(0, 0, 0, .05) 39px 40px),
    var(--grey);
}
.map-facade p { margin: 0; }
.map-facade__pin { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); color: #fff; font-size: 24px; box-shadow: 0 6px 20px rgba(162, 58, 29, .35); }
.map-facade__addr { font-family: var(--f-head); font-weight: 600; font-size: 16px; }
.map-facade__note { font-size: 12px; color: var(--muted); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(1) contrast(1.05); }

/* ---------- Подвал ---------- */
.colophon { margin-top: clamp(64px, 9vw, 110px); border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
.colophon__brand { padding-top: 44px; }
.colophon__brand img { height: 64px; width: auto; }
.colophon__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 36px; }
.colophon__label {
  font-family: var(--f-body); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: #000; margin-bottom: 8px;
}
.colophon__big { font-family: var(--f-head); font-weight: 700; font-size: 22px; color: #000; margin: 0; line-height: 1.2; }
.colophon__week { margin-top: 10px; display: grid; gap: 2px; font-size: 13px; }
.colophon__week b { font-weight: 700; color: #000; }
.colophon a:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.colophon .social a:hover { text-decoration: none; }
.colophon__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom));
  font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.colophon__bottom p { margin: 0; }

/* ---------- Появление при скролле ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--3 > :last-child { grid-column: 1 / -1; }
  .colophon__brand { padding-top: 44px; }
.colophon__brand img { height: 64px; width: auto; }
.colophon__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .week__list { grid-template-columns: 1fr; }
  .social--header { display: none; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__map, .map-facade {
  height: 100%; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(162, 58, 29, .10), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(0, 0, 0, .05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(0, 0, 0, .05) 39px 40px),
    var(--grey);
}
.map-facade p { margin: 0; }
.map-facade__pin { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); color: #fff; font-size: 24px; box-shadow: 0 6px 20px rgba(162, 58, 29, .35); }
.map-facade__addr { font-family: var(--f-head); font-weight: 600; font-size: 16px; }
.map-facade__note { font-size: 12px; color: var(--muted); }
.contacts__map iframe { min-height: 300px; }
}

@media (max-width: 680px) {
  :root { --header-h: 70px; }
  .brand img { height: 46px; }
  .burger__label { display: none; }
  .burger { padding: 10px 4px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--3 > :last-child { grid-column: auto; }
  .btn-row .btn { flex: 1 1 100%; justify-content: space-between; }
  .btn--xl { width: 100%; }
  .menu__block { padding: 24px 24px; }
  .menu__main a { font-size: 24px; }
}

@media (max-width: 420px) {
  .lang button { padding: 4px 8px; }
  .brand img { height: 42px; }
  .social-list { grid-template-columns: 1fr; }
  .colophon__brand { padding-top: 44px; }
.colophon__brand img { height: 64px; width: auto; }
.colophon__cols { grid-template-columns: 1fr; }
}
