/* Сброс стилей по умолчанию */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Базовые переменные и цвета */
:root {
    --color-bg: #191e26;
    --color-accent: #ffbb36;
    --color-dark-accent: #ffa700;
    --color-secondary: #48546a;
    --color-nav: #fff;
    --color-text: #e5eaf3;
    --color-link: #ffbb36;
    --color-link-hover: #fff2a3;
    --shadow-main: 0 4px 24px 0 rgba(0,0,0,0.14);
    --radius-main: 16px;
    --font-main: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

/* Body и контейнер */
body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

a { color: var(--color-link); text-decoration: none; transition: color 0.2s; }
a:hover, .nav-link.active { color: var(--color-link-hover); }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2vw;
}

/* Header */
.main-header {
    background: linear-gradient(90deg, #242c3a 60%, #222823 100%);
    box-shadow: var(--shadow-main);
    padding: 0 0 0 0;
    position: sticky;
    top: 0;
    z-index: 30;
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}
.logo img {
    height: 48px;
    display: block;
}

/* Навигация */
.main-nav {
    display: flex;
    gap: 2.3vw;
}
.nav-link {
    color: var(--color-nav);
    font-size: 1.14rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.nav-link:after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: width .23s;
    margin-top: 2px;
}
.nav-link:hover:after, .nav-link.active:after {
    width: 90%;
}

/* Бургер для мобилок */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 40;
}
.burger span {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 2px;
    background: var(--color-accent);
    transition: 0.3s;
}
.burger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Мобильное меню */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #23272d;
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 80px 0 24px 0;
    z-index: 39;
    gap: 20px;
    box-shadow: var(--shadow-main);
    min-height: 100vh;
}
.mobile-nav.open {
    display: flex;
    animation: fadeIn .2s;
}
@keyframes fadeIn {
    from { opacity: 0;}
    to { opacity: 1;}
}

