/* Global Styles */
:root {
    --color-primary: #3B0F2E;
    --color-secondary: #F1E9DA;
    --color-accent: #FF4A1C;
    --color-bg: #F9F6F0;
    --color-bg-dark: #2E2E2E;
    --color-text: #1E1E1E;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(odd) {
    background-color: var(--color-bg);
}

section:nth-child(even) {
    background-color: var(--color-secondary);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: 40px 0;
    padding: 100px 0;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: #e43a10;
    color: white;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Header Styles */
.site-header {
    background-color: var(--color-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container a {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-svg {
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 25px;
}

.nav-list a {
    color: var(--color-text);
    font-weight: 600;
}

.nav-list a:hover {
    color: var(--color-accent);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-nav-toggle .menu-toggle-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.mobile-nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    background-color: var(--color-primary);
    padding: 20px;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.mobile-nav .nav-list {
    flex-direction: column;
    align-items: center;
}

.mobile-nav .nav-list li {
    margin: 10px 0;
}

.mobile-nav .nav-list a {
    color: white;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(59, 15, 46, 0.8), rgba(59, 15, 46, 0.8));
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 40px;
}

.hero h1, .hero p {
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 3rem;
}

.hero p {
    margin-bottom: 40px;
    font-size: 1.2rem;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.rounded-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Services Section */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3, .service-card p, .service-card a {
    padding: 0 20px;
}

.service-card h3 {
    margin-top: 20px;
}

.service-card p {
    margin-bottom: 30px;
    color: #555;
}

.service-card a {
    display: inline-block;
    margin-bottom: 20px;
}

/* Advantages Section */
.advantages-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    margin-bottom: 20px;
}

.icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.icon-circle span {
    font-size: 2rem;
}

.advantage-item:hover .icon-circle {
    background-color: var(--color-accent);
    color: white;
}

/* Testimonials Section */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-item:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: white;
    transform: rotate(45deg);
    box-shadow: var(--shadow);
    z-index: -1;
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.quote:before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 50px;
    opacity: 0.2;
    color: var(--color-accent);
}

.client-info {
    text-align: center;
    margin-top: 20px;
}

.client-name {
    font-weight: 700;
    color: var(--color-primary);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    position: relative;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-toggle-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: var(--color-text);
    text-decoration: none;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-left: 10px;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Contact Section */
.contact {
    background: linear-gradient(rgba(59, 15, 46, 0.8), rgba(59, 15, 46, 0.8));
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
}

.contact h2:after {
    background-color: var(--color-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-secondary);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(255, 74, 28, 0.2);
}

.service-selection p {
    color: white;
    margin-bottom: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin: 0;
}

/* Footer Styles */
.site-footer {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    display: none;
}

.footer-section.contact h3:after {
    display: none;
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links ul li {
    margin-bottom: 10px;
}

.footer-section.links a {
    color: #ccc;
}

.footer-section.links a:hover {
    color: var(--color-accent);
}

.icon {
    margin-right: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg-dark);
    color: white;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    padding-right: 20px;
}

#accept-cookies {
    background-color: var(--color-accent);
    color: white;
    border: none;
}

/* Policy Pages */
.policy {
    padding: 60px 0;
}

.policy h1 {
    margin-bottom: 30px;
    text-align: center;
}

.policy-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.last-updated {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.policy-content h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

.policy-content h2:after {
    display: none;
}

.policy-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content ul li {
    margin-bottom: 5px;
}

/* Footer Contact Section - отдельное оформление для контактов в подвале */
.footer-section.contact {
    background-color: var(--color-primary);
    padding: 0;
    box-shadow: none;
}

.footer-section.contact h3 {
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .services-container,
    .advantages-container,
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .services-container,
    .advantages-container,
    .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-bottom: 15px;
    }
    
    /* Адаптация первого блока для мобильной версии */
    .hero {
        height: calc(100vh - 70px); /* Учитываем высоту шапки */
        padding-top: 20px;
        margin-top: -20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        height: calc(100vh - 70px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-card, .advantage-item, .testimonial-item {
    animation: fadeIn 0.8s ease forwards;
}

.service-card:nth-child(2),
.advantage-item:nth-child(2),
.testimonial-item:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3),
.advantage-item:nth-child(3),
.testimonial-item:nth-child(3) {
    animation-delay: 0.4s;
}

.advantage-item:nth-child(4) {
    animation-delay: 0.6s;
} 