html, body {
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.navbar .container-fluid {
    flex-wrap: wrap;
    min-width: 0;
    padding-left: 15px;
    padding-right: 15px;
}

#mainMenu {
    max-width: 100%;
    overflow: hidden;
    flex-wrap: wrap;
}

#mainMenu .nav-item {
    margin-right: 12px; /* або gap через flex */
}

.auth-buttons {
    gap: 8px !important;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth !important;
}

/* Фіксація ширини для Safari */
.auth-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
    white-space: nowrap;
}

/* Заборонити переноси в середині кнопок */
.auth-buttons .btn {
    white-space: nowrap;
}

/* Стилі для адаптивної поведінки */
@media screen and (min-width: 1150px) {
    .navbar-nav {
        flex-wrap: nowrap;
    }

    .auth-buttons {
        margin-left: auto;
    }
}

/* Блок перемикача */
.role-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Кнопки */
.role-btn {
    font-size: 18px;
    padding: 6px;
    border-radius: 8px;
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
}

/* Активна кнопка — мʼяке світіння + легкий градієнт */
.role-btn.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3),
    0 8px 15px rgba(0, 0, 0, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
    color: #111;
    backdrop-filter: blur(6px);
}

/* Кольори ролей */
.role-btn.active.rocket {
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.25),
    0 4px 12px rgba(255, 106, 0, 0.15);
}

.role-btn.active.money {
    box-shadow: 0 0 0 2px rgba(42, 170, 255, 0.25),
    0 4px 12px rgba(42, 170, 255, 0.15);
}

/* Тумблер — залишаємо як є, якщо не використовується можна видалити */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #bbb;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3ca3ff;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.mt-6 {
    margin-top: 4rem;
}

.mb-6 {
    margin-bottom: 4rem;
}

.text-nowrap {
    white-space: nowrap;
}

.list-style-02 li {
    gap: 12px;
    font-size: 16px;
}

.list-style-02 span {
    flex: 1;
}

/* Заголовок */
.tabs-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 10px;
}

.tabs-subtitle {
    text-align: center;
    color: #7a7a7a;
    font-size: 17px;
    margin-bottom: 40px;
}

/* Стиль вкладок таби */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nav-tabs .nav-link {
    border: none;
    background: transparent;
    font-weight: 500;
    color: #6e6e73;
    font-size: 17px;
    padding: 10px 24px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #000;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(to right, #3ea6ff, #6ecbff);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(62, 166, 255, 0.3);
    border-radius: 0;
    padding: 10px 28px;
}

.tab-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.custom-tabs {
    display: flex;
    background: #ffffff;
    border-radius: 9999px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    list-style: none;
    margin: 0;
    gap: 6px;
}

