/* 
 * Main CSS for Domain - Accounting Services
 * Color Palette:
 * - Background: #F8F8F5 (ultra-light pearlescent)
 * - Accent 1: #374BAE (sapphire blue)
 * - Accent 2: #F2542D (coral orange)
 * - Text: #1E1E1E (deep graphite)
 */

/* --- Reset & Base Styles --- */
:root {
    --bg-color: #F8F8F5;
    --text-color: #1E1E1E;
    --accent-blue: #374BAE;
    --accent-coral: #F2542D;
    --light-gray: #f1f1f1;
    --shadow-color: rgba(0,0,0,0.1);
    --transparent-white: rgba(255, 255, 255, 0.85);
    --font-main: 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-coral);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

section {
    padding: 5rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-heading:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-coral));
    margin: 1rem auto;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* CSS-based animations without JS */
.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.slide-left {
    animation: slideInFromLeft 1.2s ease-out forwards;
}

.slide-right {
    animation: slideInFromRight 1.2s ease-out forwards;
}

/* Stagger animations */
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.3s; }
.stagger > *:nth-child(3) { animation-delay: 0.5s; }
.stagger > *:nth-child(4) { animation-delay: 0.7s; }
.stagger > *:nth-child(5) { animation-delay: 0.9s; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn:hover {
    background-color: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 75, 174, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-coral) 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-blue) 100%);
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--transparent-white);
    box-shadow: 0 2px 15px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.5rem;
}

.logo svg {
    margin-right: 10px;
}

.desktop-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.desktop-menu li {
    margin: 0 15px;
}

.desktop-menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.desktop-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-coral));
    transition: width 0.3s ease;
}

.desktop-menu a:hover:after {
    width: 100%;
}

.btn-contact {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-coral) 100%);
    padding: 8px 20px;
    border-radius: 50px;
    color: white !important;
}

.btn-contact:after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
}

/* --- Mobile Menu --- */
.menu-icon {
    width: 30px;
    height: 24px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--accent-blue);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 10px;
}

.menu-icon span:nth-child(3) {
    top: 20px;
}

.menu-icon.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-icon.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--transparent-white);
    box-shadow: 0 5px 10px var(--shadow-color);
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: var(--text-color);
    font-weight: 500;
    display: block;
    padding: 8px 0;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('./img/WEGXmE.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 75, 174, 0.8) 0%, rgba(242, 84, 45, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 650px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1.2s ease-out;
}

.hero-buttons {
    animation: fadeIn 1.4s ease-out;
}

/* --- About Section --- */
.about {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 15px 30px var(--shadow-color);
}

.about-image:before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    z-index: -1;
}

/* --- Services Section --- */
.services {
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-coral));
}

.service-card h3 {
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.service-image {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    height: 180px;
    margin-top: auto;
}

.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);
}

/* --- Advantages Section --- */
.advantages {
    background-color: white;
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-coral) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(55, 75, 174, 0.3);
}

/* --- Steps Section --- */
.steps {
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.step-item {
    position: relative;
    text-align: center;
    padding: 30px 20px;
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-coral) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.steps-grid:before {
    display: none;
}

/* --- Testimonials Section --- */
.testimonials {
    background-color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.testimonial-text {
    position: relative;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-text:before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-blue);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    font-weight: bold;
    display: flex;
    align-items: center;
}

.testimonial-company {
    font-size: 0.9rem;
    color: #666;
}

/* --- FAQ Section --- */
.faq {
    background-color: var(--bg-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.faq-question {
    background-color: white;
    padding: 20px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    width: 100%;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
    content: '−';
}

.faq-answer {
    background-color: var(--light-gray);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* --- Contact Section --- */
.contact {
    background-color: white;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info {
    padding-right: 40px;
}

.contact-image {
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-color);
}

.contact-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.contact-image:hover img {
    transform: scale(1.03);
}

/* Contact Form */
.contact-form-container {
    position: relative;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-coral) 100%);
    border-radius: 15px;
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 15px 30px rgba(55, 75, 174, 0.2);
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--accent-blue);
    outline: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374BAE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.form-footer {
    margin-top: 30px;
    text-align: center;
}

/* --- Footer --- */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-info {
    margin-right: 30px;
}

.footer-info .logo a {
    color: white;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-contact li span {
    font-weight: bold;
    margin-right: 5px;
}

.footer-contact a {
    color: white;
    opacity: 0.8;
}

.footer-contact a:hover {
    color: var(--accent-coral);
    opacity: 1;
}

footer h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-coral));
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
}

.legal-links a {
    color: white;
    opacity: 0.7;
    margin-right: 20px;
    font-size: 0.9rem;
}

.legal-links a:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--text-color);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 -5px 20px var(--shadow-color);
    z-index: 9999;
    transition: bottom 0.5s ease;
    display: flex;
    justify-content: center;
}

.cookie-popup.active {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
}

.cookie-content p {
    margin: 0;
    margin-right: 20px;
}

.cookie-content a {
    color: var(--accent-coral);
    text-decoration: underline;
}

#accept-cookies {
    white-space: nowrap;
}

/* --- Policy Pages --- */
.policy-page {
    padding: 120px 0 60px;
}

.policy-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.policy-container h1 {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.policy-container h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-coral));
}

.policy-container h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* --- Thank You Page --- */
.thank-you-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-color);
}

.thank-you-container {
    max-width: 600px;
    background-color: white;
    border-radius: 15px;
    padding: 60px 40px;
    box-shadow: 0 15px 40px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.thank-you-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-coral));
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-coral) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 3rem;
    box-shadow: 0 10px 25px rgba(55, 75, 174, 0.3);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .service-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-image {
        height: 200px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    footer h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .legal-links {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .legal-links a {
        margin: 0 10px 10px;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-bottom: 15px;
        margin-right: 0;
        text-align: center;
    }
    
    /* Мобильные стили для блока Notre processus */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .step-item {
        max-width: 320px;
        margin: 0 auto;
        position: relative;
    }
    
    .step-item:after {
        content: '';
        position: absolute;
        width: 2px;
        height: 40px;
        bottom: -40px;
        left: 50%;
        background: linear-gradient(to bottom, var(--accent-blue), var(--accent-coral));
        display: block;
        z-index: 1;
    }
    
    .step-item:last-child:after {
        display: none;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .step-item h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .policy-container {
        padding: 30px 20px;
    }
    
    /* Дополнительные стили для самых маленьких экранов */
    .step-item {
        padding: 25px 15px;
        max-width: 280px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .steps {
        padding: 4rem 0;
    }
    
    .steps-grid {
        gap: 35px;
    }
    
    .step-item:after {
        height: 35px;
        bottom: -35px;
    }
} 