/* Основные стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6f61;
    --accent: #4a90e2;
    --background: #f0f0f0;
    --text: #222222;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-start: #ff6f61;
    --gradient-end: lightgoldenrodyellow;
}

html {
    overflow-x: hidden; /* Предотвращаем горизонтальную прокрутку */
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden; /* Предотвращаем горизонтальную прокрутку */
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
}

.content-wrapper {
    min-height: calc(100vh - 300px);
}

/* Хедер и навигация */
.main-header {
    background: white;
    box-shadow: 0 2px 5px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    flex: 0 0 200px;
}

.logo {
    width: 100%;
    height: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--text);
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 150px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: white;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Секция */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

/* About Section */
section.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
}

.about-text {
    flex: 0 0 60%;
    padding-right: 50px;
}

.about-image {
    flex: 0 0 40%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    height: 300px; /* Фиксированная высота блока */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Растягиваем изображение по всему блоку */
}

/* Features Section */
.features {
    background-color: var(--background);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px;
}

.feature-item {
    flex: 0 0 calc(33.333% - 30px);
    margin: 0 15px 30px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.feature-icon i {
    color: white;
    font-size: 24px;
}

/* Добавляем иконки для Feature */
.feature-icon-1::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z'/%3E%3C/svg%3E");
    background-size: cover;
}

.feature-icon-2::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: cover;
}

.feature-icon-3::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z'/%3E%3C/svg%3E");
    background-size: cover;
}

/* Services Section */
.services {
    background-color: white;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px;
}

.service-item {
    flex: 0 0 calc(33.333% - 30px);
    margin: 0 15px 30px;
    padding: 30px;
    background: var(--background);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow);
}

.service-icon {
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-title {
    margin-bottom: 15px;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--background);
    position: relative;
}

.testimonial-item {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
}

.client-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Растягиваем изображение */
}

.client-quote {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 30px;
}

.client-quote::before,
.client-quote::after {
    content: '"';
    position: absolute;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
}

.client-quote::before {
    top: -20px;
    left: 0;
}

.client-quote::after {
    bottom: -40px;
    right: 0;
}

.client-name {
    font-weight: 700;
}

.client-position {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Contact Form Section */
.contact-form-section {
    background-color: white;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: var(--background);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    border-radius: 15px;
}

.form-errors {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 4px solid #ff0000;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.form-errors ul {
    list-style-position: inside;
    color: #ff0000;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.radio-option {
    margin: 0 10px 10px;
    flex: 0 0 calc(33.333% - 20px);
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-input {
    margin-right: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-input {
    margin-right: 8px;
}

.form-submit {
    width: 100%;
    margin-top: 20px;
}

/* FAQ Section */
.faq {
    background-color: var(--background);
}

.faq-item {
    margin-bottom: 20px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.faq-question {
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.faq-answer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.contact-info {
    flex: 0 0 calc(40% - 30px);
    margin: 0 15px;
}

.contact-map {
    flex: 0 0 calc(60% - 30px);
    margin: 0 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-method {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 5px;
}

/* Footer */
.main-footer {
    background: #222;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    margin-right: 40px;
    background-color: transparent; /* Убираем фон у всех секций */
}

.footer-section:last-child {
    margin-right: 0;
}

/* Специально убираем фон у секции about в подвале */
.footer-section.about {
    background-color: transparent !important;
}

.footer-section.about p, 
.footer-section.about div, 
.footer-section.about h3 {
    background-color: transparent;
}

.footer-section.about .contact p {
    background-color: transparent;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #ddd;
}

.footer-section ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(34, 34, 34, 0.95);
    padding: 20px;
    color: white;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    flex: 1;
    margin-right: 30px;
    margin-bottom: 0;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-btn {
    padding: 10px 25px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    background: var(--accent);
}

/* Legal Pages */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

.legal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.legal-content h1 {
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.legal-section p, .legal-section ul, .legal-section address {
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-section ul {
    margin-left: 20px;
}

.legal-section li {
    margin-bottom: 8px;
}

address {
    font-style: normal;
}

/* Thank You Page */
.thank-you {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.thank-you-icon {
    margin: 0 auto 30px;
    width: 100px;
    height: 100px;
    animation: scale 1s ease-in-out forwards;
}

.thank-you h1 {
    margin-bottom: 20px;
    color: var(--accent);
}

.thank-you p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.thank-you-actions {
    margin-top: 30px;
}

@keyframes scale {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .about-image {
        flex: 0 0 100%;
    }
    
    .feature-item, .service-item {
        flex: 0 0 calc(50% - 30px);
    }
    
    .contact-grid {
        flex-direction: column;
    }
    
    .contact-info, .contact-map {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    .footer-section {
        flex: 0 0 calc(50% - 20px);
        margin-right: 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-item, .service-item {
        flex: 0 0 100%;
    }
    
    .radio-option {
        flex: 0 0 calc(50% - 20px);
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 15px;
    }

    /* Убедимся, что форма не выходит за экран */
    .form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .footer-section {
        flex: 0 0 100%;
        margin-right: 0;
    }
    
    .radio-option {
        flex: 0 0 100%;
    }

    /* Уменьшаем отступы в мобильной версии */
    .section {
        padding: 60px 0;
    }

    .legal-content {
        padding: 30px 20px;
    }

    .about-image {
        height: 200px;
    }
}

/* Адресные иконки для footer */
.address-icon::before {
    content: "📍";
}

.phone-icon::before {
    content: "📞";
}

.email-icon::before {
    content: "📧";
} 