.tabs-three {
    padding: 60px 0 0;
    font-family: 'ProximaNova';
}

.tabs-three__main-title {
    font-size: 36px;
    font-weight: 400;
    color: #383838;
    margin: 0 0 32px;
    line-height: 1.2;
}

/* =====================
   Навигация
===================== */

.tabs-three__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    list-style: none;
    margin: 0 0 48px;
    padding: 0;
    gap: 0;
    justify-content: space-between;
}

.tabs-three__nav-item {
    list-style: none;
    display: flex;
    flex: 1 0 auto;
}

.tabs-three__nav-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 32px;
    font-family: 'ProximaNova';
    font-size: 18px;
    letter-spacing: 0.01em;
    cursor: pointer;
    background: #fff;
    border: 1px solid #00b0f0;
    color: #048ec9;
    text-decoration: none;
    transition:
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
    white-space: nowrap;
    position: relative;
    margin-right: 2px;
}

.tabs-three__nav-label {
    font-weight: 700 !important;
}

.tabs-three__nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.tabs-three__nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tabs-three__nav-btn:not(.tabs-three__nav-btn--active):hover {
    background: #e4f8ff;
    border-color: #00b0f0;
    /* color: #383838; */
}

.tabs-three__nav-btn--active {
    background: #00b0f0;
    color: #383838;
    border-color: #00b0f0;
    z-index: 1;
    color: #fff;
}

/* =====================
   Панели
===================== */

.tabs-three__panel {
    display: none;
    animation: tabsThreeFadeInUp 0.3s ease both;
    padding-bottom: 40px;
}

.tabs-three__panel--active {
    display: block;
}

@keyframes tabsThreeFadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tabs-three__intro-image {
    width: 100%;
    max-width: 480px;
    margin: 0 0 24px;
    border-radius: 4px;
    overflow: hidden;
}

.tabs-three__intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tabs-three__intro {
    font-size: 16px;
    line-height: 1.7;
    color: #383838;
    margin: 0 0 32px;
}

.tabs-three__intro a {
    color: #048ec9;
    text-decoration: none;
}

.tabs-three__intro a:hover {
    text-decoration: underline;
}

/* =====================
   Сетка карточек: 4 в ряд
===================== */

.tabs-three__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
}

.tabs-three__card {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.tabs-three__card-img-wrap {
    width: 100%;
    aspect-ratio: 578 / 330;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f0ede7;
}

.tabs-three__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tabs-three__card-title {
    font-size: 20px;
    font-weight: 400;
    color: #383838;
    margin: 0 0 10px;
    line-height: 1.3;
}

.tabs-three__card-text {
    font-size: 16px;
    line-height: 1.6;
    color: #383838;
    margin: 0;
}

.tabs-three__card-text a {
    color: #048ec9;
    text-decoration: none;
}
.tabs-three__card-text h5{
    font-size:1em;
}
.tabs-three__card-text a:hover {
    text-decoration: underline;
}

/* =====================
   Планшет — до 1024px
===================== */

@media (max-width: 1024px) {
    .tabs-three {
        padding: 40px 0 0;
    }

    .tabs-three__nav {
        margin-bottom: 36px;
    }

    .tabs-three__nav-btn {
        height: 48px;
        padding: 0 22px;
        font-size: 14px;
    }

    .tabs-three__main-title {
        font-size: 28px;
    }

    .tabs-three__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================
   Мобильный — до 768px
===================== */

@media (max-width: 768px) {
    .tabs-three {
        padding: 28px 0 0;
    }

    .tabs-three__nav {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 28px;
    }

    .tabs-three__nav-item {
        flex: 1 1 auto;
    }

    .tabs-three__nav-btn {
        width: 100%;
        height: 44px;
        padding: 0 16px;
        font-size: 14px;
        margin-right: 0;
        white-space: normal;
        text-align: center;
    }

    .tabs-three__main-title {
        font-size: 24px;
    }

    .tabs-three__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* =====================
   Мобильный — до 480px
===================== */

@media (max-width: 480px) {
    .tabs-three__nav {
        flex-direction: column;
        gap: 4px;
    }

    .tabs-three__nav-item {
        flex: none;
        width: 100%;
    }

    .tabs-three__nav-btn {
        height: 46px;
        font-size: 14px;
        justify-content: flex-start;
        padding: 0 18px;
    }
}