/* 
* Audintesa Consultoría Financiera - Main Stylesheet
* Colors:
* - Primary: #5D5FEF (Electric blue)
* - Secondary: #FF6F61 (Bright coral)
* - Background: #1E1E2F (Deep graphite)
* - Text: #F8F8F8 (Smoke white)
* - Accents: #B1FF1A (Lime)
*/

/* ========== Base Styles ========== */
:root {
    --primary: #5D5FEF;
    --secondary: #FF6F61;
    --dark: #1E1E2F;
    --light: #F8F8F8;
    --accent: #B1FF1A;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --error: #FF3B30;
    --success: #34C759;
    --warning: #FFCC00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #fff;
    padding-top: 5rem; /* Space for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: #4a4cdc;
    color: var(--light);
}

.btn-submit {
    background-color: var(--accent);
    color: var(--dark);
    font-weight: 700;
    width: 100%;
    padding: 1rem;
}

.btn-submit:hover {
    background-color: #a0e719;
    color: var(--dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--light);
}

.btn-cookie {
    background-color: var(--accent);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-cookie:hover {
    background-color: #a0e719;
}

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--dark);
    color: var(--light);
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--light);
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 2.5rem;
    width: auto;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 1rem;
}

.nav-list a {
    color: var(--gray-300);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.nav-list a:hover {
    color: var(--light);
}

.nav-cta {
    background-color: var(--secondary);
    color: var(--light) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
}

.nav-cta:hover {
    background-color: #ff5d4e;
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon-line {
    width: 28px;
    height: 2px;
    background-color: var(--light);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* ========== Hero Section ========== */
.hero-section {
    background-color: var(--dark);
    background-image: url('./img/Q6hJ09.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    padding: 16rem 0;
    overflow: hidden;
    color: var(--light);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 30, 47, 0.8); /* Затемняющий оверлей */
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background-color: #fff;
    
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-section h1 {
    font-size: 3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========== About Section ========== */
.about-section {
    position: relative;
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ========== Services Section ========== */
.services-section {
    background-color: var(--gray-100);
    padding: 5rem 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary);
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
}

/* ========== Benefits Section ========== */
.benefits-section {
    padding: 5rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ========== Testimonials Section ========== */
.testimonials-section {
    background-color: var(--gray-100);
    padding: 5rem 0;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--gray-200);
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    line-height: 1;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author p {
    margin-bottom: 0;
}

/* ========== Process Section ========== */
.process-section {
    padding: 5rem 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    background-color: var(--primary);
    color: var(--light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ========== Contact Section ========== */
.contact-section {
    background-color: var(--gray-100);
    padding: 5rem 0;
    position: relative;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background-color: var(--gray-100);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-error {
    background-color: rgba(255, 59, 48, 0.1);
    border-left: 4px solid var(--error);
    color: #c92a23;
}

.alert-error ul {
    margin: 0.5rem 0 0 1rem;
}

.alert-error li {
    margin-bottom: 0.25rem;
}

.alert-success {
    background-color: rgba(52, 199, 89, 0.1);
    border-left: 4px solid var(--success);
    color: #2a994d;
}

.alert-warning {
    background-color: rgba(255, 204, 0, 0.1);
    border-left: 4px solid var(--warning);
    color: #b38f00;
}

/* ========== Footer ========== */
.site-footer {
    background-color: var(--dark);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-column h3 {
    color: var(--light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-contact {
    margin-top: 1.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.footer-contact .icon {
    margin-right: 0.75rem;
}

.footer-contact a {
    color: var(--light);
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-300);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* ========== Cookie Popup ========== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 30, 47, 0.95);
    color: var(--light);
    padding: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-popup p {
    margin-bottom: 0;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.cookie-popup a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-popup a:hover {
    color: var(--secondary);
}

/* ========== Thank You Page ========== */
.thank-you-section {
    padding: 6rem 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.thank-you-icon {
    margin: 0 auto 2rem;
}

.button-group {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ========== Legal Pages ========== */
.legal-section {
    padding: 6rem 0;
}

.legal-content {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.legal-content h2::after {
    left: 0;
    transform: none;
    width: 40px;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.legal-content ul, 
.legal-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ========== Responsive Styles ========== */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 4rem;
    }

    .site-header {
        padding: 0.4rem 0;
    }

    .logo-svg {
        height: 2rem;
    }

    .menu-icon {
        display: flex;
    }

    .menu-toggle:checked + .menu-icon .menu-icon-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle:checked + .menu-icon .menu-icon-line:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .menu-icon .menu-icon-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark);
        display: none;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
    }

    .menu-toggle:checked ~ .main-nav {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 0 1.5rem;
    }

    .nav-list li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        display: block;
        padding: 0.75rem 0;
    }

    .nav-cta {
        margin-top: 0.5rem;
        text-align: center;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .about-grid, 
    .services-grid, 
    .benefits-grid, 
    .testimonials-grid, 
    .process-grid, 
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cookie-popup {
        flex-direction: column;
    }

    .cookie-popup p {
        margin-bottom: 1rem;
        margin-right: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 3.5rem;
    }

    html {
        font-size: 14px;
    }

    .site-header {
        padding: 0.3rem 0;
    }

    .logo-svg {
        height: 1.8rem;
    }

    .menu-icon-line {
        width: 24px;
    }

    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 3rem 0;
    }

    .contact-form {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .btn {
        padding: 0.7rem 1.4rem;
    }

    .footer-grid {
        gap: 2rem;
    }
} 