/* ===== Лендинг v2 — поверх common.css (токены/тема оттуда) ===== */

:root {
  --section-y: 92px;         /* обычный вертикальный отступ секции */
  --section-y-tight: 48px;   /* секция продолжает мысль предыдущей */
  --photo-hatch: rgba(91, 63, 224, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --photo-hatch: rgba(156, 134, 245, .12); }
}
:root[data-theme="dark"] { --photo-hatch: rgba(156, 134, 245, .12); }

/* apply.css задаёт body { padding } под визард — лендингу нужен full-bleed */
body { padding: 0; }

/* лендинг шире дефолтных 1200 из common.css (только на этой странице —
   landing.css грузится после common.css/apply.css) */
.container, .topnav { max-width: 1320px; }

/* ---------- шапка ---------- */
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo span { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 18px; }

.lang-switch { position: relative; }
.lang-switch-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-full);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .02em; cursor: pointer;
  list-style: none; user-select: none;
}
.lang-switch-btn::-webkit-details-marker { display: none; }
.lang-switch-btn:hover { border-color: var(--flame); color: var(--ink); }
.lang-switch-btn svg { flex: none; transition: transform .15s ease; }
.lang-switch[open] .lang-switch-btn svg { transform: rotate(180deg); }
.lang-switch-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop); padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.lang-switch-menu a {
  display: block; text-align: left; padding: 9px 12px; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-soft); font-family: var(--font-body); font-size: 14px;
  font-weight: 600;
}
.lang-switch-menu a:hover { background: var(--paper-warm); color: var(--ink); }
.lang-switch-menu a.active { background: var(--flame-tint); color: var(--flame-ink); }

/* ---------- eyebrow с акцентной чёрточкой ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--flame); flex: none; }
.eyebrow.center { justify-content: center; }

/* ---------- кнопки: ховеры и переход (в common.css их нет) ---------- */
.btn { transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn-primary:hover { background: var(--flame-deep); }
.btn-secondary:hover { border-color: var(--flame); }
.hero-cta .btn-secondary, .cta-band .btn-secondary { box-shadow: var(--shadow-card); }

/* ---------- ритм секций ---------- */
section { padding: var(--section-y) 0; scroll-margin-top: 88px; }
section.tight { padding-top: var(--section-y-tight); }
.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 4vw, 37px); font-weight: 700; line-height: 1.15; margin-top: 16px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 16px; }
.section-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

/* ---------- фото-плейсхолдеры ---------- */
.photo-ph {
  border: 1.5px dashed color-mix(in srgb, var(--flame) 45%, transparent);
  border-radius: 16px;
  background-color: var(--flame-tint);
  background-image: repeating-linear-gradient(45deg, transparent 0 11px, var(--photo-hatch) 11px 12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px; padding: 22px; color: var(--flame-ink); min-height: 200px;
}
.photo-ph svg { width: 30px; height: 30px; opacity: .7; }
.photo-ph .t { font-size: 13px; font-weight: 600; max-width: 32ch; line-height: 1.45; }
.photo-ph.a4x5 { aspect-ratio: 4 / 5; min-height: 0; max-height: 460px; }
.photo-ph.a4x3 { aspect-ratio: 4 / 3; min-height: 0; max-height: 340px; }
.photo-ph.a1x1 { aspect-ratio: 1 / 1; min-height: 0; max-height: 260px; }
.photo-ph.round { border-radius: 50%; aspect-ratio: 1 / 1; min-height: 0; width: 120px; margin: 0 auto; }
.photo-real { border-radius: 16px; width: 100%; object-fit: cover; display: block; }
.photo-real.round { border-radius: 50%; aspect-ratio: 1 / 1; width: 120px; margin: 0 auto; }
.photo-real.a4x3 { aspect-ratio: 4 / 3; }
.photo-real.a4x5 { aspect-ratio: 4 / 5; }
.photo-real.hero-photo { max-height: 540px; }
.photo-real.qr { width: 128px; height: 128px; border-radius: 8px; object-fit: contain; background: #fff; padding: 6px; }

/* ---------- хиро ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 84px; }
.hero-grid {
  max-width: 1320px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; margin-top: 20px; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 44ch; margin-top: 20px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line);
}
/* min-width:0 — иначе длинное неразрывное слово в .lbl (агглютинативный кыргызский)
   не даёт "1fr"-колонке сжаться и распирает секцию шире экрана на телефоне */
.hero-stats > div { min-width: 0; }
.hero-stats .num { font-family: var(--font-display); font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; }
.hero-stats .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hero-photo { align-self: center; aspect-ratio: 4 / 5; max-height: 540px; min-height: 300px; }

/* ---------- карточки / сетки ---------- */
.grid { display: grid; gap: 22px; }
.grid, .people { display: grid; }
.c2 { grid-template-columns: repeat(2, 1fr); }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px; box-shadow: var(--shadow-card);
}
.card h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; }
.card p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

