/* «Сокровенный человек» — минималистичное белое оформление в стиле helpautism.ru, фирменный жёлтый — акцент */
:root {
  --ink: #111318; --text: #3a3f4a; --muted: #737985; --line: #e8e9ec; --soft: #f6f7f8; --bg: #fff;
  --accent: #ffe03a; --cta: #ffe03a;
  --r: 22px; --r-sm: 14px;
  --shadow: 0 2px 4px rgba(17,19,24,.04), 0 22px 44px -18px rgba(17,19,24,.22);
  --ease: cubic-bezier(.2,.7,.2,1);
  --head: "Montserrat", "Open Sans", system-ui, sans-serif;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1170px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 100; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); pointer-events: none; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1.5px solid var(--ink);
  font: 700 15px/1.2 var(--head); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-cta { background: var(--cta); border-color: var(--cta); color: #111318; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: 13.5px; }
.btn-big { min-height: 56px; padding: 16px 34px; font-size: 16px; }

/* шапка */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
body.scrolled .nav { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo img { height: 60px; width: auto; }
.menu { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.menu a:not(.btn) { position: relative; padding: 8px 12px; font: 600 14.5px var(--head); color: var(--ink); text-decoration: none; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.menu-cta { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; margin-left: 4px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.burger span + span { margin-top: 7px; }
body.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* первый экран */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(/uploads/craftum/pattern.png) center/680px auto repeat; opacity: .05; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--accent); font: 700 12.5px var(--head); letter-spacing: .08em; text-transform: uppercase; color: #111318; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 700; margin-bottom: 20px; }
.lead { font-size: 19px; line-height: 1.6; max-width: 34em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-pic { position: relative; }
.hero-pic img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 36px; box-shadow: var(--shadow); filter: grayscale(.15); }
.hero-pic::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 46%; height: 46%; border-radius: 36px; background: var(--accent); z-index: -1; }
.shape { position: absolute; pointer-events: none; opacity: .9; }
.shape.s1 { width: 170px; left: -40px; top: 40%; }
.shape.s2 { width: 210px; right: -50px; top: 24px; }

/* секции */
.sec { padding: 56px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec h2 { font-size: clamp(28px, 4vw, 44px); margin: 0; }
.link-all { font: 600 15px var(--head); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; white-space: nowrap; }
.box { border: 2px solid var(--accent); border-radius: 32px; padding: clamp(26px, 5vw, 56px); background: #fff; }
.pill { display: inline-block; padding: 10px 28px; border: 1.5px solid var(--accent); border-radius: 999px; font: 700 15px var(--head); color: var(--ink); margin-bottom: 22px; }
.pill-fill { background: var(--accent); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* карточки новостей */
.card { display: flex; flex-direction: column; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .ph { display: block; height: 100%; background: url(/uploads/craftum/pattern.png) center/300px; opacity: .2; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.card time { font-size: 13px; color: var(--muted); }
.card b { font: 700 18px/1.3 var(--head); color: var(--ink); }
.card .ex { font-size: 15px; color: var(--text); }
.card .more { margin-top: auto; padding-top: 6px; font: 600 14px var(--head); color: var(--ink); }

/* о нас */
.about { text-align: center; }
.about-text { font-size: clamp(17px, 2vw, 21px); line-height: 1.7; color: var(--ink); max-width: 46em; margin: 0 auto 30px; }

/* проекты */
.proj-img { aspect-ratio: 1/1; border-radius: 28px; overflow: hidden; background: var(--soft); margin-bottom: 20px; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.proj:hover .proj-img img { transform: scale(1.04); }
.proj { display: block; text-decoration: none; color: inherit; }
.proj .more { display: inline-block; margin-top: 10px; font: 600 14px var(--head); color: var(--ink); }
.post .eyebrow { margin-bottom: 14px; }
.proj h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 4px; display: inline; background: linear-gradient(transparent 58%, var(--accent) 58%); }
.proj .sub { color: var(--muted); margin: 8px 0 0; }

/* помощь */
.help-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.help h3 { font-size: 20px; margin-top: 26px; }
.heart { width: 100%; max-width: 420px; justify-self: end; }
.ways { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ways li { position: relative; padding: 12px 16px 12px 44px; background: var(--soft); border-radius: var(--r-sm); font-size: 15px; color: var(--ink); }
.ways li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--accent); }
.donate { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.donate h3 { margin-top: 0; }
.req { font: 15px/1.75 var(--font); color: var(--ink); background: var(--soft); border-radius: var(--r-sm); padding: 16px 20px; margin: 14px 0; font-variant-numeric: tabular-nums; }
.donate .btn + .btn { margin-left: 8px; }
.qr { width: 240px; border-radius: 18px; border: 1px solid var(--line); padding: 10px; background: #fff; }

/* контакты */
.contacts { text-align: center; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; text-align: left; max-width: 820px; margin: 10px auto 0; }
.person { font: 700 22px var(--head); color: var(--ink); margin: 6px 0; }
.phone { font: 700 20px var(--head); text-decoration: none; border-bottom: 2px solid var(--accent); }
.docs { display: grid; gap: 12px; justify-items: start; }
.doc { display: inline-flex; align-items: center; gap: 10px; font: 600 16px var(--head); text-decoration: none; }
.doc:hover { text-decoration: underline; }
.org { margin: 32px 0 0; color: var(--muted); font-size: 14px; }

/* записи */
.page-top { padding-top: 40px; }
.page-top h1, .post h1 { font-size: clamp(30px, 4.5vw, 48px); }
.post { padding: 36px 0 24px; }
.back { display: block; width: fit-content; margin-bottom: 18px; font: 600 14px var(--head); text-decoration: none; color: var(--muted); }
.post time { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.post-cover { margin: 24px 0 28px; }
.post-cover img { width: 100%; border-radius: var(--r); }
.content { font-size: 17.5px; line-height: 1.75; color: var(--text); }
.content img { border-radius: 14px; margin: 18px 0; }
.content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.content blockquote { margin: 22px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); }
.content figure { margin: 0; }
.content iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 14px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 26px 0; }
.gallery a { aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }

/* подвал */
.foot { margin-top: 56px; background: var(--soft); padding: 56px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-logo { height: 64px; width: auto; margin-bottom: 14px; }
.foot h4 { font-size: 15px; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.soc { display: flex; gap: 10px; margin-top: 16px; }
.soc a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: background-color .2s, transform .2s; }
.soc a:hover { background: var(--accent); transform: translateY(-2px); }

/* лайтбокс */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,12,.92); display: grid; place-items: center; padding: 20px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lb-x { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; cursor: pointer; }

/* появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.grid3 .reveal:nth-child(2), .grid2 .reveal:nth-child(2) { transition-delay: .1s; }
.grid3 .reveal:nth-child(3) { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* планшет */
@media (max-width: 980px) {
  .burger { display: block; }
  .nav-cta { margin-left: auto; }
  .menu { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 28px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(0,0,0,.25); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s var(--ease); margin: 0; max-height: calc(100vh - 76px); overflow: auto; }
  body.menu-open .menu { transform: none; opacity: 1; visibility: visible; }
  .menu a:not(.btn) { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .menu a:not(.btn)::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-pic { max-width: 560px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .help-top { grid-template-columns: 1fr; }
  .heart { justify-self: center; max-width: 320px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
/* телефон */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  html { scroll-padding-top: 68px; }
  .nav-in { height: 64px; gap: 10px; }
  .logo img { height: 50px; }
  .btn { white-space: normal; text-align: center; }
  .nav-cta { display: none; }
  .menu { inset: 64px 0 auto 0; max-height: calc(100vh - 64px); }
  .menu-cta { display: flex; margin-top: 18px; }
  .hero { padding: 28px 0 44px; }
  .hero-btns .btn { flex: 1 1 100%; }
  .lead { font-size: 17px; }
  .hero-pic img, .hero-pic::after { border-radius: 26px; }
  .hero-pic::after { right: -8px; bottom: -8px; }
  .shape.s1 { width: 100px; left: -36px; top: auto; bottom: 30px; }
  .shape.s2 { width: 120px; right: -40px; top: 6px; }
  .sec { padding: 36px 0; }
  .sec-head { flex-direction: column; gap: 6px; margin-bottom: 20px; }
  .grid3, .grid2 { grid-template-columns: 1fr; gap: 18px; }
  .box { border-radius: 24px; padding: 26px 18px; }
  .pill { padding: 8px 20px; }
  .ways { grid-template-columns: 1fr; }
  .donate { grid-template-columns: 1fr; gap: 20px; }
  .donate .btn { width: 100%; }
  .donate .btn + .btn { margin: 10px 0 0; }
  .qr { width: 200px; justify-self: center; }
  .req { font-size: 14px; padding: 14px; word-break: break-word; }
  .ct-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .docs { justify-items: center; }
  .docs .btn { width: 100%; }
  .content { font-size: 16.5px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .foot { padding: 40px 0 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .proj h3 { font-size: 22px; }
}
