/* Global Styles */
:root {
    --primary-bg: #3B0A42;
    --accent-yellow: #F9D923;
    --accent-olive: #789262;
    --text-light: #F5EBD1;
    --text-dark: #333333;
    --btn-gradient-start: #EC008C;
    --btn-gradient-end: #730046;
    --header-height: 80px; /* Добавляем высоту хедера для скролл-паддинга */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Плавный скролл */
    scroll-padding-top: var(--header-height); /* Отступ для якорей */
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-yellow);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--text-light);
}

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.responsive-img:hover {
    transform: scale(1.02);
}

section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-cookie {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--btn-gradient-start), var(--btn-gradient-end));
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(236, 0, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(236, 0, 140, 0.4);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--accent-olive);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(120, 146, 98, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(120, 146, 98, 0.4);
    color: var(--text-light);
}

.btn-cookie {
    background-color: var(--accent-yellow);
    color: var(--primary-bg);
    font-size: 0.9rem;
    padding: 8px 16px;
}

.btn-cookie:hover {
    background-color: var(--text-light);
    color: var(--primary-bg);
}

/* Header Styles */
header {
    background-color: var(--primary-bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-header {
    width: 120px;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-yellow);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background-image: linear-gradient(135deg, rgba(59, 10, 66, 0.9), rgba(115, 0, 70, 0.9));
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 600px;
}

.hero h1 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero h2 {
    text-align: left;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero h2:after {
    display: none;
}

.hero p {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero .btn-primary {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.hero-image {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    max-width: 40%;
    animation: fadeIn 1.5s ease;
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    margin: 0 auto 1.5rem;
    width: 60px;
    height: 60px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.service-card img {
    margin-bottom: 1rem;
    max-height: 200px;
    object-fit: cover;
    width: 100%;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin: 1rem 0;
}

.service-card .btn-secondary {
    width: 100%;
}

.featured {
    border: 2px solid var(--accent-yellow);
    transform: scale(1.05);
}

.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--accent-yellow);
    color: var(--primary-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Testimonials Section */
.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quote {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 1rem;
}

.quote:before, .quote:after {
    content: "\201C";
    font-size: 2rem;
    color: var(--accent-yellow);
    position: absolute;
}

.quote:before {
    left: -5px;
    top: -10px;
}

.quote:after {
    content: "\201D";
    right: -5px;
    bottom: -10px;
}

.author {
    text-align: right;
    font-weight: 500;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.faq-item h3 {
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

/* Order Form Section */
.order {
    background-image: linear-gradient(135deg, rgba(59, 10, 66, 0.95), rgba(115, 0, 70, 0.95));
    border-radius: 10px;
    margin: 2rem 0;
}

.order-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 2px rgba(249, 217, 35, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin: 0;
    font-size: 0.9rem;
}

.order-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-form {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 10px;
}

/* Contact Section дополнительные стили */
.contact-map h3 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.85);
    color: var(--text-light);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.5s ease;
    text-align: center;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cookie-content p {
    margin-bottom: 0.5rem;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-yellow);
}

.copyright {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Media Queries for Responsiveness */
@media (min-width: 768px) {
    .hero-content {
        width: 50%;
    }
    
    .hero-image {
        display: block;
    }
    
    .about-content,
    .contact-content {
        flex-direction: row;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-image {
        right: 5%;
    }
    
    .featured {
        transform: none;
    }
    
    .featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 767px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-bg);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        text-align: center;
    }
    
    .nav-menu li a {
        display: block;
        padding: 0.8rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
        align-items: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .service-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Исправление для select в форме */
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    appearance: auto; /* Стандартный вид для select */
}

.form-group select option {
    background-color: var(--primary-bg);
    color: var(--text-light);
    padding: 10px;
}

/* Унифицированные стили для страниц политик */
.policy {
    padding: 6rem 0 4rem;
}

.policy h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-yellow);
}

.policy-content {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    text-align: left;
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.policy-section h2:after {
    display: none;
}

.policy-section h3 {
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.policy-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-section ul li {
    margin-bottom: 0.5rem;
}

.back-link {
    text-align: center;
}

/* Добавляем отступы для секций, чтобы якоря вели правильно */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
} 