@font-face{font-family:'AveriaSerifLibre';src:url('AveriaSerifLibre-Bold.woff2') format('woff2');font-weight:700;font-style:normal}
@font-face{font-family:'NordicCyr';src:url('NordicCyr-Bold.otf') format('opentype');font-weight:700;font-style:normal}

:root{
    --c-palette-1:#2b1e14;
    --c-palette-2:#452b18;
    --c-palette-3:#f7d6a9;
    --c-palette-4:#998e8a;
    --c-palette-5:#a56c37;
    --c-palette-6:#f6c06f;
    --primary:var(--c-palette-2);
    --secondary:var(--c-palette-1);
    --accent:var(--c-palette-6);
    --text:var(--c-palette-3);
    --dark:#121212;
    --light:#f8f9fa
}

*{margin:0;padding:0;box-sizing:border-box}
body{
    background-color:var(--secondary);
    color:var(--text);
    line-height:1.6;
    background-image:radial-gradient(ellipse at top,var(--c-palette-2)50%,var(--c-palette-1));
    text-shadow:1px 1px 2px var(--c-palette-1);
    scroll-behavior:smooth;
    font-family:'AveriaSerifLibre','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    position:relative;
    overflow-x:hidden
}
h1,h2,h3,h4,h5,h6{
    font-family:'AveriaSerifLibre','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    font-weight:700
}
.container{
    width:90%;
    max-width:1200px;
    margin:0 auto;
    padding:0 15px
}

/* руническое */
.rune-divider{
    display:flex;
    justify-content:center;
    margin:15px 0;
    color:var(--accent);
    font-size:1.8rem;
    letter-spacing:0.8rem;
    opacity:0.7
}
.rune-bg{
    background-image:radial-gradient(circle at 20% 30%,rgba(165,108,55,0.1)0%,transparent 20%),radial-gradient(circle at 80% 70%,rgba(246,192,111,0.1)0%,transparent 20%);
    background-size:300px 300px;
    position:relative;
    overflow:hidden
}

/* фоновые руны */
.rune-background {
    position:absolute;
    z-index:-1;
    opacity:0.03;
    color:var(--accent);
    font-family:'AveriaSerifLibre';
    font-weight:700
}
.rune-1{top:15%;left:5%;font-size:8rem;transform:rotate(-15deg)}
.rune-2{top:60%;right:7%;font-size:12rem;transform:rotate(10deg)}
.rune-3{bottom:20%;left:10%;font-size:6rem;transform:rotate(5deg)}
.rune-4{top:30%;right:15%;font-size:10rem;transform:rotate(-20deg)}
.rune-5{bottom:40%;left:20%;font-size:7rem;transform:rotate(15deg)}
.rune-6{top:70%;left:25%;font-size:9rem;transform:rotate(-10deg)}
.rune-7{bottom:10%;right:20%;font-size:11rem;transform:rotate(25deg)}
.rune-8{top:25%;right:5%;font-size:8rem;transform:rotate(5deg)}
.rune-9{bottom:60%;left:5%;font-size:9rem;transform:rotate(-12deg)}
.rune-10{top:80%;right:25%;font-size:7rem;transform:rotate(18deg)}
.rune-11{top:45%;left:15%;font-size:10rem;transform:rotate(-8deg)}

header{
    background-color:rgba(43,30,20,0.9);
    position:fixed;
    width:100%;
    z-index:1000;
    box-shadow:0 2px 10px rgba(0,0,0,0.5);
    padding:10px 0
}
nav{
    display:flex;
    justify-content:space-between;
    align-items:center
}
.logo{
    display:flex;
    align-items:center;
    font-size:1.8rem;
    font-weight:700;
    color:var(--accent);
    text-decoration:none
}
.logo img{
    height:60px;
    margin-right:10px
}
.header-buttons{
    display:flex;
    align-items:center;
    gap:15px
}

/* стили для кнопок соцсетей */
.header-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    background-color:transparent;
    border:none;
    padding:8px;
    color:var(--text);
    text-decoration:none;
    transition:all 0.3s
}
.header-btn:hover{
    color:var(--accent);
    transform:scale(1.1)
}
.header-btn svg{
    width:30px;
    height:30px;
    fill:var(--text);
    transition:all 0.3s
}
.header-btn:hover svg{fill:var(--accent)}

