/* ==========================================================================
   RESET & 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: #2E2E2E;
    background-color: #FFFFFF;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2E2E2E;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 2rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #2E2E2E;
}

a {
    color: #00BFFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #1E90FF;
    text-decoration: underline;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: #F8F9FA;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
}

.btn-secondary {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
}

/* ==========================================================================
   COOKIE POPUP
   ========================================================================== */

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2E2E2E, #1a1a1a);
    color: white;
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    color: #D3D3D3;
}

.cookie-content a {
    color: #00BFFF;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E90FF;
    text-decoration: none;
}

.logo:hover {
    color: #1E90FF;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: #2E2E2E;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1E90FF;
    text-decoration: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, #1E90FF 0%, #00BFFF 100%);
    color: white;
    padding: 8rem 0 6rem;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(30, 144, 255, 0.15);
    border-color: #1E90FF;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
}

.service-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFA500;
    margin: 1rem 0;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: #2E2E2E;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #1E90FF;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

.form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 3rem auto 0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2E2E2E;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #D3D3D3;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #1E90FF;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.checkbox-group {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #F8F9FA;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: #E3F2FD;
    border-color: #1E90FF;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #1E90FF;
}

.policy-checkbox {
    background: #FFF3E0;
    border: 2px solid #FFA500;
}

.policy-checkbox:hover {
    background: #FFE4B5;
    border-color: #FF8C00;
}

.form-error {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #ef5350;
}

.required-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.map-container {
    margin-top: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ==========================================================================
   FOOTER - ИСПРАВЛЕННАЯ ВЕРСИЯ С ПРАВИЛЬНЫМ ВЫРАВНИВАНИЕМ
   ========================================================================== */

.footer {
    background: linear-gradient(135deg, #1a1a1a, #2E2E2E);
    color: #FFFFFF;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-section h3,
.footer-section h4 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.footer-section h3 {
    color: #1E90FF;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #E0E0E0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.footer-section:first-child p {
    margin-bottom: 0;
    padding-right: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #E0E0E0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: #00BFFF;
    text-decoration: none;
    transform: translateX(5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-info p {
    margin-bottom: 0;
    color: #E0E0E0;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-info strong {
    color: #FFFFFF;
    font-weight: 600;
}

.contact-info a {
    color: #00BFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #1E90FF;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #404040;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #B0B0B0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 2rem 1rem;
        margin: 2rem 1rem 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }
    
    .footer-section {
        text-align: left;
        border-bottom: 1px solid #404040;
        padding-bottom: 2rem;
    }
    
    .footer-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-section:first-child p {
        padding-right: 0;
    }
    
    .footer-section h3,
    .footer-section h4 {
        margin-bottom: 1rem;
    }
    
    .contact-info {
        gap: 0.5rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
        border-bottom: 1px solid #404040;
        padding-bottom: 2rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-section {
        padding-bottom: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-primary {
    color: #1E90FF;
}

.bg-primary {
    background-color: #1E90FF;
}

.bg-secondary {
    background-color: #FFA500;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; } 