/* =====================================================================
   «Асар» — публичная часть
   Палитра: светлый фон #f8f9fa, янтарный акцент + изумрудный дополнительный
   ===================================================================== */
:root {
    --bg: #f8f9fa;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e9ecef;
    --amber: #f59e0b;
    --amber-600: #ea7a0c;
    --amber-50: #fff7e8;
    --emerald: #10b981;
    --emerald-600: #059669;
    --emerald-50: #e8faf3;
    --violet: #6366f1;
    --violet-50: #eef0ff;
    --grad: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #ea7a0c 100%);
    --radius: 1.25rem;
    --shadow-sm: 0 2px 6px rgba(31, 41, 55, .05);
    --shadow: 0 10px 30px -12px rgba(31, 41, 55, .18);
    --shadow-lg: 0 30px 60px -20px rgba(31, 41, 55, .25);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --bs-body-font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--bs-body-font-family);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--amber-600); }
h1, h2, h3, .h4, .h5 { letter-spacing: -.02em; }
.text-accent { color: var(--amber) !important; }
.text-gradient {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bg-amber { background: var(--amber); }
.bg-emerald { background: var(--emerald); }

/* ---------- Кнопки ---------- */
.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #fff;
    background: var(--grad);
    background-size: 160% 160%;
    background-position: 0 0;
    border: 0;
    font-weight: 700;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .4s var(--ease);
}
.btn-accent:hover { background-position: 100% 100%; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(234, 122, 12, .65); }
.btn-accent:active { transform: translateY(0); }
.btn-accent:disabled { opacity: .7; }
.shadow-accent { box-shadow: 0 14px 30px -12px rgba(234, 122, 12, .6); }
.btn-ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    transition: all .25s var(--ease);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-600); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Навигация ---------- */
.site-nav {
    padding: 1rem 0;
    transition: all .3s var(--ease);
}
.site-nav.scrolled {
    padding: .55rem 0;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05), var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.4rem; color: var(--ink) !important; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 12px;
    display: inline-grid; place-items: center;
    background: var(--grad); color: #fff; font-size: 1.1rem;
    box-shadow: 0 6px 14px -6px rgba(234, 122, 12, .7);
}
.site-nav .nav-link { font-weight: 600; color: var(--ink); position: relative; }
.site-nav .nav-link:hover { color: var(--amber-600); }
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { background: #fff; margin-top: .75rem; padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 80px; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero-blob--1 { width: 520px; height: 520px; background: #ffe2b0; top: -160px; right: -120px; animation: blob 14s ease-in-out infinite; }
.hero-blob--2 { width: 420px; height: 420px; background: #c8f3e0; bottom: -180px; left: -140px; animation: blob 18s ease-in-out infinite reverse; }
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 30px) scale(1.08); } }

.eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .9rem; border-radius: 999px;
    background: var(--amber-50); color: var(--amber-600);
    font-weight: 700; font-size: .82rem; letter-spacing: .02em;
    border: 1px solid #fde7c2;
}
.hero-title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; margin: 1.1rem 0 1.2rem; }
.hero-lead { font-size: 1.12rem; color: var(--muted); line-height: 1.7; max-width: 560px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-weight: 600; font-size: .92rem; }
.hero-trust i { color: var(--emerald); margin-right: .25rem; }

.hero-visual { position: relative; }
.hero-img {
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    animation: floaty 7s ease-in-out infinite;
    aspect-ratio: 1 / 1; object-fit: cover;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-card {
    position: absolute; display: flex; align-items: center; gap: .75rem;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
    padding: .8rem 1.1rem; border-radius: 1rem; box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .7);
}
.float-card strong { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1; }
.float-card small { color: var(--muted); font-weight: 600; }
.float-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; }
.float-card--1 { left: -18px; bottom: 14%; animation: floaty 6s ease-in-out infinite .5s; }
.float-card--2 { right: -12px; top: 10%; animation: floaty 8s ease-in-out infinite 1s; }
@media (max-width: 575.98px) { .float-card--1 { left: 6px; } .float-card--2 { right: 6px; } }

