
a.buy-new-premium {
        color: #ffffff;
        background: #00d604;
        border: 1px solid #00d604;
        font-size: 14px;
        padding: 5px 15px;        
        display: inline-block;
        border-radius: 4px;
        text-shadow: 1px 1px rgb(0 0 0 / 40%);
}

/*.wrapper {
    max-width: 1440px;
    margin: 0 auto;
}*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    background: linear-gradient(90deg, #0979c4, rgba(9, 121, 196, .85));
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.header__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

/* Первая строка */
.header__top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

/* Вторая строка */
.header__bottom-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.logo img {
    max-width: 250px;
}

.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #f8d341;
}

.header__actions {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header__action-link {
    margin-right: 20px;
    font-size: 20px;
    color: #fff;
}

.btn {
    background-color: #f8d341;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #f8d341;
    transform: scale(1.05);
}

.header__socials,
.header__apps {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header__socials a,
.header__apps a {
    font-size: 20px;
    color: #fff;
    transition: all 0.3s ease;
}

.header__socials a:hover {
    color: #f8d341;
}

.header__apps a {
    color: #f8d341;
}

.header__apps a:hover {
    color: #fff;
    transform: scale(1.1);
}

.header__apps-label,
.header__socials-label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

/* Мобильные элементы скрыты на десктопе */
.header__mobile-user,
.header__mobile-premium,
.header__mobile-icons {
    display: none;
}

/* Десктопные элементы */
.header__actions-top {
    display: flex;
    align-items: center;
}

.header__actions-top a {
    font-size: 13px;
}

.header__actions-top .premium-info {
    color: #fd0;
}

.download-link-text a {
    font-size: 15px;
}

.header__tablet-right {
    display: flex;
    align-items: center;
    gap: 15px;

}

@media (min-width: 768px) {

    .header__bottom-row .premium-info  {
        display: none;
    }      
}
@media (min-width: 992px) {
    .header__tablet-right {
        min-width: 100%;
        justify-content: end;
    }    
}

.header__desktop-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__desktop-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

.header__mobile-user {
    font-size: 22px;
    color: #fff;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.header__mobile-user:hover {
    color: #f8d341;
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #f8d341;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 992px) {
    /* Скрываем десктопное меню, показываем бургер */
    .menu {
        display: none;
        position: absolute;
        top: 90px;
        right: 15px;
        width: 200px;
        background-color: #fff;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        border-radius: 8px;
        z-index: 9999;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .menu.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
    }

    .menu ul {
        flex-direction: column;
    }

    .menu li {
        margin: 10px 0;
    }

    .menu a {
        color: #333;
    }

    .burger-btn {
        display: block;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    /* Планшеты: специальная компоновка */
    .header {
        padding: 15px 0;
    }
    
    /* Скрываем мобильные элементы второй строки */
    .header__mobile-premium,
    .header__mobile-icons {
        display: none;
    }
    
    /* Показываем мобильную иконку входа для планшетов */
    .header__mobile-user {
        display: block;
    }
    
    /* Настройка первой строки для планшетов */
    .header__top-row {
        justify-content: space-between;
    }
    
    .header__top-row .logo {
        flex: 0 0 auto;
    }
    
    /* Группируем элементы справа */
    .header__tablet-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    /* Показываем кнопку Premium из десктопной версии */
    .header__actions-top {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .header__actions-top .header__action-link {
        display: none; /* Скрываем десктопную иконку входа */
    }
    
    /* Показываем десктопные иконки во второй строке */
    .header__desktop-icons {
        display: flex;
    }
    
    .logo img {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    .header .container {
        box-sizing: border-box;    
    }    
    /* Скрываем десктопные элементы */
    .header__actions-top,
    .header__desktop-icons {
        display: none;
    }
    
    /* Перестраиваем группу правых элементов для мобильных */
    .header__tablet-right {
        gap: 15px;
        margin-right: 10px;
    }
    
    /* Показываем мобильные элементы */
    .header__mobile-user,
    .header__mobile-premium,
    .header__mobile-icons {
        display: flex;
    }
    
    /* Первая строка: логотип, иконка входа, бургер */
    .header__top-row {
        justify-content: space-between;
    }
    
    .header__top-row .logo {
        flex: 1;
    }

    .logo img {
        max-width: 160px;
    }
    
    /* Вторая строка: Premium кнопка + иконки */
    .header__bottom-row {
        justify-content: space-between;
    }
    .header__bottom-row .premium-info {
        font-size: 12px;
        color: #fff;
    }
    .header__actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(90deg, #0979c4, rgba(9, 121, 196, .95));
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.25);
        z-index: 9998;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .header__actions.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .header__action-link {
        display: none;
    }

    /* Мобильная кнопка Premium */
    .header__mobile-premium {
        display: block;
    }

    .header__mobile-premium .btn {
        padding: 8px 16px;
        font-size: 12px;
        font-weight: 600;
        margin-right: 5px;
    }

    /* Мобильные иконки */
    .header__mobile-icons {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Соцсети */
    .header__mobile-socials {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header__mobile-socials a {
        color: #fff;
        font-size: 18px;
        transition: color 0.3s ease;
    }

    .header__mobile-socials a:hover {
        color: #f8d341;
    }

    /* Разделитель */
    .header__mobile-divider {
        width: 1px;
        height: 20px;
        background-color: rgba(255, 255, 255, 0.3);
        margin: 0 4px;
    }

    /* Приложения */
    .header__mobile-apps {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header__mobile-apps-label,
    .header__mobile-socials-label {
        color: #fff;
        font-size: 12px;
        font-weight: 500;
        opacity: 0.9;
        display: none !important;
    }

    .header__mobile-apps a {
        color: #f8d341;
        font-size: 18px;
        transition: all 0.3s ease;
    }

    .header__mobile-apps a:hover {
        color: #fff;
        transform: scale(1.1);
    }

    .burger-btn {
        z-index: 10000;
        position: relative;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }
    
    .logo img {
        max-width: 130px;
    }
    
    .burger-btn span {
        width: 22px;
        height: 2px;
    }

    .header__mobile-premium .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    .header__mobile-premium a {
        font-size: 11px;
    }
    .header__mobile-apps-label,
    .header__mobile-socials-label {
        font-size: 11px;
        display: none;
    }

    .header__mobile-socials a {
        font-size: 16px;
    }

    .header__mobile-apps a {
        font-size: 16px;
        color: #f8d341;
    }

    .header__mobile-icons {
        gap: 8px;
        padding-left: 5px;
    }

    .header__mobile-socials {
        gap: 8px;
    }

    .header__mobile-apps {
        gap: 6px;
    }
}