/* Адаптивность */
@media (max-width: 840px) {
    .main-nav {
        display: none;
    }
    .burger { display: flex; }
}
@media (max-width: 840px) {
    .logo img { height: 40px; }
    .container { padding: 0 4vw; }
}
@media (max-width: 560px) {
    .container { padding: 0 8px; }
    .header-flex { min-height: 56px; }
}
.main-footer {
    background: linear-gradient(90deg, #181c23 65%, #222823 100%);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.18);
    padding: 48px 0 0 0;
    margin-top: 60px;
    color: #d5d8e1;
}
.footer-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.footer-left {
    max-width: 300px;
}
.logo-footer img {
    height: 40px;
    margin-bottom: 10px;
}
.footer-about p {
    font-size: 1.03rem;
    color: #b4b9c5;
    margin-top: 6px;
    margin-bottom: 0;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.footer-nav .nav-link {
    color: #ffe9ab;
    font-size: 1.06rem;
    font-weight: 500;
    transition: color .17s;
}
.footer-nav .nav-link:hover {
    color: var(--color-accent);
}
.footer-socials {
    display: flex;
    gap: 16px;
    align-items: center;
}
.social-btn img {
    filter: brightness(1.18) contrast(1.07);
    opacity: 0.82;
    transition: opacity 0.18s, transform 0.18s;
}
.social-btn:hover img {
    opacity: 1;
    transform: scale(1.09);
}
.footer-bottom {
    background: #14161b;
    margin-top: 32px;
    padding: 16px 0;
    text-align: center;
    font-size: 0.98rem;
    color: #6c727b;
    border-top: 1px solid #262c36;
}

/* Адаптивность */
@media (max-width: 800px) {
    .footer-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }
    .footer-left, .footer-nav, .footer-socials {
        margin-bottom: 10px;
    }
    .footer-socials {
        justify-content: flex-start;
    }
}
/* --- Hero / Главный баннер --- */
.hero-block {
    background: linear-gradient(108deg, #233042 70%, #31352e 100%);
    color: #fff;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 46px 0 48px 0;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 44px;
    justify-content: space-between;
}
.hero-text h1 {
    font-size: 2.9rem;
    letter-spacing: 1px;
    font-weight: 900;
    margin-bottom: 10px;
}
.hero-text .subtitle {
    font-size: 1.29rem;
    margin-bottom: 24px;
    color: #ffd984;
    font-weight: 500;
}
.hero-image img {
    width: 420px;
    max-width: 96vw;
    border-radius: 20px;
    box-shadow: 0 6px 36px rgba(0,0,0,0.33);
}
.btn-accent {
    display: inline-block;
    padding: 14px 34px;
    background: var(--color-accent);
    color: #222;
    border-radius: 28px;
    font-weight: bold;
    font-size: 1.14rem;
    letter-spacing: .05em;
    box-shadow: 0 3px 16px rgba(255,187,54,0.14);
    transition: background .16s, color .16s, transform .18s;
    margin-top: 14px;
}
.btn-accent:hover {
    background: var(--color-dark-accent);
    color: #fff;
    transform: translateY(-2px) scale(1.03);
}
.section {
    margin: 62px 0 0 0;
}

/* --- Новости --- */
.news-section { }
.news-list {
    display: flex;
    gap: 32px;
    margin: 38px 0 0 0;
    flex-wrap: wrap;
}
.news-card {
    background: #22293a;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.14);
    overflow: hidden;
    width: 330px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .18s;
}
.news-card:hover { transform: translateY(-5px) scale(1.03);}
.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #292d39;
}
.news-info {
    padding: 18px 20px 14px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-title {
    font-size: 1.07rem;
    font-weight: bold;
    color: #ffe488;
    margin-bottom: 8px;
    display: block;
}
.news-date {
    font-size: 0.97rem;
    color: #bababa;
}
.btn-more {
    display: inline-block;
    margin: 34px 0 0 0;
    color: var(--color-accent);
    font-weight: bold;
    padding: 10px 22px;
    border-radius: 20px;
    border: 1px solid var(--color-accent);
    background: none;
    transition: background .15s, color .15s;
}
.btn-more:hover { background: var(--color-accent); color: #222; }

/* --- Гайды --- */
.guides-section { }
.guides-list {
    display: flex;
    gap: 32px;
    margin: 36px 0 0 0;
    flex-wrap: wrap;
}
.guide-card {
    background: #252f38;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.11);
    overflow: hidden;
    width: 290px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform .17s;
}
.guide-card:hover { transform: scale(1.04);}
.guide-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #202028;
}
.guide-title {
    padding: 18px 14px 16px 14px;
    color: #ffd984;
    font-size: 1.06rem;
    font-weight: 600;
    transition: color .16s;
}
.guide-title:hover { color: var(--color-link-hover); }

/* --- Valheim секция --- */
.valheim-section {
    background: linear-gradient(97deg, #20292f 80%, #263623 100%);
    border-radius: 26px;
    margin-top: 80px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.13);
    padding: 56px 0 48px 0;
}
.valheim-flex {
    display: flex;
    gap: 56px;
    align-items: center;
    justify-content: space-between;
}
.valheim-about {
    max-width: 520px;
}
.valheim-img-block img {
    border-radius: 18px;
    width: 360px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.18);
}

/* --- Киберспорт --- */
.esport-section {
    margin-top: 88px;
}
.esport-flex {
    display: flex;
    gap: 46px;
    align-items: center;
    justify-content: space-between;
}
.esport-info { max-width: 470px;}
.esport-img-block img {
    border-radius: 16px;
    width: 340px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.19);
}

