/* === 1. ОБЩИЕ И БАЗОВЫЕ СТИЛИ === */
:root {
    --primary-color: #ffc107;
    --dark-color: #121212;
    --light-color: #f4f4f4;
    --grey-color: #333;
    --font-main: 'Teko', sans-serif;
    --font-text: 'Roboto Condensed', sans-serif;
    /* Настройки для карточек фракций */
    /* Карточки сужаются, чтобы все 7 помещались в ширину экрана (ноутбуки, планшеты в альбомной ориентации) */
    --card-width: min(20vh, calc((100vw - 140px) / 7));
    --card-height: 50vh;
    --card-gap: 10px;
    --num-cards: 7;
    --panorama-width: calc(var(--num-cards) * var(--card-width) + (var(--num-cards) - 1) * var(--card-gap));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    background-color: var(--dark-color);
    color: var(--light-color);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === 2. ХЕДЕР И НАВИГАЦИЯ === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    background: rgba(18, 18, 18, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-main);
    font-size: 2.5rem;
    text-decoration: none;
    color: var(--light-color);
}

.logo strong {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin: 0 25px;
}

.nav-menu a {
    color: var(--light-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.btn {
    font-family: var(--font-main);
    text-decoration: none;
    color: var(--dark-color);
    background-color: var(--primary-color);
    padding: 10px 30px;
    font-size: 1.4rem;
    text-transform: uppercase;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

/* === 3. СЕКЦИЯ 1: ГЛАВНЫЙ ЭКРАН (HERO) === */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 20vh;
}

.video-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(18, 18, 18, 0.4) 0%,
            rgba(18, 18, 18, 0.7) 60%,
            var(--dark-color) 95%);
    z-index: -1;
}

.hero-title {
    font-family: var(--font-main);
    font-size: 7rem;
    line-height: 1;
    color: var(--light-color);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.server-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-value {
    font-family: var(--font-main);
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.info-label {
    font-size: 1rem;
    text-transform: uppercase;
}

/* === 4. СЕКЦИЯ 2: ФРАКЦИИ === */
.page-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: -20vh;
    padding: 0 20px 150px;
}

.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('bg4.png');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.7s ease-in-out;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
}

.page-section::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: #0a0a0a;
    z-index: 10;
    clip-path: polygon(0% 100%, 100% 100%, 100% 25%, 95% 35%, 90% 23%, 85% 38%, 80% 25%, 75% 35%, 70% 20%, 65% 40%, 60% 22%, 55% 37%, 50% 20%, 45% 38%, 40% 24%, 35% 32%, 30% 22%, 25% 36%, 20% 22%, 15% 30%, 10% 24%, 5% 35%, 0% 20%);
}

.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 11;
}

.card {
    width: var(--card-width);
    height: var(--card-height);
    margin: 0 calc(var(--card-gap) / 2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.719);
    background-image: url('cool.png');
    background-size: var(--panorama-width) auto;
    background-position-y: center;
    filter: grayscale(100%);
    transition: filter 0.5s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.card:nth-child(1) {
    background-position-x: 0;
}

.card:nth-child(2) {
    background-position-x: calc(-1 * (var(--card-width) + var(--card-gap)));
}

.card:nth-child(3) {
    background-position-x: calc(-2 * (var(--card-width) + var(--card-gap)));
}

.card:nth-child(4) {
    background-position-x: calc(-3 * (var(--card-width) + var(--card-gap)));
}

.card:nth-child(5) {
    background-position-x: calc(-4 * (var(--card-width) + var(--card-gap)));
}

.card:nth-child(6) {
    background-position-x: calc(-5 * (var(--card-width) + var(--card-gap)));
}

.card:nth-child(7) {
    background-position-x: calc(-6 * (var(--card-width) + var(--card-gap)));
}

.card:not(.always-colored):hover {
    filter: none;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.card-hover-text {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 10;
    color: white;
    /* Шрифт уменьшается вместе с карточкой, чтобы «Полицейским» не обрезалось */
    font-size: min(1.6em, calc(var(--card-width) / 7.5));
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 0 15px black, 0 0 5px black;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
}

.card:not(.always-colored):hover .card-hover-text {
    opacity: 1;
}

.faction-member {
    max-width: 400px;
    height: auto;
    position: absolute;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
    bottom: -15px;
    transition: all .5s ease;
}

.card:hover .faction-member {
    transition: all .5s ease;
    bottom: 0px;
}

.card.always-colored {
    filter: none;
    cursor: pointer;
    flex-direction: column;
    border-color: white;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 40px;
    text-decoration: none;
}

.play-button-container {
    text-align: center;
    color: white;
}

.play-button {
    width: 0;
    height: 0;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 50px solid var(--primary-color);
    margin: 0 auto 20px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.7));
}

