/* «Опекай сироту» — оформление.
   Мир: стена офиса фонда и турецкая почта — шафран и тёмно-синий,
   бумага конверта, красный сургуч, подкладка эбру. Подробности — DESIGN.md */

@font-face { font-family: 'Commissioner'; font-style: oblique 0deg 12deg; font-weight: 100 900; font-display: swap;
  src: url(../fonts/commissioner-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Commissioner'; font-style: oblique 0deg 12deg; font-weight: 100 900; font-display: swap;
  src: url(../fonts/commissioner-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Commissioner'; font-style: oblique 0deg 12deg; font-weight: 100 900; font-display: swap;
  src: url(../fonts/commissioner-latin.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: 'Bad Script'; font-weight: 400; font-display: swap;
  src: url(../fonts/badscript-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Bad Script'; font-weight: 400; font-display: swap;
  src: url(../fonts/badscript-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Neucha'; font-weight: 400; font-display: swap;
  src: url(../fonts/neucha-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Neucha'; font-weight: 400; font-display: swap;
  src: url(../fonts/neucha-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Amiri Hadith'; font-weight: 400; font-display: swap; src: url(../fonts/amiri-hadith.woff2) format('woff2'); }

:root {
  --saffron: #F2B630;        /* стена офиса фонда, почтовый ящик PTT */
  --saffron-deep: #E09B12;
  --saffron-soft: #F7D57C;
  --ink: #1E2A4F;            /* ладживерт — синие буквы на стене, тушь эбру */
  --ink-2: #34406A;          /* вторичный текст на шафране */
  --on-ink: #F6F1E4;
  --on-ink-2: #BAC3DA;
  --paper: #FBF8F1;          /* бумага конверта */
  --paper-2: #EFE8D8;
  --sheet: #E9E1CD;          /* марочный лист */
  --wax: #C8402A;            /* сургуч и красная печать на конверте фонда */
  --wax-deep: #8F2A18;
  --pen: #2A47A0;            /* шариковая ручка из ведомости */
  --rule: #C7D2E8;
  --margin: #E3897A;
  --sky: #7FA3C8;
  --sky-soft: #DCE5F0;

  --shadow-paper: 0 1px 2px rgba(62, 40, 0, .16), 0 10px 24px -8px rgba(62, 40, 0, .28);
  --shadow-lift: 0 2px 4px rgba(62, 40, 0, .18), 0 18px 34px -10px rgba(62, 40, 0, .36);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--saffron); color: var(--ink);
  font: 400 19px/1.6 Commissioner, system-ui, sans-serif;
  font-variation-settings: 'FLAR' 0, 'VOLM' 0;
  caret-color: var(--wax);
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--saffron); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.hadith :focus-visible, .queue :focus-visible, .reports :focus-visible, .final :focus-visible, .dock :focus-visible { outline-color: var(--saffron); }
html { scrollbar-color: var(--ink) var(--saffron-soft); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.linkish { border: 0; padding: 0; background: none; color: var(--pen); font-family: 'Bad Script', cursive; font-size: 1.15em; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; min-height: 32px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

/* Шрифтовые роли */
.h2 {
  margin: 0 0 .35em; font-weight: 800; letter-spacing: -.02em; line-height: 1.02;
  font-size: clamp(2rem, 8.4vw, 3.6rem); text-wrap: balance;
  font-variation-settings: 'FLAR' 100, 'VOLM' 45;
}
.lead { margin: 0 0 32px; max-width: 60ch; font-size: 1.15rem; color: var(--ink-2); text-wrap: pretty; }
.hand { font-family: 'Bad Script', cursive; }

/* Кнопки — как ярлыки на посылке */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 22px; border-radius: 12px; border: 0;
  font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 0 2px 0 rgba(0,0,0,.12), 0 12px 22px -10px rgba(30, 42, 79, .7); }
.btn--ink:hover { background: #26356a; }
.btn--saffron { background: var(--saffron); color: var(--ink); }
.btn--saffron:hover { background: var(--saffron-soft); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--line:hover { background: rgba(30, 42, 79, .08); }
.btn--line-light { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 2px rgba(246, 241, 228, .55); }
.btn--line-light:hover { box-shadow: inset 0 0 0 2px var(--on-ink); }

/* ── Шапка ─────────────────────────────────────────── */
.top {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 14px var(--gutter) 0;
}
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.top__seal { width: 42px; height: 42px; filter: drop-shadow(0 2px 2px rgba(80, 30, 0, .28)); }
.top__fund { display: grid; line-height: 1.15; }
.top__fund b { font-weight: 800; letter-spacing: .06em; font-size: .92rem; font-variation-settings: 'FLAR' 100, 'VOLM' 30; }
.top__fund span { font-size: .78rem; color: var(--ink-2); }
.top__nav { display: none; gap: 30px; font-weight: 650; font-size: 1.05rem; }
.top__nav a { text-decoration: none; padding: 10px 0; background: linear-gradient(var(--ink), var(--ink)) left 85% / 0 2px no-repeat; transition: background-size .25s var(--ease-out); }
.top__nav a:hover { background-size: 100% 2px; }
.top__wa {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; background: rgba(30, 42, 79, .1); text-decoration: none; font-weight: 700; font-size: .92rem;
}
.top__wa svg { width: 20px; height: 20px; }
.top__wa:hover { background: rgba(30, 42, 79, .16); }

/* ── Первый экран ──────────────────────────────────── */
.hero {
  max-width: 1280px; margin: 0 auto; padding: 14px var(--gutter) 40px;
  display: grid; gap: 6px;
}
.hero__text { display: contents; }
.mark { order: 1; } .hero__lead { order: 2; } .env { order: 3; } .hero__actions { order: 4; } .env__hint { order: 5; }
.mark { margin: 0; display: grid; justify-items: start; line-height: .86; }
.mark__print {
  font-weight: 850; text-transform: uppercase; letter-spacing: -.015em;
  font-size: clamp(3.4rem, 16.6vw, 6rem);
  font-variation-settings: 'FLAR' 100, 'VOLM' 70;
}
.mark__hand {
  font-family: 'Bad Script', cursive; font-weight: 400; color: var(--wax);
  font-size: clamp(2.9rem, 14.2vw, 5.4rem); line-height: 1;
  margin: -.12em 0 0 .9em; transform: rotate(-5deg); transform-origin: left center;
}
.hero__lead { margin: 12px 0 0; max-width: 36ch; font-size: 1.06rem; color: var(--ink-2); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 16px; }
.hero__cta { flex: 1 1 100%; }
.hero__more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.hero__more svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.hero__more:hover svg { transform: translateY(3px); }

/* Лист эбру с хадисом: бумага с полями → узор → карточка → печать */
.env {
  position: relative; margin: 14px auto 26px; aspect-ratio: 1000 / 800;
  width: min(100%, 400px, max(260px, calc((100svh - 432px) * 1.25)));
  background: var(--paper); border-radius: 3px;
  box-shadow: 0 2px 3px rgba(90, 55, 0, .2), 0 22px 30px -12px rgba(90, 55, 0, .38);
}
.env__ebru { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.env__card {
  position: absolute; left: 9%; right: 9%; bottom: -9%; padding: 4.6% 6% 5%;
  background: var(--paper); border-radius: 4px; pointer-events: none; text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 10px 20px -8px rgba(40, 25, 0, .34);
  display: grid; gap: 6px; container-type: inline-size;
}
.env__quote { font-family: 'Bad Script', cursive; color: var(--pen); font-size: max(17px, 7.4cqi); line-height: 1.25; text-wrap: balance; }
.env__src { font-size: max(11px, 3.6cqi); line-height: 1.35; color: var(--ink-2); font-family: Commissioner, 'Amiri Hadith', sans-serif; text-wrap: balance; }
.env__seal {
  position: absolute; width: 21%; aspect-ratio: 1; height: auto; right: -5%; top: -7%;
  filter: drop-shadow(0 3px 3px rgba(90, 20, 0, .35)); pointer-events: none;
}
.env__hint { margin: 6px 0 0; text-align: center; font-family: 'Bad Script', cursive; font-size: 1.05rem; color: var(--ink-2); }

/* Сценарий: эбру растекается, затем ложится печать. Без JS всё видно сразу. */
.js .env:not(.is-sealed) .env__seal { opacity: 0; transform: scale(1.7) rotate(-14deg); }
.env.is-sealed .env__seal { animation: stamp .62s var(--ease-out) both; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.7) rotate(-14deg); }
  55% { opacity: 1; transform: scale(.92) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
.env.is-sealed.no-anim .env__seal { animation: none; opacity: 1; transform: none; }

/* ── Ведомость ─────────────────────────────────────── */
.how { padding: 64px 0 72px; }
.ledger { display: grid; gap: 34px; align-items: start; }
.ledger__page {
  background: var(--paper); border-radius: 4px; box-shadow: var(--shadow-paper);
  padding: 6px 0 12px; position: relative; overflow: hidden;
}
.ledger__page::before { content: ''; position: absolute; top: 0; bottom: 0; left: 44px; width: 1.5px; background: var(--margin); opacity: .75; }
.ledger__head, .ledger__row { display: grid; grid-template-columns: 44px 1fr 64px; }
.ledger__head {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
  border-bottom: 1.5px solid var(--ink); padding: 10px 0 8px;
}
.ledger__head span:first-child { text-align: center; }
.ledger__head span:nth-child(2) { padding-left: 14px; }
.ledger__rows { list-style: none; margin: 0; padding: 0; }
.ledger__row { border-bottom: 1px solid var(--rule); padding: 14px 0 16px; }
.ledger__n { text-align: center; font-family: 'Bad Script', cursive; color: var(--pen); font-size: 1.3rem; line-height: 1.4; }
.ledger__body { padding: 0 6px 0 14px; }
.ledger__title { display: block; font-family: 'Bad Script', cursive; color: var(--pen); font-size: 1.32rem; line-height: 1.3; }
.ledger__text { display: block; margin-top: 4px; font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.ledger__mark { color: var(--pen); padding-top: 4px; }
.ledger__mark svg { width: 54px; height: 32px; }
.ledger__clip {
  position: relative; margin: 0 auto; width: min(76vw, 300px); padding: 10px 10px 14px;
  background: var(--paper); box-shadow: var(--shadow-paper); transform: rotate(2.2deg);
}
.ledger__video { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #222; }
.ledger__clip figcaption { margin-top: 10px; font-size: .86rem; line-height: 1.4; color: var(--ink-2); }
.tape { position: absolute; top: -12px; width: 86px; height: 26px; background: rgba(247, 213, 124, .82); box-shadow: 0 1px 2px rgba(0,0,0,.08); z-index: 1; }
.tape--l { left: -18px; transform: rotate(-32deg); }
.tape--r { right: -18px; transform: rotate(30deg); }
.how__note { margin: 34px 0 0; max-width: 46ch; font-family: 'Bad Script', cursive; font-size: 1.2rem; line-height: 1.45; color: var(--ink-2); }

/* ── Хадис ─────────────────────────────────────────── */
.hadith { background: var(--ink); color: var(--on-ink); padding: 76px 0 84px; }
.hadith__inner { display: grid; gap: 26px; text-align: center; justify-items: center; }
.hadith__hand { width: 104px; height: 104px; color: var(--saffron); }
.hadith__list { display: grid; gap: 46px; }
.hadith__item { margin: 0; }
.hadith__ar { margin: 0; text-align: center; font-size: 1.75rem !important; line-height: 1.7 !important; font-family: 'Amiri Hadith', serif; font-size: clamp(1.9rem, 7.4vw, 2.9rem); line-height: 1.75; color: var(--saffron-soft); }
.hadith__ru { margin: 14px auto 0; padding: 0; max-width: 46ch !important; font-size: clamp(1.15rem, 2.4vw, 1.55rem) !important; line-height: 1.55 !important; font-weight: 500; text-wrap: pretty !important; max-width: 40ch; font-size: clamp(1.2rem, 4.8vw, 1.6rem); line-height: 1.42; font-weight: 500; text-wrap: balance; }
.hadith__src { margin: 14px 0 0; font-size: .98rem !important; font-size: .9rem; color: var(--on-ink-2); }

/* ── Очередь конвертов ─────────────────────────────── */
.queue { background: var(--ink); color: var(--on-ink); padding: 56px 0 88px; border-top: 1px solid rgba(186, 195, 218, .16); }
.queue .lead { color: var(--on-ink-2); }
.queue__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
.qenv {
  position: relative; aspect-ratio: 1.55; border: 0; padding: 0; cursor: pointer;
  background: var(--paper); border-radius: 4px; color: var(--pen);
  box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 8px 14px -8px rgba(0, 0, 0, .6);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.qenv::before { /* клапан */
  content: ''; position: absolute; inset: 0 0 auto; height: 52%;
  background: linear-gradient(to bottom right, transparent calc(50% - .8px), rgba(30,42,79,.18) 50%, transparent calc(50% + .8px)) left / 50% 100% no-repeat,
              linear-gradient(to bottom left, transparent calc(50% - .8px), rgba(30,42,79,.18) 50%, transparent calc(50% + .8px)) right / 50% 100% no-repeat;
}
.qenv__n { position: absolute; left: 0; right: 0; bottom: 10%; font-family: 'Bad Script', cursive; font-size: clamp(1rem, 4.4vw, 1.3rem); line-height: 1; text-align: center; }
.qenv__seal { position: absolute; width: 38%; aspect-ratio: 1; height: auto; left: 31%; top: 13%; filter: drop-shadow(0 1px 1px rgba(80, 20, 0, .4)); }
.qenv.is-sealed { background: #E8E2D4; }
.qenv.is-sealed .qenv__n { opacity: .55; left: 6%; right: auto; bottom: 5%; font-size: .8rem; }
.qenv:hover { transform: translateY(-3px); }
.qenv[aria-pressed="true"] { transform: translateY(-5px) rotate(-1.5deg); box-shadow: 0 0 0 3px var(--saffron), 0 14px 20px -8px rgba(0, 0, 0, .7); }
.js .queue__grid:not(.is-shown) .qenv.is-sealed .qenv__seal { opacity: 0; transform: scale(1.6) rotate(-14deg); }
.queue__grid.is-shown .qenv.is-sealed .qenv__seal { animation: stamp .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 200ms); }
.queue__detail {
  margin-top: 26px; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 20px 20px 22px;
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); display: grid; gap: 10px; max-width: 640px;
}
.queue__detail h3 { margin: 0; font-size: 1.35rem; font-weight: 800; font-variation-settings: 'FLAR' 100, 'VOLM' 40; }
.queue__detail h3 .hand { color: var(--pen); font-weight: 400; font-size: 1.15em; }
.queue__detail p { margin: 0; color: var(--ink-2); }
.queue__detail .btn { justify-self: start; margin-top: 4px; }
.queue__status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wax); }
.queue__status--ok { color: #2F6B3F; }

/* ── Марки ─────────────────────────────────────────── */
.help { padding: 76px 0 80px; }
.sheet { background: var(--sheet); border-radius: 6px; padding: 16px 14px; box-shadow: var(--shadow-paper); }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.stamp {
  --bg: var(--paper); --fg: var(--ink);
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 200px;
  padding: 16px 14px 16px; background: var(--bg); color: var(--fg); text-decoration: none;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.stamp::before { /* перфорация: «дырочки» цвета листа по краям */
  content: ''; position: absolute; inset: -5px; pointer-events: none;
  background:
    radial-gradient(circle, var(--sheet) 3.6px, transparent 4.2px) top left / 12px 10px repeat-x,
    radial-gradient(circle, var(--sheet) 3.6px, transparent 4.2px) bottom left / 12px 10px repeat-x,
    radial-gradient(circle, var(--sheet) 3.6px, transparent 4.2px) top left / 10px 12px repeat-y,
    radial-gradient(circle, var(--sheet) 3.6px, transparent 4.2px) top right / 10px 12px repeat-y;
}
.stamp::after { content: ''; position: absolute; inset: 8px; border: 1.4px solid currentColor; opacity: .55; pointer-events: none; }
.stamp:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 14px 22px -12px rgba(60, 40, 0, .5); }
.stamp:active { transform: scale(.98); }
.stamp__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.stamp__price { font-weight: 850; font-size: 1.55rem; line-height: 1; letter-spacing: -.02em; font-variation-settings: 'FLAR' 100, 'VOLM' 60; }
.stamp__top > span { min-width: 0; }
.stamp__price.is-word { display: block; font-size: 1.08rem; letter-spacing: .03em; text-transform: uppercase; }
.stamp__top { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
.stamp__per { display: block; margin-top: 3px; font-size: .74rem; font-weight: 600; opacity: .8; }
.stamp__pic { width: 46px; height: 46px; flex: none; margin: -2px -2px 0 0; }
.stamp__title { margin: auto 0 0; padding-top: 14px; font-weight: 750; font-size: 1.12rem; line-height: 1.2; hyphens: auto; overflow-wrap: break-word; }
.stamp__text { hyphens: auto; }
.stamp__text { margin: 6px 0 0; font-size: .98rem; line-height: 1.4; opacity: .88; }
.stamp--ink { --bg: var(--ink); --fg: var(--saffron); }
.stamp--ink .stamp__text { color: var(--on-ink); opacity: .86; }
.stamp--saffron { --bg: var(--saffron); --fg: var(--ink); }
.stamp--soft { --bg: var(--saffron-soft); --fg: var(--ink); }
.stamp--sky { --bg: var(--sky-soft); --fg: var(--ink); }
.stamp--wax { --bg: var(--paper); --fg: var(--wax-deep); }
.stamp--rose { --bg: #F3DCD3; --fg: var(--wax-deep); }
.stamps > li.is-wide { grid-column: 1 / -1; }
.stamp--wide .stamp__price { font-size: 2.6rem; }
.stamp--wide .stamp__pic { width: 64px; height: 64px; }
button.stamp { border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer; }

/* ── Письма ────────────────────────────────────────── */
.letters { background: var(--saffron-soft); padding: 76px 0 70px; }
.letters__row {
  display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px var(--gutter) 30px;
  scroll-padding-inline: var(--gutter); scrollbar-width: thin; outline-offset: -3px;
}
.letter {
  position: relative; flex: 0 0 min(84vw, 360px); scroll-snap-align: start;
  background: var(--paper); box-shadow: var(--shadow-paper); padding: 22px 20px 24px;
  display: flex; flex-direction: column; gap: 12px; transform: rotate(var(--r, -.6deg));
}
.letter:nth-child(even) { --r: .7deg; }
.letter--adult { background-image: repeating-linear-gradient(to bottom, transparent 0 33px, var(--rule) 33px 34px); background-position: 0 70px; }
.letter--child { background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 17px 17px; }
.letter__from { margin: 0; padding-right: 74px; font-size: .86rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); line-height: 1.35; }
.letter__text { margin: 0; color: var(--pen); white-space: pre-line; }
.letter--adult .letter__text { font-family: 'Bad Script', cursive; font-size: 1.22rem; line-height: 34px; }
.letter--child .letter__text { font-family: 'Neucha', cursive; font-size: 1.45rem; line-height: 34px; }
.letter__note { margin: 0; font-size: .98rem; color: var(--ink-2); }
.letter__photo { position: relative; margin: 4px 0 2px; }
.letter__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 32%; }
.letter__photo .tape { top: -10px; left: 50%; width: 80px; transform: translateX(-50%) rotate(-3deg); }
.postmark {
  position: absolute; top: 14px; right: 14px; width: 66px; height: 66px; border-radius: 50%;
  border: 1.6px solid var(--wax); color: var(--wax); display: grid; place-items: center; text-align: center;
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.15;
  transform: rotate(-14deg); opacity: .78;
}
.postmark::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid currentColor; }

/* ── Отчёты ────────────────────────────────────────── */
.reports { background: var(--ink); color: var(--on-ink); padding: 80px 0 84px; }
.reports .lead { color: var(--on-ink-2); }
.reports__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.rep { margin: 0; }
.rep__media { position: relative; border-radius: 10px; overflow: hidden; background: #0e1430; aspect-ratio: 9 / 16; }
.rep__media img { width: 100%; height: 100% !important; object-fit: cover; }
.rep__media img, .rep__media video { width: 100%; height: auto; }
.rep--video .rep__media { aspect-ratio: 9 / 16; }
.rep--video .rep__media img, .rep--video .rep__media video { height: 100%; object-fit: cover; }
.rep__play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer;
}
.rep__play span {
  width: 58px; height: 58px; border-radius: 50%; background: var(--saffron); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transition: transform .2s var(--ease-out);
}
.rep__play svg { width: 24px; height: 24px; margin-left: 3px; }
.rep__play:hover span { transform: scale(1.08); }
.rep figcaption { margin-top: 8px; font-size: 1rem; line-height: 1.4; color: var(--on-ink); }
.rep figcaption time { display: block; font-size: .86rem; color: var(--on-ink-2); font-variant-numeric: tabular-nums; margin-top: 2px; }
.reports__more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ── Опись ─────────────────────────────────────────── */
.fund { padding: 84px 0 70px; }
.fund__inner { display: grid; gap: 40px; align-items: start; }
.form { background: var(--paper); box-shadow: var(--shadow-paper); padding: 26px 22px 24px; border-radius: 3px; position: relative; }
.form::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(30, 42, 79, .28); pointer-events: none; }
.form__title { margin: 0; font-weight: 850; font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.04; letter-spacing: -.015em; font-variation-settings: 'FLAR' 100, 'VOLM' 55; }
.form__sub { margin: 6px 0 18px; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: var(--ink-2); }
.form__rows { margin: 0; display: grid; }
.form__row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0 6px; border-bottom: 1px solid var(--rule); }
.form__row dt { flex: 1; font-size: .98rem; }
.form__row dd { margin: 0; font-family: 'Bad Script', cursive; color: var(--pen); font-size: 1.6rem; line-height: 1; white-space: nowrap; }
.form__sign { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 18px 0 0; font-size: .8rem; color: var(--ink-2); }
.form__sign svg { width: 120px; height: 30px; color: var(--pen); }
.fund__text p { margin: 0; font-size: 1.12rem; max-width: 44ch; text-wrap: pretty; }
.fund__photo { margin-top: 26px; width: min(100%, 320px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow-paper); transform: rotate(1.6deg); }

/* ── Реквизиты ─────────────────────────────────────── */
.req { background: var(--saffron-soft); padding: 72px 0 80px; }
.req__empty { display: grid; gap: 26px; align-items: center; }
.req__env {
  position: relative; width: min(100%, 420px); aspect-ratio: 1.75; background: var(--paper); border-radius: 6px; box-shadow: var(--shadow-lift);
  transform: rotate(-2deg);
}
.req__env::before { content: ''; position: absolute; inset: 0 0 auto; height: 56%;
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(30,42,79,.16) 50%, transparent calc(50% + 1px)) left / 50% 100% no-repeat,
              linear-gradient(to bottom left, transparent calc(50% - 1px), rgba(30,42,79,.16) 50%, transparent calc(50% + 1px)) right / 50% 100% no-repeat; }
.req__env svg { position: absolute; width: 26%; aspect-ratio: 1; height: auto; left: 37%; top: 38%; filter: drop-shadow(0 2px 2px rgba(80, 20, 0, .4)); }
.req__env span { position: absolute; left: 7%; bottom: 9%; font-family: 'Bad Script', cursive; color: var(--pen); font-size: clamp(1rem, 4.4vw, 1.3rem); }
.req__empty p { margin: 0; max-width: 40ch; font-size: 1.08rem; }
.req__empty .btn { margin-top: 16px; }
.req__list { display: grid; gap: 12px; max-width: 720px; }
.req__item { background: var(--paper); border-radius: 6px; box-shadow: var(--shadow-paper); padding: 16px 18px 18px; display: grid; grid-template-columns: 1fr; gap: 4px 16px; align-items: center; }
.req__label { grid-column: 1; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.req__value { grid-column: 1; font-size: clamp(1.15rem, 5.2vw, 1.45rem); line-height: 1.3; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.req__holder { grid-column: 1; font-size: .86rem; color: var(--ink-2); }
.req__copy { grid-column: 1; justify-self: start; margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; font-weight: 600; }
.req__copy svg { width: 18px; height: 18px; }
.req__note { margin: 18px 0 0; max-width: 56ch; color: var(--ink-2); }
.req__ask { margin-top: 16px; }

/* ── Обратный адрес ────────────────────────────────── */
.final { background: var(--ink); color: var(--on-ink); padding: 84px 0 130px; }
.final__title { margin: 0; color: var(--saffron); font-weight: 850; font-size: clamp(2.5rem, 11vw, 5.6rem); line-height: .96; letter-spacing: -.02em; text-wrap: balance; font-variation-settings: 'FLAR' 100, 'VOLM' 60; }
.final__text { margin: 18px 0 34px; max-width: 46ch; font-size: 1.1rem; color: var(--on-ink-2); }
.label { background: var(--paper); color: var(--ink); border-radius: 4px; padding: 8px 18px; max-width: 560px; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .7); }
.label__row { margin: 0; display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px dashed rgba(30, 42, 79, .3); }
.label__row:last-child { border-bottom: 0; }
.label__k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); padding-top: 3px; }
.label__v { font-size: 1.05rem; line-height: 1.45; }
.label__phone { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; text-decoration: none; }
.final__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.final__links { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 2px; max-width: 560px; }
.final__links a { display: flex; align-items: center; gap: 14px; min-height: 56px; text-decoration: none; border-bottom: 1px solid rgba(186, 195, 218, .18); }
.final__links svg { width: 24px; height: 24px; color: var(--saffron); flex: none; }
.final__links b { font-weight: 700; }
.final__links small { margin-left: auto; color: var(--on-ink-2); font-size: .95rem; }
.final__links a:hover b { text-decoration: underline; }
.owner { margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(186, 195, 218, .22); max-width: 640px; }
.owner__text { margin: 0; font-size: clamp(1.25rem, 5vw, 1.7rem); font-weight: 700; line-height: 1.25; text-wrap: balance; font-variation-settings: 'FLAR' 100, 'VOLM' 30; }
.owner__phone { display: inline-block; margin-top: 10px; color: var(--saffron); font-weight: 850; font-size: clamp(1.8rem, 8vw, 2.6rem); letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-decoration: none; font-variation-settings: 'FLAR' 100, 'VOLM' 50; }
.owner__phone:hover { text-decoration: underline; }
.owner__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.final__copy { margin: 40px 0 0; font-size: .82rem; color: var(--on-ink-2); }

/* ── Нижняя панель на телефоне ─────────────────────── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--ink);
  box-shadow: 0 -10px 24px -10px rgba(0, 0, 0, .5);
  transform: translateY(110%); transition: transform .32s var(--ease-out);
}
.dock.is-on { transform: none; }
.dock__main {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border-radius: 12px;
  background: var(--saffron); color: var(--ink); font-weight: 800; text-decoration: none;
}
.dock__main svg { width: 22px; height: 22px; }
.dock__main small { font-weight: 600; opacity: .75; }
.dock__icon { width: 50px; display: grid; place-items: center; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(246, 241, 228, .4); color: var(--on-ink); }
.dock__icon svg { width: 24px; height: 24px; }

@media (max-width: 389px) {
  .stamp { padding-inline: 12px; }
  .stamp__pic { width: 38px; height: 38px; }
  .stamp__price { font-size: 1.35rem; }
  .stamp__price.is-word { font-size: .84rem; letter-spacing: .01em; }
}

@media (max-width: 559px) { .stamp { min-height: 0; padding: 20px 20px 22px; } .stamps > li.is-wide { grid-column: auto; } }
@media (min-width: 900px) { .hadith__ar { white-space: nowrap; font-size: clamp(1.6rem, 2.6vw, 2.4rem) !important; } }

/* ── Шире ──────────────────────────────────────────── */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .hero__cta { flex: 0 1 auto; }
  .queue__grid { grid-template-columns: repeat(5, 1fr); }
  .stamps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stamps > li.is-wide { grid-column: auto; }
  .req__item { grid-template-columns: 1fr auto; }
  .req__copy { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .stamp--wide .stamp__price { font-size: 1.9rem; }
  .stamp--wide .stamp__pic { width: 52px; height: 52px; }
  .reports__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .letters__row .letter { flex-basis: 340px; }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .top { padding-top: 22px; }
  .top__nav { display: flex; }
  .hero { grid-template-columns: 1fr 1.08fr; grid-template-rows: 1fr auto auto auto 1fr auto; column-gap: 48px; row-gap: 0;
    min-height: min(calc(100svh - 80px), 860px); padding-block: 24px 56px; }
  .mark { grid-column: 1; grid-row: 2; }
  .hero__lead { grid-column: 1; grid-row: 3; margin-top: 22px; }
  .hero__actions { grid-column: 1; grid-row: 4; margin-top: 30px; }
  .hero__lead { font-size: 1.18rem; }
  .env { grid-column: 2; grid-row: 1 / span 5; align-self: center; margin: 0 auto 40px; width: 100%; max-width: 600px; transform: rotate(-2deg); }
  .env__hint { grid-column: 2; grid-row: 6; margin-top: 4px; }
  .ledger { grid-template-columns: 1.5fr .75fr; gap: 48px; }
  .ledger__clip { margin-top: 30px; }
  .ledger__head, .ledger__row { grid-template-columns: 64px 1fr 92px; }
  .ledger__page::before { left: 64px; }
  .ledger__title { font-size: 1.5rem; }
  .ledger__text { font-size: 1.02rem; }
  .hadith { padding: 110px 0 110px; }

  .hadith__hand { width: 170px; height: 170px; }
  .queue__grid { grid-template-columns: repeat(10, 1fr); gap: 16px 14px; }
  .stamps { gap: 22px 20px; }
  .stamp { min-height: 280px; padding: 26px 24px; }
  .stamp__pic { width: 58px; height: 58px; }
  .stamp__text { font-size: 1.02rem; }
  .sheet { padding: 28px; max-width: 1100px; margin-inline: auto; }
  .help .h2, .help .lead { text-align: center; margin-inline: auto; }
  .letters__row { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1180px; margin: 0 auto; overflow: visible; padding-inline: var(--gutter); gap: 26px; align-items: start; }
  .letters__row .letter { flex: none; }
  .reports__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 16px; }
  .fund__inner { grid-template-columns: 1fr .9fr; gap: 64px; }
  .req__empty { grid-template-columns: minmax(300px, 420px) 1fr; gap: 56px; }
  .final { padding-bottom: 90px; }
  .final .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: start; }
  .final__title, .final__text { grid-column: 1 / -1; }
  .final__links { margin-top: 0; grid-column: 2; grid-row: 3 / span 2; }
  .final__copy, .owner { grid-column: 1 / -1; }
  .dock { display: none; }
}