.btn{
    display:inline-block;
    background-color:var(--accent);
    color:var(--c-palette-6);
    padding:12px 25px;
    border-radius:8px;
    text-decoration:none;
    font-weight:700;
    transition:all 0.3s;
    text-shadow:none;
    border:none;
    cursor:pointer;
    font-family:'NordicCyr-Bold.otf','AveriaSerifLibre',sans-serif
}
.btn:hover{
    background-color:var(--c-palette-5);
    transform:translateY(-2px)
}
.btn-nordic{
    font-family:'NordicCyr';
    background:linear-gradient(to bottom,var(--c-palette-5),var(--c-palette-1));
    border:2px solid var(--c-palette-6);
    position:relative;
    overflow:hidden;
    font-size:36px;
}

.hero{
    padding:100px 0 30px;
    position:relative;
    display:flex;
    flex-wrap:wrap
}
.welcome-section{
    width:70%;
    padding-right:30px
}
.discord-widget{
    width:30%;
}
.hero h1{
    font-size:2.8rem;
    margin-bottom:15px;
    text-shadow:2px 2px 5px rgba(0,0,0,0.5);
    color:var(--accent)
}
.hero p{
    font-size:1.1rem;
    margin-bottom:6px;
    color:var(--text);
    line-height:1.5
}

/* горизонтальное расположение особенностей */
.features-section{
    width:100%;
    padding:30px 0 20px
}
.features-grid{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-top:15px
}
.feature-item{
    flex:1;
    text-align:center;
    padding:20px 15px;
    background:rgba(69,43,24,0.2);
    border-radius:8px;
    border:1px solid rgba(165,108,55,0.3)
}
.feature-icon{
    font-size:2.5rem;
    color:var(--accent);
    margin-bottom:15px;
    font-family:'AveriaSerifLibre';
    display:block
}
.feature-item h3{
    margin-bottom:10px;
    color:var(--accent);
    font-size:1.3rem
}
.feature-item p{
    font-size:1rem;
    line-height:1.4;
    margin:0
}

/* на всю ширину */
.full-width-section {
    width:100%;
    padding:40px 0 30px;
    text-align:center
}
.full-width-section .rune-bg {
    padding:30px;
    border-radius:8px;
    max-width:900px;
    margin:0 auto
}
.full-width-section h2 {
    color:var(--accent);
    margin-bottom:20px;
    font-size:2rem
}
.full-width-section h3 {
    color:var(--accent);
    margin-bottom:15px;
    font-size:1.6rem
}
.full-width-section p {
    margin-bottom:12px;
    font-size:1.1rem;
    line-height:1.4
}
.full-width-section a {
    color:var(--accent);
    text-decoration:none;
    border-bottom:1px dashed var(--accent);
    transition:all 0.3s
}
.full-width-section a:hover {
    color:var(--c-palette-6);
    border-bottom:1px solid var(--c-palette-6)
}

.community{
    padding:40px 0;
    display:flex;
    flex-wrap:wrap
}
.community-info{
    width:100%;
    text-align:center
}

/* фон */
.side-backgroundL{
    position:fixed;
    left:0;
    top:9%;
    width:40%;
    height:100%;
    z-index:-2;
    overflow:hidden
}
.side-backgroundL img{
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0.3
}
.side-backgroundR{
    position:fixed;
    right:0;
    top:9%;
    width:40%;
    height:100%;
    z-index:-2;
    overflow:hidden
}
.side-backgroundR img{
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0.3
}
footer{
    background-color:rgba(43,30,20,0.95);
    padding:15px 0;
    border-top:2px solid var(--c-palette-5);
    text-align:center
}

