/* Global Styles */
:root {
    --primary: #4B0082; /* Насыщенный индиго */
    --accent: #00FFCC; /* Электрический мятный */
    --secondary: #F1F1F1; /* Светло-серый */
    --heading: #2C2C2C; /* Глубокий графитовый */
    --text: #333333;
    --white: #FFFFFF;
    --gradient: linear-gradient(to bottom, var(--white), #E6FFF9); /* Градиент от белого к светло-мятному */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--gradient);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
    scroll-margin-top: 80px; /* For better anchor positioning */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

p {
    margin-bottom: 15px;
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent);
    color: var(--heading);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    text-align: center;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 3.5rem;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Improved mobile responsiveness for hero section */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 70px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .hero .btn {
        padding: 10px 25px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 0 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Benefits Section */
.benefits {
    background: linear-gradient(135deg, var(--primary) 0%, #7B2CBF 100%);
    color: var(--white);
}

.benefits h2 {
    color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.benefit-card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.benefit-card p {
    color: #f5f5dc; /* Beige color as requested */
}

/* Services Section */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.service-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonials {
    background: var(--gradient);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

.testimonial-company {
    color: var(--heading);
    font-size: 0.9rem;
}

/* Form Section */
.form-section {
    background-color: var(--white);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-errors {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.error-message {
    color: #d32f2f;
    margin: 5px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--heading);
}

.form-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--secondary);
    background-color: var(--white);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.3);
}

.form-select {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--secondary);
    background-color: var(--white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%234B0082' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.form-checkbox input {
    margin-top: 5px;
}

.form-checkbox label {
    font-size: 0.9rem;
}

/* FAQ Section */
.faq {
    background: var(--gradient);
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    color: var(--heading);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--secondary);
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info {
    padding: 30px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.contact-icon {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 5px;
}

/* Make all contact text white */
.contact-info p, .contact-info a {
    color: var(--white);
}

.contact-info a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

/* Footer */
footer {
    background-color: var(--heading);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--white);
}

.footer-column ul li a:hover {
    color: var(--accent);
}

/* Make all footer text white */
footer p {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--white);
}

/* Policy Pages */
.policy-page {
    padding: 120px 0 60px;
}

.policy-container {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: left;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 9999;
    text-align: center;
    display: none;
}

.cookie-popup.active {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-popup p {
    margin-bottom: 20px;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Thank You Page */
.thank-you {
    text-align: center;
    padding: 150px 0 100px;
}

.thank-you-frame {
    background-color: var(--white);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--accent);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.5;
}

.thank-you h1 {
    color: var(--primary);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.thank-you h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.thank-you p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.thank-you .btn {
    margin-top: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 130px 0 80px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .policy-container {
        padding: 20px;
    }
}
