/* 
* AuditFinance - Custom CSS
* Colors:
* - Blue: #0F2B63
* - Coral: #FF6B6B
* - Sand: #F4EBD9
* - Green: #2ECC71
* - Gray: #2F2F2F
*/

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #2F2F2F;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    color: #0F2B63;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF6B6B;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 5rem 0;
    margin-bottom: 1.5rem; /* Added small margin between sections */
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #0F2B63;
    text-align: center; /* Center all headings */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%; /* Center the underline */
    transform: translateX(-50%); /* Center the underline */
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #FF6B6B, #2ECC71);
}

h3 {
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #0F2B63;
    color: white;
}

.btn-primary:hover {
    background-color: #0a1f48;
    color: white;
    box-shadow: 0 4px 8px rgba(15, 43, 99, 0.2);
}

.btn-secondary {
    background-color: #FF6B6B;
    color: white;
}

.btn-secondary:hover {
    background-color: #ff5252;
    color: white;
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #0F2B63;
    color: #0F2B63;
}

.btn-outline:hover {
    background-color: #0F2B63;
    color: white;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF6B6B;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.btn-nav {
    background-color: #0F2B63;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: #FF6B6B;
    color: white;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0F2B63;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F4EBD9;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    background-image: url('../img/K5bPHX.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 43, 99, 0.8), rgba(255, 107, 107, 0.4));
    animation: gradientAnimation 10s infinite alternate;
    z-index: 1;
}

@keyframes gradientAnimation {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.9;
    }
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: white;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
    width: 100%;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn-container {
    text-align: center;
    width: 100%;
}

.hero .btn {
    display: inline-block;
}

.hero p {
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
    margin-bottom: 1rem; /* Added small margin */
}

/* Services Section */
.services {
    background-color: #F4EBD9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Image handling for all sections */
.service-image {
    height: 200px;
    overflow: hidden;
    background-color: #F4EBD9;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    color: #0F2B63;
    margin-bottom: 0.5rem;
}

.service-price {
    color: #FF6B6B;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* Process Section */
.process {
    background-color: white;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.process-step {
    flex: 1;
    min-width: 250px;
    margin: 1.5rem; /* Increased margin for better spacing */
    text-align: center;
    position: relative;
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #0F2B63;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-title {
    margin-bottom: 1rem;
}

.process-steps .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50px;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, #0F2B63, #FF6B6B);
}

/* Advantages Section */
.advantages {
    background-color: #F4EBD9;
    position: relative;
    padding-top: 120px;
}

.advantages h2 {
    text-align: center;
}

.advantages h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Fix advantage section image */
.advantages-image {
    width: 100%;
    height: 250px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #F4EBD9;
}

.advantages-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    fill: #0F2B63;
}

/* Testimonials Section */
.testimonials {
    background-color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #F4EBD9;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(15, 43, 99, 0.2);
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-name {
    font-weight: bold;
}

.author-title {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Form Section */
.contact {
    background-color: #F4EBD9;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.error-message {
    color: #FF6B6B;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info p, .contact-info a {
    color: #000000;
}

/* Fix contact map */
.contact-map {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    background-color: #F4EBD9;
}

/* Footer */
.main-footer {
    background-color: #0F2B63;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-description {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    text-align: left; /* Left-align the footer headings */
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0; /* Keep the underline starting from the left */
    width: 30px;
    height: 2px;
    background-color: #FF6B6B;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

address p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

address a {
    color: rgba(255, 255, 255, 0.7);
}

address a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #ffffff; /* Change color to white */
    font-size: 0.9rem;
}

.footer-logo svg text {
    fill: #ffffff !important; /* Make footer logo text white */
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0F2B63;
    color: white;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.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 {
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Policy Pages */
.policy-page {
    margin-top: 0;
    padding-top: 120px; /* Отступ, чтобы заголовки не упирались в шапку */
    background-color: white;
}

.policy-page h1, .policy-page h2 {
    text-align: center;
}

.policy-page h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Добавление отступа для thank-you страницы */
.thank-you {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    background-color: #F4EBD9;
    padding-top: 120px;
    padding-bottom: 30px;
}

/* Fix for section headers when navigating through anchor links */
#about, #services, #process, #advantages, #testimonials, #contact {
    padding-top: 120px;
    margin-top: -80px;
}

p {
    margin-bottom: 1.2rem; /* Added margin to paragraphs */
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .process-steps .process-step::after {
        display: none;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: white;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        height: auto;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-nav li {
        margin: 1rem 0;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .service-image {
        height: 150px;
    }
} 