.step-num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--flame-tint); color: var(--flame-ink);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 18px;
}
.feature-ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--flame-tint); color: var(--flame-deep);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature-ic svg { width: 22px; height: 22px; }

/* ---------- проблема ---------- */
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.fact .big { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--flame-deep); }
.fact h3 { font-family: var(--font-body); font-weight: 600; font-size: 16px; margin: 6px 0; }
.fact p { color: var(--muted); font-size: 14.5px; }

/* ---------- о фонде / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split h2 { font-size: clamp(24px, 3.4vw, 33px); font-weight: 700; line-height: 1.15; margin-top: 16px; }
.split .lead { margin-top: 18px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.6; }
.minifacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.minifacts span {
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: var(--radius-full);
  background: var(--paper-warm); border: 1px solid var(--line); color: var(--ink-soft);
}

/* ---------- плашка обязательства ---------- */
.band {
  margin-top: 24px; background: var(--flame-tint); border-radius: 16px;
  padding: 20px 24px; font-size: 15px; color: var(--flame-ink); line-height: 1.5;
}

/* ---------- чек-лист + таймлайн ---------- */
.checklist .row { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checklist .row:last-child { border-bottom: 0; }
.checklist .tick {
  width: 26px; height: 26px; border-radius: 50%; background: var(--success-tint); color: var(--success);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.checklist h4 { font-family: var(--font-body); font-weight: 600; font-size: 16px; }
.checklist p { color: var(--muted); font-size: 14px; margin-top: 3px; }

.timeline { border-left: 2px solid var(--line); padding-left: 22px; display: grid; gap: 20px; }
.timeline .ev { position: relative; }
.timeline .ev::before {
  content: ""; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--flame); border: 3px solid var(--paper);
}
.timeline .when { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--flame-deep); }
.timeline .est { color: var(--muted); font-weight: 400; }
.timeline .what { font-size: 14.5px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- итоги (тёмный блок) ---------- */
.impact { background: var(--night); border-radius: 28px; padding: 60px clamp(28px, 5vw, 64px); color: #fff; }
.impact .eyebrow { color: #A99BF7; }
.impact .eyebrow::before { background: #A99BF7; }
.impact h2 { color: #fff; font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; line-height: 1.22; margin-top: 14px; max-width: 640px; }
.impact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px;
  margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.impact-grid > div { min-width: 0; }
.impact-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.impact-lbl { color: #B8BCC9; font-size: 13.5px; margin-top: 10px; line-height: 1.45; }
.impact .src { margin-top: 26px; font-size: 13px; color: #9DA1B3; }
.impact .src a { color: #fff; text-decoration: underline; }

/* ---------- хроника ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.filters button {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--flame-tint); color: var(--flame-ink); border-color: transparent; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.gallery [hidden] { display: none; }

/* ---------- истории ---------- */
.stories { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.quotes { display: grid; gap: 16px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-card); }
.quote p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.quote .who { margin-top: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-card); }
.case .who { font-family: var(--font-body); font-weight: 700; font-size: 15px; margin-top: 16px; }
.case .ba { margin-top: 12px; font-size: 14px; color: var(--muted); }
.case .ba b { color: var(--ink-soft); }

/* ---------- совет / команда ---------- */
.grouplabel { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--flame-deep); margin-bottom: 18px; }
.people { gap: 22px; }
.person { text-align: center; }
.person .photo-ph, .person .photo-real { margin: 0 auto 12px; }
.person h4 { font-family: var(--font-body); font-weight: 600; font-size: 15px; }
.person p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.person .person-role { color: var(--flame-deep); font-weight: 600; }
.person .person-bio { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 30ch; margin-left: auto; margin-right: auto; }

/* ---------- отчётность ---------- */
.report {
  display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-card);
}
.report .doc { width: 38px; height: 38px; border-radius: 10px; background: var(--flame-tint); color: var(--flame-deep); display: grid; place-items: center; flex: none; }
.report .doc svg { width: 18px; height: 18px; }
.report h4 { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; }
.report span { font-size: 12px; color: var(--muted); }
.expenses { margin: 34px auto 0; max-width: 560px; }
.expenses .cap { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.bar { display: grid; gap: 5px; margin-bottom: 12px; }
.bar .lab { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); }
.bar .track { height: 10px; border-radius: var(--radius-full); background: var(--paper-warm); overflow: hidden; }
.bar .fill { height: 100%; background: var(--flame); border-radius: var(--radius-full); }

/* ---------- партнёры ---------- */
.pcat { margin-bottom: 26px; }
.pcat .lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 12px; text-align: center; }
.logos { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.logo, a.logo {
  height: 66px; min-width: 130px; flex: 1; max-width: 180px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; display: grid; place-items: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px;
}
.logo img { max-height: 42px; max-width: 100%; object-fit: contain; }

/* ---------- поддержать ---------- */
.tier .amt { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--flame); margin: 8px 0; }
.tier.featured { border-color: var(--flame); }
.req {
  margin-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: var(--paper-warm); border-radius: 18px; padding: 28px 32px;
}
.req .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--flame-deep); margin-bottom: 10px; }
.req .lines { font-size: 14px; color: var(--ink); line-height: 1.9; font-variant-numeric: tabular-nums; }
.req .lines b { color: var(--muted); font-weight: 600; margin-right: 6px; }
.req .qr { width: 128px; height: 128px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-family: var(--font-body); font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.cinfo .line { font-size: 15.5px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cinfo .socials { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cinfo .socials a {
  font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: var(--radius-full);
  background: var(--paper-warm); border: 1px solid var(--line); color: var(--ink-soft);
}
.cinfo .socials a:hover { border-color: var(--flame); color: var(--flame-ink); }

/* ---------- CTA-баннер ---------- */
.cta-band { background: var(--flame-tint); border-radius: 28px; padding: 60px; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; line-height: 1.15; color: var(--flame-ink); }
.cta-band p { color: var(--flame-ink); opacity: .85; margin-top: 14px; }
.cta-band .hero-cta { justify-content: center; margin-top: 26px; }

/* ---------- футер ---------- */
footer { background: var(--night); color: #B8BCC9; padding: 68px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-grid h5 { color: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.foot-grid li { padding: 6px 0; font-size: 14px; }
.foot-grid a:hover { color: #fff; }
.foot-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-logo img { height: 36px; width: auto; }
.foot-logo span { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 13px; }

/* ---------- адаптив ---------- */
/* minmax(0, 1fr), а не голый "1fr" — у "1fr" неявный минимум "auto" (=
   content-based), поэтому трек с картинкой (.hero-photo, aspect-ratio +
   min-height) или неразрывным словом не сжимается меньше своего содержимого
   и распирает секцию шире экрана на телефоне. minmax(0, 1fr) убирает этот
   неявный минимум — ровно та же причина, что была в баге на проде 2026-09-14 */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .stories { grid-template-columns: minmax(0, 1fr); }
  .c3, .c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact { padding: 44px 26px; }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .contacts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .c2, .c3, .c4 { grid-template-columns: minmax(0, 1fr); }
  .people.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .req { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 40px 24px; }
  .topnav .links { display: none; }
}
