/* =========================
   TYPOGRAPHY
========================= */

.page-header__title {
    font-size: 1.5rem;
}

a.readmore {
    font-size: 0.9rem;
    padding: 4px 8px;
    line-height: 1.2;
}


/* =========================
   JSN CLEANUP (іконки)
========================= */

[class^="jsn-icon-"]::before,
[class*=" jsn-icon-"]::before {
    display: none !important;
}

[class^="jsn-icon-"] {
    background: none !important;
}


/* =========================
   MOBILE MENU
========================= */

@media (max-width: 768px) {

    .navbar-collapse.show {
        padding: 10px 0;
    }

    .navbar-collapse .navbar-nav,
    .navbar-collapse .mod-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0;
        padding: 0;
    }

    .navbar-collapse li {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .navbar-collapse .navbar-nav a,
    .navbar-collapse .mod-menu a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        padding: 6px 10px;
        font-size: 13px;

        white-space: nowrap;

        border-radius: 6px;
        border: 1px solid rgba(0,0,0,0.15);

        background: rgba(255,255,255,0.6);

        text-decoration: none;
        line-height: 1.2;
    }

    .navbar-collapse .navbar-nav a:hover,
    .navbar-collapse .mod-menu a:hover {
        background: rgba(0,0,0,0.06);
    }

    .navbar-collapse .active a,
    .navbar-collapse a[aria-current="page"] {
        background: rgba(0,0,0,0.08);
        border-color: rgba(0,0,0,0.35);
        font-weight: 500;
    }
}


/* =========================
   CONTACT PHONES
========================= */

.contact-phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.contact-phones a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 12px;
    font-size: 14px;

    color: #fff !important;

    text-decoration: none;

    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.35);

    background: rgba(0,0,0,0.35);

    transition: all 0.2s ease;
}

.contact-phones a:hover {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.6);
}


/* =========================
   FOOTER
========================= */

.site-footer {
    text-align: center;
    padding: 10px 0;
}

.site-footer .footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.site-footer .footer-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;
    font-size: 13px;

    color: #038c67 !important;

    text-decoration: none;

    border: 1px solid rgba(3, 140, 103, 0.35);
    border-radius: 6px;

    background: rgba(3, 140, 103, 0.06);
}

.site-footer .footer-nav a:hover {
    background: rgba(3, 140, 103, 0.15);
}

.site-footer .footer-copy {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}



/* =========================
   CATALOG GRID (5-4-3-2 FIXED)
========================= */

.catalog-grid{
    display: grid !important;

    grid-template-columns: repeat(5, 1fr) !important;

    gap: 16px !important;
    width: 100% !important;
    align-items: stretch;
}

/* wrapper */
.catalog-grid > div{
    display: flex;
    min-width: 0 !important;
}

/* card */
.catalog-grid > div > a{
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;

    text-align: center !important;

    padding: 14px !important;
    border: 1px solid #e5e5e5 !important;
    background: #fff !important;

    text-decoration: none !important;
    color: #000 !important;

    border-radius: 5px !important;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;

    transition: all 0.2s ease !important;
}

/* hover */
.catalog-grid > div > a:hover{
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* image */
.catalog-grid img{
    width: 100%;
    max-width: 160px;
    display: block;
    margin: 0 auto 10px;
}

/* title */
.catalog-title{
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;

    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* =========================
   RESPONSIVE BREAKPOINTS
========================= */

/* 💻 до ноутбуків */
@media (max-width: 1200px){
    .catalog-grid{
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* 📟 планшети */
@media (max-width: 992px){
    .catalog-grid{
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 📱 ВСЯ МОБІЛКА = 2 КОЛОНКИ */
@media (max-width: 768px){
    .catalog-grid{
        grid-template-columns: repeat(2, 1fr) !important;
    }
}