/* General Styles */
:root {
    --color-primary: #4B3F72; /* Индиго-пурпурный */
    --color-accent1: #F95738; /* Коралловый */
    --color-accent2: #F4A259; /* Шафрановый */
    --color-bg: #FAF3DD; /* Миндальный */
    --color-button: #49C6B7; /* Нефритовый */
    --font-main: 'Montserrat', sans-serif;
    --border-radius: 16px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-primary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent1);
    margin: 1rem auto;
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent1);
}

section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: white;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent1);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-phone {
    color: var(--color-accent1);
}

/* Intro Section */
.intro {
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(75, 63, 114, 0.9) 100%);
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 20px,
        transparent 20px,
        transparent 40px
    );
    pointer-events: none;
}

.logo-text {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.tagline {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.intro-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-button);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.cta-button:hover {
    background-color: var(--color-accent1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* History Section */
.history-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.history-text {
    flex: 1;
}

.history-image {
    flex: 1;
}

.history-image img {
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.history-image img:hover {
    transform: scale(1.02);
}

/* Benefits Section */
.benefits-cards {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.benefit-card {
    flex: 1;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-accent2);
}

.benefit-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Services Section */
.service-cards {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.service-card {
    flex: 1;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-card h3, 
.service-card p {
    padding: 0 1.5rem;
}

.service-card h3 {
    margin-top: 1.5rem;
    color: var(--color-primary);
}

.price {
    background: var(--color-accent2);
    color: white;
    font-weight: bold;
    padding: 0.7rem 1.5rem;
    margin-top: 1.5rem;
    text-align: right;
    font-size: 1.3rem;
}

/* Gallery Section */
.css-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.slides::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.slides::-webkit-scrollbar-track {
    background: transparent;
}

.slides::-webkit-scrollbar-thumb {
    background: transparent;
}

.slide {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100%;
    height: 500px;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-nav-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.slider-nav-item:hover {
    opacity: 1;
}

/* Reviews Section */
.review-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.review-card {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.review-card:nth-child(even) {
    background: var(--color-bg);
}

.review-stars {
    color: var(--color-accent2);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
}

.review-author {
    text-align: right;
    font-weight: 600;
    margin-top: 1rem;
}

/* Order Form Section */
.order {
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(75, 63, 114, 0.9) 100%);
    color: white;
    position: relative;
}

.order::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 20px,
        transparent 20px,
        transparent 40px
    );
    pointer-events: none;
}

.order h2::after {
    background: var(--color-button);
}

form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-primary);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: var(--color-accent2);
    outline: none;
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-checkbox label {
    margin: 0;
    font-weight: normal;
}

.submit-button {
    background: var(--color-button);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.submit-button:hover {
    background: var(--color-accent1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Form error styles */
.form-errors {
    background: rgba(249, 87, 56, 0.1);
    border-left: 4px solid var(--color-accent1);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
}

.error-message {
    color: var(--color-accent1);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info, .footer-contacts, .footer-legal {
    flex: 1;
    min-width: 250px;
}

.footer-description {
    opacity: 0.8;
}

.footer-content h3, .footer-content h4 {
    margin-bottom: 1.5rem;
    color: white;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.cookie-text {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
}

.accept-btn {
    background: var(--color-button);
    color: white;
}

.decline-btn {
    background: #f1f1f1;
    color: var(--color-primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .history-content, .benefits-cards, .service-cards {
        flex-direction: column;
        gap: 3rem;
    }
    
    .history-content {
        text-align: center;
    }
    
    .history-image {
        order: -1;
    }
    
    .slide {
        height: 400px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.2rem;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .main-nav {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-links {
        margin-top: 1rem;
    }
    
    .nav-links li {
        margin: 0 0.5rem;
    }
    
    .slide {
        height: 300px;
    }
    
    .review-cards {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 0.5rem;
    }
    
    .slide {
        height: 200px;
    }
    
    form {
        padding: 1.5rem;
    }
    
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        margin-top: 1rem;
    }
} 