* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    font-family: Arial, sans-serif;
    color: white;
    min-height: 100vh;
    background-image: url('index.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    background-color: rgba(50, 50, 50, 0.8);
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin: 40px auto;
    position: relative;
}

.container2 {
    background-color: rgba(50, 50, 50, 0.8);
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin: 40px auto;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 25px;
}

.header_color {
	color: #0068d6;
    text-align: center;
    margin-bottom: 25px;
}

.btn_upload {
    text-align: center;
    margin-bottom: 25px;
}

.header h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.2;
}

.header p {
    color: #cccccc;
    font-size: 1em;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.btn {
    background: #0062ad;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: #008efa;
}

.content {
    background: rgba(40, 40, 40, 0.6);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.page-content h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.6em;
    text-align: center;
    line-height: 1.3;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
    color: #cccccc;
    font-size: 0.95em;
}

.hidden {
    display: none;
}

.back-btn {
    background: #ee5a24;
    margin-top: 20px;
}

.back-btn:hover {
    background: #ff6b6b;
}

.division-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.green-btn {
    background: #45a049;
    padding: 16px 20px;
    font-size: 1.1em;
    font-weight: bold;
    min-height: 60px;
}

.green-btn:hover {
    background: #5cd662;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.upload-btn {
    background: linear-gradient(135deg, #800000 0%, #b80000 100%);
    padding: 16px 20px;
    font-size: 1.1em;
    font-weight: bold;
    min-height: 60px;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #ff0000 0%, #bd0000 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding: 15px;
        align-items: flex-start;
        min-height: 100vh;
        height: auto;
    }
    
    .container {
        margin: 20px auto;
        padding: 20px;
        border-radius: 12px;
        max-width: 100%;
    }
    
    .header h1 {
        font-size: 1.7em;
    }
    
    .header p {
        font-size: 0.9em;
    }
    
    .buttons {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.95em;
        min-height: 45px;
    }
    
    .content {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .page-content h2 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }
    
    .page-content p {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
    
    .division-buttons {
        margin: 20px 0;
        gap: 10px;
    }
    
    .division-btn {
        padding: 14px 16px;
        font-size: 1em;
        min-height: 55px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 15px auto;
        padding: 15px;
        border-radius: 10px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .header p {
        font-size: 0.85em;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 0.9em;
        min-height: 40px;
    }
    
    .content {
        padding: 12px;
    }
    
    .page-content h2 {
        font-size: 1.3em;
    }
    
    .page-content p {
        font-size: 0.85em;
    }
    
    .division-btn {
        padding: 12px 14px;
        font-size: 0.95em;
        min-height: 50px;
    }
}

/* Для очень высоких экранов */
@media (min-height: 1000px) {
    .container {
        margin: 80px auto;
    }
}

/* Для горизонтальной ориентации на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        padding: 10px;
    }
    
    .container {
        margin: 10px auto;
        max-width: 90%;
    }
    
    .header {
        margin-bottom: 15px;
    }
    
    .header h1 {
        font-size: 1.4em;
        margin-bottom: 5px;
    }
    
    .buttons {
        margin-bottom: 15px;
    }
    
    .btn {
        padding: 8px 12px;
        min-height: 35px;
        font-size: 0.85em;
    }
}
