: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: 1000;
    background: rgba(0,0,0,0.6); padding: 5px; border-radius: 20px;
    backdrop-filter: blur(10px); border: 1px solid rgba(212, 175, 55, 0.2);
}
.top-lang-switch a {
    text-decoration: none; color: #fff; font-size: 0.8rem;
    padding: 5px 12px; display: inline-block; border-radius: 15px; transition: all 0.3s;
}
.top-lang-switch a.active { background: var(--gold); color: #000; font-weight: bold; }
[dir="rtl"] .top-lang-switch { right: auto; left: 20px; }

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('welcome_bg.jpg');
    background-size: cover; background-position: center;
    justify-content: center; padding: 40px;
}
        /* Новые стили для SVG логотипа */
        .logo-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    width: 90px;
    height: 90px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    background: #120E0B;
    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;
}
.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-placeholder {
    width: 100px; height: 100px; background: rgba(255,255,255,0.05);
    border-radius: 12px; border: 1px dashed var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; color: var(--gold); text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.online-stats {
    background: var(--primary-dark); padding: 40px; width: 100%;
    border-top: 1px solid rgba(212, 175, 55, 0.1); border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    display: flex; justify-content: center; gap: 80px; 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: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; width: 100%; }
.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; }
.compare-box.pro { border-color: var(--gold); background: rgba(212, 175, 55, 0.05); box-shadow: 0 0 40px rgba(212, 175, 55, 0.1); }
.compare-box.store { border-color: #4CAF50; background: rgba(76, 175, 80, 0.05); box-shadow: 0 0 40px rgba(76, 175, 80, 0.1); }
.compare-box h3 { margin-bottom: 30px; font-size: 1.6rem; font-weight: 700; }
.compare-box ul { list-style: none; padding: 0; flex-grow: 1; }
.compare-box li { margin-bottom: 15px; color: var(--text-gray); display: flex; align-items: flex-start; gap: 12px; text-align: left; font-size: 0.95rem; line-height: 1.3; }
[dir="rtl"] .compare-box li { text-align: right; }
.compare-box li::before { content: "✓"; color: var(--success); font-weight: bold; flex-shrink: 0; }
.compare-box.pro li::before { content: "★"; color: var(--gold); }
.compare-box.store li::before { content: "💎"; filter: grayscale(1) brightness(1.5); }

.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; }
.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); }

/* 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: 15px;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: 0.3s;
    width: 100%;
}

.gallery-item:hover { transform: translateY(-10px); border-color: var(--gold); background: rgba(212, 175, 55, 0.05); }
.gallery-item img { width: 100%; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.gallery-item h4 { color: var(--gold-bright); margin-top: 15px; font-size: 1rem; font-weight: 700; }
.gallery-item p { color: var(--text-gray); font-size: 0.85rem; margin-top: 8px; line-height: 1.4; }

/* Social Media Section */
.social-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--primary-dark));
    width: 100%;
}
.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; }

@media (max-width: 768px) {
    .compare-container { grid-template-columns: 1fr; }
    .hero { padding: 20px; }
    .online-stats { gap: 40px; padding: 30px; }
    .section { padding: 60px 20px; }
    .section-title { font-size: 2.2rem; }
}

/* Группа боковых кнопок */
.side-nav {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
[dir="rtl"] .side-nav { left: auto; right: 0; }

.side-btn {
    background: linear-gradient(135deg, var(--gold), #B8860B);
    color: #000;
    padding: 20px 10px;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: 0.3s;
    box-shadow: 5px 0 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid var(--gold-bright);
    border-left: none;
    border-radius: 0 15px 15px 0;
    text-decoration: none;
}
.side-btn span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
[dir="rtl"] .side-btn {
    border-left: 1px solid var(--gold-bright);
    border-right: none;
    border-radius: 15px 0 0 15px;
}
.side-btn:hover { padding-left: 20px; filter: brightness(1.1); }
[dir="rtl"] .side-btn:hover { padding-left: 10px; padding-right: 20px; }
.side-btn i { font-size: 24px; }
.side-btn[onclick*="openHallOfFame"] i { transform: rotate(180deg); }

/* 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;
}

/* Battle Pulse Badge */
.battle-status {
    display: flex;
    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;
}
.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; }

[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; }