/* =========================================================
   Альфа.Пуск — Краудфандинг (crowd.html)
   ========================================================= */

/* Hero */
.crowd-hero { background: var(--ink); color: #fff; padding: 56px 0 40px; position: relative; overflow: hidden; }
.crowd-hero::after { content:""; position:absolute; width: 320px; height: 320px; background: var(--red); border-radius: 50%; right: -120px; top: -120px; opacity: .85; }
.crowd-hero__in { position: relative; z-index: 1; }
.crowd-hero h1 { font-size: clamp(34px, 5vw, 58px); margin: 14px 0 16px; }
.crowd-hero p { color: rgba(255,255,255,.72); max-width: 560px; font-size: 18px; }
.crowd-stats { display: flex; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.crowd-stats .cs b { display: block; font-size: 32px; font-weight: 900; }
.crowd-stats .cs span { color: rgba(255,255,255,.6); font-size: 14px; }
.crowd-stats .cs b.lime { color: var(--lime); }

/* Filter bar */
.filterbar { position: sticky; top: var(--header-h); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 0; }
.filterbar__in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filterbar .choices { flex: 1; }
.filter-chip.is-on { background: var(--red); color: #fff; border-color: var(--red); }

/* Projects grid */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media(max-width:980px){ .proj-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:640px){ .proj-grid { grid-template-columns: 1fr; } }

.proj { background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; display: flex; flex-direction: column; }
.proj:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.proj__cover { height: 150px; position: relative; display: grid; place-items: center; overflow: hidden; }
.proj__cover svg { width: 60px; height: 60px; color: rgba(255,255,255,.9); }
.proj__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.proj__cover::after { content:""; position:absolute; inset:0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,0) 42%, rgba(0,0,0,.18)); }
.proj__fmt { position: absolute; top: 14px; left: 14px; z-index: 2; }
.proj__verified { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(0,0,0,.35); color:#fff; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); display:flex; align-items:center; gap:5px; }
.proj__verified svg { width: 13px; height: 13px; color: var(--lime); }
.proj__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.proj__meta { display: flex; align-items: center; gap: 8px; color: var(--gray-500); font-size: 13px; margin-bottom: 8px; }
.proj__title { font-size: 19px; font-weight: 800; line-height: 1.15; }
.proj__tag { color: var(--gray-600, var(--gray-500)); font-size: 14px; margin: 8px 0 16px; flex: 1; }
.proj__prog { margin-top: auto; }
.proj__prog .progress { height: 7px; }
.proj__nums { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.proj__raised { font-weight: 800; font-size: 17px; } .proj__raised span { color: var(--gray-500); font-weight: 600; font-size: 13px; }
.proj__pct { font-weight: 800; color: var(--green); }
.proj__foot { display: flex; justify-content: space-between; color: var(--gray-500); font-size: 13px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.proj__tags { display:flex; gap:6px; margin-top: 12px; flex-wrap: wrap; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal__bd { position: absolute; inset: 0; background: rgba(10,10,10,.6); backdrop-filter: blur(3px); }
.modal__panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.96);
  width: min(720px, 94vw); max-height: 92vh; overflow-y: auto; background:#fff; border-radius: var(--r-xl);
  opacity: 0; transition: opacity .2s, transform .2s var(--ease); box-shadow: var(--shadow-lg);
}
.modal.open .modal__panel { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.modal__cover { height: 180px; display:grid; place-items:center; position: relative; overflow: hidden; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.modal__cover svg { width: 68px; height: 68px; color: rgba(255,255,255,.9); }
.modal__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.modal__cover::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0) 55%); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,.4); color:#fff; font-size: 20px; cursor: pointer; z-index: 3; }
.modal__body { padding: 28px; }
.modal__title { font-size: 26px; font-weight: 800; }
.modal__grid { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.mstat { background: var(--paper); border-radius: var(--r-md); padding: 14px 16px; }
.mstat span { color: var(--gray-500); font-size: 13px; } .mstat b { display:block; font-size: 20px; font-weight: 800; }
.reward-box { background: var(--red-050); border: 1px solid rgba(239,49,36,.18); border-radius: var(--r-md); padding: 16px 18px; margin: 14px 0; }
.reward-box span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.reward-box p { font-weight: 600; margin-top: 4px; }
.amount-row { display:flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.amount-chip { padding: 10px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--gray-200); font-weight: 700; cursor: pointer; background:#fff; }
.amount-chip.is-on { background: var(--ink); color:#fff; border-color: var(--ink); }
.alfa-note { display:flex; align-items:center; gap:10px; margin-top: 16px; color: var(--gray-500); font-size: 13px; }
.alfa-note img { height: 16px; }

/* How it works */
.how-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:820px){ .how-grid { grid-template-columns: 1fr; } }
.how-step { position: relative; padding-left: 56px; }
.how-step__n { position:absolute; left:0; top:0; width:40px;height:40px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800; }
.how-step b { display:block; font-size: 18px; } .how-step p { color: var(--gray-600, var(--gray-500)); font-size: 15px; margin-top: 4px; }

/* Advantages */
.adv-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media(max-width:820px){ .adv-grid { grid-template-columns: 1fr; } }
.adv { background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.adv .card__ico { background: var(--paper); margin-bottom: 14px; }
.adv b { font-size: 18px; display:block; margin-bottom: 6px; }
.adv p { color: var(--gray-600, var(--gray-500)); font-size: 14.5px; }