.card.always-colored:hover .play-button {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 193, 7, 1));
}

.always-colored p {
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.page-section.color-mode::before {
    filter: grayscale(0%);
}

.page-section.color-mode .card {
    filter: none;
}


/* === 5. СЕКЦИЯ 3: КАК НАЧАТЬ ИГРАТЬ === */
.how-to-play-section-new {
    position: relative;
    z-index: 12;
    background-color: #0a0a0a;
    background-image: url('how_to_play.png');
    background-size: cover;
    background-repeat: no-repeat;
    padding: 90px 0;
}

.how-to-play-section-new::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: #0a0a0a;
    z-index: 10;
    clip-path: polygon(0% 100%, 100% 100%, 100% 25%, 95% 35%, 90% 23%, 85% 38%, 80% 25%, 75% 35%, 70% 20%, 65% 40%, 60% 22%, 55% 37%, 50% 20%, 45% 38%, 40% 24%, 35% 32%, 30% 22%, 25% 36%, 20% 22%, 15% 30%, 10% 24%, 5% 35%, 0% 20%);
}

.how-to-play-section-new .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.how-to-play-section-new h2 {
    font-family: var(--font-main);
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.how-to-play-section-new .section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.play-columns {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.play-column {
    flex: 1;
    min-width: min(320px, 100%);
    max-width: 550px;
}

.start-step-card {
    background-color: var(--grey-color);
    border-radius: 10px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.card-text h3 {
    font-family: var(--font-main);
    font-size: 2rem;
    line-height: 1.1;
    margin: 0 0 5px 0;
    color: var(--light-color);
}

.card-text p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.btn-card {
    background-color: var(--primary-color);
    color: var(--dark-color);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.btn-card:hover {
    transform: scale(1.05);
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.social-card {
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    filter: grayscale(100%) opacity(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.social-card .fab,
.social-card .fas {
    font-size: 1.5rem;
}

.social-card:hover {
    filter: grayscale(0%) opacity(100%);
}

.social-card.discord {
    background-color: #5865F2;
}

.social-card.vk {
    background-color: #0077FF;
}

.social-card.youtube {
    background-color: #FF0000;
}

.social-card.telegram {
    background-color: #2AABEE;
}

.bottom-links {
    text-align: center;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom:30px;
}

.bottom-links a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px #000000;
}

.bottom-links a:hover {
    color: var(--primary-color);
}

/* === 6. СЕКЦИЯ 4: АКТИВНОСТИ И РАЗВЛЕЧЕНИЯ === */
.activities-section-new {
    background-color: #0a0a0a;
    padding: 90px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.activities-container {
    display: flex;
    gap: 40px;
}

/* 6.1. Левая колонка (Слайдер) */
.slider-column {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-wrapper {
    width: 100%;
    height: 600px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease-in-out;
    opacity: 0;
}

.slide-background.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 2;
    color: #fff;
    opacity: 0;
    transition: opacity 0.7s ease-in-out, transform 0.5s ease;
    transform: translateY(20px);
}

.slide-content.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.slide-content p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* 6.2. Правая колонка (Галерея) */
.gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-preview {
    width: 100%;
    height: 390px;
    border-radius: 15px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(bggg.png);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
}

.video-preview-text {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.thumbnail {
    width: 100%;
    height: 95px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.more-photos-btn {
    background-color: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.more-photos-btn:hover {
    background-color: #333;
}

.more-photos-btn i {
    margin-top: 5px;
    font-size: 1.2rem;
}

/* === 7. ФУТЕР === */
.site-footer {
    background-color: #121212;
    color: #888;
    padding: 60px 0;
    font-size: 14px;
}

.footer-container {
    max-width: 1400px; /* Согласовано с .container */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
}

.footer-column.logo-info {
    flex-basis: 25%;
    min-width: 250px;
}

.footer-column.links {
    min-width: 180px; /* Немного уменьшено для лучшей гибкости */
}

.footer-column h4 {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a.email-link {
    text-decoration: underline;
}

.footer-column.payments {
    flex-basis: 20%;
    min-width: 200px;
    text-align: right;
}

.payment-methods {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 30px; /* Убран, если статус не используется */
}

.payment-icon {
    width: 50px;
    height: 30px;
    background-color: #252525;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #ccc;
}

.payment-icon.visa {
    font-style: italic;
}

.payment-icon.mastercard {
    letter-spacing: -5px;
}

/* === 8. ЛАЙТБОКС (ГАЛЕРЕЯ) === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    display: block;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    color: #fff;
    cursor: pointer;
    font-size: 2.5rem;
    user-select: none;
    transition: color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    color: #ccc;
}

.lightbox-close {
    top: 30px;
    right: 40px;
}

.lightbox-arrow.prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-arrow.next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

/* Вы можете использовать стили из Варианта 1 для .laws-container и h2 */

.laws-container {
    width: 80%;
    margin: 40px auto;
    padding: 20px;
    margin-top: 120px; /* Можете изменить значение 120px, если нужно больше или меньше отступа */
    background-color: #f9f9f998;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgb(252, 252, 252);
}

.laws-container h2 {
    text-align: center;
    color: #000000;
    font-family: 'Teko', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.laws-list-icons {
    list-style: none;
    padding: 0;
}

.laws-list-icons li {
    margin-bottom: 15px;
}

.laws-list-icons a {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.2em;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.laws-list-icons a:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.laws-list-icons .fa-file-pdf {
    color: #d9534f; /* Красный цвет для иконки PDF */
    margin-right: 15px;
    font-size: 1.5em;
}

/* === СТРАНИЦА ПРАВИЛ (добавь в конец styles.css) === */
.rules-page { padding: 120px 0 60px; }
.rules-container { display: flex; gap: 40px; align-items: flex-start; }
.rules-sidebar { flex: 0 0 300px; position: sticky; top: 100px; background: #1a1a1a; padding: 20px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); }
.rules-sidebar h3 { color: var(--primary-color); font-family: var(--font-main); font-size: 2rem; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.rules-nav { list-style: none; padding: 0; }
.rules-nav a { color: #ccc; text-decoration: none; font-size: 1.1rem; display: block; padding: 5px 0; transition: 0.3s; }
.rules-nav a:hover, .rules-nav a.active { color: var(--primary-color); padding-left: 10px; font-weight: bold;}
.rules-content { flex: 1; background: #1a1a1a; padding: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); }
.rule-block { margin-bottom: 50px; }
.rule-block h2 { color: var(--primary-color); font-family: var(--font-main); font-size: 2.5rem; margin-bottom: 20px; border-bottom: 2px solid #333; padding-bottom: 10px; }
.rule-block p { font-size: 1.1rem; line-height: 1.6; color: #ddd; margin-bottom:10px;}
@media (max-width: 900px) {
    .rules-container { flex-direction: column; }
    .rules-sidebar { position: static; width: 100%; }
}

/* === СТИЛИ ДЛЯ ТЕКСТОВЫХ ДОКУМЕНТОВ (Политика, Соглашение) === */
.agreement-section, .policy-section {
    padding: 120px 20px 60px; /* Отступ сверху для шапки */
    background-color: var(--dark-color);
}

.text-document-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #1a1a1a;
    padding: 50px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.document-title {
    font-family: var(--font-main);
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 0;
    line-height: 1.1;
}

.document-subtitle {
    font-family: var(--font-main);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.document-date {
    color: #888;
    margin-bottom: 40px;
    font-size: 1.1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.text-document-container h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.text-document-container p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 15px;
}

.text-document-container ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.text-document-container li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .text-document-container {
        padding: 30px 20px;
    }
    .document-title {
        font-size: 2.2rem;
    }
}

/* === ИНТЕРФЕЙС БАЗЫ ДОКУМЕНТОВ (PDF VIEWER) === */
.laws-page {
    padding: 120px 0 60px;
    background-color: var(--dark-color);
    min-height: 100vh;
}

.pdf-app-layout {
    display: flex;
    gap: 30px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: 80vh; /* Высота приложения */
    max-height: 900px;
}

/* Левое меню */
.pdf-sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 20px;
    overflow-y: auto; /* Прокрутка, если файлов будет очень много */
}

.pdf-sidebar h3 {
    color: var(--primary-color);
    font-family: var(--font-main);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.pdf-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    color: #ccc;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: var(--font-text);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-btn i {
    color: #d9534f; /* Красный цвет иконки PDF */
    font-size: 1.2rem;
}

.pdf-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.pdf-btn.active {
    background: rgba(255, 193, 7, 0.1); /* Легкая подсветка желтым */
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* Правое окно просмотра */
.pdf-viewer-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-viewer-header h2 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.btn-download {
    background-color: #252525;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
    border: 1px solid #333;
}

.btn-download:hover {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.pdf-frame-container {
    flex: 1;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.pdf-frame-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Стили для телефонов */
@media (max-width: 900px) {
    .pdf-app-layout {
        flex-direction: column;
        height: auto;
    }
    
    .pdf-sidebar {
        flex: none;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 20px;
        max-height: 250px; /* Ограничиваем высоту меню на телефоне */
    }
    
    .pdf-viewer-section {
        height: 60vh; /* Задаем высоту окна просмотра на мобилке */
        margin-top: 10px;
    }
    
    .pdf-viewer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* === PDF: ЗАГЛУШКА ДЛЯ УСТРОЙСТВ БЕЗ ВСТРОЕННОГО ПРОСМОТРА (Android, часть iOS) === */
.pdf-fallback {
    display: none;
    height: 100%;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px;
    text-align: center;
    color: #ccc;
}

.pdf-fallback i.fa-file-pdf {
    font-size: 3.5rem;
    color: #d9534f;
}

.pdf-frame-container.no-inline-pdf iframe { display: none; }
.pdf-frame-container.no-inline-pdf .pdf-fallback { display: flex; }

/* =====================================================================
   === АДАПТИВНОСТЬ: ПК / ПЛАНШЕТЫ / ТЕЛЕФОНЫ ===
   ===================================================================== */

/* Небольшие ноутбуки: меню не помещается с большими отступами */
@media (max-width: 1280px) {
    .nav-menu li { margin: 0 12px; }
    .nav-menu a { font-size: 1rem; }
}

/* Планшеты: бургер-меню */
@media (max-width: 1024px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(18, 18, 18, 0.97);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 0;
        display: none;
    }

    .nav-menu.open { display: flex; }

    .nav-menu li { margin: 0; }

    .nav-menu a {
        display: block;
        padding: 14px 20px;
        font-size: 1.1rem;
    }

    .hero-title { font-size: 5rem; }

    .activities-container { flex-direction: column; }
    .slider-wrapper { height: 450px; }
    .video-preview { height: 320px; }
}

/* Фракции: на узких/портретных экранах — горизонтальная лента со свайпом */
@media (max-width: 900px), (orientation: portrait) {
    :root {
        --card-width: min(44vw, 220px);
        --card-height: min(60vh, 440px);
    }

    .page-section { padding: 0 0 150px; }

    .cards-container {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 20px 16px 30px;
        scrollbar-width: none;
    }

    .cards-container::-webkit-scrollbar { display: none; }

    .card {
        flex-shrink: 0;
        scroll-snap-align: center;
    }
}

/* Сенсорные экраны: нет наведения — подписи фракций показываем сразу */
@media (hover: none) {
    .card-hover-text { opacity: 1; }
    .card .faction-member { bottom: 0; }
    .social-card { filter: none; }
}

/* Телефоны и маленькие планшеты */
@media (max-width: 768px) {
    .logo { font-size: 2rem; }
    .header { padding: 8px 0; }

    .hero-section {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        padding: 100px 16px 20vh;
    }

    .hero-title { font-size: 3.6rem; }
    .hero-subtitle { font-size: 1.15rem; }

    .server-info {
        gap: 20px;
        padding: 15px;
        flex-wrap: wrap;
    }

    .info-value { font-size: 2rem; }
    .info-label { font-size: 0.85rem; }

    .how-to-play-section-new { padding: 60px 0 120px; }
    .play-columns { gap: 20px; }

    .start-step-card {
        flex-wrap: wrap;
        gap: 15px;
        padding: 18px;
    }

    .card-text h3 { font-size: 1.7rem; }

    .start-step-card .btn-card {
        width: 100%;
        justify-content: center;
    }

    .bottom-links { gap: 20px; margin-top: 40px; }

    .activities-section-new { padding: 60px 0; }
    .slider-wrapper { height: 360px; }
    .slide-content { left: 20px; right: 20px; bottom: 25px; }
    .slide-content h2 { font-size: 1.8rem; }
    .slider-arrow { width: 40px; height: 40px; top: 40%; }
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
    .video-preview { height: 230px; }
    .thumbnail-grid { gap: 10px; }
    .thumbnail { height: 70px; }
    .more-photos-btn { font-size: 0.75rem; text-align: center; }

    .footer-container { flex-direction: column; gap: 30px; }
    .footer-column.payments { text-align: left; }
    .payment-methods { justify-content: flex-start; }

    .lightbox-close { top: 15px; right: 20px; }
    .lightbox-arrow.prev { left: 10px; }
    .lightbox-arrow.next { right: 10px; }
    .lightbox-content { max-width: 100%; }

    .rules-page, .laws-page { padding-top: 90px; }
    .rules-content { padding: 20px; min-width: 0; overflow-wrap: anywhere; }
    .shop-title { font-size: 2.8rem; margin-bottom: 30px; overflow-wrap: anywhere; }
    .rule-block h2 { font-size: 2rem; }
    .rule-block p { font-size: 1rem; }

    .agreement-section, .policy-section { padding: 90px 12px 40px; }
}

/* Маленькие телефоны (iPhone SE, 360px Android) */
@media (max-width: 400px) {
    .hero-title { font-size: 3rem; }
    .logo { font-size: 1.8rem; }
    .container { padding: 0 16px; }
    .socials-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .social-card { padding: 15px 10px; font-size: 1rem; }
    .thumbnail-grid { grid-template-columns: repeat(2, 1fr); }
    .thumbnail { height: 90px; }
}
