/* 
* Domain - Financial Audit Services CSS
* Color Palette: 
* - Deep navy #34495e (accents)
* - Light blue #a9cce3 (background areas)
* - Royal blue #2980b9 (buttons and links)
* - Light gray #ecf0f1 (feedback blocks)
* - Dark gray #2c3e50 (text and backing)
*/

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-color: #34495e;
    --bg-color: #a9cce3;
    --button-color: #2980b9;
    --feedback-color: #ecf0f1;
    --text-color: #2c3e50;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #E0E0E0;
    --border-radius: 20px;
    --button-radius: 16px;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

a {
    color: var(--button-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--button-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--button-color), #3a8695);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a8695, var(--button-color));
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 161, 175, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--button-color);
    color: var(--button-color);
}

.btn-secondary:hover {
    background-color: var(--button-color);
    color: var(--white);
}

.accent {
    color: var(--accent-color);
}

/* ===== Header Styles ===== */
.site-header {
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    margin-right: 10px;
}

.logo-image svg {
    width: 30px;
    height: 30px;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF7F00;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.contact-btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--button-radius);
}

.contact-btn:hover {
    background-color: #c04545;
    color: var(--white);
}

/* Мобильное меню с PHP вместо JavaScript */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.menu-toggle-link {
    display: block;
    text-decoration: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(145deg, var(--accent-color) 0%, #1a5276 100%);
    color: var(--white);
    text-align: center;
    padding: 160px 0 80px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.hero-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===== About Section ===== */
.about-section {
    background-color: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 100%;
    height: 200px;
    margin: 0 auto 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* ===== Advantages Section ===== */
.advantages-section {
    background-color: var(--bg-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(217, 79, 79, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.advantage-item:hover .advantage-icon {
    background-color: rgba(217, 79, 79, 0.2);
    transform: rotate(360deg);
}

.icon {
    width: 30px;
    height: 30px;
    fill: var(--accent-color);
}

/* ===== Contact Form Section ===== */
.contact-section {
    background-color: var(--feedback-color);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(76, 161, 175, 0.3);
    overflow: hidden;
}

.form-container::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--button-color), var(--bg-color), var(--feedback-color));
    z-index: -1;
    border-radius: calc(var(--border-radius) + 2px);
    animation: animateGlow 3s linear infinite;
    background-size: 400%;
}

@keyframes animateGlow {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.contact-form {
    display: grid;
    grid-gap: 20px;
}

.form-group {
    margin-bottom: 5px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: var(--accent-color);
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: var(--button-radius);
    font-size: 16px;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    border-color: var(--button-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 161, 175, 0.2);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background-color: var(--light-gray);
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonial-item {
    flex: 1 1 300px;
    max-width: 380px;
}

.testimonial-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(217, 79, 79, 0.1);
    font-family: serif;
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--gray);
}

.author-name {
    font-weight: 600;
    margin-bottom: 0;
}

.author-position {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* ===== FAQ Section ===== */
.faq-section {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--button-radius);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    position: relative;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.faq-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    position: relative;
    padding: 0;
}

.faq-toggle::before {
    content: "+";
    font-size: 1.5rem;
    color: var(--accent-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item.active .faq-toggle::before {
    content: "−";
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
    border-top: 1px solid var(--gray);
}

/* Скрываем форму внутри FAQ */
.faq-item form {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-company {
    grid-column: span 1;
}

.footer-logo {
    margin-bottom: 20px;
}

.company-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-nav, .footer-legal, .footer-contact {
    grid-column: span 1;
}

.site-footer h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--bg-color);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    margin-right: 10px;
    fill: var(--accent-color);
}

.contact-item a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.contact-item a:hover {
    opacity: 1;
    color: var(--bg-color);
}

.copyright-bar {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== Cookie Popup ===== */
.cookie-popup {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 15px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 0;
    opacity: 1;
}

.cookie-content {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
}

/* ===== Legal Pages ===== */
.legal-page {
    padding: 120px 0 60px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray);
}

.legal-content h2 {
    text-align: left;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.legal-content h3 {
    color: var(--accent-color);
    margin-top: 30px;
}

/* ===== Thank You Page ===== */
.thank-you-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--feedback-color) 0%, var(--bg-color) 100%);
    text-align: center;
}

.thank-you-content {
    background-color: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 90%;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background-color: var(--feedback-color);
    color: var(--accent-color);
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.thank-you-content h2 {
    margin-bottom: 20px;
}

.thank-you-content p {
    margin-bottom: 30px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .main-nav.menu-open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
} 