/* руны-подпись "сыны Одина" в подвале */
footer::before{
    content:"ᛋᛁᚾᛟᚹᛁᚨ ᛟᛞᛁᚾ ᛋᛁᚾᛟᚹᛁᚨ ᛟᛞᛁᚾ ᛋᛁᚾᛟᚹᛁᚨ ᛟᛞᛁᚾ";
    display:block;
    width:100%;
    text-align:center;
    font-size:1.3rem;
    letter-spacing:0.6rem;
    color:var(--c-palette-5);
    opacity:0.3;
    margin-bottom:8px
}

@media (max-width:1024px){
    .welcome-section{width:60%}
    .discord-widget{width:40%}
    .features-grid{flex-wrap:wrap}
    .feature-item{flex:0 0 calc(50% - 20px);margin-bottom:20px}
    .side-background{display:none}
    .rune-background{display:none}
}
@media (max-width:768px){
    .header-buttons{display:none}
    .hero h1{font-size:2.2rem}
    .welcome-section,.discord-widget{width:100%;padding:0}
    .discord-widget{margin-top:30px}
    .feature-item{flex:0 0 100%}
}
/* стили для всех ссылок */
a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* исключения для спецэлементов */
.header-btn,
.btn,
.logo,
.feature-item a,
.rune-bg a,
.full-width-section a {
    text-decoration: none !important;
}

.header-btn:hover,
.btn:hover,
.logo:hover,
.feature-item a:hover,
.rune-bg a:hover,
.full-width-section a:hover {
    text-decoration: none !important;
}

/* сохраняем стили при наведении на шапку */
.header-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.header-btn:hover svg {
    fill: var(--accent);
}

/* сохраняем стили кнопке */
.btn:hover {
    color: var(--c-palette-6);
    background-color: var(--c-palette-5);
    transform: translateY(-2px);
}

/* для ссылок в теле */
.full-width-section a {
    border-bottom: 1px dashed var(--text);
}

.full-width-section a:hover {
    color: var(--c-palette-6);
    border-bottom: 1px solid var(--c-palette-6);
}

/* виджет онлайна игроков */
.online-widget {
    position: relative;
    display: inline-block;
}

.online-btn {
    display: flex;
    align-items: center;
    background: rgba(69, 43, 24, 0.5);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(165, 108, 55, 0.3);
}

.online-btn:hover {
    background: rgba(69, 43, 24, 0.8);
    transform: scale(1.05);
}

.online-icon {
    margin-right: 5px;
    font-size: 1rem;
}

.online-count {
    font-weight: bold;
    margin: 0 8px;
    font-size: 1.1rem;
    color: var(--accent);
}

.online-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.online-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: rgba(43, 30, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--c-palette-5);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    margin-top: 10px;
}

.online-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.online-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(69, 43, 24, 0.7);
    border-bottom: 1px solid var(--c-palette-5);
}

.online-header h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin: 0;
}

.online-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    transition: color 0.3s;
}

.online-close:hover {
    color: var(--accent);
}

.online-content {
    max-height: 400px;
    overflow-y: auto;
}

.players-loading, .players-error {
    text-align: center;
    padding: 20px;
    color: var(--c-palette-4);
}

.players-error {
    color: #e53e3e;
}

.players-list {
    padding: 10px;
}

.player-card {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: rgba(69, 43, 24, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(165, 108, 55, 0.2);
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--c-palette-5);
}

.player-info {
    flex-grow: 1;
}

.player-name {
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 2px;
    font-size: 1rem;
}

.player-steamname {
    font-size: 0.8rem;
    color: var(--c-palette-4);
    margin-bottom: 2px;
}

.player-steamid {
    font-size: 0.75rem;
    color: var(--c-palette-4);
    opacity: 0.7;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #48bb78;
    margin-left: 10px;
}

.players-updated {
    text-align: center;
    padding: 10px;
    color: var(--c-palette-4);
    font-size: 0.8rem;
    border-top: 1px solid rgba(165, 108, 55, 0.2);
}

.player-steamid {
    text-decoration: none;
    color: var(--c-palette-4);
    transition: color 0.3s;
    font-size: 0.75rem;
    opacity: 0.7;
}

.player-steamid:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* адаптация для телефона */
@media (max-width: 768px) {
    .online-dropdown {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 90%;
        max-width: 320px;
    }
    
    .online-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
}