/* ---------- Секции ---------- */
.section { padding: 90px 0; }
.section-tint { background: linear-gradient(180deg, #fff 0%, #fffaf2 100%); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; margin-top: .9rem; }

/* ---------- Шаги ---------- */
.step-card {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 2rem; overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #fde7c2; }
.step-num { position: absolute; right: 1.2rem; top: .6rem; font-size: 3.5rem; font-weight: 800; color: #f3f4f6; line-height: 1; }
.step-icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    background: var(--amber-50); color: var(--amber-600); font-size: 1.6rem; margin-bottom: 1.2rem;
    transition: transform .35s var(--ease);
}
.step-card:hover .step-icon { transform: rotate(-8deg) scale(1.08); }
.step-card h3 { font-size: 1.2rem; font-weight: 700; }
.step-card p { color: var(--muted); margin: 0; }

/* ---------- Статистика ---------- */
.stat-card {
    height: 100%; display: flex; align-items: center; gap: 1.2rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem 1.6rem; position: relative; overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat-card::after {
    content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px;
    border-radius: 50%; background: var(--tint); opacity: .7; transition: transform .5s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card:hover::after { transform: scale(1.25); }
.stat-card--amber { --c: var(--amber); --tint: var(--amber-50); }
.stat-card--emerald { --c: var(--emerald); --tint: var(--emerald-50); }
.stat-card--violet { --c: var(--violet); --tint: var(--violet-50); }
.stat-icon {
    width: 58px; height: 58px; flex-shrink: 0; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--c);
    box-shadow: 0 10px 20px -10px var(--c); position: relative; z-index: 1;
}
.stat-value { font-size: 2.3rem; font-weight: 800; line-height: 1; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-weight: 600; margin-top: .25rem; position: relative; z-index: 1; }
@media (min-width: 576px) and (max-width: 991.98px) {
    .stat-card { flex-direction: column; text-align: center; }
}

.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.chart-wrap { position: relative; height: 300px; }

.empty-state { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty-state i { font-size: 2.6rem; color: #d1d5db; display: block; margin-bottom: .6rem; }
.empty-state--lg { background: #fff; border: 1px dashed #d1d5db; border-radius: var(--radius); padding: 4rem 1rem; }

/* ---------- Лента (Masonry на CSS columns) ---------- */
.feed-grid { column-count: 3; column-gap: 1.5rem; }
@media (max-width: 991.98px) { .feed-grid { column-count: 2; } }
@media (max-width: 575.98px) { .feed-grid { column-count: 1; } }
.feed-item { break-inside: avoid; margin-bottom: 1.5rem; animation: fadeUp .6s var(--ease) both; }
.feed-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feed-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feed-media { display: block; position: relative; overflow: hidden; background: #f3f4f6; }
.feed-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s var(--ease); }
.feed-card:hover .feed-media img { transform: scale(1.04); }
.feed-media--icon {
    height: 120px; display: grid; place-items: center; font-size: 2.8rem; color: var(--cat);
    background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--cat) 22%, #fff) 0%, color-mix(in srgb, var(--cat) 8%, #fff) 70%);
}
.yt-lazy { cursor: pointer; }
.yt-lazy iframe { border: 0; }
.yt-play {
    position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 14px;
    display: grid; place-items: center; background: rgba(239, 68, 68, .92); color: #fff; font-size: 1.8rem;
    transition: transform .25s var(--ease), background .25s;
}
.yt-lazy:hover .yt-play { transform: scale(1.1); background: #ef4444; }
.feed-body { padding: 1.25rem 1.3rem 1.35rem; }
.cat-chip {
    display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700;
    color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, #fff);
    padding: .3rem .7rem; border-radius: 999px;
}
.feed-date { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.feed-text { color: #374151; line-height: 1.6; margin-bottom: 1rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .9rem .35rem .35rem;
    border-radius: 999px; background: var(--emerald-50); color: var(--emerald-600); font-weight: 700; font-size: .9rem;
}
.hero-badge small { display: block; font-size: .68rem; font-weight: 600; opacity: .8; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.hero-avatar {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, #34d399, #059669); color: #fff; font-weight: 800;
}

/* ---------- CTA ---------- */
.cta-banner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    background: var(--grad); color: #fff; border-radius: 2rem; padding: 3rem;
    box-shadow: 0 30px 60px -25px rgba(234, 122, 12, .7); position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
    background: rgba(255, 255, 255, .12); right: -100px; top: -160px;
}
.cta-banner h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-banner p { margin: 0; opacity: .92; max-width: 560px; }
.cta-banner > * { position: relative; }

/* ---------- Footer ---------- */
.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); background: #fff; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--amber-600); }

/* ---------- Модальное окно заявки ---------- */
.request-modal { border: 0; border-radius: 1.5rem; padding: .75rem; box-shadow: var(--shadow-lg); }
.form-label { font-weight: 600; font-size: .92rem; }
.form-control, .form-select {
    border-radius: .85rem; padding: .7rem 1rem; border-color: #e2e5e9; background-color: #fbfbfc;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--amber); background-color: #fff; box-shadow: 0 0 0 .25rem rgba(245, 158, 11, .18);
}
.was-validated #description:invalid ~ div .invalid-feedback { display: block; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.dropzone {
    display: block; position: relative; cursor: pointer; border: 2px dashed #e2e5e9; border-radius: 1rem;
    background: #fbfbfc; transition: all .25s var(--ease); overflow: hidden; margin: 0;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--amber); background: var(--amber-50); }
.dropzone-empty { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.6rem 1rem; color: var(--muted); text-align: center; }
.dropzone-empty i { font-size: 2rem; color: var(--amber); }
.dropzone-preview { display: block; position: relative; }
.dropzone-preview img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.dropzone-preview button { position: absolute; top: .6rem; right: .6rem; }

.captcha-box { background: var(--emerald-50); border: 1px solid #c6f0de; border-radius: 1rem; padding: 1rem; }
.captcha-q { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; }
.captcha-q > i { font-size: 1.6rem; color: var(--emerald-600); }
.captcha-q small { display: block; color: var(--emerald-600); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.captcha-q strong { font-size: 1.1rem; }
.captcha-q .btn-link { color: var(--emerald-600); font-size: 1.2rem; }
.captcha-q .btn-link.spin i { display: inline-block; animation: spin .6s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-state { text-align: center; padding: 2rem 1rem 1rem; animation: fadeUp .5s var(--ease) both; }
.success-icon {
    width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 1.2rem; display: grid; place-items: center;
    background: linear-gradient(135deg, #34d399, #059669); color: #fff; font-size: 2.6rem;
    box-shadow: 0 16px 30px -12px rgba(5, 150, 105, .7); animation: pop .6s var(--ease) both .1s;
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- Анимации появления ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.reveal-delay { --d: 150ms; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Страница: Авторы Проекта ---------- */
.author-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
    position: relative;
    overflow: hidden;
}
.author-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: #fde7c2;
}
.author-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}
.author-photo-slot {
    width: 220px;
    height: 260px;
    border-radius: 1.5rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(145deg, #fff7e8 0%, #fef3c7 50%, #fefce8 100%);
    border: 2px dashed #f59e0b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(245, 158, 11, .08);
    transition: all .35s var(--ease);
}
.author-photo-slot:hover {
    background: linear-gradient(145deg, #fff3dc 0%, #feeaa7 50%, #fef9c3 100%);
    border-color: var(--amber-600);
    transform: scale(1.02);
}
.author-photo-slot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.4rem;
}
.author-photo-slot i {
    font-size: 3.2rem;
    color: var(--amber);
    margin-bottom: .6rem;
}
.author-photo-slot .photo-hint {
    font-size: .82rem;
    font-weight: 700;
    color: var(--amber-600);
    line-height: 1.3;
}
.author-photo-slot .photo-subhint {
    font-size: .72rem;
    color: var(--muted);
    margin-top: .3rem;
}
.author-role-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: var(--amber-50);
    color: var(--amber-600);
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .02em;
    border: 1px solid #fde7c2;
    margin-bottom: .8rem;
}
.author-role-badge--accent {
    background: var(--emerald-50);
    color: var(--emerald-600);
    border-color: #a7f3d0;
}
.author-name {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .4rem;
}
.author-position {
    color: var(--muted);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.5;
}
.author-bio {
    color: #4b5563;
    font-size: .95rem;
    line-height: 1.7;
    margin-top: 1rem;
    flex-grow: 1;
}
.author-highlight {
    background: #fbfbfc;
    border-left: 3px solid var(--amber);
    border-radius: 0 .75rem .75rem 0;
    padding: .85rem 1rem;
    margin-top: 1.2rem;
    font-size: .9rem;
    color: #374151;
}

.org-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.org-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #e5e7eb;
}
.org-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--grad);
    color: #fff;
    font-size: 1.3rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px -6px rgba(234, 122, 12, .5);
}
.org-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .25rem;
}
.org-desc {
    font-size: .85rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.45;
}

