/* 
* Основные цвета:
* Темно-фиолетовый: #2D1E40
* Пастельно-бирюзовый: #95D3C2
* Розово-коралловый: #F45B69
* Песочно-желтый: #F9C784
* Серо-синий: #4A5768
*/

/* Сброс стилей и общие стили */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --dark-purple: #2D1E40;
    --pastel-turquoise: #95D3C2;
    --coral-pink: #F45B69;
    --sand-yellow: #F9C784;
    --blue-gray: #4A5768;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --header-height: 80px; /* Добавляем переменную для высоты шапки */
    
    /* Размеры шрифтов заголовков */
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --h1-font-size-sm: 1.8rem;
    --h2-font-size-sm: 1.5rem;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: var(--header-height); /* Добавляем отступ при скролле для якорных ссылок */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

section {
    padding: 60px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-purple);
}

h1 {
    font-size: var(--h1-font-size);
}

h2 {
    font-size: var(--h2-font-size);
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: var(--coral-pink);
}

h3 {
    font-size: var(--h3-font-size);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--dark-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--coral-pink);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--coral-pink);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e04b59;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--pastel-turquoise);
    color: var(--dark-purple);
}

.btn-secondary:hover {
    background-color: #85c3b2;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header и навигация */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    height: var(--header-height); /* Фиксируем высоту шапки */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 180px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--coral-pink);
    background-color: rgba(244, 91, 105, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-purple);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* Hero секция */
.hero {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--blue-gray) 100%);
    color: var(--white);
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center; /* Центрируем текст в hero-секции */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/AIrefk.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto; /* Центрируем блок по горизонтали */
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center; /* Центрируем кнопки */
}

/* О компании */
.about {
    background-color: var(--light-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content h2::after {
    left: 0;
    transform: none;
}

/* Почему выбирают нас */
.features {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pastel-turquoise);
    color: var(--dark-purple);
    border-radius: 50%;
    font-size: 1.5rem;
}

/* Добавляем стиль для изображения в секции features */
.features-image {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Услуги */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coral-pink);
    margin: 15px 0;
    display: block;
}

/* Отзывы */
.testimonials {
    background: linear-gradient(135deg, var(--blue-gray) 0%, var(--dark-purple) 100%);
    color: var(--white);
    position: relative;
}

.testimonial-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: var(--pastel-turquoise);
}

.author-info h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.author-title {
    font-size: 0.9rem;
    opacity: 0.7;
}

.testimonials .section-title h2 {
    color: var(--white);
}

/* Форма заказа */
.contact {
    background-color: var(--light-gray);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.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 var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--pastel-turquoise);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-item:hover {
    border-color: var(--pastel-turquoise);
    background-color: rgba(149, 211, 194, 0.05);
}

.radio-input {
    margin-right: 10px;
    margin-top: 3px;
}

.radio-label {
    flex: 1;
}

.service-title {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.service-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.checkbox-group {
    margin-top: 20px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.checkbox-input {
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Стили для отмеченных чекбоксов */
.checkbox-input:checked {
    accent-color: var(--dark-purple);
}

.checkbox-label {
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-submit {
    background-color: var(--dark-purple);
    color: var(--white);
    width: 100%;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #3d2a56;
    color: var(--white);
}

/* FAQ */
.faq {
    background-color: var(--white);
}

.faq-item {
    border-bottom: 1px solid var(--medium-gray);
    padding: 20px 0;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    padding-right: 30px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    top: 5px;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-item.active .faq-answer {
    padding: 15px 0;
    max-height: 1000px;
}

/* Для PHP-реализации FAQ добавляем стили для ссылок */
.faq-question a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    position: relative;
}

.faq-question a:hover {
    color: var(--coral-pink);
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: rgba(244, 91, 105, 0.1);
    border: 1px solid var(--coral-pink);
    color: var(--coral-pink);
}

.alert ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Footer */
.site-footer {
    background-color: var(--dark-purple);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--coral-pink);
    display: inline-block;
}

.footer-column p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.contact-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--pastel-turquoise);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.cookie-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Thank You Page */
.thank-you {
    padding: 150px 0 80px;
    text-align: center;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background-color: var(--pastel-turquoise);
    color: var(--dark-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 30px;
}

.thank-you h1 {
    margin-bottom: 20px;
}

/* Страницы политик */
.policy-page {
    padding: calc(var(--header-height) + 60px) 0 80px; /* Добавляем отступ сверху равный высоте шапки */
}

.policy-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
    margin-top: 40px;
}

.policy-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content ul li {
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px; /* Уменьшаем высоту шапки для мобильных */
    }
    
    section {
        padding: 40px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        max-height: 300px;
        padding: 20px;
    }
    
    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
    }
    
    .hero {
        padding: 130px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: var(--h1-font-size-sm);
    }
    
    h2 {
        font-size: var(--h2-font-size-sm);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .checkbox-item {
        align-items: center;
    }
    
    .checkbox-input {
        width: 24px;
        height: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin: 5px 0;
    }
} 