/* Основные стили для главной страницы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Хедер */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* Основной контент */
.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Герой секция */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: #4a5568;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Секции услуг */
.services-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.section-icon {
    font-size: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #2d3748;
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Стили для ссылок-карточек */
.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
    text-decoration: none;
    color: inherit;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-card p {
    color: #718096;
    line-height: 1.5;
    margin-bottom: 20px;
}

.service-arrow {
    font-size: 1.5rem;
    color: #667eea;
    text-align: right;
    font-weight: bold;
}

/* Секция анкеты */
.form-section {
    margin-top: 50px;
}

.form-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
}

.form-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.form-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.form-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Стили для кнопки анкеты */
.form-button {
    display: inline-block;
    background: white;
    color: #667eea;
    text-decoration: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-decoration: none;
    color: #667eea;
}

/* Футер */
.footer {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    color: white;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info h3,
.social-links h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contacts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.social-link {
    display: block;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .main-content {
        padding: 20px;
    }

    .logo {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

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

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .form-card {
        padding: 25px;
    }

    .form-card h2 {
        font-size: 1.5rem;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .service-card {
        padding: 20px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .contacts {
        flex-direction: column;
        align-items: center;
    }

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

    .footer {
        padding: 25px;
    }
}