* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
}

header {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header i {
    margin-right: 12px;
    font-size: 2rem;
}

.header-info {
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
}

.header-info p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.pricing {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 5px solid #4b6cb7;
}

.pricing h2 {
    color: #182848;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    gap: 12px;
}

.price-list p {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.price-list i {
    margin-right: 10px;
    color: #4b6cb7;
    min-width: 22px;
    font-size: 0.9rem;
}

.note {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    gap: 10px;
}

.divider {
    text-align: center;
    font-size: 1.3rem;
    color: #4b6cb7;
    margin: 35px 0;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.grade-section {
    margin-bottom: 25px;
}

.grade-section h2 {
    color: #2c3e50;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    gap: 12px;
}

.class-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.class-btn {
    padding: 20px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 70px;
}

.class-btn i {
    font-size: 1.3rem;
    opacity: 0.9;
}

.class-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #4b6cb7, transparent);
    margin: 25px 0;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px dashed #dee2e6;
}

.empty-state i {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 15px;
}

.empty-state h3 {
    color: #6c757d;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.empty-state p {
    color: #868e96;
    font-size: 0.95rem;
}

/* Блок контактов */
.contacts-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contacts-header {
    text-align: center;
    margin-bottom: 25px;
}

.contacts-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.5rem;
}

.contacts-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.contacts-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.contact-btn i {
    font-size: 2.2rem;
    margin-bottom: 0px;
}

.contact-link {
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 8px;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
}

/* Кнопка ВКонтакте */
.vk-btn {
    background: linear-gradient(135deg, #4c75a3 0%, #2a5885 100%);
    color: white;
}

.vk-btn:hover {
    background: linear-gradient(135deg, #3b5998 0%, #1e3c72 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(59, 89, 152, 0.3);
}

/* Кнопка Телеграм */
.telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    color: white;
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #00aced 0%, #0077b5 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}

.contacts-note {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.contacts-note p {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 35px;
    background-color: #182848;
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
}

footer p {
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.9;
}

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

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

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

.modal-header {
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    color: white;
    padding: 18px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    margin: 0;
}

.close {
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ffcc00;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.option-btn {
    padding: 16px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: bold;
}

#generalBtn {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
    color: white;
}

#portraitsBtn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.password-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #ddd;
}

.password-section h3 {
    text-align: center;
    margin-bottom: 8px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
}

.password-section p {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95rem;
}

.pin-input {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.pin-input input {
    width: 200px;
    height: 65px;
    text-align: center;
    font-size: 2rem;
    letter-spacing: 12px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 3px solid #4b6cb7;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s;
    padding: 0 15px;
    background-color: #f8f9fa;
}

.pin-input input:focus {
    border-color: #182848;
    box-shadow: 0 0 15px rgba(75, 108, 183, 0.5);
    background-color: white;
}

.pin-input input::placeholder {
    letter-spacing: normal;
    font-size: 0.95rem;
    color: #adb5bd;
    font-family: inherit;
    font-weight: normal;
}

.pin-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.pin-buttons button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.pin-buttons button:first-child {
    background-color: #f8f9fa;
    border: 2px solid #dc3545;
    color: #dc3545;
}

.pin-buttons button:last-child {
    background-color: #28a745;
    color: white;
}

.pin-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 12px;
    font-weight: bold;
    min-height: 25px;
    font-size: 0.95rem;
}

/* Анимация для ошибки */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.6rem;
        gap: 12px;
    }
    
    header i {
        font-size: 1.6rem;
    }
    
    .header-info {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .header-info p {
        gap: 8px;
    }
    
    .pricing h2 {
        font-size: 1.3rem;
        gap: 10px;
    }
    
    .grade-section h2 {
        font-size: 1.3rem;
        gap: 10px;
    }
    
    .class-buttons {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
    
    .class-btn {
        padding: 18px 12px;
        font-size: 1.3rem;
        min-height: 65px;
        gap: 10px;
    }
    
    .class-btn i {
        font-size: 1.2rem;
    }
    
    .pin-input input {
        width: 180px;
        height: 60px;
        font-size: 1.8rem;
        letter-spacing: 10px;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-state i {
        font-size: 2.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-width: 400px;
    }
    
    .modal-header h2 {
        gap: 10px;
        font-size: 1.2rem;
    }
    
    .divider {
        font-size: 1.2rem;
        gap: 15px;
    }
    
    .note {
        gap: 8px;
    }
    
    footer p {
        gap: 8px;
    }
    
    .password-section h3 {
        gap: 8px;
    }
    
    /* Адаптивность для блока контактов */
    .contacts-section {
        padding: 25px 20px;
        margin-top: 30px;
    }
    
    .contacts-header h2 {
        font-size: 1.3rem;
        gap: 10px;
    }
    
    .contacts-header p {
        font-size: 1rem;
    }
    
    .contacts-buttons {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 280px;
        padding: 20px;
    }
    
    .contact-btn i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
        border-radius: 15px;
    }
    
    header {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 1.4rem;
        gap: 10px;
    }
    
    .header-info p {
        gap: 6px;
        font-size: 0.85rem;
    }
    
    .pricing h2 {
        font-size: 1.2rem;
        gap: 8px;
    }
    
    .grade-section h2 {
        font-size: 1.2rem;
        gap: 8px;
    }
    
    .class-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .class-btn {
        padding: 16px 10px;
        font-size: 1.2rem;
        min-height: 60px;
        gap: 8px;
        border-radius: 10px;
    }
    
    .class-btn i {
        font-size: 1.1rem;
    }
    
    .pin-input input {
        width: 160px;
        height: 55px;
        font-size: 1.6rem;
        letter-spacing: 8px;
        padding: 0 12px;
    }
    
    .pin-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .pin-buttons button {
        width: 180px;
        justify-content: center;
    }
    
    .modal-buttons {
        gap: 10px;
    }
    
    .option-btn {
        padding: 14px;
        font-size: 1rem;
        gap: 10px;
    }
    
    .divider {
        font-size: 1.1rem;
        margin: 25px 0;
        gap: 10px;
    }
    
    footer {
        padding: 15px;
        font-size: 0.8rem;
    }
    
    footer p {
        gap: 6px;
    }
    
    .modal-header h2 {
        gap: 8px;
        font-size: 1.1rem;
    }
    
    .password-section h3 {
        gap: 6px;
        font-size: 1.1rem;
    }
    
    .note {
        gap: 6px;
        font-size: 0.85rem;
        padding: 10px;
    }
    
    .price-list i {
        margin-right: 8px;
        min-width: 20px;
    }
    
    /* Адаптивность для блока контактов */
    .contacts-section {
        padding: 20px 15px;
        margin-top: 25px;
    }
    
    .contacts-header h2 {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .contacts-buttons {
        gap: 12px;
    }
    
    .contact-btn {
        padding: 18px;
        font-size: 1.1rem;
        min-width: auto;
    }
    
    .contact-btn i {
        font-size: 1.8rem;
    }
    
    .contact-link {
        font-size: 0.85rem;
    }
    
    .contacts-note p {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 5px;
    }
}