/* ===================== Головна сторінка ===================== */

.home-page .top-bar {
    align-items: center;
}

/* Шапка з логотипом компанії */
.home-hero {
    padding: 18px 22px;
    background: linear-gradient(120deg, #ffffff 0%, #f6f3ee 55%, #eef1f2 100%);
    border: 1px solid #e7e1d6;
    border-radius: 16px;
    margin-bottom: 22px;
    padding-left: 22px;
}

.home-hero-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.home-company-logo {
    width: 84px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(119, 132, 134, 0.25));
}

@media (max-width: 700px) {
    .home-company-logo {
        width: 56px;
    }
}

.home-date {
    margin-top: 2px;
    font-size: 14px;
    color: #64748b;
}

.home-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 24px;
}

.home-block {
    margin-bottom: 28px;
}

.home-h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}

.home-h2 i {
    font-size: 24px;
    color: #2563eb;
}

/* Плитки швидких команд */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.quick-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    border-color: var(--qc);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.quick-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--qc);
    background: color-mix(in srgb, var(--qc) 12%, #ffffff);
}

.quick-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.quick-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.quick-sub {
    font-size: 12px;
    color: #64748b;
}

.quick-count {
    margin-left: auto;
    min-width: 30px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.quick-count.tone-amber {
    background: #fef3c7;
    color: #92400e;
}

.quick-count.tone-red {
    background: #fee2e2;
    color: #b91c1c;
}

/* Розділи-посилання (як меню) */
.home-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.home-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-section .home-h2 {
    margin-bottom: 6px;
}

.home-section a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 3px 0;
}

.home-section a:hover {
    text-decoration: underline;
}

.hs-blue i {
    color: #2a78d6;
}
.hs-green i {
    color: #1baf7a;
}
.hs-cyan i {
    color: #0891b2;
}
.hs-violet i {
    color: #6250d6;
}
