.topbar-home {
    background: #f7f7f8;
    border-bottom: 1px solid #e8e8ea;
}

.topbar-home-inner {
    min-height: 155px;
    gap: 16px;
}

.topbar-home .container {
    padding-top: 6px;
    padding-bottom: 6px;
}

.brand {
    text-decoration: none;
    color: #13377a;
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
    font-size: 2rem;
}

.brand-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    background: linear-gradient(140deg, #072968, #c31924);
}

.brand-text {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    color: #143b86;
}

.brand-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 10px !important;
    line-height: 1.25;
    font-weight: 500;
    color: #2d4f90;
    max-width: 480px;
    white-space: normal;
}

.brand-logo {
    display: block;
    height: clamp(110px, 15vh, 145px);
    width: auto;
    max-width: min(90%, 980px);
    object-fit: contain;
}

.btn-home-cta {
    background: linear-gradient(140deg, #da2b39, #bf1f2f);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(191, 31, 47, 0.22);
}

.hero-home {
    background: #efeff2;
    padding: 34px 0;
    border-bottom: 1px solid #e4e4e8;
}

.hero-home h1 {
    margin: 0 0 18px;
    text-align: center;
    font-size: clamp(1.6rem, 3.4vw, 2.7rem);
    font-weight: 600;
    color: #1d2230;
}

.search-home {
    max-width: 560px;
    margin: 0;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dfdfe4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}

.search-home input {
    border: 0;
    border-radius: 0;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.search-home .btn {
    border-radius: 0;
    min-width: 96px;
    padding: 9px 12px;
    box-shadow: none;
}

.categories-wrap {
    margin-top: 28px;
    margin-bottom: 24px;
    border: 1px solid #e2e3e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
    padding: 14px;
}

.category-item {
    text-decoration: none;
    color: #2a3140;
    border-radius: 8px;
    text-align: center;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.category-item span {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #dce2f0;
    color: #13377a;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f2f5fc;
}

.category-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #dce2f0;
    object-fit: cover;
    background: #f2f5fc;
}

.category-item strong {
    font-size: 0.92rem;
    font-weight: 600;
}

.category-item:hover {
    background: #f7f9ff;
}

.list-wrap {
    padding-bottom: 36px;
}

.list-empty-note {
    margin: 8px 0 14px;
    color: #60697f;
    font-size: 0.98rem;
}

.business-row {
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 16px;
    padding: 14px;
    margin-bottom: 12px;
}

.business-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-logo {
    width: 88px;
    height: 88px;
    border-radius: 6px;
    border: 1px solid #eaedf2;
    background: #fff;
}

.business-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a8295;
    font-size: 0.8rem;
}

.business-main h3 {
    margin: 0;
    font-size: 1.15rem;
}

.business-main .meta {
    margin: 4px 0 0;
    color: #2f3d58;
}

.business-main .description {
    margin-top: 6px;
    margin-bottom: 10px;
    color: #60697f;
}

.business-contacts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid #eceef3;
    padding-top: 10px;
}

.contact-item {
    text-decoration: none;
    color: #1f2e4a;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid #e4e9f3;
    border-radius: 999px;
    background: #f9fbff;
    max-width: 100%;
}

.contact-item span {
    overflow-wrap: anywhere;
}

.contact-item-address {
    width: 100%;
    border-radius: 10px;
}

.pagination {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination-link {
    text-decoration: none;
    color: #1f2e4a;
    border: 1px solid #d5deed;
    border-radius: 8px;
    background: #fff;
    padding: 7px 11px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pagination-link.is-active {
    background: #1246a4;
    border-color: #1246a4;
    color: #fff;
}

.contact-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 16px;
}

.home-footer {
    background: linear-gradient(130deg, #87addf, #6d98d1);
    color: #00008B;
    padding: 24px 0;
}

.home-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.home-footer-col {
    min-width: 260px;
}

.home-footer-brand {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.home-footer-brand-name {
    font-size: 1.2rem;
    color: #00008B;
}

.footer-logo {
    width: clamp(90px, 13vw, 160px);
    height: auto;
    object-fit: contain;
}

.home-footer-text {
    margin: 6px 0 0;
    color: #00008B;
}

.home-footer-text a {
    color: #00008B;
    text-decoration: none;
    font-weight: 600;
}

.home-footer-text a:hover {
    text-decoration: underline;
}

.home-footer-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #00008B;
}

.home-footer-socials {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.home-footer-social-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.home-footer-social-link:hover {
    background: rgba(255, 255, 255, 0.32);
}

@media (max-width: 760px) {
    .topbar-home .container {
        flex-direction: column;
        gap: 10px;
        padding: 7px 0;
    }

    .topbar-home-inner {
        min-height: 0;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .brand-logo {
        display: block;
        margin: 0 auto;
        height: clamp(104px, 18vh, 150px);
        width: auto;
        max-width: min(100%, 560px);
    }

    .business-row {
        grid-template-columns: 1fr;
    }

    .brand-text {
        font-size: clamp(1.1rem, 5.6vw, 1.35rem);
    }

    .brand-subtitle {
        font-size: 8px !important;
        line-height: 1.2;
        max-width: 100%;
    }

    .business-logo-wrap {
        justify-content: flex-start;
    }
}