/* --- Сообщество --- */
.community-section { margin-top: 72px;}
.community-flex {
    display: flex;
    gap: 38px;
    align-items: center;
    justify-content: space-between;
}
.community-info { max-width: 420px;}
.community-img-block img {
    border-radius: 14px;
    width: 280px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* --- FAQ --- */
.faq-section { margin-bottom: 40px;}
.faq-list {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.faq-item {
    background: #222934;
    border-radius: 12px;
    padding: 20px 24px;
    color: #ffe1a2;
    font-size: 1.07rem;
    box-shadow: 0 1px 10px rgba(0,0,0,0.10);
}
.faq-q {
    font-weight: bold;
    color: #fff6cc;
    margin-bottom: 6px;
    display: block;
}
.faq-a {
    margin-top: 4px;
    color: #ffe1a2;
    display: block;
}

/* --- Общие стили для секций --- */
.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: .03em;
    color: #ffe488;
}

/* --- Адаптивность главной --- */
@media (max-width: 1100px) {
    .hero-content, .valheim-flex, .esport-flex, .community-flex, .guides-list, .news-list {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }
    .hero-image img, .valheim-img-block img, .esport-img-block img, .community-img-block img {
        width: 96vw;
        max-width: 420px;
        margin-top: 24px;
    }
}
@media (max-width: 650px) {
    .section-title { font-size: 1.35rem;}
    .hero-text h1 { font-size: 1.6rem;}
    .news-card, .guide-card { width: 100%;}
    .valheim-section, .esport-section, .community-section { padding-left: 0; padding-right: 0;}
    .faq-item { padding: 12px 10px;}
}
@media (max-width: 400px) {
    .container { padding-left: 2px; padding-right: 2px;}
    .btn-accent, .btn-more { font-size: .97rem; padding: 10px 12px;}
}
.news-top-section {
    padding-bottom: 0;
}
.news-intro {
    margin: 16px 0 28px 0;
    color: #d4d5db;
    font-size: 1.14rem;
    max-width: 670px;
}
.news-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.news-tag {
    padding: 6px 18px;
    background: #22293a;
    color: #ffe488;
    border-radius: 18px;
    font-weight: 500;
    font-size: 0.98rem;
    cursor: pointer;
    transition: background .17s, color .17s;
    border: 1px solid #31394a;
    user-select: none;
}
.news-tag:hover, .news-tag--active {
    background: var(--color-accent);
    color: #242321;
}

.news-list--page {
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 24px;
}

.news-card--big {
    width: 100%;
    display: flex;
    flex-direction: row;
    min-height: 220px;
    background: linear-gradient(108deg, #23273b 80%, #343726 100%);
}
.news-card--big .news-img {
    width: 300px;
    height: 220px;
    border-radius: 12px 0 0 12px;
    object-fit: cover;
}
.news-card--big .news-info {
    padding: 24px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-card--big .news-title {
    font-size: 1.23rem;
    color: #ffe488;
}
.news-desc {
    font-size: 1.03rem;
    color: #f7e7b4;
    margin: 14px 0 0 0;
}

@media (max-width: 900px) {
    .news-card--big {
        flex-direction: column;
        min-height: 0;
    }
    .news-card--big .news-img {
        width: 100%;
        height: 200px;
        border-radius: 12px 12px 0 0;
    }
    .news-card--big .news-info {
        padding: 18px 18px 22px 18px;
    }
}

@media (max-width: 650px) {
    .news-top-section .section-title {
        font-size: 1.24rem;
    }
    .news-card--big .news-title {
        font-size: 1.05rem;
    }
}
/* --- Esport hero --- */
.esport-hero {
    background: linear-gradient(96deg, #252c3a 70%, #282e2a 100%);
    border-radius: 22px;
    margin-bottom: 52px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.14);
    padding: 44px 0 38px 0;
}
.esport-hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.esport-hero-text h1 { margin-bottom: 14px; }
.esport-hero-icons {
    display: flex;
    gap: 18px;
    margin-top: 18px;
}
.esport-ico svg { display: block; }
.esport-hero-img img {
    width: 340px; max-width: 96vw; border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.21);
}

@media (max-width: 1000px) {
    .esport-hero-flex { flex-direction: column; align-items: flex-start; gap: 30px;}
    .esport-hero-img img { width: 98vw; max-width: 340px;}
}

/* --- Турниры --- */
.tournaments-table {
    margin: 36px 0 0 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.10);
    background: #20272d;
}
.tournament-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #283049;
    padding: 18px 16px;
    font-size: 1.09rem;
    color: #ffe6a6;
    gap: 32px;
}
.tournament-row:last-child { border-bottom: none;}
.tournament-cell { min-width: 120px; flex: 1;}
.tournament-cell svg { vertical-align: middle; margin-right: 4px; }

