/* Основные стили и переменные */
:root {
    --primary-color: #333;
    --background-color: #fdfdff;
    --accent-color: #7b2cbf;
    --font-family: 'Manrope', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Анимированная градиентная полоска */
.gradient-strip {
    height: 12px;
    width: 100%;
    background: linear-gradient(90deg, #9d4edd, #7b2cbf, #c77dff, #9d4edd);
    background-size: 200% 100%;
    border-radius: 0 0 10px 10px;
    animation: gradient-flow 15s ease-in-out infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Шапка и заголовки */
header h1 {
    font-size: 2.5rem;
    color: #240046;
    margin-top: 40px;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Основная кнопка */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(123, 44, 191, 0.5);
}

/* Секция с партнерами */
.partners-section {
    margin-top: 80px;
    background-color: #f8f7ff;
    padding: 40px 20px;
    border-radius: 15px;
}

.partners-section h2 {
    font-size: 2rem;
    color: #240046;
    margin-top: 0;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.partners-grid span {
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Футер */
footer {
    background-color: #232323;
    color: #f0f0f0;
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    text-align: left;
}

.footer-form-section h3 {
    margin-top: 0;
    color: #fff;
}

footer form {
    display: flex;
    gap: 10px;
}

footer input[type="email"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #555;
    background-color: #444;
    color: #fff;
    border-radius: 5px;
    min-width: 200px;
}

footer button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

footer button:hover {
    background-color: #9d4edd;
}

.footer-links {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-links a {
    color: #c77dff;
    text-decoration: none;
}

/* Стили для страницы политики */
.text-page {
    text-align: left;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.text-page h2 {
    margin-top: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    padding-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    color: var(--primary-color);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    text-align: center;
    transform: translateY(-50px);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: translateY(0);
}


/* Адаптивность */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    footer form {
        flex-direction: column;
    }
}