/* ============================================================
   Стилі сайту "Моніторинг кар'єрного шляху випускників"
   Світла тема, акуратні картки, м'які тіні, адаптивна верстка.
   ============================================================ */

/* ---------- Базовий ресет ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    background: #f7f9fc;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Контейнер ---------- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Шапка та меню ---------- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
}
.logo span { color: #2563eb; }

/* ---------- Бренд-логотип (іконка + 2 рядки тексту) ---------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
    line-height: 1.1;
    padding: 4px 6px;
    border-radius: 10px;
    transition: background 0.15s, transform 0.2s;
}
.brand:hover {
    background: #f1f5f9;
    text-decoration: none;
}
.brand-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.brand-icon svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.18));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .brand-icon svg {
    transform: rotate(-6deg) scale(1.08);
}
.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.brand-title {
    font-weight: 700;
    font-size: 17px;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.brand-subtitle {
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
@media (max-width: 480px) {
    .brand { gap: 9px; }
    .brand-icon svg { width: 32px; height: 32px; }
    .brand-title { font-size: 15px; }
    .brand-subtitle { font-size: 9px; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #374151;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.15s;
}
.nav-links a:hover {
    background: #f1f5f9;
    text-decoration: none;
}
.nav-links a.active {
    background: #e0ecff;
    color: #1d4ed8;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    padding: 60px 0;
    border-bottom: 1px solid #eef2f7;
}
.hero h1 {
    margin: 0 0 14px;
    font-size: 36px;
    line-height: 1.2;
    color: #0f172a;
}
.hero p {
    font-size: 17px;
    color: #475569;
    max-width: 680px;
    margin: 0 0 26px;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.05s;
}
.btn:hover { background: #1d4ed8; }
.btn:active { transform: translateY(1px); }

.btn-success { background: #16a34a; }
.btn-success:hover { background: #15803d; }

.btn-secondary { background: #e5e7eb; color: #111827 !important; }
.btn-secondary:hover { background: #d1d5db; }

.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }

/* Вторинна CTA-кнопка для відвідувача (smaragd / teal — академічний акцент) */
.btn-visitor {
    background: #0d9488;
    color: #ffffff !important;
}
.btn-visitor:hover { background: #0f766e; }

/* CTA-кнопки з SVG-іконкою (hero) */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.10);
    transition: background 0.15s, transform 0.15s, box-shadow 0.2s;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.18);
}
.btn-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Hero-блок з двома CTA */
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}
@media (max-width: 560px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-cta { justify-content: center; }
}

/* ---------- Загальні секції ---------- */
.section {
    padding: 50px 0;
}
.section h2 {
    margin: 0 0 24px;
    font-size: 26px;
    color: #0f172a;
}

/* ---------- Картки ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
    transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
    transform: translateY(-2px);
}
.card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #111827;
}
.card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* ---------- Тематичні картки-фічі з SVG-піктограмами ---------- */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

/* Сітка 2×2 для головної сторінки */
.features-grid-2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}
.features-grid-2x2 .feature-card {
    padding: 28px;
    min-height: 200px;
}
@media (max-width: 720px) {
    .features-grid-2x2 { grid-template-columns: 1fr; }
}

.feature-card {
    position: relative;
    overflow: hidden;
    text-align: left;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.feature-card::after {
    content: "";
    position: absolute;
    inset: auto -40% -60% auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(16, 24, 40, 0.12);
    border-color: #d6e2fb;
}
.feature-card:hover::after { opacity: 1; }

/* Кружок під SVG */
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
    position: relative;
    z-index: 1;
}
.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.16);
}
.feature-icon svg {
    transition: transform 0.4s ease;
}

