:root {
    --bg-color: #1B1612;
    --primary-dark: #120E0B;
    --gold: #D4AF37;
    --gold-bright: #F9E498;
    --text-white: #FFFFFF;
    --text-gray: #A09A96;
    --card-bg: rgba(27, 22, 18, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
    --success: #4CAF50;
}

* { margin: 0; padding: 0; box-sizing: border-box; overflow-wrap: break-word; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    text-align: center;
    hyphens: none;
}

.top-lang-switch {
    position: fixed; top: 20px; right: 20px; z-index: 1200;
    background: rgba(18, 14, 11, 0.88); padding: 8px 12px; border-radius: 16px;
    backdrop-filter: blur(15px); border: 1.5px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    transition: all 0.3s ease;
}

.lang-trigger {
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; user-select: none;
    padding: 2px 4px;
}
.lang-trigger .lang-flag {
    width: 18px; height: 12px; border-radius: 2px; object-fit: cover;
    border: 0.5px solid rgba(255,255,255,0.4);
}
.lang-trigger #currentLangText {
    color: #fff; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.5px;
}
.lang-trigger #langArrowIcon {
    color: var(--gold); font-size: 18px; transition: transform 0.25s ease;
}
.lang-trigger:hover #currentLangText {
    color: var(--gold-bright);
}

.lang-dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: rgba(22, 18, 14, 0.96);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 14px; padding: 6px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.85);
    display: flex; flex-direction: column; gap: 4px;
    min-width: 140px; backdrop-filter: blur(20px);
    z-index: 1300;
}

.lang-dropdown-menu a {
    text-decoration: none; color: #fff; font-size: 0.82rem; font-weight: 700;
    padding: 7px 10px; display: flex; align-items: center; gap: 8px;
    border-radius: 8px; transition: all 0.2s;
}
.lang-dropdown-menu a .lang-flag {
    width: 18px; height: 12px; border-radius: 2px; object-fit: cover;
    border: 0.5px solid rgba(255,255,255,0.3);
}
.lang-dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.15); color: var(--gold-bright);
}
.lang-dropdown-menu a.active {
    background: rgba(212, 175, 55, 0.25); color: var(--gold-bright); font-weight: 900;
}

.auth-user-block {
    padding: 4px 0 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    text-align: center;
}
#user-nick {
    color: var(--gold);
    font-weight: 800;
    font-size: 0.72rem;
    cursor: pointer;
    text-transform: uppercase;
}
#user-nick:hover { text-decoration: underline; }

#login-btn {
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    text-align: center;
}

[dir="rtl"] .top-lang-switch { right: auto; left: 20px; }
[dir="rtl"] .lang-dropdown-menu { right: auto; left: 0; }

section, .legal-footer { display: flex; flex-direction: column; align-items: center; width: 100%; }

.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(27, 22, 18, 0.3), rgba(27, 22, 18, 0.85)), url('../img/welcome_bg.jpg');
    background-size: cover; background-position: center;
    justify-content: center; padding: 40px;
}
        .logo-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
/* Смена стороны для языков с письмом справа налево (RTL) */
[dir="rtl"] .logo-wrapper {
    left: auto;
    right: 20px;
}
.logo-svg { width: 100%; height: 100%; display: block; }
.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    fill: url(#goldGradient);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
    letter-spacing: -1px;
    text-transform: uppercase;
}
.scales-pattern { opacity: 0.15; }
.hero h1 {
    font-size: clamp(2.2rem, 8vw, 4.5rem); font-weight: 800; margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--gold-bright));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    padding-top: 60px; /* Добавили отступ для логотипа */
}
@media (max-width: 768px) {
    .hero h1 { padding-top: 80px; font-size: 2rem !important; }
    .hero { padding-top: 40px; }
}

.hero p { font-size: 1.2rem; max-width: 800px; color: var(--text-gray); margin-bottom: 40px; }

.download-area {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center;
}
.btn-download {
    background: linear-gradient(135deg, var(--gold), #B8860B);
    color: #000;
    padding: 18px 50px; border-radius: 12px; text-decoration: none;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    transition: 0.3s; box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border: 1px solid var(--gold-bright);
}
.btn-download:hover { transform: translateY(-3px); filter: brightness(1.2); box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5); }

.qr-branded {
    width: 140px;
    height: 140px;
    background: #fff;
    padding: 10px;
    border-radius: 24px;
    border: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.qr-branded:hover { transform: scale(1.05); }

.qr-branded canvas, .qr-branded img {
    max-width: 100%;
    max-height: 100%;
}

.online-stats {
    background: var(--primary-dark); padding: 40px 60px; width: 100%; max-width: 100%; margin: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1); border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    display: flex; justify-content: space-around; align-items: center; gap: 40px; flex-wrap: wrap;
    direction: ltr !important;
}
.stat-number { unicode-bidi: bidi-override; direction: ltr; display: inline-block; }
.stat-item h4 { color: var(--gold); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; text-shadow: 0 0 20px rgba(212,175,55,0.3); }
.stat-item p { color: var(--text-gray); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; }

