/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1D1D1D;
    background-color: #F9FBFF;
}

/* CSS Variables for colors */
:root {
    --primary-color: #3E206D;      /* Глубокий индиго */
    --secondary-color: #E1D7F0;    /* Лавандово-серый */
    --accent-color: #C6F35D;       /* Лаймовый салат */
    --light-bg: #F9FBFF;           /* Белый лед */
    --dark-text: #1D1D1D;          /* Угольный */
    --white: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(62, 32, 109, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.contact-phone {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-phone:hover {
    background: var(--accent-color);
    color: var(--dark-text);
    transform: translateY(-2px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-accept {
    background: var(--accent-color);
    color: var(--dark-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-info {
    color: var(--white);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.btn-info:hover {
    color: var(--accent-color);
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Scroll offset for anchor links */
.section {
    scroll-margin-top: 100px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/38ipI7.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    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 both;
}

.cta-button {
    background: var(--accent-color);
    color: var(--dark-text);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(198, 243, 93, 0.3);
}

/* Section Styles */
.section {
    padding: 4rem 0;
    margin: 2rem 0;
}

.section:nth-child(even) {
    background: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(62, 32, 109, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 243, 93, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(62, 32, 109, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 1rem 0;
}

.service-features {
    list-style: none;
    margin: 1rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--secondary-color);
}

.service-features li:last-child {
    border-bottom: none;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(62, 32, 109, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 243, 93, 0.1), transparent);
    transition: left 0.5s ease;
}

.benefit-item:hover::before {
    left: 100%;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(62, 32, 109, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--dark-text);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(198, 243, 93, 0.3);
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.benefit-item p {
    color: var(--dark-text);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(62, 32, 109, 0.1);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(62, 32, 109, 0.1);
}

.faq-question {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 600;
}

.faq-question:hover {
    background: var(--accent-color);
    color: var(--dark-text);
}

.faq-answer {
    padding: 1.5rem;
    background: var(--white);
}

/* Form Styles */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(62, 32, 109, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-color);
    color: var(--dark-text);
    transform: translateY(-2px);
}

/* Contact Info */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(62, 32, 109, 0.1);
}

.contact-info-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Footer contact links white color */
.footer .contact-info a {
    color: var(--white) !important;
    text-decoration: none;
}

.footer .contact-info a:hover {
    color: var(--accent-color) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom-content p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service images */
.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin-top: 70px;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .contact-phone {
        order: 2;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .logo {
        order: 1;
        font-size: 1.5rem;
    }

    .hero {
        padding: 3rem 0 2rem 0;
        margin-top: 0;
        min-height: calc(100vh - 70px);
        display: flex;
        align-items: center;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section {
        padding: 2rem 0;
        scroll-margin-top: 80px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }
    
    .service-image {
        height: 150px;
    }
    
    /* Responsive grid for about section */
    #sobre-nosotros div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 0 2rem 0;
        min-height: calc(100vh - 70px);
    }

    .section {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .service-card,
    .testimonial {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {
    .header,
    .cookie-banner,
    .footer {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}