/* Різні градієнти за темою */
.feature-icon-collect    { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.feature-icon-verify     { background: linear-gradient(135deg, #16a34a, #4ade80); }
.feature-icon-analytics  { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.feature-icon-stats      { background: linear-gradient(135deg, #9333ea, #c084fc); }

/* Окремі мікро-анімації при hover на іконці */
.feature-card:hover .feature-icon-collect svg {
    animation: nudge 0.6s ease;
}
.feature-card:hover .feature-icon-verify svg {
    animation: tickPulse 0.6s ease;
}
.feature-card:hover .feature-icon-analytics .bar-1 { animation: barGrow 0.6s ease 0.05s; transform-origin: bottom; transform-box: fill-box; }
.feature-card:hover .feature-icon-analytics .bar-2 { animation: barGrow 0.6s ease 0.15s; transform-origin: bottom; transform-box: fill-box; }
.feature-card:hover .feature-icon-analytics .bar-3 { animation: barGrow 0.6s ease 0.25s; transform-origin: bottom; transform-box: fill-box; }
.feature-card:hover .feature-icon-stats svg {
    animation: floatUp 0.7s ease;
}

@keyframes nudge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}
@keyframes tickPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}
@keyframes barGrow {
    0%   { transform: scaleY(0.4); }
    60%  { transform: scaleY(1.15); }
    100% { transform: scaleY(1); }
}
@keyframes floatUp {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* Поважаємо системне «зменшити рух» */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .feature-card .feature-icon,
    .feature-card .feature-icon svg,
    .feature-card .feature-icon .bar,
    .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- Scroll-reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.21, 0.85, 0.4, 1),
                transform 0.6s cubic-bezier(0.21, 0.85, 0.4, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger-затримка для плиток у сітці 2×2 */
.features-grid-2x2 .reveal:nth-child(1) { transition-delay: 0ms; }
.features-grid-2x2 .reveal:nth-child(2) { transition-delay: 120ms; }
.features-grid-2x2 .reveal:nth-child(3) { transition-delay: 240ms; }
.features-grid-2x2 .reveal:nth-child(4) { transition-delay: 360ms; }

/* ============================================================
   Сторінка "Про проєкт" — hero, цифри, місія, таймлайн, 2 картки
   ============================================================ */

.about-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #ecfdf5 100%);
    padding: 56px 0 40px;
    border-bottom: 1px solid #eef2f7;
}
.about-hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
    background: #ffffff;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.10);
}
.about-hero h1 {
    margin: 0 0 12px;
    font-size: 32px;
    color: #0f172a;
    line-height: 1.2;
    max-width: 780px;
}
.about-hero p {
    margin: 0;
    font-size: 16px;
    color: #475569;
    max-width: 720px;
}

/* --- Блок цифр --- */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}
.about-stat {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.about-stat-value {
    display: block;
    font-size: 38px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 4px;
}
.about-stat-label {
    color: #64748b;
    font-size: 13px;
}

/* --- Великий блок: іконка зліва, текст справа --- */
.about-block {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 30px 32px;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
    margin-bottom: 28px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.about-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
    border-color: #d6e2fb;
}
.about-block-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.10);
}
.about-icon-mission { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.about-icon-metrics { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.about-icon-shield  { background: linear-gradient(135deg, #16a34a, #4ade80); }

.about-block-body h2 {
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 10px;
}
.about-block-body p {
    color: #475569;
    margin: 0 0 10px;
    line-height: 1.65;
}
.about-block-body p:last-child { margin-bottom: 0; }

.about-list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
}
.about-list li {
    margin-bottom: 6px;
    line-height: 1.55;
}

/* --- Сітка 2 картки поруч (Показники + Захист даних) --- */
.about-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 16px;
}
.about-grid-2 .about-block { margin-bottom: 0; }

/* --- Заголовок розділу всередині --- */
.about-section-title {
    text-align: center;
    font-size: 24px;
    color: #0f172a;
    margin: 48px 0 28px;
    position: relative;
}
.about-section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #0d9488);
    border-radius: 3px;
    margin: 12px auto 0;
}

/* --- Таймлайн «Як це працює» (4 кроки) --- */
.about-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    position: relative;
    margin-bottom: 48px;
}
.about-timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #0d9488 100%);
    z-index: 0;
    opacity: 0.35;
}
.about-step {
    position: relative;
    text-align: center;
    background: transparent;
    z-index: 1;
}
.about-step-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #2563eb;
    color: #2563eb;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-step:hover .about-step-icon {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.about-step-num {
    display: block;
    margin-top: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
}
.about-step h4 {
    margin: 6px 0 6px;
    color: #0f172a;
    font-size: 15px;
}
.about-step p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Stagger для появи елементів */
.about-stats .reveal:nth-child(1) { transition-delay: 0ms; }
.about-stats .reveal:nth-child(2) { transition-delay: 100ms; }
.about-stats .reveal:nth-child(3) { transition-delay: 200ms; }
.about-timeline .reveal:nth-child(1) { transition-delay: 0ms; }
.about-timeline .reveal:nth-child(2) { transition-delay: 120ms; }
.about-timeline .reveal:nth-child(3) { transition-delay: 240ms; }
.about-timeline .reveal:nth-child(4) { transition-delay: 360ms; }

