* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: white;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    height: 23px;
    width: auto;
}

.header-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
}

.header a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    position: relative;
    font-size: 1rem;
    font-weight: 500;
}

.header a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #667eea;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header a:hover::after {
    width: 80%;
}

.header a:hover {
    color: #667eea;
}

.content-container {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    padding-top: calc(3rem + 70px);
    padding-bottom: 2rem;
}

.content-box {
    background: white;
    padding: 3rem;
    border-radius: 0;
    box-shadow: none;
}

.content-box h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.content-box h2 {
    color: #333;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-box p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-box ul {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-box li {
    margin-bottom: 0.5rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer {
    background: #f5f5f5;
    color: #666;
    padding: 0.75rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-copyright {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .header {
        padding: 0.6rem 1rem;
        flex-direction: row;
        justify-content: space-between;
    }

    .header-left,
    .header-right {
        flex: 0 0 auto;
    }

    .header a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .header-logo {
        height: 20px;
    }

    .header-title {
        font-size: 1.1rem;
    }

    .content-container {
        margin: 0 auto;
        padding: 0 1rem;
        padding-top: calc(2rem + 70px);
        padding-bottom: 2rem;
    }

    .content-box {
        padding: 2rem 1.5rem;
    }

    .content-box h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .content-box h2 {
        font-size: 1.4rem;
        margin-top: 1.5rem;
    }

    .content-box p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .content-box ul {
        font-size: 1rem;
        margin-left: 1.5rem;
    }

    .footer {
        padding: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0.75rem;
        flex-direction: row;
        justify-content: space-between;
    }

    .header-left,
    .header-right {
        flex: 0 0 auto;
    }

    .header a {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .header-logo {
        height: 18px;
    }

    .header-title {
        font-size: 1rem;
    }

    .content-container {
        margin: 0 auto;
        padding: 0 0.5rem;
        padding-top: calc(1rem + 70px);
        padding-bottom: 1rem;
    }

    .content-box {
        padding: 1.5rem 1rem;
    }

    .content-box h1 {
        font-size: 1.5rem;
    }

    .content-box h2 {
        font-size: 1.2rem;
    }

    .content-box p {
        font-size: 0.95rem;
    }

    .content-box ul {
        font-size: 0.95rem;
        margin-left: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

}





