/* ------------------------------------------------------------------ */
/*  «Вопросы Веры и Фомы» — посадочная сбора на октябрь 2026            */
/*  Палитра и шрифты — как на veraifoma.ru (Montserrat, #FF9326,        */
/*  панели #EBF1F7) + рукописные акценты из юбилейного лендинга.        */
/* ------------------------------------------------------------------ */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/montserrat-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/montserrat-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/caveat-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/caveat-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #090b0d;
  --ink-soft: #4d5b68;
  --muted: #738699;
  --panel: #ebf1f7;
  --panel-2: #f5f8fb;
  --line: rgba(143, 167, 191, 0.4);
  --orange: #ff9326;
  --orange-2: #ffa526;
  --orange-deep: #ef7d17;
  --orange-soft: #ffe6c8;
  --orange-tint: #fff3e4;
  --blue-deep: #52708f;
  --green: #6cae67;
  --rose: #f26659;
  --white: #fff;
  --radius: 12px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --shadow: 0 24px 60px -32px rgba(38, 51, 61, 0.4);
  --shadow-soft: 0 18px 40px -24px rgba(38, 51, 61, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; font-weight: 800; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--orange-soft); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.hand { font-family: var(--hand); font-weight: 700; line-height: 1.05; letter-spacing: 0; }
.kicker {
  display: inline-block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--orange-deep);
  margin-bottom: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--orange-deep);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 12px 24px -12px rgba(239, 125, 23, .8); }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--orange); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--orange-deep); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .35); }
