/* --- Сброс и Шрифты --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PT Sans", sans-serif;
    color: #23383f;
    font-size: 13px;
    width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
    font-family: "PT Sans Bold", sans-serif;
    font-weight: normal;
}
a {
    transition: all 0.3s ease;
    cursor: pointer;
    color: #661618;
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}
.clear {
    clear: both;
}

/* --- Основной Контейнер --- */
.container {
    margin: 0 auto;
    max-width: 1240px;
    width: 100%;
    position: relative;
    padding: 0 10px;
}

/* --- Фоновые блоки (Секции) --- */
div.header {
    background: url(../images/header.jpg) no-repeat center top;
    height: 1100px;
}
.inner div.header {
    background: url(../images/header-inner.jpg) no-repeat center top;
    height: 620px;
}

.content {
    background: url(../images/content.jpg) no-repeat center;
    min-height: 1100px;
    margin: -2px 0;
}
.inner .content {
    background:
        url(../images/content-inner.jpg) no-repeat top center,
        url(../images/content-repeat.jpg) repeat-y center;
    min-height: 460px;
    padding: 0px 0 50px;
}

.footer {
    background: url(../images/footer.jpg) no-repeat center;
    height: 300px;
    margin-top: -1px;
}

/* --- Верхняя панель (Top Bar) --- */
.top-bar {
    background: url(../images/top-bar.png) no-repeat center top;
    height: 50px;
    opacity: 0.3;
    z-index: 10;
    position: relative;
    transition: all 0.3s ease;
    text-align: left;
}
.top-bar:hover {
    opacity: 1 !important;
}
.top-bar .item {
    float: right;
    margin-right: 20px;
    font-size: 14px;
    color: #c4aa90;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar .button {
    background: url(../images/button.png) 0 0 no-repeat;
    color: #ffcfa5;
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    height: 26px;
    line-height: 24px;
    margin-right: 5px;
    width: 140px;
    text-align: center;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
    flex: 0 0 140px;
}
.top-bar .button:hover {
    transform: scale(1.07);
}
.top-bar .reg {
    display: inline-block;
    line-height: 26px;
    white-space: nowrap;
}
.top-bar .reg a {
    color: #ffc994;
    text-shadow: 1px 1px 2px #000, 0 0 8px rgba(255, 201, 148, 0.35);
}
.top-bar .reg a:hover {
    color: #fff;
    text-shadow: 1px 1px 2px #000, 0 0 12px rgba(255, 201, 148, 0.75);
}

/* --- Логотип --- */
.logo {
    background: url(../images/logo.jpg) 0 0 no-repeat;
    width: 480px;
    height: 330px;
    position: absolute;
    top: 0px;
    right: 0px;
}

/* --- Статус Серверов --- */
.servers {
    position: absolute;
    top: 289px;
    right: 45px;
    text-align: center;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.75);
}

.servers .server {
    background: url("../images/serv-back.png") no-repeat 0 0;
    color: #ffc994;
    font-size: 40px;
    font-family: "Candara Bold", sans-serif;
    height: 25px;
    margin: 20px 0 5px;
    padding: 25px 0 0px;
    position: relative;
    text-align: center;
    width: 430px;
    line-height: 25px;
}
.servers .server.last::after {
    background: url("../images/serv-back.png") no-repeat 0 0;
    bottom: -60px;
    content: "";
    height: 43px;
    left: 0;
    position: absolute;
    width: 430px;
}
.servers .on {
    display: inline-block;
    background: url(../images/on.png);
    width: 60px;
    height: 60px;
    vertical-align: middle;
    background-size: 100% 100%;
}
.servers .off {
    display: inline-block;
    background: url(../images/off.png);
    width: 60px;
    height: 60px;
    vertical-align: middle;
    background-size: 100% 100%;
}
.servers .total {
    color: #ffc994;
    font-size: 18px;
    margin-top: 50px;
    font-weight: 700;
}
.servers .total span {
    font-size: 28px;
    color: #ffffff;
    font-family: "Candara Bold", sans-serif;
}

