/* Страница «Необходимые документы» (Views/Home/RequiredDocuments.cshtml) */
.adm { --a-green: #187d35; --a-dark: #0d5a25; --a-gold: #c9a227; --a-ink: #0f172a; --a-muted: #64748b; --a-line: #e2e8f0; --a-soft: #f8fafc; padding-bottom: 64px; color: var(--a-ink); }
.adm-wrap { width: min(1200px, 100% - 32px); margin: 0 auto; position: relative; z-index: 1; }
.adm-preview { position: sticky; top: 0; z-index: 1002; padding: 10px 16px; background: #1d4ed8; color: #fff; font-weight: 700; text-align: center; }

/* Шапка */
.adm-hero { position: relative; padding: 44px 0 84px; color: #fff; background: linear-gradient(135deg, #05612a 0%, #187d35 58%, #2a9a4b 100%); overflow: hidden; }
.adm-hero::after { content: ""; position: absolute; right: -140px; bottom: -180px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 39, .35), transparent 70%); pointer-events: none; }
.adm-crumbs { display: flex !important; flex-wrap: wrap; justify-content: flex-start !important; gap: 0 6px; font-size: .88rem; color: #cfe9d6; }
.adm-crumbs a { color: #fde68a; text-decoration: none; }
.adm-crumbs a:hover { text-decoration: underline; }
.adm-crumbs span { opacity: .7; }
.adm-hero__badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); font-weight: 700; font-size: .88rem; }
.adm-hero h1 { margin: 14px 0 12px; max-width: 820px; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; color: #fff; letter-spacing: -.01em; }
.adm-hero__lead { max-width: 760px; margin: 0; color: #e3f4e8; font-size: 1.06rem; line-height: 1.6; }
.adm-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.adm-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.adm-hero__facts li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .9rem; color: #e3f4e8; }
.adm-hero__facts b { color: #fde68a; }

.adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 0; font-weight: 700; text-decoration: none !important; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.adm-btn:hover { transform: translateY(-1px); }
.adm-btn:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.adm-btn--gold { background: var(--a-gold); color: #1f1600 !important; }
.adm-btn--gold:hover { background: #b08b17; }
.adm-btn--light { background: rgba(255, 255, 255, .16); color: #fff !important; border: 1px solid rgba(255, 255, 255, .35); }
.adm-btn--light:hover { background: rgba(255, 255, 255, .26); }
.adm-btn--outline { background: #fff; color: var(--a-green) !important; border: 1px solid var(--a-green); }
.adm-btn--outline:hover { background: #e8f5ec; }
.adm-btn--block { width: 100%; margin-top: 14px; }

.adm-body { margin-top: -44px; }
.adm-h2 { margin: 0 0 14px; font-size: 1.4rem; font-weight: 800; color: var(--a-ink); }

/* Объявление */
.adm-notice { display: flex; gap: 14px; margin-bottom: 22px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--a-line); border-left-width: 6px; box-shadow: 0 14px 34px rgba(15, 23, 42, .08); }
.adm-notice > i { font-size: 1.35rem; margin-top: 2px; }
.adm-notice b { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.adm-notice p { margin: 0; color: #334155; line-height: 1.6; }
.adm-notice--info { border-left-color: #2563eb; } .adm-notice--info > i { color: #2563eb; }
.adm-notice--warning { border-left-color: #d97706; } .adm-notice--warning > i { color: #d97706; }
.adm-notice--success { border-left-color: #16a34a; } .adm-notice--success > i { color: #16a34a; }
.adm-notice--danger { border-left-color: #dc2626; } .adm-notice--danger > i { color: #dc2626; }

/* Этапы */
.adm-steps { margin-bottom: 30px; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--a-line); box-shadow: 0 16px 40px rgba(15, 23, 42, .08); }
.adm-steps__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.adm-step { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 16px 18px; border-radius: 16px; background: var(--a-soft); border: 1px solid var(--a-line); }
.adm-step__num { position: absolute; top: 12px; right: 14px; font-size: 1.6rem; font-weight: 800; color: #d6e9db; line-height: 1; }
.adm-step__icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #e8f5ec; color: var(--a-green); font-size: 1.05rem; }
.adm-step b { margin-top: 4px; font-size: 1rem; }
.adm-step span { color: #475569; font-size: .9rem; line-height: 1.5; }

/* Макет: перечни + боковая колонка */
.adm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.adm-layout--single { grid-template-columns: minmax(0, 1fr); }
.adm-main { min-width: 0; }
.adm-aside { position: sticky; top: 110px; display: grid; gap: 16px; }

.adm-docs { scroll-margin-top: 110px; }
.adm-docs__head p { margin: -6px 0 16px; color: var(--a-muted); }
.adm-routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
.adm-route { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 16px; border: 1px solid var(--a-line); background: #fff; color: var(--a-ink); text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.adm-route > i { flex: 0 0 auto; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #f1f5f9; color: #475569; }
.adm-route span { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.adm-route small { color: var(--a-muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.adm-route b { font-size: .93rem; line-height: 1.3; }
.adm-route em { flex: 0 0 auto; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--a-muted); font-style: normal; font-weight: 800; font-size: .8rem; text-align: center; }
.adm-route:hover { border-color: #9fd3ae; }
.adm-route.is-on { border-color: var(--a-green); background: #f0fdf4; box-shadow: 0 10px 24px rgba(24, 125, 53, .12); }
.adm-route.is-on > i { background: var(--a-green); color: #fff; }
.adm-route.is-on em { background: var(--a-green); color: #fff; }
.adm-route:focus-visible { outline: 3px solid rgba(24, 125, 53, .35); outline-offset: 2px; }

.adm-panel { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--a-line); scroll-margin-top: 110px; }
.adm-panel__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.adm-panel__icon { flex: 0 0 auto; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: linear-gradient(135deg, #187d35, #2a9a4b); color: #fff; font-size: 1.3rem; }
.adm-panel__head h3 { margin: 4px 0 0; font-size: 1.25rem; font-weight: 800; line-height: 1.3; color: var(--a-ink); scroll-margin-top: 120px; }
.adm-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fdf6dd; color: #6b5408; font-size: .78rem; font-weight: 700; }
.adm-panel__intro { margin: 0 0 14px; color: #334155; line-height: 1.65; }
.adm-progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.adm-progress__bar { flex: 1; height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.adm-progress__bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22c55e, #16a34a); transition: width .3s ease; }
.adm-progress__text { flex: 0 0 auto; font-size: .85rem; font-weight: 700; color: var(--a-muted); }
.adm-panel.is-complete .adm-progress__text { color: #16a34a; }

.adm-items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.adm-item { position: relative; }
.adm-item__check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.adm-item__label { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--a-line); background: var(--a-soft); cursor: default; line-height: 1.55; transition: background-color .15s ease, border-color .15s ease; }
label.adm-item__label { cursor: pointer; padding-left: 50px; position: relative; }
label.adm-item__label::before { content: ""; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #94a3b8; background: #fff; transition: all .15s ease; }
label.adm-item__label::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 18px; top: 14px; font-size: .78rem; color: #fff; opacity: 0; }
.adm-item__check:checked + .adm-item__label { background: #f0fdf4; border-color: #bbf7d0; }
.adm-item__check:checked + .adm-item__label::before { background: #16a34a; border-color: #16a34a; }
.adm-item__check:checked + .adm-item__label::after { opacity: 1; }
.adm-item__check:checked + .adm-item__label .adm-item__text { color: #475569; }
.adm-item__check:focus-visible + .adm-item__label { outline: 3px solid rgba(24, 125, 53, .35); outline-offset: 2px; }
.adm-item__icon { flex: 0 0 auto; width: 22px; margin-top: 3px; text-align: center; color: var(--a-gold); }
.adm-item__text { color: #1e293b; }
.adm-opt { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #e0f2fe; color: #075985; font-size: .75rem; font-style: normal; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.adm-panel__foot { display: flex; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fffbeb; color: #78350f; line-height: 1.55; }
.adm-panel__foot i { margin-top: 4px; }
.adm-panel__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--a-line); }
.adm-tool { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--a-line); background: #fff; color: #334155; font-weight: 600; font-size: .88rem; cursor: pointer; }
.adm-tool:hover { border-color: var(--a-green); color: var(--a-green); }
.adm-hint { margin: 10px 2px 0; color: var(--a-muted); font-size: .82rem; }
.adm-empty { padding: 24px; border-radius: 16px; background: var(--a-soft); color: var(--a-muted); text-align: center; }

/* Важная информация */
.adm-note { display: flex; gap: 16px; margin-top: 22px; padding: 22px; border-radius: 18px; border: 1px solid var(--a-line); background: #fff; }
.adm-note__icon { flex: 0 0 auto; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 1.15rem; }
.adm-note h2 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 800; }
.adm-note p { margin: 0; color: #334155; line-height: 1.65; }
.adm-note--info .adm-note__icon { background: #dbeafe; color: #1d4ed8; }
.adm-note--warning { background: #fffbeb; border-color: #fde68a; } .adm-note--warning .adm-note__icon { background: #fef3c7; color: #b45309; }
.adm-note--success { background: #f0fdf4; border-color: #bbf7d0; } .adm-note--success .adm-note__icon { background: #dcfce7; color: #15803d; }
.adm-note--danger { background: #fef2f2; border-color: #fecaca; } .adm-note--danger .adm-note__icon { background: #fee2e2; color: #b91c1c; }

/* FAQ */
.adm-faq { margin-top: 30px; }
.adm-faq__item { margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--a-line); background: #fff; }
.adm-faq__item summary { position: relative; padding: 15px 48px 15px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.adm-faq__item summary::-webkit-details-marker { display: none; }
.adm-faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--a-green); }
.adm-faq__item[open] summary::after { content: "−"; }
.adm-faq__item > div { padding: 0 18px 16px; color: #334155; line-height: 1.65; }

/* Боковая колонка */
.adm-card { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--a-line); box-shadow: 0 10px 26px rgba(15, 23, 42, .06); scroll-margin-top: 110px; }
.adm-card h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 1.05rem; font-weight: 800; }
.adm-card h2 i { color: var(--a-gold); }
.adm-card__lead { margin: -4px 0 10px; font-weight: 700; color: var(--a-dark); }
.adm-contacts, .adm-links, .adm-dates { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.adm-contacts li { display: flex; gap: 10px; align-items: flex-start; color: #334155; line-height: 1.45; }
.adm-contacts i { width: 18px; margin-top: 3px; color: var(--a-green); text-align: center; }
.adm-contacts a { color: var(--a-dark); font-weight: 700; text-decoration: none; word-break: break-word; }
.adm-contacts a:hover { text-decoration: underline; }
.adm-dates li { display: flex; gap: 12px; align-items: flex-start; }
.adm-dates time { flex: 0 0 auto; width: 54px; padding: 6px 0; border-radius: 12px; background: #e8f5ec; color: var(--a-dark); text-align: center; line-height: 1.1; }
.adm-dates time b { display: block; font-size: 1.3rem; }
.adm-dates time span { font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.adm-dates div { display: flex; flex-direction: column; gap: 2px; }
.adm-dates div > span { color: #475569; font-size: .88rem; }
.adm-dates small { color: var(--a-muted); }
.adm-dates li.is-past { opacity: .6; }
.adm-links a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--a-soft); color: #1e293b; text-decoration: none; line-height: 1.4; transition: background-color .15s ease; }
.adm-links a:hover { background: #e8f5ec; color: var(--a-dark); }
.adm-links i { margin-top: 3px; color: var(--a-green); }

/* Каталоги программ */
.adm-programs { margin-top: 40px; }
.adm-programs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.adm-program { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px; border: 1px solid var(--a-line); background: #fff; color: var(--a-ink) !important; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.adm-program i { width: 44px; height: 44px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #e8f5ec; color: var(--a-green); font-size: 1.15rem; }
.adm-program b { font-size: 1.08rem; }
.adm-program span { color: var(--a-muted); font-size: .88rem; }
.adm-program:hover { transform: translateY(-3px); border-color: #9fd3ae; box-shadow: 0 14px 30px rgba(15, 23, 42, .1); }

@media (max-width: 991.98px) {
    .adm-layout { grid-template-columns: minmax(0, 1fr); }
    .adm-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 767.98px) {
    .adm-hero { padding: 28px 0 70px; }
    .adm-hero__actions .adm-btn { flex: 1 1 100%; }
    .adm-steps { padding: 16px; }
    .adm-steps__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .adm-step { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
    .adm-step b { margin: 0; flex: 1; }
    .adm-step span { flex-basis: 100%; }
    .adm-step__num { position: static; order: -1; font-size: 1.2rem; color: #9fd3ae; }
    .adm-routes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .adm-route { padding: 11px 12px; }
    .adm-route > i { width: 36px; height: 36px; }
    .adm-panel { padding: 16px; border-radius: 16px; }
    .adm-panel__icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .adm-panel__head h3 { font-size: 1.08rem; }
    .adm-panel__tools .adm-tool { flex: 1 1 auto; justify-content: center; }
    .adm-programs__grid { grid-template-columns: minmax(0, 1fr); }
    .adm-note { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .adm-btn, .adm-route, .adm-program, .adm-progress__bar span { transition: none; }
}

/* Печать страницы (Ctrl+P). Кнопка «Распечатать» у перечня печатает отдельный чистый документ — см. RequiredDocuments.cshtml. */
@media print {
    #header-container, .au-section-nav, .m-bottom-nav, #au-chatbot, .auf-top, .adm-preview,
    .adm-hero__actions, .adm-panel__tools, .adm-progress, .adm-hint { display: none !important; }
    .adm-layout { display: block !important; }
    .adm-item, .adm-steps__list > li, .adm-note, .adm-card { break-inside: avoid; page-break-inside: avoid; }
    .adm-hero { padding: 0 0 12px !important; background: none !important; }
    .adm-hero, .adm-hero * { color: #000 !important; }
}
