/* ============================================
   ФРАНЦУЗСКИЙ БУХГАЛТЕРСКИЙ САЙТ - ОСНОВНЫЕ СТИЛИ
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ЦВЕТОВАЯ ПАЛИТРА */
:root {
    --bg-primary: #D9ECF2;      /* туманно-голубой */
    --text-primary: #2E2E2E;    /* грифельно-серый */
    --accent-coral: #FF6F59;    /* коралловый апельсин */
    --accent-khaki: #D6FFB7;    /* яркий хаки */
    --gradient-primary: linear-gradient(135deg, #D6FFB7, #FF6F59);
    --shadow-soft: 0 8px 32px rgba(46, 46, 46, 0.1);
    --border-radius: 12px;
}

/* БАЗОВЫЕ СТИЛИ */
body {
    font-family: 'Georgia', serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* КОНТЕЙНЕРЫ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

/* ЗАГОЛОВКИ */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.8rem;
    line-height: 1.3;
}

h3 {
    font-size: 2rem;
    line-height: 1.4;
}

p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* КНОПКИ */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(46, 46, 46, 0.15);
}

/* HEADER */
.header {
    background: rgba(217, 236, 242, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo svg {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-coral);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-coral);
}

/* HERO СЕКЦИЯ */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/D95O1W.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    margin-bottom: 25px;
    animation: slideInDown 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero .btn {
    animation: fadeIn 1s ease-out 0.4s both;
}

/* АНИМАЦИИ */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* КАРТОЧКИ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(46, 46, 46, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
}

.card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-primary);
    opacity: 0.8;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-coral);
    margin-top: 20px;
}

/* SERVICES SECTION */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

/* PROCESS SECTION */
.process {
    background: var(--bg-primary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    position: relative;
    z-index: 2;
}

.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 200px;
    height: 2px;
    background: var(--accent-coral);
    transform: translateY(-50%);
    z-index: 1;
}

.step:last-child .step-number::after {
    display: none;
}

/* TESTIMONIALS */
.testimonials {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
    text-align: center;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-coral);
    opacity: 0.3;
}

.testimonial-author {
    font-weight: bold;
    margin-top: 15px;
    color: var(--text-primary);
}

/* ФОРМА */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-coral);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

/* КОНТАКТЫ - ВЫРОВНЯТЬ В ОДНУ ЛИНИЮ */
.contact-info-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: center;
    flex-wrap: wrap;
}

.contact-info-item {
    flex: 1;
    min-width: 200px;
}

.contact-info-item h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-info-item p {
    margin-bottom: 0;
}

/* FOOTER */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--accent-coral);
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-coral);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-popup-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-popup button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-popup button:hover {
    transform: translateY(-2px);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cards-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .step-number::after {
        display: none;
    }
    
    .cookie-popup-content {
        flex-direction: column;
        text-align: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Мобильная версия контактов */
    .contact-info-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info-item {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .card,
    .testimonial {
        padding: 20px;
    }
}

/* ПОЛИТИКИ СТИЛИ - ИСПРАВЛЕН ОТСТУП ОТ ШАПКИ */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 40px; /* Увеличен верхний отступ */
}

.policy-content h1 {
    color: var(--accent-coral);
    margin-bottom: 30px;
    text-align: center;
}

.policy-content h2 {
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 20px;
}

.policy-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.policy-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content li {
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--accent-coral);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
} 