/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта */
header {
    background: linear-gradient(135deg, #6c7b95 0%, #5a6b7d 100%);
    color: white;
    padding: 3.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 200px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

nav h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #e8f4f8;
}

/* Главная секция */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #8fa2b2 0%, #7a8ca0 100%);
    color: white;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.cta-button {
    background: #5a7a8f;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.cta-button:hover {
    background: #4a6a7f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 122, 143, 0.4);
}

/* Секции контента */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: white;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

section p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Подвал */
footer {
    background: #495057;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Ссылка на телеграмм канал */
.telegram-link {
    color: #006aff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.telegram-link:hover {
    color: #00026a;
    transition: color 0.3s ease;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Стили для страницы "О проекте" */
.about-content {
    margin-top: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #5a6b7d;
}

.feature-card p {
    text-align: left;
    color: #666;
    line-height: 1.6;
}

/* Стили для страницы "Инструкции" */
.instruction-content {
    margin-top: 3rem;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.instruction-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.instruction-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #5a6b7d;
    text-align: center;
}

.instruction-card h4 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    color: #5a6b7d;
}

.instruction-card ol,
.instruction-card ul {
    text-align: left;
    color: #666;
    line-height: 1.8;
    padding-left: 1.5rem;
}

.instruction-card ol li,
.instruction-card ul li {
    margin-bottom: 0.5rem;
}

.instruction-card code {
    background: #f4f4f4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #333;
}

.os-instructions p {
    margin-bottom: 1rem;
    text-align: left;
    color: #666;
    line-height: 1.6;
}

#instructions {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#about-detail {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#team {
    background: white;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #2c2c2c;
    margin: 5% auto;
    padding: 30px;
    border: none;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
}

.license-text {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.agree-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin: 20px auto 0;
    transition: background-color 0.3s;
}

.agree-btn:hover {
    background-color: #1976D2;
}

#license-link {
    color: #4CAF50;
    text-decoration: underline;
    cursor: pointer;
}

#license-link:hover {
    color: #66BB6A;
}

/* Сетки для карт и скинов */
.maps-grid, .skins-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.skin-category {
    flex: 1 0 100%;
    text-align: center;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #3b2a12;
    opacity: 0.95;
    margin-top: 0.5rem;
}

.map-card, .skin-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    flex: 0 1 300px;
    max-width: 350px;
}

.map-card:hover, .skin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.map-card img, .skin-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.map-card h3, .skin-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.map-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.map-download-btn, .download-btn {
    background: linear-gradient(135deg, #6c7b95 0%, #5a6b7d 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-download-btn:hover, .download-btn:hover {
    background: linear-gradient(135deg, #5a6b7d 0%, #4a5b6d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 123, 149, 0.4);
}

/* Кнопки для скинов */
.skin-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.description-btn {
    background: linear-gradient(135deg, #4a6b7d 0%, #3a5b6d 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.description-btn:hover {
    background: linear-gradient(135deg, #3a5b6d 0%, #2a4b5d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 125, 0.4);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    margin: 10% auto;
    padding: 2rem;
    border: none;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    animation: slideIn 0.3s ease;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
}

#modalTitle {
    color: #6c7b95;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#modalDescription {
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Minecraft тематические цвета - спокойные тона */
#maps {
    background: linear-gradient(135deg, #a8c8a8 0%, #8fb08f 100%);
    color: white;
}

#skins {
    background: linear-gradient(135deg, #d4b896 0%, #c4a676 100%);
    color: white;
}

#maps h2, #skins h2 {
    color: white;
}

/* Адаптивность для сеток */
@media (max-width: 768px) {
    .maps-grid, .skins-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .map-card, .skin-card {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
}

