
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: disc;
    padding-left: 20px;
}

ol {
    list-style: decimal;
    padding-left: 20px;
}

/* Контейнеры и секции */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Хедер */
.site-header {
    background-color: #343a40;
    color: #fff;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 2rem;
    margin: 0;
}

.logo-link {
    color: #fff;
}

.site-navigation .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.site-navigation .nav-item {
    margin-left: 1rem;
}

.site-navigation .nav-link {
    color: #fff;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.site-navigation .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.discord-link {
    background-color: #7289da;
    color: #fff;
}

.discord-link:hover {
    background-color: #677bc4;
}

.discord-link i {
    margin-right: 0.5rem;
}

/* Главный контент */
.site-main {
    flex: 1;
    padding: 2rem 0;
}

/* Hero секция */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-button {
    background-color: #28a745;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: inline-block; /*  Чтобы можно было задать margin */
}

.hero-button:hover {
    background-color: #218838;
    text-decoration: none;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Секция истории */
.story-section {
    margin-bottom: 2rem;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.story-image {
    max-width: 40%;
    height: auto;
    border-radius: 10px;
}

.story-text-wrapper {
    flex: 1;
}

.story-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Секция особенностей */
.features-section {
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-item i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-item p {
    font-size: 1rem;
}

/* Секция новостей */
.news-section {
    margin-bottom: 2rem;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.news-item i {
    font-size: 1.5rem;
    color: #dc3545;
    margin-right: 1rem;
    flex-shrink: 0;  /* Предотвращает сжатие иконки */
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.news-content time {
    font-size: 0.8rem;
    color: #6c757d;
}

.news-content p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Футер */
.site-footer {
    background-color: #343a40;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    margin: 0;
}

.footer-links a {
    color: #fff;
    margin-left: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Правила (rules.html) */
.rules-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #212529;
}

.rules-section {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.rules-section .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: #343a40;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.rules-item:last-child {
    border-bottom: none;
}

.rules-item i {
    font-size: 1.25rem;
    margin-right: 1rem;
    color: #007bff;
    flex-shrink: 0;
}

.subsection-title {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #495057;
}

.sub-list {
    list-style: circle;
    padding-left: 3rem;
}

.sub-list li {
    padding: 0.5rem 0;
}

/* Discord Etiquette (discord_etiquette.html) */
.etiquette-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #212529;
}

.etiquette-section {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.etiquette-section .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: #343a40;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.etiquette-list {
    list-style: none;
    padding: 0;
}

.etiquette-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.etiquette-item:last-child {
    border-bottom: none;
}

.etiquette-item i {
    font-size: 1.25rem;
    margin-right: 1rem;
    color: #007bff;
    flex-shrink: 0;
}

.short-rules .etiquette-item {
    display: flex;
    align-items: center;
    justify-content: flex-start; /*  Выравнивание по левому краю */
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.short-rules .etiquette-item i {
    margin-right: 1rem; /*  Пространство между иконкой и текстом */
}

.etiquette-summary {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1.5rem;
    text-align: center;
}

.etiquette-final {
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

.final-section {
    text-align: center;
}

/* How to Play (howto.html) */
.howto-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #212529;
}

.howto-section {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.howto-section .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: #343a40;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.howto-list {
    list-style: none;
    padding: 0;
}

.howto-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.howto-item:last-child {
    border-bottom: none;
}

.howto-item i {
    font-size: 1.25rem;
    margin-right: 1rem;
    color: #007bff;
    flex-shrink: 0;
}

.subsection {
    margin-top: 2rem;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #495057;
}

.subsection-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.rp-guide .howto-item {
    padding: 0.5rem 0; /* Меньше отступы для элементов РП гайда */
}

.howto-summary {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1.5rem;
    text-align: center;
}

.howto-final {
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

/* Законы (laws.html) */
.laws-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #212529;
}

.laws-section {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.laws-section .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: #343a40;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.laws-list {
    list-style: none;
    padding: 0;
}

.laws-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.laws-item:last-child {
    border-bottom: none;
}

.laws-item i {
    font-size: 1.25rem;
    margin-right: 1rem;
    color: #007bff;
    flex-shrink: 0;
}

.laws-summary {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1.5rem;
    text-align: center;
}

.laws-final {
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-navigation .nav-list {
        flex-direction: column;
    }

    .site-navigation .nav-item {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        order: -1; /* Помещает изображение перед текстом */
    }

    .story-content {
        flex-direction: column;
        text-align: center;
    }

    .story-image {
        max-width: 80%;
        margin-bottom: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 0.5rem;
    }

    .footer-links a {
        margin-left: 0;
        margin-right: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr; /*  Один столбец на узких экранах */
    }

    .etiquette-section,
    .rules-section,
    .howto-section,
    .laws-section {
        padding: 1rem; /*  Уменьшаем отступы на маленьких экранах */
    }
}
