/* 
 * Main Stylesheet for domain.com
 * Color Palette:
 * - Deep Maroon: #520530
 * - Soft Tangerine: #FFAA5A
 * - Cloud White: #F2F2F2
 * - Misty Teal: #B5D2CB
 * - Graphite Black: #222222
 * - Highlight Gradient: linear-gradient(90deg, #FFAA5A 0%, #520530 100%)
 */

/* CSS Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* Для корректного позиционирования якорей */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #222222;
    background-color: #F2F2F2;
}

a {
    text-decoration: none;
    color: #520530;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFAA5A;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFAA5A 0%, #520530 100%);
    margin: 0.8rem auto;
}

/* Buttons & CTAs */
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #FFAA5A 0%, #520530 100%);
    color: #F2F2F2;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(82, 5, 48, 0.3);
    color: #F2F2F2;
}

/* Header Styles */
.main-header {
    background-color: #F2F2F2;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
}

.logo h1 {
    background: linear-gradient(90deg, #FFAA5A 0%, #520530 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 0;
}

.main-nav .nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
}

.main-nav .nav-links li {
    margin: 0 1rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav .nav-links a {
    position: relative;
    font-weight: 500;
}

.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: linear-gradient(90deg, #FFAA5A 0%, #520530 100%);
    transition: width 0.3s ease;
}

.main-nav .nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #520530;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    background-color: #B5D2CB;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/KBKMvT.jpg') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-in-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-in-out;
}

.hero .cta-button {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* About Section */
.about {
    background-color: #F2F2F2;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(82, 5, 48, 0.2);
}

/* Services Section */
.services {
    background-color: #B5D2CB;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #F2F2F2;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(82, 5, 48, 0.2);
}

.service-image {
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Audit Types Section */
.audit-types {
    background-color: #F2F2F2;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.audit-type {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audit-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FFAA5A 0%, #520530 100%);
}

.audit-type:hover {
    transform: translateY(-10px);
}

/* Benefits Section */
.benefits {
    background-color: #B5D2CB;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    background: #F2F2F2;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    background: linear-gradient(90deg, #FFAA5A 0%, #520530 100%);
    color: #F2F2F2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Testimonials Section */
.testimonials {
    background-color: #F2F2F2;
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
    margin: 2rem auto;
    max-width: 900px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.testimonial-slide {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100%;
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-right: 2rem;
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-style: italic;
    position: relative;
    padding: 1rem 0;
}

.testimonial-quote::before, .testimonial-quote::after {
    content: '"';
    font-size: 2rem;
    color: #FFAA5A;
    position: absolute;
}

.testimonial-quote::before {
    top: 0;
    left: 0;
}

.testimonial-quote::after {
    bottom: 0;
    right: 0;
}

.testimonial-author {
    margin-top: auto;
    font-weight: 600;
    color: #520530;
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #B5D2CB;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: #520530;
}

/* Pricing Section */
.pricing {
    background-color: #B5D2CB;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(82, 5, 48, 0.2);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #520530;
    margin: 1rem 0;
}

.price small {
    font-size: 1rem;
    color: #777;
}

.pricing-features {
    margin: 1.5rem 0;
    list-style: none;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* Contact Form Section */
.contact {
    background-color: #F2F2F2;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(90deg, #FFAA5A 0%, #520530 100%);
    padding: 2rem;
    color: #F2F2F2;
    text-align: center;
}

.contact-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #520530;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #B5D2CB;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #FFAA5A;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23520530' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-top: 2rem;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 5px;
}

/* Footer Styles */
.main-footer {
    background-color: #520530;
    color: #F2F2F2;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h2 {
    color: #FFAA5A;
    margin-bottom: 1rem;
}

.footer-info address {
    font-style: normal;
    margin-top: 1rem;
}

.footer-info a, .footer-links a, .footer-legal a {
    color: #B5D2CB;
}

.footer-info a:hover, .footer-links a:hover, .footer-legal a:hover {
    color: #FFAA5A;
}

.footer-links h3, .footer-legal h3 {
    color: #FFAA5A;
    margin-bottom: 1rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(34, 34, 34, 0.95);
    color: #F2F2F2;
    padding: 1rem;
    z-index: 9999;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: #FFAA5A;
    text-decoration: underline;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Policy Pages */
.policy-page {
    max-width: 800px;
    margin: 2rem auto;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.policy-page h2 {
    color: #520530;
    margin-bottom: 1.5rem;
}

.policy-page h3 {
    color: #520530;
    margin: 1.5rem 0 1rem;
}

/* Thank You Page */
.thank-you {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #B5D2CB;
    text-align: center;
}

.thank-you-content {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 10px;
    border: 2px solid #520530;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.thank-you h1 {
    color: #520530;
    margin-bottom: 1rem;
}

.thank-you-icon {
    font-size: 4rem;
    color: #FFAA5A;
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    .main-nav .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #F2F2F2;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav .nav-links li {
        margin: 0;
        text-align: center;
    }
    
    .main-nav .nav-links a {
        display: block;
        padding: 1rem;
    }
    
    .menu-toggle:checked ~ .nav-links {
        max-height: 300px;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}