/* --- Топ-команды --- */
.teams-list {
    display: flex;
    gap: 36px;
    margin-top: 38px;
    flex-wrap: wrap;
}
.team-card {
    background: #23283b;
    border-radius: 16px;
    box-shadow: 0 2px 13px rgba(0,0,0,0.11);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 26px;
    min-width: 230px;
    max-width: 330px;
    flex: 1;
}
.team-logo { margin-right: 8px;}
.team-info { display: flex; flex-direction: column;}
.team-name {
    font-size: 1.12rem;
    font-weight: bold;
    color: #ffe488;
    margin-bottom: 7px;
}
.team-trophy {
    display: flex;
    align-items: center;
    color: #c4c8d2;
    font-size: .98rem;
    gap: 4px;
}
.team-trophy svg { margin-right: 4px; }

/* --- Аналитика --- */
.analytics-flex {
    display: flex;
    align-items: center;
    gap: 42px;
    justify-content: space-between;
    margin-top: 40px;
}
.analytics-info { max-width: 500px; }
.analytics-list {
    margin: 22px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.analytics-list li {
    list-style: none;
    color: #caffb0;
    font-size: 1.01rem;
    display: flex;
    align-items: center;
    gap: 7px;
}
.analytics-svg {
    min-width: 180px;
}
.analytics-svg svg {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .analytics-flex { flex-direction: column; gap: 28px;}
    .analytics-svg { margin-top: 12px;}
}

/* --- Календарь событий --- */
.calendar-list {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.calendar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e2228;
    border-radius: 12px;
    padding: 16px 18px;
    color: #ffd984;
    font-size: 1.09rem;
    box-shadow: 0 1px 10px rgba(0,0,0,0.08);
}
.calendar-icon svg { display: inline; vertical-align: middle; }
.calendar-title { font-weight: 500; }

@media (max-width: 650px) {
    .teams-list { flex-direction: column; gap: 18px;}
    .analytics-flex { gap: 18px;}
}
/* --- Valheim hero --- */
.valheim-hero {
    background: linear-gradient(100deg, #262e24 80%, #312f25 100%);
    border-radius: 20px;
    margin-bottom: 44px;
    box-shadow: 0 3px 24px rgba(0,0,0,0.14);
    padding: 44px 0 38px 0;
}
.valheim-hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
}
.valheim-hero-icons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.valheim-ico svg { display: block; }
.valheim-hero-img img {
    width: 340px; max-width: 95vw; border-radius: 17px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.16);
}

@media (max-width: 950px) {
    .valheim-hero-flex { flex-direction: column; align-items: flex-start; gap: 28px;}
    .valheim-hero-img img { width: 98vw; max-width: 340px;}
}

/* --- История --- */
.valheim-history-flex {
    display: flex;
    gap: 44px;
    align-items: flex-start;
    justify-content: space-between;
}
.history-block {
    max-width: 540px;
}
.history-list {
    margin: 22px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.history-list li {
    list-style: none;
    color: #fff2c1;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.history-img { min-width: 190px;}
.history-img svg { display: block; }

@media (max-width: 900px) {
    .valheim-history-flex { flex-direction: column; gap: 22px;}
    .history-img { margin-top: 10px;}
}

/* --- Фичи игры --- */
.features-list {
    display: flex;
    gap: 28px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.feature-card {
    background: #23281e;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 24px 20px 22px 20px;
    min-width: 210px;
    max-width: 270px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    flex: 1;
}
.feature-icon svg { display: block; }
.feature-title {
    font-size: 1.10rem;
    font-weight: bold;
    color: #ffe488;
}
.feature-desc {
    color: #e1e0d2;
    font-size: 0.98rem;
    margin-top: 3px;
}
@media (max-width: 700px) {
    .features-list { flex-direction: column; gap: 15px;}
    .feature-card { max-width: 100%; }
}

/* --- Факты --- */
.facts-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.facts-list li {
    list-style: none;
    color: #ffe8b3;
    font-size: 1.04rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- FAQ стили — как на главной --- */
.valheim-faq .faq-list { margin-top: 32px; }