/* --- Адаптив сторінки About --- */
@media (max-width: 820px) {
    .about-stats { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
    .about-grid-2 { grid-template-columns: 1fr; }
    .about-timeline { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .about-timeline::before { display: none; }
}
@media (max-width: 560px) {
    .about-hero { padding: 40px 0 30px; }
    .about-hero h1 { font-size: 24px; }
    .about-hero p { font-size: 14px; }
    .about-block {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px 20px;
        text-align: center;
    }
    .about-block-icon {
        margin: 0 auto;
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
    .about-block-body { text-align: left; }
    .about-stat-value { font-size: 30px; }
    .about-timeline { grid-template-columns: 1fr; }
    .about-section-title { font-size: 20px; margin: 32px 0 22px; }
}

/* ============================================================
   Mobile polish — точкові правки для планшетів і телефонів.
   ============================================================ */

/* ---- Планшет (≤768px) ---- */
@media (max-width: 768px) {
    /* Контейнер: трохи менші бічні поля */
    .container { padding: 0 16px; }

    /* Шапка: компактний padding */
    .nav { padding: 10px 0; }
    .nav-links { gap: 4px; }
    .nav-links a {
        padding: 6px 10px;
        font-size: 14px;
    }
    /* CTA в шапці зменшити на mobile, щоб не йшла у 2 рядки */
    .nav-links .btn-graduate {
        font-size: 13px;
        padding: 7px 12px;
    }

    /* Секції менший вертикальний padding */
    .section { padding: 40px 0; }

    /* Графіки нижчі на mobile */
    .chart-card { padding: 16px; }
    .chart-card canvas { height: 240px !important; }
    .chart-card-wide canvas { height: 280px !important; }

    /* Карти статистики (4 у ряд) — лишаються через auto-fit */
    .stat-card { padding: 18px; }
    .stat-card .value { font-size: 26px; }

    /* Форми: менший padding */
    .form-card { padding: 22px; }

    /* Результат-summary з режиму spec+year */
    .result-summary { padding: 18px; }
    .result-summary-grid strong { font-size: 18px; }

    /* Фільтр-стріп: компактніший */
    .filter-strip { padding: 12px 14px; gap: 10px; }
    .filter-strip-label { font-size: 13px; }

    /* Stats-empty */
    .stats-empty { padding: 28px 16px; }
    .stats-empty-icon { font-size: 30px; }

    /* Картки фічей 2×2 padding */
    .features-grid-2x2 .feature-card { padding: 22px; min-height: 0; }
    .feature-icon { width: 48px; height: 48px; margin-bottom: 12px; }
    .feature-icon svg { width: 26px; height: 26px; }
}

/* ---- Телефон (≤480px) ---- */
@media (max-width: 480px) {
    .container { padding: 0 14px; }

    /* Hero: ще компактніше */
    .hero { padding: 32px 0; }
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 14px; }

    /* CTA-кнопки в hero на повну ширину */
    .btn-cta { width: 100%; justify-content: center; }

    /* Шапка nav: переніс на 2 рядки, але елементи менші */
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 2px;
    }
    .nav-links a {
        padding: 6px 8px;
        font-size: 13px;
    }
    .nav-links .btn-graduate {
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }

    /* Графіки ще нижчі */
    .chart-card canvas { height: 220px !important; }
    .chart-card-wide canvas { height: 240px !important; }

    /* Карти статистики менші */
    .stat-card { padding: 14px; }
    .stat-card .value { font-size: 22px; }
    .stat-card .label { font-size: 12px; }

    /* Форми ще компактніше */
    .form-card { padding: 18px; }
    .form-row label { font-size: 13px; }

    /* Filter-strip: іконка зверху + контент знизу не треба, бо стрічка вже wrap */
    .filter-strip-icon { width: 18px; height: 18px; }

    /* Status hero */
    .status-hero { padding: 20px; }
    .status-hero .badge-large { font-size: 12px; padding: 6px 12px; }

    /* Адмінська бічна панель */
    .admin-content { padding: 16px; }
    .admin-sidebar { padding: 14px 10px; }

    /* Таблиці: менший шрифт + менший padding клітинок,
       щоб менше місця займали і скрол був коротший */
    table.data-table { font-size: 13px; }
    table.data-table th,
    table.data-table td { padding: 8px 10px; }
    table.data-table thead th { font-size: 11px; }

    /* Алерти */
    .alert { padding: 12px 14px; font-size: 13px; }

    /* Результат пошуку */
    .search-result { padding: 12px 14px; font-size: 13px; }

    /* Stats title */
    .stats-title { font-size: 22px; }
    .stats-subtitle { font-size: 14px; }
}

/* ---- Малий телефон (≤360px) ---- */
@media (max-width: 360px) {
    .container { padding: 0 12px; }

    .hero h1 { font-size: 20px; }
    .nav-links a { font-size: 12px; padding: 5px 7px; }

    /* Brand: ще менший SVG щоб не зжирав місце */
    .brand { gap: 8px; padding: 2px 4px; }
    .brand-icon svg { width: 28px; height: 28px; }
    .brand-title { font-size: 14px; }
    .brand-subtitle { font-size: 8px; letter-spacing: 0.06em; }

    .stat-card .value { font-size: 20px; }

    /* Графіки: ще нижчі і завжди 1 в ряд */
    .charts-grid { grid-template-columns: 1fr; }
    .chart-card { padding: 12px; }
    .chart-card canvas { height: 200px !important; }
    .chart-card-wide canvas { height: 220px !important; }
    .chart-card h3 { font-size: 14px; }

    /* Картки статистики 1 у ряд */
    .cards-grid { grid-template-columns: 1fr; }

    /* About hero h1 ще менший */
    .about-hero h1 { font-size: 20px; }
    .about-stat-value { font-size: 26px; }

    /* Заголовки секцій */
    .section h2, .stats-title { font-size: 20px; }

    /* Зменшити hint-тексти у формах щоб займали менше місця */
    .form-row .hint { font-size: 11px; }

    /* Filter-strip компактніший */
    .filter-strip { padding: 10px 12px; }
    .filter-strip input[type="text"],
    .filter-strip select { font-size: 13px; }
}

/* ---------- Картки статистики ---------- */
.stat-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
    display: block;
    margin-bottom: 4px;
}
.stat-card .label {
    color: #64748b;
    font-size: 14px;
}