.section { padding: 100px 20px; max-width: 1200px; margin: 0 auto; width: 100%; }
.section-title { font-size: 2.8rem; margin-bottom: 20px; color: #fff; font-weight: 800; }
.section-sub { color: var(--text-gray); max-width: 800px; margin-bottom: 60px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; width: 100%; margin-bottom: 30px; }

/* Карточки в стиле маркеров приложения */
.card {
    background: var(--card-bg);
    padding: 45px 30px;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(15px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.card i.material-icons {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 25px;
    background: var(--primary-dark);
    width: 75px; height: 75px;
    line-height: 75px;
    border-radius: 20px;
    border: 2px solid var(--gold);
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.card h3 { color: var(--gold-bright); margin-bottom: 15px; font-size: 1.5rem; font-weight: 700; }
.card p { font-size: 1rem; color: var(--text-gray); line-height: 1.5; }

.compare-container {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .compare-container.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .compare-container.cols-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
    .compare-container.cols-3 {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1150px;
    }
    .compare-container.cols-5 {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1550px; /* Увеличили ширину для 5 колонок, чтобы текст лежал свободно */
    }
}
.compare-box { background: rgba(255,255,255,0.02); padding: 40px 30px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(10px); display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.compare-box:hover { transform: translateY(-5px); }

.compare-box.free { border-color: rgba(255,255,255,0.1); }
.compare-box.pro { border-color: var(--gold); background: rgba(212, 175, 55, 0.04); box-shadow: 0 0 30px rgba(212, 175, 55, 0.05); }
.compare-box.store { border-color: #4CAF50; background: rgba(76, 175, 80, 0.04); box-shadow: 0 0 30px rgba(76, 175, 80, 0.05); }
.compare-box.base { border-color: #00E5FF; background: rgba(0, 229, 255, 0.04); box-shadow: 0 0 30px rgba(0, 229, 255, 0.05); }
.compare-box.charter { border-color: #29B6F6; background: rgba(41, 182, 246, 0.04); box-shadow: 0 0 30px rgba(41, 182, 246, 0.05); }
.compare-box.blogger { border-color: #FF1744; background: rgba(255, 23, 68, 0.04); box-shadow: 0 0 30px rgba(255, 23, 68, 0.05); }
.compare-box.sponsor { border-color: #FFD700; background: rgba(255, 215, 0, 0.04); box-shadow: 0 0 30px rgba(255, 215, 0, 0.05); }
.compare-box.clubs { border-color: #9D4EDD; background: rgba(157, 78, 221, 0.04); box-shadow: 0 0 30px rgba(157, 78, 221, 0.05); }

.compare-box h3 { margin-bottom: 25px; font-size: 1.4rem; font-weight: 800; text-align: center; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }
.compare-box.free h3 { color: #aaa; }
.compare-box.pro h3 { color: var(--gold-bright); }
.compare-box.store h3 { color: #81C784; }
.compare-box.base h3 { color: #00E5FF; }
.compare-box.charter h3 { color: #29B6F6; }
.compare-box.blogger h3 { color: #FF1744; }
.compare-box.sponsor h3 { color: #FFD700; }
.compare-box.clubs h3 { color: #C77DFF; }

.compare-box ul { list-style: none; padding: 0; flex-grow: 1; }
.compare-box li { margin-bottom: 12px; color: var(--text-gray); display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 0.88rem; line-height: 1.4; }
[dir="rtl"] .compare-box li { text-align: right; }

.compare-box li::before { content: "✓"; color: var(--success); font-weight: bold; flex-shrink: 0; font-size: 1rem; }
.compare-box.pro li::before { content: "★"; color: var(--gold); }
.compare-box.store li::before { content: "◆"; color: #81C784; }
.compare-box.base li::before { content: "⌂"; color: #00E5FF; font-size: 1.1rem; line-height: 1; }
.compare-box.charter li::before { content: "⚓"; color: #29B6F6; font-size: 1.1rem; line-height: 1; }
.compare-box.blogger li::before { content: "▶"; color: #FF1744; font-size: 0.8rem; margin-top: 2px; }
.compare-box.sponsor li::before { content: "🏆"; color: #FFD700; font-size: 1rem; }
.compare-box.clubs li::before { content: "👥"; color: #C77DFF; font-size: 1rem; }

/* Таб-переключатель сравнения версий */
.compare-tabs-switcher { display: flex; background: rgba(255,255,255,0.03); padding: 5px; border-radius: 40px; border: 1px solid rgba(255,255,255,0.05); margin-top: 15px; }
.compare-tab-btn { background: none; border: none; color: gray; padding: 12px 24px; border-radius: 35px; font-weight: 800; font-size: 0.9rem; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 0.5px; }
.compare-tab-btn:hover { color: #fff; background: rgba(255,255,255,0.02); }
.compare-tab-btn.active { background: var(--gold); color: #000; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }

.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 2000; padding: 20px; overflow-y: auto; backdrop-filter: blur(10px);
}
.modal-content {
    background: var(--bg-color); color: var(--text-gray); max-width: 900px; margin: 40px auto;
    padding: 50px; border-radius: 30px; text-align: left; position: relative;
    border: 1px solid var(--gold); box-shadow: 0 0 60px rgba(212, 175, 55, 0.2);
}
[dir="rtl"] .modal-content { text-align: right; }
.close-modal { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; cursor: pointer; color: var(--gold); transition: 0.3s; }
[dir="rtl"] .close-modal { right: auto; left: 30px; }
.close-modal:hover { color: #fff; transform: rotate(90deg); }
.modal-content h1 { color: #fff; border-bottom: 2px solid var(--gold); padding-bottom: 10px; margin-bottom: 25px; font-size: 2rem; }
.modal-content h2 { color: var(--gold); margin-top: 35px; margin-bottom: 15px; font-size: 1.5rem; }

/* Form Styling */
.feedback-form { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.feedback-form input, .feedback-form textarea {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    padding: 15px; border-radius: 12px; color: #fff; font-family: inherit; font-size: 1rem;
    transition: 0.3s;
}
.feedback-form input:focus, .feedback-form textarea:focus { border-color: var(--gold); outline: none; background: rgba(255,255,255,0.06); }
.feedback-form button {
    background: var(--gold); color: #000; border: none;
    padding: 18px; border-radius: 12px; font-weight: 800; cursor: pointer; transition: 0.3s;
    text-transform: uppercase; letter-spacing: 1px;
}
.feedback-form button:hover { filter: brightness(1.2); transform: scale(1.02); }

/* Auth Styling */
.auth-tabs { display: flex; gap: 10px; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.auth-tabs button {
    background: none; border: none; color: var(--text-gray); cursor: pointer;
    font-weight: 800; font-size: 0.8rem; padding: 5px 15px; transition: 0.3s;
}
.auth-tabs button.active { color: var(--gold); border-bottom: 2px solid var(--gold); }

.auth-oauth-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-oauth {
    width: 100% !important;
    max-width: 100% !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: transform 0.15s ease, filter 0.15s ease !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.btn-oauth span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.btn-oauth:active {
    transform: scale(0.97);
}

.btn-oauth.btn-google {
    background: #FFFFFF !important;
    color: #202124 !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
}
.btn-oauth.btn-google img { width: 18px; height: 18px; flex-shrink: 0; }

.btn-oauth.btn-facebook {
    background: #1877F2 !important;
    color: #FFFFFF !important;
}
.btn-oauth.btn-facebook img { width: 18px; height: 18px; flex-shrink: 0; }

.btn-oauth.btn-yandex {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}
.btn-oauth.btn-yandex .yandex-icon-badge {
    background: #FC3F1D;
    color: #FFFFFF;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 11px;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex-shrink: 0;
}

.btn-oauth.btn-huawei {
    background: #C7000B !important;
    color: #FFFFFF !important;
}
.btn-oauth.btn-huawei svg,
.btn-oauth.btn-huawei img { width: 18px; height: 18px; fill: #FFFFFF; flex-shrink: 0; }

.btn-oauth.btn-samsung {
    background: #1428A0 !important;
    color: #FFFFFF !important;
}
.btn-oauth.btn-samsung svg { width: 18px; height: 18px; fill: #FFFFFF; flex-shrink: 0; }

.btn-oauth.btn-apple {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}
.btn-oauth.btn-apple img { width: 18px; height: 18px; filter: invert(1); flex-shrink: 0; }

@media (max-width: 400px) {
    .auth-oauth-grid {
        grid-template-columns: 1fr;
    }
}

.divider-text { margin: 10px 0; color: var(--text-gray); font-size: 0.7rem; font-weight: 800; }

/* Состояние "Закрыто" (Locked) */
.locked {
    opacity: 0.4 !important;
    filter: grayscale(1);
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.side-btn.locked i { color: #555 !important; }

/* Анимация появления никнейма */
@keyframes fadeInNick { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.auth-user-block { animation: fadeInNick 0.5s ease; }

/* Showcase Gallery */
.gallery-container { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
    width: 100%;
}
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.gallery-item {
    text-align: center;
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: 0.3s;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
}

.gallery-item:hover { transform: translateY(-10px); border-color: var(--gold); background: rgba(212, 175, 55, 0.05); }

/* Контейнер для фото с фиксированной высотой */
.gallery-item .img-container {
    width: 100%;
    height: 450px;
    background: rgba(0,0,0,0.4);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Показываем скриншот целиком без обрезки */
}

.gallery-item h4 {
    color: var(--gold-bright);
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 800;
    min-height: 2.2rem; /* Чтобы заголовки в две строки не сбивали текст ниже */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

/* Social Media Section */
.social-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--primary-dark));
    width: 100%;
    overflow: hidden;
}
.social-section .section-title {
    font-size: clamp(1.5rem, 6vw, 2.8rem);
    line-height: 1.2;
    padding: 0 10px;
    word-wrap: break-word;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.btn-fb, .btn-tg, .btn-yt {
    padding: 15px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}
.btn-fb { background: #1877F2; box-shadow: 0 10px 25px rgba(24, 119, 242, 0.3); }
.btn-tg { background: #26A5E4; box-shadow: 0 10px 25px rgba(38, 165, 228, 0.3); }
.btn-yt { background: #FF0000; box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3); }

.btn-fb:hover, .btn-tg:hover, .btn-yt:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}
.btn-fb:hover { box-shadow: 0 15px 35px rgba(24, 119, 242, 0.5); }
.btn-tg:hover { box-shadow: 0 15px 35px rgba(38, 165, 228, 0.5); }
.btn-yt:hover { box-shadow: 0 15px 35px rgba(255, 0, 0, 0.5); }

.yt-row {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

footer { padding: 80px 20px; border-top: 1px solid rgba(212, 175, 55, 0.1); background: var(--primary-dark); }
.footer-links { margin-bottom: 30px; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.footer-link { color: var(--gold); text-decoration: none; font-weight: 600; cursor: pointer; border-bottom: 1px dashed; transition: 0.3s; }
.footer-link:hover { color: #fff; border-color: #fff; }
.copyright { color: rgba(255,255,255,0.3); font-size: 0.9rem; margin-top: 20px; }

/* --- ГЛАВНЫЕ КНОПКИ НАВИГАЦИИ (ВМЕСТО БОКОВЫХ) --- */
.hero-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    width: 100%;
    flex-wrap: wrap;
}

.hero-nav-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    color: #fff;
    padding: 12px 18px;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.82rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.hero-nav-btn i { font-size: 20px; color: var(--gold); }

.hero-nav-btn:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.2);
}

.custom-flag-marker {
    background: transparent !important;
    border: none !important;
}
.custom-flag-marker > div {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.custom-flag-marker:hover > div {
    transform: translate(-50%, -50%) scale(1.15) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
}

/* Спец-стили для золотой и зеленой кнопок */
.hero-nav-btn.gold-btn { border-color: rgba(212, 175, 55, 0.5); }
.hero-nav-btn.gold-btn i { color: #FFD700; }

.hero-nav-btn.green-btn { border-color: rgba(76, 175, 80, 0.3); }
.hero-nav-btn.green-btn i { color: #4CAF50; }

.hero-nav-btn.blue-btn { border-color: rgba(0, 229, 255, 0.3); }
.hero-nav-btn.blue-btn i { color: #00E5FF; }

@media (max-width: 768px) {
    .hero-nav-buttons { gap: 12px; margin-top: 40px; }
    .hero-nav-btn {
        width: 90%;
        padding: 12px 20px;
        font-size: 0.8rem;
    }
}


/* Gold Edition Card */
.champion-card.gold-edition {
    border: 2px solid var(--gold) !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(27, 22, 18, 0.9)) !important;
}

/* Floating Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 780px;
    background: rgba(15, 23, 42, 0.96);
    border: 1.5px solid var(--gold);
    border-radius: 16px;
    padding: 14px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 18px rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease-in-out;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    line-height: 1.4;
}

.cookie-btn {
    background: linear-gradient(135deg, #d4af37 0%, #aa8417 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 9px 22px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.cookie-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.6);
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 75, 43, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    margin: 0 auto 15px auto;
    border: 1px solid rgba(255, 75, 43, 0.3);
    width: fit-content;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4b2b;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4b2b;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.battle-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #ff4b2b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hall of Fame - Accordion & V2 Cards */
.year-accordion { width: 100%; margin-bottom: 25px; }

.year-header {
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    justify-content: center; /* Центрируем заголовок */
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.year-header h2 {
    margin: 0;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.year-header .toggle-icon {
    position: absolute;
    right: 25px; /* Иконка всегда справа */
    color: var(--gold);
    font-size: 2rem;
    transition: 0.4s;
}
[dir="rtl"] .year-header .toggle-icon { right: auto; left: 25px; }

.year-header.active .toggle-icon { transform: rotate(180deg); }

.year-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out, opacity 0.4s;
    opacity: 0;
}

.year-body.open {
    max-height: 4000px;
    opacity: 1;
    padding: 30px 0;
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Enhanced Champion Card */
.champ-card-v2 {
    background: linear-gradient(145deg, rgba(20, 16, 12, 0.98), rgba(40, 32, 25, 0.95));
    border: 2px solid var(--gold);
    border-radius: 28px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.battle-status {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 75, 43, 0.12);
    padding: 8px 15px;
    border-radius: 20px;
    margin: 0 auto 15px auto;
    border: 1px solid rgba(255, 75, 43, 0.4);
}

.league-badge {
    display: block;
    width: fit-content;
    padding: 5px 18px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto 20px auto;
}
.badge-fresh { background: var(--gold); color: #000; }
.badge-marine { background: #0077be; color: #fff; }

.card-media {
    width: 100%;
    height: 220px; /* Фиксируем высоту медиа-блока */
    position: relative;
    margin-bottom: 25px;
    border-radius: 20px;
    overflow: visible; /* Чтобы аватар мог выходить за границы */
}

.trophy-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: #000;
}

.avatar-container {
    position: absolute;
    bottom: -15px;
    right: 15px;
    width: 80px;
    height: 80px;
    z-index: 10;
}
[dir="rtl"] .avatar-container { right: auto; left: 15px; }

.avatar-main {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background: var(--primary-dark);
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.country-flag {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}
[dir="rtl"] .country-flag { right: auto; left: 0; }

.champ-details { width: 100%; }
.champ-details h3 { font-size: 1.5rem; margin: 0 0 5px 0; color: #fff; }
.fish-name { color: var(--gold); font-weight: 700; margin-bottom: 15px; display: block; font-size: 1rem; }

.stats-row {
    background: rgba(255,255,255,0.04);
    padding: 10px 15px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stat-val { color: var(--gold-bright); font-weight: 800; font-size: 1.15rem; }
.stat-date { color: var(--text-gray); font-size: 0.8rem; }

/* Hall of Fame Styles */
.hall-of-fame-content { max-width: 1000px; margin: 0 auto; }
.timeline-year {
    position: relative;
    padding-left: 40px;
    margin-bottom: 50px;
    border-left: 2px solid var(--gold);
    text-align: left;
}
[dir="rtl"] .timeline-year {
    padding-left: 0; padding-right: 40px;
    border-left: none; border-right: 2px solid var(--gold);
    text-align: right;
}
.timeline-year::before {
    content: '';
    position: absolute;
    left: -11px; top: 0;
    width: 20px; height: 20px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--gold);
}
[dir="rtl"] .timeline-year::before { left: auto; right: -11px; }

.year-label { font-size: 2.5rem; color: #fff; font-weight: 800; margin-bottom: 30px; display: block; }
.champions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.champion-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

/* Защита юридической информации от копирования и выделения */
#legalModal {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Стили для спонсоров в Зале Славы */
.hall-sponsors-container {
    margin-bottom: 50px;
    width: 100%;
    text-align: center;
}

.sponsors-carousel-web {
    display: flex;
    overflow: visible;
    position: relative;
    min-height: 140px;
    justify-content: center;
    align-items: center;
}

.web-sponsor-card {
    background: linear-gradient(145deg, #1e1b18, #120e0b);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.5s;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    position: absolute;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    width: 95%;
    max-width: 500px;
}

.web-sponsor-card.super-edition {
    border: 2px solid #00FFFF;
}
.web-sponsor-card.super-edition.active {
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.45), inset 0 0 15px rgba(0, 255, 255, 0.1);
}

.web-sponsor-card.gold-edition {
    border: 2px solid var(--gold);
}
.web-sponsor-card.gold-edition.active {
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.25);
}

.web-sponsor-card.silver-edition {
    border: 2px solid #C0C0C0;
}
.web-sponsor-card.silver-edition.active {
    box-shadow: 0 0 40px rgba(192, 192, 192, 0.3);
}

.web-sponsor-card.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
    pointer-events: auto;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.25);
}

.sponsor-badge {
    position: absolute;
    top: -14px; /* Ровно на рамке */
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    padding: 4px 20px;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 6px;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    z-index: 100; /* ГАРАНТИРОВАННО ПОВЕРХ ГРАНИЦЫ */
    white-space: nowrap;
}

.sponsor-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.sponsor-logo {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.sponsor-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    min-width: 0;
}

.sponsor-info h3 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.1;
    word-wrap: break-word;
}

.sponsor-info p {
    color: var(--gold);
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}



.hof-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.3;
    margin: 40px 0;
    width: 100%;
}


.champion-card:hover { transform: scale(1.02); background: rgba(212, 175, 55, 0.05); }
.champion-card.marine { border-color: #0077be; }
.champion-card.marine .league-tag { background: #0077be; }

.league-tag {
    position: absolute; top: 20px; right: -35px;
    transform: rotate(45deg);
    background: var(--gold); color: #000;
    padding: 5px 40px; font-weight: 900; font-size: 0.7rem; text-transform: uppercase;
}
[dir="rtl"] .league-tag { right: auto; left: -35px; transform: rotate(-45deg); }

.champ-info { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.champ-avatar { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.champ-meta h3 { color: #fff; font-size: 1.4rem; margin: 0; }
.champ-meta p { color: var(--gold); font-size: 0.9rem; margin: 0; font-weight: 600; }

.trophy-details {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.trophy-name { color: var(--text-gray); font-size: 0.9rem; }
.trophy-weight { color: var(--gold-bright); font-weight: 800; font-size: 1.1rem; }

/* Awards / Награждение Styles */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.award-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 10px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Спец-класс для Баннера (Растянутая карточка) */
.award-item.banner {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.15), rgba(27, 22, 18, 0.95));
    border: 2px solid var(--gold);
    flex-direction: row;
    padding: 25px;
    gap: 30px;
    align-items: center;
    min-height: 220px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.award-item.banner .photo-wrapper {
    width: 250px;
    height: 180px;
    flex-shrink: 0;
}

.award-item.banner .award-info {
    text-align: left;
    padding: 0;
}

.award-item.banner .award-info p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.award-item.banner .sponsor-badge-web {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.photo-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 12px;
}

.award-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.award-item iframe {
    width: 100%;
    height: 200px;
    border-radius: 12px;
}

.award-info {
    padding: 15px 5px 5px 5px;
    text-align: center;
}

.award-info p {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .awards-grid { grid-template-columns: 1fr; }
    .award-item img, .award-item iframe { height: 250px; }

    /* Адаптивность баннера */
    .award-item.banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    .award-item.banner .photo-wrapper {
        width: 100%;
        height: 180px;
    }
    .award-item.banner .award-info {
        text-align: center;
        margin-top: 15px;
    }
    .award-item.banner .award-info p {
        font-size: 1rem;
    }
}


[dir="rtl"] .side-tab {
    left: auto;
    right: 0;
    border-radius: 15px 0 0 15px;
    border-left: 1px solid var(--gold-bright);
    border-right: none;
}
[dir="rtl"] .side-tab:hover { padding-right: 20px; padding-left: 12px; }

/* Showcase Modal Specifics */
.showcase-content {
    max-width: 1400px;
    width: 95%;
    background: rgba(18, 14, 11, 0.98);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--gold-bright);
}
.scroll-top:hover { transform: scale(1.1) translateY(-5px); filter: brightness(1.2); }
.scroll-top i { font-size: 30px; font-weight: bold; }
[dir="rtl"] .scroll-top { right: auto; left: 30px; }

/* --- ТУРНИРНАЯ ТАБЛИЦА (LEADERBOARD) --- */
#leaderboard-container {
    margin-top: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.leaderboard-tabs button {
    background: rgba(255,255,255,0.05);
    border: 1.5px solid var(--gold);
    color: var(--gold);
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
}

.leaderboard-tabs button.active {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Шапка таблицы */
.leaderboard-header-row {
    display: grid;
    grid-template-columns: 50px 80px 1fr 100px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--gold-bright);
    letter-spacing: 1px;
}

/* Строки рейтинга */
.leaderboard-row {
    display: grid;
    grid-template-columns: 50px 80px 1fr 100px;
    padding: 18px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: center;
    transition: 0.2s;
}

.leaderboard-row:hover {
    background: rgba(255,255,255,0.02);
}

.leaderboard-row.top-1 { background: linear-gradient(to right, rgba(212, 175, 55, 0.1), transparent); }

.col-rank { font-weight: 800; color: var(--text-gray); }
.top-1 .col-rank { color: var(--gold); font-size: 1.2rem; }

.lb-flag { width: 32px; height: 20px; border-radius: 4px; object-fit: cover; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.lb-name { text-align: left; font-weight: 600; color: #fff; padding-left: 10px; }
.lb-weight { font-weight: 800; color: var(--gold-bright); text-align: right; }

/* --- СЕЗОННЫЙ КУБОК И КОРОЛЬ МЕСЯЦА (2 КАРТОЧКИ 50/50 LAYOUT) --- */
.hero-leader-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.hero-subcard {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.12), rgba(20, 16, 12, 0.95));
    border: 2px solid var(--gold);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.seasonal-cups-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
}

.seasonal-cup-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: left;
    transition: all 0.3s ease;
}

/* --- СЕЗОННЫЕ ЦВЕТОВЫЕ СТИЛИ КУБКОВ (ТОЧНО КАК МЕСЯЦЫ) --- */
.seasonal-cup-item.season-spring {
    border: 1px solid rgba(76, 175, 80, 0.25);
    background: rgba(76, 175, 80, 0.03);
}
.seasonal-cup-item.season-spring .seasonal-cup-title {
    color: #81C784;
}
.seasonal-cup-item.season-spring.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(20, 16, 12, 0.9));
    border: 1.5px solid #4CAF50;
    box-shadow: 0 4px 18px rgba(76, 175, 80, 0.3);
}

.seasonal-cup-item.season-summer {
    border: 1px solid rgba(0, 188, 212, 0.25);
    background: rgba(0, 188, 212, 0.03);
}
.seasonal-cup-item.season-summer .seasonal-cup-title {
    color: #4DD0E1;
}
.seasonal-cup-item.season-summer.active {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), rgba(20, 16, 12, 0.9));
    border: 1.5px solid #00BCD4;
    box-shadow: 0 4px 18px rgba(0, 188, 212, 0.3);
}

.seasonal-cup-item.season-autumn {
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(212, 175, 55, 0.03);
}
.seasonal-cup-item.season-autumn .seasonal-cup-title {
    color: #FFD700;
}
.seasonal-cup-item.season-autumn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(20, 16, 12, 0.9));
    border: 1.5px solid #D4AF37;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
}

.seasonal-cup-item.season-winter {
    border: 1px solid rgba(33, 150, 243, 0.25);
    background: rgba(33, 150, 243, 0.03);
}
.seasonal-cup-item.season-winter .seasonal-cup-title {
    color: #64B5F6;
}
.seasonal-cup-item.season-winter.active {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(20, 16, 12, 0.9));
    border: 1.5px solid #2196F3;
    box-shadow: 0 4px 18px rgba(33, 150, 243, 0.3);
}

.seasonal-cup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.seasonal-cup-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
}

.seasonal-cup-item.active .seasonal-cup-title {
    color: var(--gold-bright);
    font-size: 0.95rem;
}

.active-now-badge {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.seasonal-cup-desc {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.sponsor-ad-badge {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 1.5px dashed var(--gold);
    color: var(--gold-bright);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.sponsor-ad-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1));
}

.cup-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.4;
    margin: 0;
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
    .hero-leader-card {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }
    .hero-card-divider {
        width: 100%;
        height: 1px;
        min-height: 1px;
        background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.4), transparent);
    }
}

.crown-icon { font-size: 3rem; color: var(--gold); margin-bottom: 10px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.leader-status { font-size: 0.75rem; font-weight: 900; letter-spacing: 2px; color: var(--gold); margin-bottom: 15px; }
.leader-nick { font-size: 2.2rem; font-weight: 900; color: #fff; margin-bottom: 5px; }
.leader-weight { font-size: 1.5rem; color: var(--gold-bright); font-weight: 800; }

.timer-box {
    margin-top: 20px;
    background: rgba(0,0,0,0.4);
    padding: 10px 25px;
    border-radius: 15px;
    border: 1px solid rgba(212,175,55,0.2);
}
.timer-label { font-size: 0.65rem; color: var(--text-gray); text-transform: uppercase; margin-bottom: 3px; }
.timer-val { font-family: monospace; color: #fff; font-weight: bold; font-size: 1.1rem; }

/* --- ГОДОВАЯ СЕТКА (ROAD TO FINAL) --- */
.annual-road-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(212,175,55,0.1);
}
.annual-road-title { font-size: 0.8rem; font-weight: 900; color: var(--text-gray); margin-bottom: 20px; letter-spacing: 1px; }

.annual-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.month-slot {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    min-height: 55px;
    justify-content: center;
}
.month-slot.filled { border-color: var(--gold); background: rgba(212,175,55,0.1); }
.month-slot.pretender { border-style: dashed; border-color: var(--text-gray); background: rgba(255,255,255,0.05); animation: pulse-border 2s infinite; }
@keyframes pulse-border { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } }
.month-name { font-size: 0.65rem; color: var(--gold-bright); text-transform: uppercase; margin-bottom: 5px; font-weight: 800; }
.month-winner-flag { width: 22px; height: 14px; border-radius: 2px; }
.month-empty { color: rgba(255,255,255,0.4); font-size: 0.9rem; font-weight: 800; }

/* Сезонные цвета для 12 месяцев года */
.month-slot.season-spring {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.05);
}
.month-slot.season-spring .month-name {
    color: #81C784;
}

.month-slot.season-summer {
    border-color: rgba(0, 188, 212, 0.4);
    background: rgba(0, 188, 212, 0.05);
}
.month-slot.season-summer .month-name {
    color: #4DD0E1;
}

.month-slot.season-autumn {
    border-color: rgba(255, 152, 0, 0.4);
    background: rgba(255, 152, 0, 0.05);
}
.month-slot.season-autumn .month-name {
    color: #FFB74D;
}

.month-slot.season-winter {
    border-color: rgba(33, 150, 243, 0.4);
    background: rgba(33, 150, 243, 0.05);
}
.month-slot.season-winter .month-name {
    color: #64B5F6;
}

/* Подсветка ТЕКУЩЕГО месяца года (ИЮЛЬ) */
.month-slot.month-current-active {
    border: 2px solid var(--gold) !important;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(20, 16, 12, 0.9)) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    animation: gold-pulse 2s infinite ease-in-out;
}

@keyframes gold-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); border-color: var(--gold); }
    50% { box-shadow: 0 0 28px rgba(255, 215, 0, 0.7); border-color: #FFD700; }
}

@media (max-width: 850px) {
    .hero-leader-row { grid-template-columns: 1fr !important; gap: 20px; }
    .hero-subcard { padding: 18px 14px; }
    .annual-grid { grid-template-columns: repeat(4, 1fr); }
    .leader-nick { font-size: 1.6rem; }
}

@media (max-width: 600px) {
    .logo-wrapper { width: 55px; height: 55px; top: 15px; left: 15px; border-radius: 50%; }
    .top-lang-switch { top: 15px; right: 15px; padding: 8px; gap: 5px; }
    .top-lang-switch a { padding: 4px 8px; font-size: 0.7rem; }
    #user-nick { font-size: 0.65rem; }
    .hero h1 { padding-top: 100px; }
}


/* --- АБСОЛЮТНЫЙ ЛИДЕР ГОДА (HALL OF FAME) --- */
.hof-leader-card {
    background: #1B1612;
    border: 2px solid var(--gold);
    border-radius: 24px;
    padding: 24px;
    max-width: 500px;
    margin: 30px auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}
.hof-card-content { display: flex; align-items: center; gap: 20px; }
.hof-avatar-circle {
    position: relative; width: 100px; height: 100px;
    border-radius: 50%; border: 2px solid var(--gold);
    padding: 3px; background: rgba(212, 175, 55, 0.1);
}
.hof-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hof-rank-badge {
    position: absolute; bottom: -5px; right: -5px;
    background: var(--gold); color: #000; width: 30px; height: 30px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 13px; border: 2px solid #1B1612;
}
.hof-info-block { text-align: left; flex: 1; min-width: 0; } /* min-width для сокращения текста */
.hof-rep-label {
    color: var(--text-gray); font-size: 10px; font-weight: 800;
    text-transform: uppercase; margin-bottom: 4px;
    display: flex; align-items: center;
}
.hof-user-name {
    color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 5px;
    white-space: normal; word-wrap: break-word; line-height: 1.1;
}
.hof-weight-row { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.hof-weight-val { color: var(--gold); font-size: 28px; font-weight: 900; }
.hof-weight-unit { color: var(--gold); opacity: 0.7; font-size: 14px; font-weight: 700; }
.hof-rank-text { color: var(--text-gray); font-size: 12px; margin-top: 5px; }
.hof-status-tag { color: #4CAF50; font-size: 10px; font-weight: 800; margin-top: 10px; text-transform: uppercase; }

/* --- АДАПТИВНОСТЬ ДЛЯ ТУРНИРНОЙ ТАБЛИЦЫ --- */
.hero-leader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.leader-nick {
    max-width: 95%;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.1;
    margin: 10px 0;
    font-size: clamp(1.4rem, 6vw, 2.2rem);
}
.leader-flag-row {
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .hof-card-content { flex-direction: column; text-align: center; }
    .hof-info-block { text-align: center; width: 100%; }
    .hof-rep-label { justify-content: center; }
    .hof-weight-row { justify-content: center; }

    /* Исправление спонсоров на мобилках */
    .sponsor-content {
        flex-direction: column !important;
        text-align: center;
        gap: 15px;
    }
    .sponsor-info {
        text-align: center !important;
        width: 100%;
    }
    .web-sponsor-card {
        padding: 20px 15px !important;
    }

    /* Исправление ника лидера */
    .leader-nick {
        font-size: 1.4rem;
        word-break: break-all;
    }

    /* Расширение модальных окон */
    .modal-content {
        padding: 40px 15px 25px 15px !important;
        width: 98% !important;
    }

    /* Исправление наложения крестика закрытия на заголовки на мобилках */
    .close-modal {
        top: 12px !important;
        right: 15px !important;
        font-size: 2rem !important;
    }
    [dir="rtl"] .close-modal {
        right: auto !important;
        left: 15px !important;
    }

    .modal-content h1, .modal-content h2, .modal-content .section-title {
        padding-right: 45px !important;
        box-sizing: border-box;
    }
    [dir="rtl"] .modal-content h1, [dir="rtl"] .modal-content h2, [dir="rtl"] .modal-content .section-title {
        padding-right: 0 !important;
        padding-left: 45px !important;
    }
}

/* --- ПРИОРИТЕТНОЕ ОТОБРАЖЕНИЕ МОДАЛЬНЫХ ОКОН ОБРАТНОЙ СВЯЗИ И ПРАВИЛ --- */
#supportModal, #legalModal {
    z-index: 9999 !important;
}

/* --- ЯРКИЕ И КОНТРАСТНЫЕ ПОДСКАЗКИ (PLACEHOLDERS) ВО ВСЕХ ФОРМАХ --- */
input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

/* --- СТИЛИ АККОРДЕОНА РУКОВОДСТВА ПОЛЬЗОВАТЕЛЯ --- */
.user-guide-section {
    padding: 70px 20px;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}
.guide-accordion {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}
[dir="rtl"] .guide-accordion {
    text-align: right;
}

/* --- КАТАЛОГ СПОНСОРОВ (Sponsors Showcase Grid) --- */
.sponsors-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
    align-items: stretch;
}

.showcase-sponsor-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    cursor: pointer;
    min-height: 175px;
    box-sizing: border-box;
}

.showcase-sponsor-card.super-edition {
    border: 2px solid #00FFFF;
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.12), rgba(20, 16, 12, 0.95));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
}

.showcase-sponsor-card.gold-edition {
    border: 1.5px solid var(--gold);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.08), rgba(20, 16, 12, 0.9));
}

.showcase-sponsor-card.cup-edition {
    border: 1.5px solid #FF7700;
    background: linear-gradient(145deg, rgba(255, 119, 0, 0.12), rgba(20, 16, 12, 0.9));
    box-shadow: 0 0 15px rgba(255, 119, 0, 0.2);
}

.b2b-cup-card {
    background: linear-gradient(145deg, rgba(255, 119, 0, 0.08), rgba(20, 16, 12, 0.95));
    border: 1.5px solid #FF7700;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 119, 0, 0.15);
}

.b2b-cup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 119, 0, 0.3);
    border-color: #FF8C00;
}

.showcase-sponsor-card.silver-edition {
    border: 1.5px solid #C0C0C0;
    background: linear-gradient(145deg, rgba(192, 192, 192, 0.05), rgba(20, 16, 12, 0.9));
}

.showcase-sponsor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}
.guide-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    transition: all 0.3s ease;
}
.guide-item:hover {
    border-color: rgba(212, 175, 55, 0.2);
}
.guide-header {
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--gold);
    transition: background 0.3s;
    user-select: none;
}
.guide-header:hover {
    background: rgba(255, 255, 255, 0.05);
}
.guide-header-title {
    display: flex;
    align-items: center;
    gap: 15px;
}
.guide-header-title i {
    font-size: 24px;
    color: var(--gold);
}
.guide-content {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.7;
}
.guide-content p {
    margin-bottom: 15px;
}
.guide-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.guide-content ul li {
    position: relative;
    padding-left: 20px;
}
[dir="rtl"] .guide-content ul li {
    padding-left: 0;
    padding-right: 20px;
}
.guide-content ul li::before {
    content: "•";
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
    top: 2px;
}
[dir="rtl"] .guide-content ul li::before {
    left: auto;
    right: 0;
}
.guide-item.active {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}
.guide-item.active .guide-content {
    padding: 24px;
    max-height: 1200px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}
.guide-arrow {
    font-size: 24px;
    color: var(--gold);
    transition: transform 0.3s;
}
.guide-item.active .guide-arrow {
    transform: rotate(180deg);
}

/* --- СТИЛИ ТИКЕРА (БЕГУЩЕЙ СТРОКИ) КЛУБНЫХ ТУРНИРОВ --- */
@keyframes tickerMoveUp {
    0% { transform: translateY(180px); }
    100% { transform: translateY(-100%); }
}

.ticker-wrap:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
    text-decoration: none;
    overflow: hidden;
}

.ticker-item:hover {
    background: rgba(212, 175, 55, 0.03);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.ticker-item.gold-item {
    background: rgba(212, 175, 55, 0.04);
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.ticker-item.gold-item:hover {
    background: rgba(212, 175, 55, 0.07);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

