/* Global Styles */
:root {
    --primary-color: #6366F1;
    --secondary-color: #4F46E5;
    --accent-color: #8B5CF6;
    --text-color: #1F2937;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --gradient-start: #667EEA;
    --gradient-end: #764BA2;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.cta-button {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Затемняем изображение для лучшей читаемости текста */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
}

.primary-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Section Styles */
section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Services Grid */
.services-grid, .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card, .benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.service-card:hover, .benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
    border-color: var(--accent-color);
}

.service-card h3, .benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.12);
    transition: var(--transition);
    border: 2px solid transparent;
}

.team-member:hover {
    transform: translateY(-12px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

.team-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--accent-color);
    transition: var(--transition);
}

.team-member:hover .team-image {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.team-member p {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Testimonials */
.testimonials {
    background: var(--light-bg);
    padding: 5rem 0;
}

.testimonials-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.testimonials-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-feature-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.testimonials-image:hover .testimonial-feature-image {
    transform: scale(1.05);
}

.testimonials-content {
    padding: 2rem;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial cite {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* Responsive design for testimonials */
@media (max-width: 968px) {
    .testimonials-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonials-image {
        order: -1; /* Показываем изображение первым на мобильных */
    }

    .testimonials-content {
        padding: 1rem 0;
    }
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.submit-button:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* Footer Enhancements */
.footer-info {
    text-align: left;
}

.footer-info p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-top: 3px solid var(--primary-color);
    transform: translateY(100%);
    transition: transform 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

.cookie-notice.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-notice p {
    margin: 0;
    flex: 1;
    margin-right: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-button:not(.secondary) {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.cookie-button:not(.secondary):hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.cookie-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cookie-button.secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive cookie notice */
@media (max-width: 768px) {
    .cookie-notice {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .cookie-notice p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-button {
        flex: 1;
        min-width: 120px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .team-grid {
        gap: 2rem;
    }
    
    .team-image {
        width: 150px;
        height: 150px;
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover .feature-image {
    transform: scale(1.05);
}

/* Responsive design for about section */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        padding-right: 0;
    }
}

/* Background Decorative Elements */
.section-with-bg {
    position: relative;
    overflow: hidden;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/backgrounds/abstract-photo-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

/* Apply background to specific sections */
.services,
.benefits {
    position: relative;
}

.services::before,
.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/backgrounds/abstract-photo-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
}

/* Fallback for browsers that don't support WebP */
.no-webp .section-with-bg::before,
.no-webp .services::before,
.no-webp .benefits::before {
    background-image: url('../images/backgrounds/abstract-photo-bg.jpg');
}

/* Add subtle gradient overlay */
.services::after,
.benefits::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
    z-index: -1;
}

/* Ensure content stays above background */
.services .container,
.benefits .container {
    position: relative;
    z-index: 1;
}

/* Background Decorations */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(102, 126, 234, 0.7), rgba(118, 75, 162, 0.7)),
                url('../images/backgrounds/abstract-photo-bg.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.about {
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
                url('../images/backgrounds/abstract-photo-bg.webp');
    background-size: cover;
    background-position: center;
}

.services {
    position: relative;
    background: linear-gradient(rgba(243, 244, 246, 0.8), rgba(243, 244, 246, 0.8)),
                url('../images/backgrounds/abstract-photo-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.benefits {
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
                url('../images/backgrounds/abstract-photo-bg.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.benefits:hover::before {
    transform: scale(1);
}

.team {
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
                url('../images/backgrounds/abstract-photo-bg.webp');
    background-size: cover;
    background-position: center;
}

/* Fallback for browsers that don't support WebP */
@supports not (background-image: url('../images/backgrounds/abstract-photo-bg.webp')) {
    .hero::before,
    .about,
    .services,
    .benefits::before,
    .team {
        background-image: url('../images/backgrounds/abstract-photo-bg.jpg');
    }
}

/* Add subtle patterns */
.services::after,
.benefits::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, var(--primary-color) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Contact Section Enhancements */
.contact-info {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-bg), var(--white));
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
}