/* ---------- Форма ---------- */
.form-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.form-row {
    margin-bottom: 16px;
}
.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 14px;
}
.form-row .hint {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row input[type="password"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    font-size: 15px;
    color: #111827;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-row textarea { min-height: 90px; resize: vertical; }

.form-row .checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    color: #374151;
}

/* ---------- Сітка форми (2 колонки на десктопі) ---------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.form-grid.full { grid-template-columns: 1fr; }

@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Бейджі статусів ---------- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    line-height: 1.4;
}
.badge-pending       { background: #fef3c7; color: #92400e; }
.badge-approved      { background: #dcfce7; color: #166534; }
.badge-rejected      { background: #fee2e2; color: #991b1b; }
.badge-clarification { background: #dbeafe; color: #1e40af; }

/* ---------- Повідомлення ---------- */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid transparent;
}
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ---------- Таблиця ---------- */
.table-wrapper {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
table.data-table th,
table.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}
table.data-table thead th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
table.data-table tbody tr:hover { background: #f9fafb; }
table.data-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Фільтри ---------- */
.filters {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 22px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
}
.filters label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
}
.filters select,
.filters input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
}

/* ---------- Графіки ---------- */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.chart-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.chart-card h3 {
    margin: 0 0 14px;
    font-size: 16px;
    color: #111827;
}
.chart-card canvas {
    max-width: 100%;
    height: 280px !important;
}

