/* Основные переменные цветовой палитры */
:root {
    --primary-color: #5A255A;      /* Deep Plum */
    --accent-color: #32FFA9;       /* Electric Mint */
    --background-color: #F5F1E9;   /* Light Beige */
    --text-color: #1B1B3A;         /* Midnight Blue */
    --button-color: #FF6B6B;       /* Sunset Coral */
    --link-hover: #4169E1;         /* Royal Blue */
    --white: #FFFFFF;
    --light-gray: #F8F8F8;
    --mid-gray: #E0E0E0;
    --dark-gray: #333333;
    
    --header-height: 80px;
    --footer-height: 300px;
    
    --container-width: 1200px;
    --container-padding: 20px;
    
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    
    --transition-speed: 0.3s;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--link-hover);
}

button, .button {
    background-color: var(--button-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

button:hover, .button:hover {
    background-color: #FF8080;
    transform: translateY(-2px);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

/* Шапка сайта */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 600;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

/* Основные секции */
section {
    padding: 100px 0;
}

section:nth-child(odd) {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Hero секция */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(90, 37, 90, 0.7) 0%, var(--primary-color) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 3.5rem;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-align: center;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.animated-bg span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 15s infinite linear;
}

.animated-bg span:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.animated-bg span:nth-child(2) {
    top: 70%;
    left: 20%;
    width: 150px;
    height: 150px;
    animation-delay: 2s;
}

.animated-bg span:nth-child(3) {
    top: 40%;
    left: 60%;
    width: 80px;
    height: 80px;
    animation-delay: 4s;
}

.animated-bg span:nth-child(4) {
    top: 80%;
    left: 80%;
    width: 120px;
    height: 120px;
    animation-delay: 6s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.2;
    }
}

/* About секция */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 0 0 48%;
}

.about-image {
    flex: 0 0 48%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-speed);
}

.about-image img:hover {
    transform: scale(1.03);
}

/* Why Choose Us секция */
.why-choose-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-choose-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-speed);
}

.why-choose-item:hover {
    transform: translateY(-10px);
}

.why-choose-image {
    height: 200px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    margin: -30px -30px 20px;
}

.why-choose-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.why-choose-item:hover .why-choose-image img {
    transform: scale(1.05);
}

/* Services секция */
.services-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

.service-icon i {
    font-size: 3rem;
    color: var(--white);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    margin-bottom: 15px;
}

/* Benefits секция */
.benefits-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
}

.benefit-icon {
    flex: 0 0 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.benefit-text {
    flex: 1;
}

.benefit-text h4 {
    margin-bottom: 10px;
}

/* Testimonials секция */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    animation: testimonialSlide 20s infinite;
}

.testimonial {
    flex: 0 0 100%;
    padding: 40px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

@keyframes testimonialSlide {
    0%, 25% {
        transform: translateX(0);
    }
    33%, 58% {
        transform: translateX(-100%);
    }
    66%, 91% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(0);
    }
}

/* FAQ секция */
.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed), padding var(--transition-speed);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Contact форма */
.contact-section {
    background-color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--mid-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
    width: auto;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.contact-info {
    padding: 40px;
}

.contact-info h3 {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    flex: 0 0 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-icon i {
    color: var(--primary-color);
}

.contact-text {
    flex: 1;
}

.contact-text h4 {
    margin-bottom: 5px;
}

.mini-map {
    margin-top: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
}

.mini-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 1001;
    max-width: 400px;
    width: 90%;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: fadeIn 0.5s;
}

.cookie-popup p {
    margin-bottom: 15px;
}

.cookie-btn {
    display: inline-block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Policy Pages */
.policy-page {
    padding: 120px 0 80px;
}

.policy-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.policy-container h2 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.policy-container h3 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.policy-container ul, 
.policy-container ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-container li {
    margin-bottom: 10px;
}

/* Thank You Page */
.thank-you {
    padding: 120px 0;
    text-align: center;
}

.thank-you-content {
    background-color: var(--white);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-content h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.thank-you-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
}

.thank-you-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.back-home {
    display: inline-block;
    text-decoration: none;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--white);
    overflow: hidden;
    transition: height var(--transition-speed);
    z-index: 999;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    height: calc(100vh - var(--header-height));
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    padding: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 720px;
    }
    
    .why-choose-content,
    .services-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text,
    .about-image {
        flex: 0 0 100%;
    }
    
    .about-text {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 540px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-content,
    .benefits-content {
        grid-template-columns: 1fr;
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: calc(var(--header-height) + 30px);
        padding-bottom: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    :root {
        --container-padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    button, .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .benefit-item {
        flex-direction: column;
    }
    
    .benefit-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form,
    .contact-info,
    .policy-container,
    .thank-you-content {
        padding: 30px 20px;
    }
}
