/* Современные стили для сайта Domain */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: linear-gradient(135deg, #FFD9C0 0%, #FF7F50 100%);
    --text-color: #2E2E2E;
    --accent-color: #00A676;
    --accent-hover: #20C997;
    --form-bg: #F4F4F4;
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--primary-bg);
    overflow-x: hidden;
}

/* Типография */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1rem; font-size: clamp(1rem, 2vw, 1.2rem); }

/* Контейнеры */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
    position: relative;
}

/* Хедер */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent-hover);
    transform: scale(1.05);
}

/* Навигация в хедере */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color);
    background: rgba(0, 166, 118, 0.1);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--accent-color);
}

/* Мобильное меню */
.menu-toggle {
    display: none;
}

.menu-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
}

/* Hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--primary-bg);
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Компенсация высоты header */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./img/9W1nSP.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    animation: fadeInUp 1s ease;
    position: relative;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.hero p {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    position: relative;
    z-index: 15;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero .btn-outline {
    position: relative;
    z-index: 15;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--accent-color);
}

/* Секции контента */
.content-section {
    background: var(--white);
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.section-content {
    padding: 4rem 2rem;
}

/* Специальные стили для разделов "О компании" и "Почему мы" */
.about-section {
    background: linear-gradient(135deg, rgba(255, 217, 192, 0.1) 0%, rgba(255, 127, 80, 0.05) 100%);
}

.why-us-section {
    background: linear-gradient(135deg, rgba(0, 166, 118, 0.05) 0%, rgba(32, 201, 151, 0.02) 100%);
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    transition: var(--transition);
}

.advantage-item:hover {
    background: var(--white);
    transform: translateX(5px);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}

.review-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.review-author {
    font-weight: 600;
    color: var(--accent-color);
}

/* FAQ */
.faq-container {
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    background: var(--white);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-weight: 600;
}

.faq-question:hover {
    background: var(--form-bg);
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.faq-toggle:checked + .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    background: var(--form-bg);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 200px;
    padding: 1.5rem;
}

/* Форма */
.form-section {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label,
.form-label-main {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--form-bg);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 166, 118, 0.1);
}

/* Радио кнопки в сетке */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: var(--form-bg);
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.radio-item:hover {
    border-color: var(--accent-color);
    background: rgba(0, 166, 118, 0.05);
}

.radio-item input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.radio-item label {
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Секция согласий */
.consent-section {
    background: rgba(0, 166, 118, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.consent-item:last-child {
    margin-bottom: 0;
}

.consent-item input[type="checkbox"] {
    margin-top: 0.2rem;
    cursor: pointer;
    transform: scale(1.1);
}

.consent-item label {
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    color: var(--text-color);
}

.consent-item a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
}

.consent-item a:hover {
    border-bottom-style: solid;
}

/* Кнопка отправки */
.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.btn-submit span {
    font-size: 1.2rem;
}

/* Контакты */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

/* Футер */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    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: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons .btn-outline {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.cookie-buttons .btn-outline:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .contact-header {
        display: none;
    }
    
    .menu-toggle-label {
        display: flex;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-content {
        padding: 2rem 1rem;
    }
    
    .services-grid,
    .advantages-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    /* Форма на мобильных */
    .form-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .radio-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .radio-item {
        padding: 0.7rem;
    }
    
    .consent-section {
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Hero адаптация для мобильных */
    .hero {
        padding-top: 100px; /* Больший отступ на мобильных */
        min-height: calc(100vh - 20px); /* Компенсация с учетом padding */
    }
    
    .hero-success {
        padding-top: 100px; /* Больший отступ для страницы благодарности на мобильных */
    }
    
    .hero-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    /* Hero для очень маленьких экранов */
    .hero {
        padding-top: 120px; /* Еще больший отступ для маленьких экранов */
        min-height: calc(100vh - 40px);
    }
    
    .hero-success {
        padding-top: 120px; /* Еще больший отступ для страницы благодарности */
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem; /* Уменьшаем размер заголовка */
    }
    
    .hero p {
        font-size: 1.1rem; /* Уменьшаем размер текста */
    }
    
    .hero-buttons {
        flex-direction: column; /* Кнопки друг под другом */
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .btn-submit {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .service-card,
    .review-card {
        padding: 1.5rem;
    }
    
    /* Форма на очень маленьких экранах */
    .form-section {
        padding: 1rem;
    }
    
    .consent-item {
        gap: 0.6rem;
    }
    
    .consent-item label {
        font-size: 0.85rem;
    }
}

/* Hero секция для страницы благодарности */
.hero-success {
    position: relative;
    padding-top: 80px; /* Компенсация для страницы благодарности */
}

.hero-success::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 166, 118, 0.1) 0%, rgba(0, 166, 118, 0.05) 50%, transparent 100%);
    border-radius: 50%;
    z-index: 1;
}

.success-icon {
    display: inline-block;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.checkmark-svg {
    width: 120px;
    height: 120px;
    stroke: var(--accent-color);
    stroke-width: 3;
    fill: none;
    animation: checkmark-animation 1s ease-in-out;
}

@keyframes checkmark-animation {
    0% {
        stroke-dasharray: 0 100;
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        stroke-dasharray: 100 0;
        opacity: 1;
        transform: scale(1);
    }
}

/* Специальные утилиты */
.text-center { text-align: center; }
.text-accent { color: var(--accent-color); }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }

/* Доступность */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Высокий контраст */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}