/* ---------- Адмін-сайдбар ---------- */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 64px);
    gap: 0;
}
.admin-sidebar {
    background: #ffffff;
    border-right: 1px solid #eef2f7;
    padding: 22px 14px;
}
.admin-sidebar h2 {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 8px 12px;
}
.admin-sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    margin-bottom: 4px;
}
.admin-sidebar a:hover { background: #f1f5f9; text-decoration: none; }
.admin-sidebar a.active { background: #e0ecff; color: #1d4ed8; }

.admin-content {
    padding: 30px;
}

@media (max-width: 820px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { border-right: none; border-bottom: 1px solid #eef2f7; }
    .admin-content { padding: 20px; }
}

/* ---------- Footer (зі службовим блоком для верифікатора) ---------- */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #eef2f7;
    padding: 18px 0;
    margin-top: auto;
    color: #6b7280;
    font-size: 14px;
}
.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.site-footer-copy {
    color: #6b7280;
    font-size: 13px;
}
.site-footer-verifier {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.site-footer-verifier-text {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}
.site-footer-btn {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 8px;
}
@media (max-width: 600px) {
    .site-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Дрібнички ---------- */
.text-muted { color: #6b7280; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.flex-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

/* ---------- Адаптив hero ---------- */
@media (max-width: 600px) {
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .section { padding: 36px 0; }
    .section h2 { font-size: 22px; }
}

/* ============================================================
   Сторінка статистики: інтро, смуги фільтрів, картка результату,
   повідомлення «пусто», нижній службовий блок для верифікатора.
   ============================================================ */

.stats-intro {
    margin-bottom: 22px;
}
.stats-title {
    margin: 0 0 8px;
    font-size: 28px;
    color: #0f172a;
}
.stats-subtitle {
    margin: 0;
    color: #475569;
    font-size: 16px;
    max-width: 760px;
}

/* ---------- Блок із трьома смугами фільтрів ---------- */
.filter-board {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 30px;
}

.filter-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: text;
}
.filter-strip:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-strip-icon {
    flex-shrink: 0;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-strip-label {
    flex-shrink: 0;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    min-width: 110px;
}

.filter-strip input[type="text"],
.filter-strip select {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #111827;
    padding: 4px 0;
    font-family: inherit;
}
.filter-strip input[type="text"]:focus,
.filter-strip select:focus {
    outline: none;
}
.filter-strip select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 22px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
}

.filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

@media (max-width: 640px) {
    .filter-strip {
        flex-wrap: wrap;
        padding: 12px 14px;
    }
    .filter-strip-label {
        min-width: 0;
        width: 100%;
    }
}

/* ---------- Повідомлення про результат пошуку ---------- */
.search-result {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
    animation: searchResultIn 0.35s ease;
}
.search-result.is-found {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}
.search-result.is-empty {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}
.search-result-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: currentColor;
}
.search-result-body {
    flex: 1;
}
.search-result-names {
    display: inline;
    color: #0f172a;
    background: #ffffff;
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 4px;
    font-weight: 500;
}
@keyframes searchResultIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Картка результату для режиму spec+year ---------- */
.result-summary {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
    margin-bottom: 24px;
}
.result-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.result-summary-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.result-summary-grid strong {
    font-size: 22px;
    color: #0f172a;
}
.result-summary-label {
    color: #64748b;
    font-size: 13px;
}

/* ---------- Стан «пусто» ---------- */
.stats-empty {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 40px 24px;
    text-align: center;
    margin-bottom: 24px;
}
.stats-empty-icon {
    font-size: 38px;
    margin-bottom: 8px;
}
.stats-empty h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
}

/* ---------- Графік на повну ширину ---------- */
.chart-card-wide {
    grid-column: 1 / -1;
}
.chart-card-wide canvas {
    height: 340px !important;
}

/* ============================================================
   Сторінка статусу заявки + кнопки дій верифікатора
   ============================================================ */

/* ---------- Великий бейдж статусу ---------- */
.status-hero {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
    margin-bottom: 22px;
    text-align: center;
}
.status-hero .badge-large {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}
.status-hero h2 {
    margin: 0 0 8px;
    color: #0f172a;
}
.status-hero p {
    margin: 0 auto;
    color: #475569;
    max-width: 560px;
}

/* ---------- Кнопки дій верифікатора (3 великі помітні) ---------- */
.verifier-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.verifier-action-btn {
    border: none;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.05s, opacity 0.15s;
    font-family: inherit;
}
.verifier-action-btn:active { transform: translateY(1px); }
.verifier-action-btn.is-approve      { background: #16a34a; }
.verifier-action-btn.is-approve:hover { background: #15803d; }
.verifier-action-btn.is-clarify      { background: #f59e0b; }
.verifier-action-btn.is-clarify:hover { background: #d97706; }
.verifier-action-btn.is-reject       { background: #dc2626; }
.verifier-action-btn.is-reject:hover { background: #b91c1c; }

@media (max-width: 680px) {
    .verifier-actions { grid-template-columns: 1fr; }
}