.btn-wide { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible + .check__box {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* «Поддержать» в шапке/подвале — как .wpcast-btn__donate */
.btn-donate {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius);
  background: var(--orange-2);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s;
}
.btn-donate:hover { background: var(--orange); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(9, 11, 13, .35); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.logo img { width: 156px; height: auto; }
.main-nav { display: none; flex: 1; justify-content: center; gap: 4px; }
.main-nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.main-nav a:hover { background: #fff; color: var(--orange-deep); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}
.icon-btn:hover { background: #fff; }
@media (min-width: 1200px) {
  .main-nav { display: flex; }
  .burger { display: none; }
}
@media (max-width: 599px) {
  .header-row { min-height: 64px; gap: 12px; }
  .logo img { width: 120px; }
  .header-actions .btn-donate { height: 40px; padding: 0 16px; font-size: 14px; }
}

/* ---------- Мобильное меню ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--panel);
  padding: 12px 20px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__bar { display: flex; justify-content: flex-end; }
.mobile-menu__list { list-style: none; margin: 8px 0 24px; padding: 0; border-bottom: 1px solid var(--line); }
.mobile-menu__list a { display: block; padding: 14px 0; font-size: 20px; font-weight: 600; text-decoration: none; }
.mobile-menu__caption { color: #bebebe; font-size: 18px; margin-bottom: 12px; }
.mobile-menu .btn { margin-top: auto; }
body.menu-open { overflow: hidden; }

.socials { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: block; border-radius: 50%; transition: transform .2s var(--ease); }
.socials a:hover { transform: translateY(-2px); }
.socials img { width: 40px; height: 40px; }

/* ---------- Первый экран ---------- */
.hero { padding-top: 24px; }
.hero-panel {
  position: relative;
  display: grid;
  gap: 8px;
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 40px 24px 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(82, 112, 143, .12) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.hero-text { position: relative; z-index: 2; }
.hero h1 {
  margin: 0 0 28px;
  font-size: 22px;
  line-height: 1.05;
}
.hero h1 .accent { color: var(--orange-deep); }
.hero-hand { font-size: clamp(28px, 3.4vw, 40px); color: var(--blue-deep); margin-bottom: 28px; max-width: 18ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 599px) {
  .hero-panel { padding: 28px 20px 0; border-radius: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
.hero-art { position: relative; min-height: 340px; display: flex; justify-content: center; align-items: flex-end; }
.hero-stage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 6 / 5; }
.hero-blob {
  position: absolute;
  left: 12%;
  right: 4%;
  bottom: 4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff 0%, var(--orange-soft) 70%);
  opacity: .9;
}
.hero-char {
  position: absolute;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 20px 30px rgba(38, 51, 61, .18));
  animation: float-y 7s ease-in-out infinite;
}
.c-mg { left: 0; bottom: 5%; height: 94%; z-index: 1; animation-duration: 8s; }
.c-vera { left: 24%; bottom: 0; height: 77%; z-index: 2; animation-delay: -2s; }
.c-foma { left: 53%; bottom: 2%; height: 80%; z-index: 2; animation-delay: -4s; animation-duration: 6.5s; }
.c-altay { right: -3%; bottom: -3%; height: 56%; z-index: 3; animation-delay: -1s; animation-duration: 6s; }
.goal-badge {
  position: absolute;
  right: 0;
  top: 8px;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}
.goal-badge__label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.goal-badge__sum { font-size: 24px; font-weight: 800; color: var(--orange-deep); white-space: nowrap; }

@media (min-width: 900px) {
  .hero-panel { grid-template-columns: 1.15fr 1fr; align-items: center; padding: 64px 56px 0; min-height: 560px; }
  .hero-text { padding-bottom: 64px; }
  .hero-art { min-height: 520px; align-self: end; }
  .goal-badge { top: 56px; right: -8px; }
}

@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Секции ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }

.about { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(24px, 4vw, 40px); }
.about-grid { display: grid; gap: 40px; }
.about-text .lead { font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; line-height: 1.45; }
.about-text p { color: var(--ink-soft); }
.about-text .lead { color: var(--ink); }
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: center; }
.topic {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 150px;
  padding: 20px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
}
.topic__icon { font-size: 28px; line-height: 1; }
.t-orange { background: #fff0db; color: #c56a0d; }
.t-blue { background: #daefff; color: #3f6f96; }
.t-green { background: #e2e7cf; color: #66703f; }
.t-rose { background: #fbefee; color: #c9473b; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
}

/* Цель */
.goal { padding-top: 0; padding-bottom: clamp(24px, 4vw, 40px); }
.goal-card {
  position: relative;
  display: grid;
  gap: 32px;
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  background: var(--panel);
}
.goal-card__text p { color: var(--ink-soft); }
.goal-card__invite { font-size: 20px; font-weight: 600; color: var(--ink) !important; }
.goal-card__text .btn { margin-top: 8px; }
@media (min-width: 900px) {
  .goal-card { padding: 56px; }
}

/* Ежемесячно */
.monthly-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 32px 24px 0;
  border-radius: var(--radius-xl);
  background: var(--orange);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.monthly-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.kicker-light { color: #fff; opacity: .95; }
.monthly-text { padding-bottom: 32px; }
.monthly-text p { font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.5; margin-bottom: 28px; }
.monthly-text .hl { font-weight: 800; }
.monthly-altay { order: 2; width: 180px; justify-self: center; margin-bottom: -40px; filter: drop-shadow(0 18px 28px rgba(38, 51, 61, .25)); }
@media (min-width: 900px) {
  .monthly-card { grid-template-columns: 260px 1fr; gap: 48px; align-items: center; padding: 56px 56px 0 40px; }
  .monthly-altay { order: 0; width: 240px; align-self: end; margin-bottom: -60px; }
  .monthly-text { padding-bottom: 56px; }
}

/* ---------- Форма ---------- */
.donate { background: var(--panel-2); padding-top: clamp(24px, 4vw, 40px); }
.donate-grid { display: grid; gap: 32px; align-items: stretch; }
.donate-grid > * { min-width: 0; }
.donate-grid > * { min-width: 0; }

/* Отчёт о сборе перед подвалом */
.report { padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(32px, 6vw, 64px); }
.report p { max-width: 820px; margin-inline: auto; text-align: center; color: var(--ink-soft); }
.report a { color: var(--orange-deep); font-weight: 600; text-decoration: underline; }
@media (min-width: 992px) {
  .donate-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; }
  .monthly-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 40px;
    align-content: center;
  }
  .monthly-altay { order: 2; width: 200px; justify-self: end; }
  .monthly-text { padding-bottom: 0; }
  .monthly-text p { font-size: 20px; margin-bottom: 32px; }
}

/* Панель формы — как .support_form на veraifoma.ru */
.support-form {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 24px 16px 16px;
  box-shadow: var(--shadow);
}
@media (min-width: 600px) { .support-form { padding: 28px 32px 32px; } }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  border-radius: var(--radius) var(--radius) 0 0;
  white-space: nowrap;
}
.tab-btn.is-active { background: #fff; color: var(--ink); }
.support-form__content { background: #fff; border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 24px 16px; }
@media (min-width: 600px) { .support-form__content { padding: 28px 28px; } }
.tab-panel[hidden] { display: none; }

.freq { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); margin-bottom: 24px; }
.freq button { border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); transition: background-color .2s, color .2s; }
.freq button.is-active { background: var(--orange); color: #fff; box-shadow: 0 10px 20px -12px rgba(239, 125, 23, .9); }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--rose); }
.field input[type="text"], .field input[type="email"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.field input.is-invalid { border-color: var(--rose); }
.amount-input { position: relative; }
.amount-input input { font-weight: 700; font-size: 20px !important; padding-right: 44px !important; }
.amount-input__cur { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.coins-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.coins-picker button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
}
.coins-picker button:hover { border-color: var(--orange); color: var(--orange-deep); }
.coins-picker button.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.field-error { margin: 6px 0 0; font-size: 13px; color: var(--rose); font-weight: 600; }

.checks { display: grid; gap: 10px; margin: 8px 0 24px; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-soft); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.check__box {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  transition: all .2s;
}
.check input:checked + .check__box { background: var(--orange); border-color: var(--orange); }
.check input:checked + .check__box::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check a { color: var(--orange-deep); font-weight: 600; }
.checks .field-error { margin: -4px 0 4px 36px; }

.form-error { padding: 12px 16px; border-radius: var(--radius); background: #fbefee; color: #b23b30; font-size: 14px; font-weight: 600; }
.support-submit { font-size: 17px; }
.support-submit[disabled] { opacity: .6; cursor: progress; }
.secure-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 20px; }
.steps li { display: flex; gap: 14px; }
.step-num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps p { margin-bottom: 6px; }
.note { padding: 18px 20px; border-radius: var(--radius); background: var(--orange-tint); color: var(--muted); font-size: 15px; }
.note b { color: var(--ink); }
.note__small { font-size: 13px; }

.requisites { margin: 0 0 20px; border-radius: var(--radius); background: var(--panel-2); overflow: hidden; }
.requisites div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.requisites div:last-child { border-bottom: 0; }
.requisites dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.requisites dd { margin: 2px 0 0; font-size: 16px; overflow-wrap: anywhere; }
@media (min-width: 600px) {
  .requisites div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; }
  .requisites dd { margin: 0; }
}
.docs { display: grid; gap: 8px; }
.docs a { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 0; }
.docs a:hover { color: var(--orange-deep); }

/* ---------- Подвал — как #wpcastFooter ---------- */
.site-footer { background: var(--panel); padding: 56px 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; }
.footer-logos { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.footer-logos img { width: 156px; }
.footer-logos .age { width: 40px; }
.footer-contacts { display: grid; gap: 4px; margin-bottom: 20px; }
.footer-contacts a { font-weight: 600; text-decoration: none; }
.footer-contacts a:hover { color: var(--orange-deep); }
.footer-contacts p { color: var(--ink-soft); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.footer-nav a { font-weight: 500; text-decoration: none; }
.footer-nav a:hover { color: var(--orange-deep); }
.footer-policy { font-weight: 500; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom .legal { margin-bottom: 12px; }
.footer-bottom__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-char { animation: none; }
  * { transition: none !important; }
}
