/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif; /* Основной шрифт */
    line-height: 1.7;
    color: #333;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5); /* Лёгкий градиентный фон */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Центрирование текста в main и footer */
main, .main-footer {
    text-align: center;
}

/* Сброс центрирования для списков внутри main */
main ul, main ol {
    text-align: left;
    display: inline-block;
    max-width: 900px;
    margin: 0 auto 1.2rem auto;
}

main li {
    text-align: left;
}

/* Сброс центрирования для формы контактов */
.contact-form-section form {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(123, 31, 162, 0.1); /* Фиолетовый оттенок тени */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-section form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #7b1fa2; /* Фиолетовый оттенок */
    font-size: 0.95rem;
}

.contact-form-section form input,
.contact-form-section form textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid #e0e0e0; /* Светлая граница */
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafafa; /* Светлый фон поля */
}

.contact-form-section form input:focus,
.contact-form-section form textarea:focus {
    outline: none;
    border-color: #ff9800; /* Жёлтый при фокусе */
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2); /* Жёлтая подсветка */
    background-color: #ffffff;
}

.contact-form-section form button {
    background: linear-gradient(45deg, #f44336, #ff9800); /* Градиент от красного к жёлтому */
    color: white;
    padding: 1rem 1.8rem;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.contact-form-section form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* Заголовки */
h1, h2, h3 {
    font-family: 'Playfair Display', serif; /* Шрифт для заголовков */
    color: #7b1fa2; /* Фиолетовый оттенок */
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
    color: #555;
}

a {
    color: #2196f3; /* Синий оттенок */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff9800; /* Жёлтый оттенок */
}

/* Header */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.9rem;
    font-weight: 700;
    color: #7b1fa2; /* Фиолетовый */
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #f44336, #ff9800); /* Градиент подчёркивания */
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #7b1fa2, #2196f3, #f44336, #ff9800); /* Яркий градиент */
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite; /* Анимация градиента */
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-text h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: #fff9c4; /* Светло-жёлтый оттенок текста */
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, #ff9800, #2196f3); /* Градиент */
    color: white;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2196f3, #ff9800); /* Обратный градиент */
    color: white;
    border-color: #ff9800;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Intro Section */
.intro {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.intro h1 {
    margin-bottom: 2rem;
    color: #7b1fa2;
}

.intro p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background-color: #ffffff;
}

.features h2 {
    margin-bottom: 2.5rem;
    color: #7b1fa2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(145deg, #f3e5f5, #e3f2fd); /* Лёгкий градиент */
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(123, 31, 162, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(123, 31, 162, 0.15);
}

.feature-card h3 {
    color: #7b1fa2; /* Фиолетовый */
    margin-bottom: 1.2rem;
}

.feature-card p {
    color: #666;
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fce4ec, #e1f5fe); /* Розово-голубой градиент */
    text-align: center;
    max-width: 800px;
    margin: 3rem auto;
    border-radius: 10px;
}

.newsletter h2 {
    color: #7b1fa2;
    margin-bottom: 1rem;
}

.newsletter p {
    color: #555;
    margin-bottom: 1.8rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.btn-secondary {
    background: linear-gradient(45deg, #2196f3, #7b1fa2); /* Сине-фиолетовый градиент */
    color: white;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #7b1fa2, #2196f3); /* Фиолетово-синий градиент */
    color: white;
    padding: 2.5rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-content ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-content a {
    color: #bbdefb; /* Светло-синий оттенок */
}

.footer-content a:hover {
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .main-nav ul {
        gap: 1.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .newsletter {
        max-width: 100%;
        margin: 2rem 0;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .contact-form-section form button {
        width: 100%;
        align-self: center;
    }

    .footer-content ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}