* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Утилитарные классы */
.flex { display: flex; }
.aic { align-items: center; }
.jcc { justify-content: center; }
.fxs { flex-shrink: 0; }
.fxg { flex-grow: 1; }
.center { text-align: center; }
.ttu { text-transform: uppercase; }
.no-under { text-decoration: none; }
.fw500 { font-weight: 500; }
.fz18 { font-size: 18px; }
.text-fff { color: #fff; }
.text-white { color: #fff; }
.bg-blue { background: #3498db; }
.bg-blue-049 { background: rgba(52, 152, 219, 0.9); }
.bg-orang { background: linear-gradient(45deg, #ff6b35, #f7931e); }
.round-20 { border-radius: 20px; }
.border-5 { border-radius: 5px; }
.lh140 { line-height: 1.4; }
.clr { clear: both; }

/* Отступы - адаптивные */
.mr-20 { margin-right: min(20px, 3vw); }
.ml-10 { margin-left: min(10px, 1.5vw); }
.mb-30 { margin-bottom: min(30px, 4vw); }
.mt-40 { margin-top: min(40px, 5vw); }
.pt-20 { padding-top: min(20px, 3vw); }
.pb-10 { padding-bottom: min(10px, 1.5vw); }
.pb-20 { padding-bottom: min(20px, 3vw); }
.pl-20 { padding-left: min(20px, 3vw); }
.pr-20 { padding-right: min(20px, 3vw); }
.pt-10 { padding-top: min(8px, 1vw); }
.h-42 { height: max(42px, 6vw); }

/* Скрытие элементов */
.hide { display: none; }
.hide_550 { display: block; }
.hide_992 { display: block; }
.show_992 { display: none; }

/* Основная структура */
#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page_inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Контейнеры - адаптивные */
.wrap, .wrap_2 {
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    padding: 0 max(20px, 2vw);
}

/* Хедер - улучшенная адаптивность */
header {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: max(10px, 1.5vw) 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.head {
    gap: min(20px, 2vw);
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: clamp(30px, 5vw, 40px);
    width: auto;
}

/* Навигация - улучшенная адаптивность */
.menu-main {
    flex: 1;
    max-width: none;
}

.menu-main ul {
    list-style: none;
    padding: min(10px, 1.5vw);
    gap: min(5px, 0.5vw);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-wrap: nowrap;
    justify-content: center;
}

.menu-main li {
    margin: 0;
    flex: 0 0 auto;
    min-width: fit-content;
}

.menu-main a {
    padding: clamp(8px, 1.5vw, 12px) clamp(10px, 2vw, 20px);
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: clamp(14px, 2vw, 18px);
    text-align: center;
}

.menu-main a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.menu-main svg {
    width: clamp(16px, 2.5vw, 20px);
    height: clamp(16px, 2.5vw, 20px);
    fill: currentColor;
}

/* Кнопки - улучшенная адаптивность */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 30px);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: clamp(14px, 2.2vw, 16px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    min-width: fit-content;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.head-top-left {
    gap: clamp(8px, 1.5vw, 15px);
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
    min-width: fit-content;
    order: 3;
}

.head-top-left a {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: clamp(8px, 1.2vw, 12px) clamp(12px, 2vw, 20px);
    font-size: clamp(12px, 1.8vw, 16px);
    height: clamp(35px, 5vw, 42px);
    min-width: clamp(80px, 12vw, 120px);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: clamp(15px, 2.5vw, 20px);
    flex-shrink: 0;
}

.head-top-left a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Основной контент - улучшенная адаптивность */
.main {
    flex: 1;
    padding: clamp(20px, 4vw, 40px) 0;
}

.content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: clamp(15px, 2.5vw, 20px);
    padding: clamp(20px, 4vw, 40px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-width: 100%;
    overflow-x: auto;
}

/* Типография - адаптивная */
h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: clamp(20px, 3vw, 30px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    word-wrap: break-word;
}

h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #34495e;
    margin: clamp(20px, 3vw, 30px) 0 clamp(15px, 2vw, 20px);
    padding-bottom: min(10px, 1.5vw);
    border-bottom: 3px solid #3498db;
    line-height: 1.3;
    word-wrap: break-word;
}

p {
    margin-bottom: clamp(10px, 2vw, 15px);
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.7;
    word-wrap: break-word;
    hyphens: auto;
}

strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Списки - адаптивные */
ul, ol {
    margin: clamp(15px, 2.5vw, 20px) 0;
    padding-left: clamp(20px, 3vw, 30px);
}

li {
    margin-bottom: min(10px, 1.5vw);
    line-height: 1.6;
    font-size: clamp(14px, 2vw, 16px);
    word-wrap: break-word;
}

/* Изображения - полностью адаптивные */
.image {
    text-align: center;
    margin: clamp(20px, 3vw, 30px) 0;
    width: 100%;
}

.image img {
    max-width: 100%;
    height: auto;
    border-radius: clamp(10px, 2vw, 15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.image img:hover {
    transform: scale(1.02);
}

/* Таблицы - полностью адаптивные */
table {
    width: auto;
    border-collapse: collapse;
    /* margin: clamp(20px, 3vw, 30px) 0; */
    margin: 20px auto 20px auto;
    background: #fff;
    border-radius: clamp(8px, 1.5vw, 10px);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    white-space: nowrap;
}

th, td {
    padding: clamp(8px, 1.5vw, 15px);
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
    font-size: clamp(12px, 1.8vw, 14px);
    word-wrap: break-word;
}

th {
    background: #3498db;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

tr:hover {
    background: #f8f9fa;
}

/* Футер */
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: clamp(15px, 2.5vw, 20px) 0;
    margin-top: auto;
}

.copy {
    text-align: center;
    color: #7f8c8d;
    font-size: clamp(12px, 1.8vw, 14px);
    word-wrap: break-word;
}

/* Мобильное меню */
.open-menu {
    cursor: pointer;
    padding: min(10px, 1.5vw);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.open-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Выделение кнопки AVIATOR - адаптивное */
.link-aviator {
    position: relative;
    background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
    border-radius: clamp(15px, 3vw, 25px) !important;
    padding: clamp(8px, 1.5vw, 12px) clamp(15px, 2.5vw, 25px) !important;
    margin: 0 min(5px, 0.5vw) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4) !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
}

.link-aviator:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6) !important;
    background: linear-gradient(135deg, #ff8c42, #ffa726) !important;
}

.link-aviator span {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 700 !important;
    letter-spacing: clamp(0.5px, 0.1vw, 1px);
}

/* Выделение кнопки БОНУСЫ - адаптивное */
.link-bonus {
    position: relative;
    background: linear-gradient(135deg, #4ecdc4, #44a08d) !important;
    border-radius: clamp(15px, 3vw, 25px) !important;
    padding: clamp(8px, 1.5vw, 12px) clamp(15px, 2.5vw, 25px) !important;
    margin: 0 min(5px, 0.5vw) !important;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4) !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
}

.link-bonus:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.6) !important;
    background: linear-gradient(135deg, #5fd3cc, #52b7a8) !important;
}

.link-bonus span {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 700 !important;
    letter-spacing: clamp(0.5px, 0.1vw, 1px);
}

/* Всплывающее окно - полностью адаптивное */
.promo-popup {
    position: fixed;
    bottom: clamp(10px, 2vw, 20px);
    right: clamp(10px, 2vw, 20px);
    width: min(320px, calc(100vw - 40px));
    max-width: 90vw;
    background: white;
    border-radius: clamp(10px, 2vw, 15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.promo-popup.show {
    transform: translateX(0);
    opacity: 1;
}

.popup-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    padding: clamp(12px, 2vw, 15px) clamp(15px, 2.5vw, 20px);
    position: relative;
}

.popup-header h3 {
    font-size: clamp(14px, 2.2vw, 16px);
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.3;
}

.popup-header p {
    font-size: clamp(11px, 1.8vw, 13px);
    opacity: 0.9;
    margin-bottom: 0;
}

.close-btn {
    position: absolute;
    top: clamp(8px, 1.2vw, 10px);
    right: clamp(12px, 2vw, 15px);
    background: none;
    border: none;
    color: white;
    font-size: clamp(16px, 2.5vw, 20px);
    cursor: pointer;
    width: clamp(20px, 3vw, 25px);
    height: clamp(20px, 3vw, 25px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.popup-content {
    padding: clamp(15px, 2.5vw, 20px);
    text-align: center;
}

.promo-code {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: clamp(12px, 2vw, 15px);
    border-radius: clamp(8px, 1.5vw, 10px);
    margin: clamp(12px, 2vw, 15px) 0;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.promo-code:hover {
    transform: scale(1.02);
}

.promo-code .code {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: clamp(1px, 0.2vw, 2px);
    word-break: break-all;
}

.promo-code .description {
    font-size: clamp(10px, 1.6vw, 12px);
    opacity: 0.9;
}

.copy-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: clamp(10px, 1.8vw, 12px) clamp(20px, 3vw, 30px);
    border-radius: clamp(15px, 3vw, 25px);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: min(10px, 1.5vw);
    font-size: clamp(12px, 2vw, 14px);
    width: 100%;
    max-width: 250px;
}

.copy-btn:hover {
    background: #ff8c42;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.bonus-info {
    font-size: clamp(11px, 1.8vw, 13px);
    color: #666;
    margin-top: clamp(12px, 2vw, 15px);
    line-height: 1.4;
}

.bonus-info strong {
    color: #ff6b35;
}

.copied-indicator {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: clamp(10px, 1.6vw, 12px);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.copied-indicator.show {
    opacity: 1;
}


@media (max-width: 1450px) {
    .hide_992 {
        display: none;
    }
    
    .show_992 {
        display: block;
    }

    .head-top-left a.hide_992 { /* Специфично скрываем кнопку "Вход" */
        display: none;
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .wrap, .wrap_2 {
        max-width: 95vw;
        padding: 0 3vw;
    }
    
    .menu-main ul {
        justify-content: center;
    }

    .head-top-left a {
        font-size: 14px;
        padding: 10px 16px;
        min-width: 100px;
    }
}

@media (max-width: 1250px) {
    .head-top-left a.hide_550 { /* Специфично скрываем кнопку "Регистрация" */
        display: none;
    }
    
    .head-top-left {
        gap: 4px;
        margin-right: 8px;
    }
}

@media (max-width: 1050px) {
    .head-top-left a.hide_550 { /* Специфично скрываем кнопку "Регистрация" */
        display: inline-block;
    }
    
    .head-top-left {
        gap: 4px;
        margin-right: 8px;
    }
}

@media (max-width: 1045px) {
    .hide_992 {
        display: none;
    }
    
    .show_992 {
        display: block;
    }

    .menu-main {
        display: none;
    }

    .head {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    .logo {
        flex: 0 0 auto;
        margin-right: auto;
    }

    .head-top-left {
        flex: 0 0 auto;
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }

    .open-menu {
        flex: 0 0 auto;
        order: 3;
    }

    .head-top-left a {
        font-size: 13px;
        padding: 8px 12px;
        min-width: 85px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .wrap, .wrap_2 {
        padding: 0 4vw;
    }

    .content {
        margin: 3vw 0;
        border-radius: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    table {
        font-size: 12px;
        min-width: 500px;
    }

    th, td {
        padding: 8px 6px;
        min-width: 100px;
    }

    .promo-popup {
        width: calc(100vw - 20px);
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .head-top-left {
        gap: 6px;
    }

    .head-top-left a {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 70px;
        height: 32px;
    }
}

@media (max-width: 660px) {
    table {
        display: none;
    }
}

@media (max-width: 550px) {
    .hide_550 {
        display: none;
    }

    .head {
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 0 10px;
    }

    .logo {
        flex: 0 0 auto;
    }

    .head-top-left {
        flex: 0 0 auto;
        gap: 4px;
        margin-right: 8px;
    }

    .head-top-left a {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 60px;
        height: 28px;
        border-radius: 14px;
    }

    .open-menu {
        flex: 0 0 auto;
        padding: 5px;
    }

    .content {
        padding: 15px;
    }

    table {
        min-width: 400px;
        font-size: 11px;
    }

    th, td {
        padding: 6px 4px;
        min-width: 80px;
    }

    .promo-popup {
        width: calc(100vw - 10px);
        left: 5px;
        right: 5px;
        bottom: 5px;
    }
}

@media (max-width: 375px) {
    .wrap, .wrap_2 {
        padding: 0 10px;
    }

    .content {
        padding: 10px;
        border-radius: 10px;
    }

    h1 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 1.1rem;
        margin: 15px 0 10px;
    }

    p, li {
        font-size: 13px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    table {
        min-width: 300px;
        font-size: 10px;
    }

    th, td {
        padding: 4px 3px;
        min-width: 60px;
    }

    .logo img {
        height: 25px;
    }

    .menu-main a {
        font-size: 12px;
        padding: 6px 8px;
    }

    .head {
        padding: 0 5px;
    }

    .head-top-left {
        gap: 3px;
        margin-right: 5px;
    }

    .head-top-left a {
        padding: 4px 6px;
        font-size: 10px;
        min-width: 50px;
        height: 24px;
        border-radius: 12px;
    }

    .open-menu {
        padding: 3px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    animation: fadeIn 0.8s ease-out;
}

/* Улучшения для интерактивности */
.btn, .head-top-left a, .menu-main a {
    position: relative;
    overflow: hidden;
}

.btn::before, .head-top-left a::before, .menu-main a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before, .head-top-left a:hover::before, .menu-main a:hover::before {
    width: 300px;
    height: 300px;
}

/* Градиентные акценты */
.bg-orang {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Пульсирующие эффекты */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.8);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }
}

@keyframes pulseBonus {
    0% {
        box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(78, 205, 196, 0.8);
    }
    100% {
        box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
    }
}

.link-aviator.pulse {
    animation: pulse 2s infinite;
}

.link-bonus.pulse {
    animation: pulseBonus 2s infinite;
}

/* Горизонтальная прокрутка для больших таблиц */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Улучшения для очень маленьких экранов */
@media (max-width: 320px) {
    .wrap, .wrap_2 {
        padding: 0 8px;
    }

    .content {
        padding: 8px;
        margin: 10px 0;
    }

    h1 {
        font-size: 1.2rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 1rem;
        margin: 12px 0 8px;
    }

    p, li {
        font-size: 12px;
        line-height: 1.5;
    }

    .btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .promo-popup {
        width: calc(100vw - 8px);
        left: 4px;
        right: 4px;
        bottom: 4px;
    }

    .popup-content {
        padding: 10px;
    }

    .promo-code .code {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .head {
        padding: 0 3px;
        gap: 3px;
    }

    .logo img {
        height: 20px;
    }

    .head-top-left {
        gap: 2px;
        margin-right: 3px;
    }

    .head-top-left a {
        padding: 3px 5px;
        font-size: 9px;
        min-width: 45px;
        height: 20px;
        border-radius: 10px;
    }

    .open-menu {
        padding: 2px;
    }

    .open-menu svg {
        width: 16px;
        height: 12px;
    }
}