body {
    background: url('../img/bg-info.jpg') center center fixed;
    background-size: cover;
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
}

@media (max-width: 768px) {
    .video-background {
        height: 47.8%;
    }

    .video-background::after {
        height: 25px;
    }
}

.header {
    background: linear-gradient(rgb(10 10 12), rgb(10 10 12));
    background-size: cover;
    border-bottom: 1px solid #3a2a1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.footer {
    background: linear-gradient(rgb(10 10 12), rgb(10 10 12));
    background-size: cover;
    border-bottom: 1px solid #3a2a1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Стили страницы*/
.about-server {
    padding: 120px 0 50px;
    min-height: 100vh;
    position: relative;
}

.about-server::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.about-content {
    display: flex;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 170px);
}

/* Боковое меню */
.about-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: rgb(10 10 12);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 20px 0;
    margin-right: 30px;
    border: 1px solid rgba(253, 203, 110, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    height: fit-content;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    position: sticky;
    top: 50px;
    align-self: flex-start;
}

.about-nav {
    display: flex;
    flex-direction: column;
}

.about-nav-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    position: relative;
}

.about-nav-link i {
    width: 25px;
    text-align: center;
    margin-right: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.about-nav-link span {
    transition: all 0.3s ease;
}

.about-nav-link:hover {
    color: white;
    background: rgba(253, 203, 110, 0.1);
}

.about-nav-link:hover i {
    color: var(--accent-color);
}

.about-nav-link.active {
    color: var(--accent-color);
    background: rgba(253, 203, 110, 0.15);
    font-weight: 600;
}

.about-nav-link.active i {
    color: var(--accent-color);
}

.about-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
}

/* Основной контент */
.about-main {
    flex-grow: 1;
    background: rgb(10 10 12);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid rgba(253, 203, 110, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.about-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.about-section.active {
    display: block;
}

.about-title {
    color: var(--accent-color);
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.about-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text h3 {
    color: white;
    font-family: 'Cinzel', serif;
    margin: 25px 0 15px;
    font-size: 1.8rem;
}

.about-text ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.about-text li {
    margin-bottom: 10px;
    position: relative;
}

.about-text li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.about-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: scale-down;
    object-position: center;
    max-height: 80vh;
    min-width: auto;
}


.about-image.cover img {
    width: 100%;
    object-fit: cover;
    height: 300px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптация для мобильных */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 60px;
        max-height: none;
        position: relative;
    }

    .about-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .about-nav-link {
        flex: 1 0 auto;
        padding: 12px 15px;
        justify-content: center;
    }

    .about-nav-link span {
        display: none;
    }

    .about-nav-link i {
        margin-right: 0;
        font-size: 1.2rem;
    }

    .about-nav-link.active::before {
        width: 100%;
        height: 3px;
        top: auto;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .about-server {
        padding-top: 80px;
    }

    .about-main {
        padding: 20px;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .about-nav-link {
        padding: 10px;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .about-text h3 {
        font-size: 1.2rem;
    }
}

/* Стили для таблицы */
.quest-rates {
    margin: 30px 0;
    width: 100%;
    overflow-x: auto;
}

.rates-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(253, 203, 110, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 300px;
}

.rates-header,
.rates-row {
    display: table-row;
}

.rates-header {
    background: rgba(253, 203, 110, 0.2);
}

.rates-header .rates-col-name,
.rates-header .rates-col-value {
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Cinzel', serif;
    text-align: center;
}

.rates-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.rates-row:hover {
    background: rgba(253, 203, 110, 0.1);
}

.rates-col-name,
.rates-col-value {
    display: table-cell;
    padding: 12px 15px;
    vertical-align: middle;
}

.rates-col-name {
    width: 85%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rates-col-value {
    width: 15%;
    text-align: center;
    border-left: 1px solid rgba(253, 203, 110, 0.1);
}

@media (max-width: 768px) {

    .rates-col-name,
    .rates-col-value {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .rates-col-name {
        width: 80%;
    }

    .rates-col-value {
        width: 20%;
    }
}

@media (max-width: 480px) {
    .rates-col-name {
        white-space: normal;
    }
}

/* Стили для таблицы - 2 */
.new-quest-rates {
    margin: 30px 0;
    width: 100%;
    overflow-x: auto;
}

.new-rates-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(253, 203, 110, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 300px;
}

.new-rates-header,
.new-rates-row {
    display: table-row;
}

.new-rates-header {
    background: rgba(253, 203, 110, 0.2);
}

.new-rates-header .new-rates-col-name,
.new-rates-header .new-rates-col-value {
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Cinzel', serif;
    text-align: center;
}

.new-rates-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.new-rates-row:hover {
    background: rgba(253, 203, 110, 0.1);
}

.new-rates-col-name,
.new-rates-col-value {
    display: table-cell;
    padding: 12px 15px;
    vertical-align: middle;
}

.new-rates-col-name {
    width: 5%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.new-rates-col-value {
    width: 30%;
    text-align: center;
    border-left: 1px solid rgba(253, 203, 110, 0.1);
}

@media (max-width: 768px) {
    .new-rates-table {
        min-width: unset;
        width: 100%;
    }

    .new-rates-col-name,
    .new-rates-col-value {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .new-rates-col-name {
        width: 65%;
        white-space: normal;
    }

    .new-rates-col-value {
        width: 35%;
    }
}

@media (max-width: 480px) {

    .new-rates-col-name,
    .new-rates-col-value {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .new-rates-col-name {
        width: 60%;
    }

    .new-rates-col-value {
        width: 40%;
    }
}
