/* =============================================
   tabs-two — Offices / Regional / Sales
   BEM: .tabs-two__*
   Палитра и типографика совпадают с tabs-one
============================================= */

.tabs-two {
    padding: 60px 0 0;
    font-family: 'Proxima Nova Rg', sans-serif;
}

/* =====================
   Навигация
===================== */

.tabs-two__nav {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0 0 48px;
    padding: 0;
    gap: 0;
}

.tabs-two__nav-item {
    list-style: none;
}

.tabs-two__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 32px;
    font-family: 'Proxima Nova Rg', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    background: #fff;
    border: 1px solid #fdda77;
    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-two__nav-btn:not(.tabs-two__nav-btn--active):hover {
    background: #faf7ec;
    border-color: #fdda77;
    color: #383838;
}

.tabs-two__nav-btn--active {
    background: #fdc600;
    color: #383838;
    border-color: #fdc600;
    z-index: 1;
}

/* =====================
   Панели
===================== */

.tabs-two__panel {
    display: none;
    animation: tabsTwoFadeInUp 0.3s ease both;
    padding-bottom: 40px;
}

.tabs-two__panel--active {
    display: block;
}

@keyframes tabsTwoFadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   Карточка офиса
===================== */

.tabs-two__card {
    padding: 32px 0;
    border-top: 2px solid #fdc600;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Шапка карточки: инфо + мини-карта --- */

.tabs-two__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tabs-two__card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tabs-two__card-country {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #383838;
}

.tabs-two__card-name {
    font-size: 36px;
    font-weight: 300;
    color: #383838;
    margin: 0;
    line-height: 1.1;
}

/* Мини-карта */
.tabs-two__card-map-preview {
    flex-shrink: 0;
    width: 134px;
    height: 134px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #e8e5de;
    background: #f0ede7;
}

.tabs-two__card-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Тело карточки: детали слева, кнопка справа --- */

.tabs-two__card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

/* --- Список деталей --- */

.tabs-two__card-details {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 auto;
}

.tabs-two__card-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: #383838;
    line-height: 1.6;
}

.tabs-two__card-detail-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: #b0aca3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabs-two__card-detail-icon svg {
    width: 18px;
    height: 18px;
}

/* Ссылка внутри детали */
.tabs-two__card-link {
    color: #048ec9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.tabs-two__card-link:hover {
    color: #383838;
    text-decoration: underline;
}

/* --- Кнопка «View on a map» --- */

.tabs-two__card-map-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 24px;
    border: 1px solid #2196c4;
    color: #048ec9;
    font-family: 'Proxima Nova Rg', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}

.tabs-two__card-map-btn:hover {
    background: #048ec9;
    color: #fff;
    border-color: #048ec9;
}

/* =====================
   Планшет — до 1024px
===================== */

@media (max-width: 1024px) {
    .tabs-two {
        padding: 40px 0 0;
    }

    .tabs-two__nav {
        margin-bottom: 36px;
    }

    .tabs-two__nav-btn {
        height: 48px;
        padding: 0 22px;
        font-size: 14px;
    }

    .tabs-two__card-name {
        font-size: 28px;
    }

    .tabs-two__card-map-preview {
        width: 80px;
        height: 80px;
    }

    .tabs-two__card-map-btn {
        padding: 0 18px;
        font-size: 13px;
    }
}

/* =====================
   Мобильный — до 768px
===================== */

@media (max-width: 768px) {
    .tabs-two {
        padding: 28px 0 0;
    }

    .tabs-two__nav {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 28px;
    }

    .tabs-two__nav-item {
        flex: 1 1 auto;
    }

    .tabs-two__nav-btn {
        width: 100%;
        height: 44px;
        padding: 0 16px;
        font-size: 14px;
        margin-right: 0;
        white-space: normal;
        text-align: center;
    }

    .tabs-two__card {
        padding: 24px 0;
        gap: 20px;
    }

    /* На мобиле кнопка уходит под детали */
    .tabs-two__card-body {
        flex-direction: column;
        gap: 20px;
    }

    .tabs-two__card-map-btn {
        width: 100%;
        justify-content: center;
    }

    .tabs-two__card-name {
        font-size: 26px;
    }

    .tabs-two__card-map-preview {
        width: 124px;
        height: 124px;
    }

    /* Разделитель между карточками */
    .tabs-two__panel .row > [class*="col-"]:not(:last-child) .tabs-two__card {
        border-bottom: 1px solid #dcdcdc;
        padding-bottom: 28px;
        margin-bottom: 8px;
    }
}

/* =====================
   Мобильный — до 480px
===================== */

@media (max-width: 480px) {
    .tabs-two__nav {
        flex-direction: column;
        gap: 4px;
    }

    .tabs-two__nav-item {
        flex: none;
        width: 100%;
    }

    .tabs-two__nav-btn {
        height: 46px;
        font-size: 14px;
        justify-content: flex-start;
        padding: 0 18px;
    }

    .tabs-two__card-name {
        font-size: 22px;
    }
}

.tabs-two__card-info a {
    color: #048ec9;
    text-decoration: none;
}