/* Основные стили для SEO-оптимизированного сайта финансового аудита */
:root {
    --bg-color: #f9f3ed;
    --primary-color: #3a2c5f;
    --accent-color: #fca311;
    --secondary-color: #00a896;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --shadow: rgba(58, 44, 95, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Montserrat', 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 2rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* Контейнеры */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--white);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeInUp { animation: fadeInUp 0.8s ease-out; }
.animate-fadeInLeft { animation: fadeInLeft 0.8s ease-out; }
.animate-fadeInRight { animation: fadeInRight 0.8s ease-out; }

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo svg {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--accent-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 20px var(--shadow);
    padding: 1rem 0;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 0;
}

.mobile-nav a {
    display: block;
    padding: 1rem 20px;
    border-bottom: 1px solid rgba(58, 44, 95, 0.1);
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/4MG3J9.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 163, 17, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Grilles */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Cards */
.card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 25px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(58, 44, 95, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

/* Services */
.service-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    transform: scale(0);
}

.service-card:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(58, 44, 95, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 1rem 0;
}

/* Étapes */
.steps {
    position: relative;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 100px;
    background: var(--accent-color);
    transform: translateX(-50%);
    z-index: -1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 25px var(--shadow);
}

/* FAQ - Pure CSS Accordion with Radio Buttons */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 25px var(--shadow);
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(58, 44, 95, 0.12);
}

.faq-radio {
    display: none;
}

.faq-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    background: var(--white);
    border-radius: 15px;
    position: relative;
}

.faq-label:hover {
    background: rgba(58, 44, 95, 0.03);
}

.faq-question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    flex: 1;
    margin-right: 1rem;
}

.faq-icon {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--white);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
    color: var(--text-light);
}

/* Radio Button States */
.faq-radio:checked + .faq-label {
    background: linear-gradient(135deg, rgba(252, 163, 17, 0.1), rgba(0, 168, 150, 0.1));
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-radio:checked + .faq-label .faq-question-text {
    color: var(--primary-color);
    font-weight: 700;
}

.faq-radio:checked + .faq-label .faq-icon {
    background: var(--secondary-color);
    transform: rotate(45deg);
}

.faq-radio:checked + .faq-label + .faq-content {
    max-height: 200px;
    border-top: 1px solid rgba(58, 44, 95, 0.1);
}

/* Active Item Styling */
.faq-radio:checked + .faq-label + .faq-content + .faq-item {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Focus States for Accessibility */
.faq-radio:focus + .faq-label {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Enhanced Hover Effects */
.faq-label:hover .faq-icon {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.faq-radio:checked + .faq-label:hover .faq-icon {
    transform: rotate(45deg) scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-label {
        padding: 1rem;
    }
    
    .faq-question-text {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .faq-icon {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .faq-container {
        padding: 0 10px;
    }
    
    .faq-label {
        padding: 0.75rem;
    }
    
    .faq-question-text {
        font-size: 0.95rem;
    }
    
    .faq-icon {
        width: 22px;
        height: 22px;
        font-size: 0.9rem;
    }
}

/* Formulaire */
.form-section {
    background: var(--gradient);
    color: var(--white);
}

.form-section h2,
.form-section p {
    color: var(--white) !important;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--white);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: var(--white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--accent-color);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Team */
.team-member {
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid var(--accent-color);
}

.team-name {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--white) !important;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    box-shadow: 0 -4px 20px var(--shadow);
    z-index: 9999;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: var(--accent-color);
    color: var(--white);
}

.cookie-decline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero {
        min-height: 70vh;
        text-align: center;
        padding: 100px 0 50px;
    }
    
    .hero h1 {
        font-size: 2rem !important;
        color: var(--white) !important;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem !important;
        color: rgba(255,255,255,0.95) !important;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
        margin-bottom: 1.5rem;
    }
    
    .step {
        flex-direction: column !important;
        text-align: center;
    }
    
    .step::before {
        display: none;
    }
    
    .step-number {
        margin: 0 0 1rem 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .form-container {
        padding: 0 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .card,
    .service-card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; } 