.custom-tabs .tab {
    padding: 10px 24px;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.custom-tabs .tab:hover {
    background: #f3f4f6;
}

.custom-tabs .tab.active {
    background: #4f46e5; /* або градієнт */
    color: white;
    font-weight: 600;
}

/* Таби новий  */

.tab-section {
    max-width: 100%;
    margin: 0 auto 60px;
}

.tab-header {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.tab-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    list-style: none;
    box-sizing: border-box;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
    user-select: none;
    white-space: nowrap;
}

.tab-item:hover {
    background: #f3f4f6;
}

.tab-item.active {
    background: linear-gradient(to right, #4f46e5, #7f56d9);
    color: white;
    font-weight: 700;
}

.tab-content-wrapper {
    max-width: 100%;
}

.tab-content {
    display: none;
    animation: fade 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tab-bg {
    background-color: #fff; /* Світлий фон без полосок */
    padding: 5px;
    border-radius: 20px;
}

section.background-position-center-top:has(.tab-style-04) {
    padding-bottom: 0 !important;
}

section.background-position-center-top.pt-4.md-pt-6.sm-pt-40px {
    padding-bottom: 0px !important;
    margin-bottom: 0 !important;
}

@media (max-width: 1600px) {
    section.background-position-center-top.pt-4.md-pt-6.sm-pt-40px {
        padding-bottom: 0px !important;
    }
}

.mb-8, .mb-4 {
    margin-bottom: 20px !important; /* або 0, якщо не потрібно */
}

section.bg-gradient-top-very-light-gray.pb-15 {
    padding-bottom: 80px !important; /* або 0, якщо відступ взагалі не потрібен */
}

/* Глобальний стиль кнопок */
.auth-buttons .btn .text {
    display: inline;
    transition: opacity 0.3s ease;
}

/* При ширині <1350px — ховаємо текст */
@media (max-width: 1350px) {
    .auth-buttons .btn .text {
        display: none;
    }
}

/* Зменшуємо падінги кнопок при меншій ширині */
@media (max-width: 1350px) {
    .auth-buttons .btn {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.auth-buttons .btn .text {
    display: inline;
    transition: opacity 0.3s ease;
}

@media (max-width: 1350px) {
    .auth-buttons .btn .text {
        display: none;
    }

    .auth-buttons .btn {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Основні стилі кнопок */
.auth-buttons .register-btn {
    background: linear-gradient(90deg, #dc3a25 0%, #8453e3 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(132, 83, 227, 0.4);
    border: none;
}

.auth-buttons .register-btn i {
    font-size: 16px;
}

/* ВХІД */
.auth-buttons .login-btn {
    background: transparent;
    color: #8453e3;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid #8453e3;
    transition: background 0.3s, color 0.3s;
}

.auth-buttons .login-btn:hover {
    background: #8453e3;
    color: white;
}

.auth-buttons .login-btn i {
    font-size: 16px;
}

/* Адаптація — ховаємо текст при <1350px */
@media (max-width: 1350px) {
    .auth-buttons .btn .text {
        display: none;
    }

    .auth-buttons .btn {
        padding: 10px 12px;
    }
}

/* Головний блок кнопок */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Кнопка "РЕГИСТРАЦИЯ" */
.auth-buttons .register-btn {
    background: linear-gradient(90deg, #6c3ef6 0%, #9a3ef6 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    box-shadow: 0px 4px 14px rgba(106, 50, 255, 0.3);
}

.auth-buttons .register-btn i {
    font-size: 15px;
}

/* Кнопка "ВОЙТИ" */
.auth-buttons .login-btn {
    background: transparent;
    color: #6c3ef6;
    padding: 12px 20px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #6c3ef6;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.auth-buttons .login-btn:hover {
    background: #6c3ef6;
    color: white;
}

.auth-buttons .login-btn i {
    font-size: 15px;
}

/* При зменшенні ширини — ховаємо текст, залишаємо лише іконки */
@media (max-width: 1350px) {
    .auth-buttons .btn .text {
        display: none;
    }

    .auth-buttons .btn {
        padding: 10px 12px;
    }
}

<style>
 .why-choose-macos {
     background: transparent;
     padding: 80px 20px 20px;
     font-family: 'Inter', sans-serif;
 }

.why-choose-macos .header {
    text-align: center;
    margin-bottom: 40px;
}

.why-choose-macos h2 {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.why-choose-macos p {
    font-size: 17px;
    color: #6b7280;
}

/* Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

/* Card */
.feature-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.1);
}

/* Float animation */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Icon */
.icon-circle {
    width: 110px;
    height: 110px;
    margin: 0 auto 24px;
    background: linear-gradient(145deg, #eef4ff, #d2e1ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05), 0 4px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.icon-circle img {
    width: 72px;
    height: 72px;
}

.icon-circle.glow::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,123,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    z-index: -1;
}

/* Titles */
.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.feature-card {
    /* ... інші стилі залишаються ... */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

.platform-activity {
    padding: 40px 0; /* Було наприклад 100px або більше */
}

.platform-activity {
    padding-top: 40px;
    padding-bottom: 40px;
}

.navbar .btn {
    max-width: 100%;
    white-space: nowrap;
}

.blog-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.blog-image-wrapper {
    overflow: hidden;
    height: 200px;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    line-height: 1.4;
}

.card-text {
    font-size: 15px;
    color: #6b7280;
}

@media (min-width: 1200px) and (max-width: 1400px) {
    /* Зменшуємо шрифт і відступи в меню */
    #mainMenu .nav-link {
        font-size: 16px;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Трохи менші кнопки */
    .auth-buttons .btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    /* При потребі — трохи менший розмір іконки */
    .auth-buttons .btn i {
        font-size: 15px;
    }

    /* Вирівнюємо по центру */
    .auth-buttons {
        flex-wrap: nowrap;
    }
}

@media (max-width: 1350px) {
    /* Менше відступів у меню */
    .navbar-nav > li {
        margin-left: 5px !important;
        margin-right: 5px !important;
    }

    /* Менший шрифт меню */
    .navbar-nav > li > a {
        font-size: 14px !important;
    }

    /* Трохи зменшити шрифт кнопок */
    .auth-buttons .btn .text {
        font-size: 14px !important;
    }

    /* Менше padding у кнопках */
    .auth-buttons .btn {
        padding: 6px 12px !important;
    }

    /* Трохи стискаємо весь header */
    .navbar .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Уникнути переносу кнопок */
    .auth-buttons {
        flex-wrap: nowrap;
    }

    .auth-buttons .btn {
        white-space: nowrap;
    }
}
