/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f8fafc;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a365d;
}

.logo {
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2b6cb0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2b6cb0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3182ce;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-phone {
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);
}

.nav-phone:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #2a4a8c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(49, 130, 206, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(49, 130, 206, 0.2);
}

.cta-button:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #2a4a8c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(49, 130, 206, 0.3);
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: white;
}

.section:nth-child(odd) {
    background: #f7fafc;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1a365d;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About Section */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    space-y: 2rem;
}

.about-intro h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 1rem;
}

.about-intro p,
.about-details p {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3182ce;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.5rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .about-image img {
        height: 250px;
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3182ce;
    font-size: 1.5rem;
    border: 3px solid #bee3f8;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a365d;
    font-weight: 600;
}

.service-content p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #4a5568;
    flex: 1;
}

.service-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #3182ce;
    margin: 1.5rem 0;
}

/* Avantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-4px);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.advantage-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a365d;
    font-weight: 600;
}

.advantage-item p {
    color: #4a5568;
    line-height: 1.6;
}

/* Témoignages */
.testimonials {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
}

.testimonial {
    min-width: 350px;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    border: 1px solid #e2e8f0;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 4rem;
    color: #bee3f8;
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-top: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #3182ce;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a365d;
}

.form-control {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f7fafc;
}

.form-control:focus {
    outline: none;
    border-color: #3182ce;
    background: white;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    transform: scale(1.1);
    accent-color: #3182ce;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4a5568;
}

.checkbox-group a {
    color: #3182ce;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    background: #f7fafc;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #1a365d;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    list-style: none;
    position: relative;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
}

.faq-question:hover {
    background: #ebf8ff;
}

.faq-icon {
    font-size: 1.2rem;
    color: #3182ce;
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #4a5568;
    line-height: 1.6;
    animation: fadeInDown 0.3s ease-out;
}

.faq-answer p {
    margin: 0;
    padding-top: 0.5rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стилизация для браузеров, которые поддерживают details */
.faq-item[open] .faq-question {
    background: #ebf8ff;
    border-bottom: 1px solid #e2e8f0;
}

/* Улучшенная доступность */
.faq-question:focus {
    background: #ebf8ff;
    box-shadow: inset 0 0 0 2px #3182ce;
}

/* Footer */
.main-footer {
    background: #1a365d;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #90cdf4;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #a0aec0;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-text {
    color: #a0aec0;
    margin-right: 0.5rem;
}

.social-link {
    color: #90cdf4;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #63b3ed;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.contact-item svg {
    color: #90cdf4;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-link {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #90cdf4;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #a0aec0;
}

.domain-info {
    color: #90cdf4;
    font-weight: 500;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a365d;
    color: white;
    padding: 1.5rem;
    z-index: 2000;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-text h4 {
    color: #90cdf4;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cookie-text p {
    color: #a0aec0;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-accept {
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #2a4a8c 100%);
    transform: translateY(-1px);
}

.btn-learn-more {
    color: #90cdf4;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border: 1px solid #90cdf4;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-learn-more:hover {
    background: #90cdf4;
    color: #1a365d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-form {
        margin: 0 1rem;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .testimonials {
        padding: 1rem 0;
    }
    
    .testimonial {
        min-width: 280px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
}

/* Success and Error Icons */
.success-icon,
.error-icon {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.success-icon svg,
.error-icon svg {
    animation: fadeInUp 0.6s ease-out;
}

/* Утилитарные классы */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* Улучшения для accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} 