/* --- Обычная Навигация (Статичная) --- */
.nav {
    height: 85px;
    width: 100%;
    position: absolute;
    top: 698px;
}
.nav ul {
    list-style: none;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.nav ul li {
    background: url(../images/line.png) no-repeat left center;
}
.nav ul li:first-child {
    background: none;
}

.nav ul li a {
    cursor: pointer;
    color: #ffc994;
    font-size: 24px;
    font-family: "Candara Bold", sans-serif;
    padding: 0 32px;
    display: block;
    height: 85px;
    line-height: 85px;
    position: relative;
    z-index: 1;
}
.nav ul li a::after {
    background: rgba(102, 82, 50, 0.3);
    content: "";
    height: 100%;
    width: 102%;
    left: 0;
    top: 0;
    position: absolute;
    z-index: -2;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.nav ul li a:hover:after {
    opacity: 1;
    visibility: visible;
}
.nav ul li a:hover {
    color: #fff;
}

/* --- ФИКСИРОВАННОЕ МЕНЮ (Sticky Menu) --- */
/* Настроено специально под твою картинку */
.fixed-nav {
    width: 100%;
    position: fixed;
    left: 0;
    top: -150px; /* Спрятано выше экрана */
    height: 99px; /* Высота картинки */
    z-index: 9999;

    background: url("../images/fixed-navi.png") center top no-repeat;
    transition: top 0.4s ease-in-out;
}

/* Класс добавляется скриптом при прокрутке */
.fixed-nav.active {
    top: 0;
}

.fixed-nav ul {
    list-style: none;
    text-align: center;
    width: 100%;
    padding-top: 30px; /* Отступ сверху, чтобы текст попал в центр полоски */
    margin: 0;
    display: flex;
    justify-content: center;
}

.fixed-nav ul li {
    display: inline-block;
    margin: 0 5px;
    background: none !important; /* Убираем разделители для плавающего меню */
}

.fixed-nav ul li a {
    display: block;
    color: #ffc994;
    font-size: 18px;
    font-family: "Candara Bold", sans-serif;
    text-decoration: none;
    padding: 5px 20px;
    height: auto;
    line-height: normal;
    text-shadow: 1px 1px 2px #000;
    transition: all 0.3s ease;
}

.fixed-nav ul li a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 201, 148, 0.8);
}

/* --- Контентная Сетка (Layout) --- */
.maincontent {
    width: 65%;
    float: left;
    padding-top: 20px;
}
.sideblock {
    width: 33%;
    float: right;
    padding-top: 40px;
}

/* --- Блок Новостей --- */
.news {
    background: url(../images/news.png);
    width: 346px;
    height: 428px;
    float: left;
    position: relative;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}
.news:nth-child(even) {
    margin-left: 14px;
    margin-right: 0;
}
.news:nth-child(odd) {
    margin-right: 14px;
}

.news .date {
    position: absolute;
    font-family: "Candara Bold", sans-serif;
    font-size: 30px;
    color: #23383f;
    top: 13px;
    left: 15px;
    background: url(../images/news-date.png) 0 0 no-repeat;
    min-width: 62px;
    min-height: 59px;
    z-index: 9;
}
.news .image {
    width: 317px;
    height: 147px;
    margin: 14px auto;
    overflow: hidden;
}
.news .image img {
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
}
.news:hover .image img {
    filter: brightness(1.5);
    transform: scale(1.05);
}

.news .title {
    width: 285px;
    margin: 0 auto;
    color: #a72e20;
    font-size: 24px;
    font-family: "Candara Bold", sans-serif;
    margin-bottom: 5px;
}
.news .text {
    width: 285px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 16px;
    height: 190px;
    overflow: hidden;
}

/* --- Видео и Сайдбар --- */
.video {
    text-align: center;
    padding-bottom: 25px;
    margin-bottom: 0px;
}
.video iframe {
    max-width: 100%;
}

/* --- Footer --- */
.footer .col {
    width: 30%;
    float: left;
    margin-left: 2%;
    color: #948678;
    font-size: 14px;
}
.footer .col .title {
    font-family: "Candara Bold", sans-serif;
    font-size: 24px;
    color: #8a4732;
    margin-bottom: 10px;
}

/* --- Адаптивность (Mobile) --- */
@media (max-width: 1240px) {
    .header,
    .content,
    .footer {
        background-size: cover;
        width: 100%;
        height: auto;
    }
    div.header {
        height: auto;
        min-height: 800px;
    }

    .container {
        width: 100%;
        padding: 0 15px;
    }

    .logo {
        position: relative;
        width: 100%;
        height: 200px;
        background-size: contain;
        background-position: center;
        margin: 0 auto;
    }

    .servers {
        position: relative;
        top: 0;
        right: 0;
        margin: 20px auto;
        width: 100%;
    }
    .servers .server {
        width: 100%;
        background-size: 100% 100%;
        font-size: 24px;
    }
    .servers .server.last::after {
        width: 100%;
        background-size: 100% 100%;
    }

    .nav {
        position: relative;
        top: 0;
        height: auto;
        margin-top: 20px;
    }
    .nav ul li {
        display: block;
        width: 100%;
        background: none;
        border-bottom: 1px solid rgba(102, 82, 50, 0.3);
    }

    /* Скрываем фиксированное меню на мобильных, так как оно занимает много места */
    .fixed-nav {
        display: none;
    }

    .maincontent,
    .sideblock {
        width: 100%;
        float: none;
    }
    .news {
        width: 100%;
        height: auto;
        background-size: cover;
        margin: 0 0 20px 0 !important;
        padding-bottom: 20px;
    }
    .news .image {
        width: 90%;
        height: auto;
    }

    .footer .col {
        width: 100%;
        float: none;
        margin-bottom: 20px;
        text-align: center;
    }
    .footer {
        height: auto;
        padding-bottom: 20px;
    }
}
