/*--------------------------------------------------------------
  FinBelAcademie – style.css
  Inspiré du template "Flowfunnel" (Webflow)
  Auteur : FinBelAcademie
--------------------------------------------------------------*/
/* -------- GOOGLE FONT -------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* -------- CSS RESET -------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #0a0d14;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

ul, ol {
    list-style: none
}

a {
    text-decoration: none;
    color: inherit
}

img {
    max-width: 100%;
    display: block
}

button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer
}

/* -------- ROOT VARIABLES -------- */
:root {
    --color-bg-dark: #002663;
    --color-bg-darker: #001a47;
    --color-bg-light: #f8fafc;
    --color-primary: #004bff; /* accents bleu vif */
    --color-accent: #13d168; /* vert CTA */
    --color-accent-dark: #10b05a;
    --color-muted: #6b7280;
    --color-danger: #ff5c5c;
    --color-warning: #fca311;
    --gradient-notice: linear-gradient(90deg, #ff007a 0%, #09f 100%);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --container-max: 1200px;
    --transition: .3s ease;
}

/* -------- UTILS -------- */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin-inline: auto
}

.text-center {
    text-align: center
}

.accent {
    color: var(--color-primary)
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

/* -------- NOTIFICATION BAR -------- */
.notice-bar {
    background: var(--gradient-notice);
    color: #fff;
    font-size: .875rem;
}

.notice-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: .5rem 0;
    flex-wrap: wrap
}

.notice-text {
    font-weight: 500
}

/* -------- BUTTONS -------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    padding: .75rem 1.5rem;
    transition: var(--transition)
}

.btn-sm {
    padding: .5rem 1.25rem;
    font-size: .875rem
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem
}

.btn-primary {
    background: var(--color-accent);
    color: #fff
}

.btn-primary:hover {
    background: var(--color-accent-dark)
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff
}

.btn-secondary:hover {
    background: #fff;
    color: var(--color-bg-dark)
}

.btn-xs {
    padding: .35rem .85rem;
    font-size: .75rem
}


/* -------- HERO -------- */
.hero {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 6rem 0;
    overflow: hidden;
    position: relative
}

.hero-wrapper {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center
}

.rating {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem
}

.stars {
    height: 16px
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    padding: .25rem .75rem;
    border-radius: var(--radius-lg);
    font-size: .75rem;
    font-weight: 500;
    margin-bottom: 1rem
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.25rem
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 40ch;
    margin-bottom: 2rem;
    color: #e4e6eb
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem
}

.hero-caption {
    font-size: .8125rem;
    color: #c3c6d1;
    margin-bottom: 2.5rem
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: .75rem;
    color: #c3c6d1
}

.partner-logo {
    height: 28px;
    width: auto;
    opacity: .8;
    filter: grayscale(100%);
    transition: var(--transition)
}

.partner-logo:hover {
    opacity: 1;
    filter: none
}

.hero-visual {
    position: relative
}

.hero-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg)
}

.shape {
    position: absolute;
    border-radius: var(--radius-xl);
    filter: blur(40px);
    opacity: .25;
    z-index: -1
}

.shape-purple {
    width: 260px;
    height: 260px;
    background: #7f3eff;
    top: -40px;
    right: -60px
}

.shape-blue {
    width: 220px;
    height: 220px;
    background: #0099ff;
    bottom: -60px;
    left: -40px
}

.shape-green {
    width: 180px;
    height: 180px;
    background: #13d168;
    top: 50%;
    left: -80px;
    transform: translateY(-50%)
}

/* -------- TRUSTED / TESTIMONIALS -------- */
.trusted {
    padding: 5rem 0;
    background: #fff
}

.testimonial-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-width: 280px;
    flex: 0 0 280px;
    margin-right: 1.5rem;
    box-shadow: var(--shadow-lg)
}

.testimonial-bg {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(.6)
}

.testimonial-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: #fff
}

.testimonial-quote {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: .75rem
}

.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover
}

.card-slider {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory
}

.card-slider::-webkit-scrollbar {
    display: none
}

/* -------- SECTION GENERIC -------- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0a0d14
}

.section-subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: var(--color-muted)
}

/* -------- LEARN STEPS -------- */
.learn {
    padding: 5rem 0;
    background: var(--color-bg-light)
}

.steps {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: .5rem;
    scroll-snap-type: x proximity
}

.step {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    min-width: 200px;
    scroll-snap-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition)
}

.step.active {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent)
}

.step-day {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: .25rem
}

.step-title {
    font-weight: 600
}

.learn-visual {
    margin-top: 2rem;
    text-align: center
}

.learn-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg)
}

/* -------- GET / PERKS -------- */
.get {
    padding: 5rem 0;
    background: #fff
}

.grid.perks {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem
}

.perk-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-weight: 600;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg)
}

.perk-icon {
    height: 48px;
    margin-inline: auto;
    margin-bottom: 1rem
}

.perk-title {
    font-size: 1rem
}

.gradient-blue {
    background: linear-gradient(145deg, #3b82f6 0%, #1e3a8a 100%)
}

.gradient-red {
    background: linear-gradient(145deg, #f87171 0%, #7f1d1d 100%)
}

.gradient-green {
    background: linear-gradient(145deg, #34d399 0%, #065f46 100%)
}

.gradient-yellow {
    background: linear-gradient(145deg, #fde047 0%, #b45309 100%)
}

/* -------- WHY CHOOSE COMPARISON -------- */
.why {
    padding: 5rem 0;
    background: var(--color-bg-light)
}

.comparison-table-wrapper {
    overflow-x: auto
}

.comparison {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg)
}

.comparison thead {
    background: #eff2ff
}

.comparison th, .comparison td {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: .875rem;
    border-bottom: 1px solid #edf2f7
}

.comparison th:first-child, .comparison td:first-child {
    font-weight: 600
}

.comparison .yes {
    color: var(--color-accent);
    font-weight: 700;
    text-align: center
}

.comparison .no {
    color: var(--color-danger);
    font-weight: 700;
    text-align: center
}

.comparison .partial {
    color: var(--color-warning);
    font-weight: 700;
    text-align: center
}

/* -------- CTA BANNER -------- */
.cta-banner {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden
}

.cta-inner {
    text-align: center;
    max-width: 700px;
    margin-inline: auto
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #e4e6eb
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap
}

/* -------- FOOTER -------- */
.site-footer {
    background: var(--color-bg-darker);
    color: #fff;
    padding: 4rem 0 2rem
}

.footer-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem
}

.footer-tagline {
    color: #cbd5e1;
    font-size: .875rem;
    max-width: 30ch
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem
}

.footer-list li {
    margin-bottom: .5rem;
    font-size: .875rem
}

.footer-list a:hover {
    color: var(--color-accent)
}

.newsletter-form {
    display: flex;
    gap: .5rem;
    margin-top: 1rem
}

.newsletter-form input {
    flex: 1;
    padding: .65rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid #334155;
    background: #102041;
    color: #fff
}

.newsletter-form input::placeholder {
    color: #94a3b8
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.5rem
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: .8125rem;
    color: #cbd5e1
}

.footer-link {
    margin-left: 1.5rem;
    transition: var(--transition)
}

.footer-link:hover {
    color: #fff
}

/* -------- RESPONSIVE -------- */
@media (max-width: 992px) {
    .nav-list {
        position: fixed;
        inset: 0 0 auto auto;
        height: 100vh;
        width: 260px;
        background: var(--color-bg-dark);
        flex-direction: column;
        padding: 6rem 2rem;
        transform: translateX(100%);
        transition: var(--transition)
    }

    .nav-list.show {
        transform: translateX(0)
    }

    .nav-item {
        width: 100%
    }

    .nav-link {
        padding: 1rem 0;
        width: 100%;
        display: block
    }

    .nav-cta-mobile {
        margin-top: 1rem
    }

    .nav-cta-desktop {
        display: none
    }

    .nav-toggle {
        display: flex
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns:1fr
    }

    .hero-title {
        font-size: 2.5rem
    }

    .section-title {
        font-size: 2rem
    }

    .hero {
        padding: 4rem 0
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: .75rem 1.5rem;
        font-size: 1rem
    }

    .testimonial-card {
        min-width: 240px
    }
}

/* -------- JS HELPERS -------- */
.hidden {
    display: none !important
}

/* раскрыть mobile-меню, когда у него есть класс .show */
.nav-list.show {
    transform: translateX(0);
}

/* -------- PAGE HERO -------- */
.page-hero {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 5rem 0 4rem;
    text-align: center
}

.page-hero .hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem
}

.page-hero .hero-subtitle {
    font-size: 1.125rem;
    color: #cbd5e1;
    max-width: 40ch;
    margin-inline: auto
}

/* -------- COURSES GRID -------- */
.courses-grid {
    padding: 5rem 0;
    background: #fff
}

.grid.courses {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem
}

.course-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition)
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px)
}

.course-icon {
    height: 64px;
    width: auto;
    margin-inline: auto;
    margin-bottom: 1.5rem
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: #0a0d14
}

.course-desc {
    font-size: .95rem;
    color: var(--color-muted);
    margin-bottom: 1.25rem
}



/* -------- REVEAL ANIMATION -------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: .6s cubic-bezier(.4, .0, .2, 1)
}

.reveal.in {
    opacity: 1;
    transform: none
}

/* ——— Общая вертикальная отступка секций ——— */
.section-padding {
    padding: 5rem 0;
}

/* ——— Светлый фон для блока статистики ——— */
.bg-light {
    background: var(--color-bg-light);
}

/* ——— Гриды ——— */
.grid.two-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.grid.three-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.grid.four-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

/* ——— Карточка статистики ——— */
.stat-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: .875rem;
    color: var(--color-muted);
}

/* ——— Шаги методологии ——— */
.method-step {
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.method-step:hover {
    box-shadow: var(--shadow-lg);
}

.step-number {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: .75rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.step-desc {
    font-size: .95rem;
    color: var(--color-muted);
}

/* ——— Анимация появления (у вас уже есть .reveal/.reveal.in) ——— */
/* -------- MISSION SECTION -------- */
.mission {
    background: #fff; /* белый фон для отделения от соседних секций */
}

.mission-text {
    /* немного больше «воздуха» внутри текста */
    padding-right: 1rem;
}

.mission-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    width: 100%;
    max-height: 420px;
}

.values-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--color-primary);
}

.values-list {
    list-style: none; /* убираем стандартные маркеры */
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.values-list li {
    font-size: .95rem;
    color: var(--color-muted);
    position: relative;
    padding-left: 1.75rem; /* место под пользовательский маркер */
}

.values-list li::before {
    content: '✓'; /* пользовательский маркер */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* -------- Адаптив: складываем колонки в одну на экранах < 768px -------- */
@media (max-width: 768px) {
    .mission .grid.two-cols {
        grid-template-columns: 1fr; /* одна колонка */
    }

    .mission-text {
        padding-right: 0;
    }

    .mission-img {
        margin-top: 2rem;
        max-height: none;
    }
}

/* -------- FAQ SECTION -------- */
.faq-item {
    margin-bottom: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none; /* supprime le triangle par défaut (Safari) */
}

.faq-item summary::marker,
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* cache le triangle */

.faq-item[open] summary {
    background: var(--color-bg-light);
}

.faq-item p {
    padding: 1rem 1.25rem 1.25rem;
    font-size: .95rem;
    color: var(--color-muted);
}

.faq-item a {
    color: var(--color-primary);
}

.faq-item a:hover {
    text-decoration: underline;
}

/* petite icône «+ / –» à droite */
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: transform .3s;
}

.faq-item[open] summary::after {
    content: '−';
}

/* -------- CONTACT FORM -------- */
.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    font-size: .95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 75, 255, .15);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
}

.alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* контейнер формы (ширину задаём классом, без inline) */
.contact-wrapper {
    max-width: 680px;
}

/* отделяем инфоблок */
.contact-info {
    margin-top: 3rem;
}

/* маленький заголовок */
.section-title.sm {
    font-size: 1.5rem;
}

/* скрытый honeypot */
.hp-field {
    display: none;
}

/* красная рамка для champs invalides */
input.error, textarea.error {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(255, 92, 92, .25);
}

.contact-wrapper {
    max-width: 680px;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    font-weight: 600;
    display: block;
    margin-bottom: .35rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    font-size: .95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 75, 255, .15);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
}

.alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.hp-field {
    display: none;
}

.section-title.sm {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* -------- BLOG GRID -------- */
.blog-grid {
    background: #fff;
}

.grid.blog-cards {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-thumb img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.blog-meta {
    padding: 1rem 1.25rem 0;
    font-size: .75rem;
    text-transform: uppercase;
    color: var(--color-muted);
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.blog-tag {
    background: var(--color-bg-light);
    padding: .15rem .5rem;
    border-radius: .5rem;
}

.blog-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 1.25rem;
    line-height: 1.3;
}

.blog-title a {
    color: inherit;
}

.blog-excerpt {
    font-size: .95rem;
    color: var(--color-muted);
    margin: .75rem 1.25rem 1.25rem;
}

.blog-readmore {
    display: inline-block;
    margin: 0 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.blog-readmore:hover {
    text-decoration: underline;
}

/* liste modules */
.module-list {
    counter-reset: step;
    margin-left: 0;
    list-style: none;
}

.module-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: .85rem;
}

.module-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-content p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.article-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
    color: var(--color-muted);
    font-style: italic;
    margin: 1.5rem 0;
}

.article-content em {
    color: var(--color-muted);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
}

.alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.hp-field {
    display: none;
}
/* ========== HEADER / BURGER ========== */
.site-header {
    background: #002051;
    color: #fff;
    position: relative;
    z-index: 1000;
}
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

/* Логотип */
.site-header__logo img {
    display: block;
}

/* Бургер */
.site-header__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.site-header__burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header__burger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}
.site-header__burger.open span:nth-child(2) {
    opacity: 0;
}
.site-header__burger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Off-canvas навигация */
.site-header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 4rem;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.site-header__nav.open {
    transform: translateX(0);
}

/* Список ссылок */
.site-header__list {
    list-style: none;
    padding: 0 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.site-header__list li {
    margin-bottom: 1rem;
}
.site-header__list a {
    display: block;
    color: #002051;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}
.site-header__cta a {
    display: inline-block;
    margin-top: 1rem;
    background: #00c853;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* Десктоп */
@media (min-width: 768px) {
    .site-header__burger {
        display: none;
    }
    .site-header__nav {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding-top: 0;
    }
    .site-header__list {
        flex-direction: row;
        gap: 1.5rem;
    }
    .site-header__list li {
        margin: 0;
    }
    .site-header__cta a {
        margin: 0 0 0 1.5rem;
    }
}
@media (min-width: 768px) {
    .site-header__burger {
        display: none;
    }
    .site-header__nav {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding-top: 0;
    }
    .site-header__list {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
    }
    .site-header__list li {
        margin: 0;
    }
    /* Новое: белые ссылки на тёмном фоне */
    .site-header__list a {
        color: #fff;
    }
    .site-header__list a:hover {
        color: #eee;
    }
    .site-header__cta a {
        margin: 0 0 0 1.5rem;
    }
}
/* ——— HEADER: центрируем меню и делаем его однострочным ——— */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* В десктопе: меню растягивается и центрируется */
@media (min-width: 768px) {
    .site-header__nav {
        /* занять всё доступное место между логотипом и кнопкой */
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .site-header__list {
        display: flex;
        flex-wrap: nowrap;    /* не переносить */
        gap: 2rem;            /* расстояние между пунктами */
        margin: 0;            /* сброс отступов */
        padding: 0;
        list-style: none;
    }

    .site-header__list li {
        margin: 0;            /* сбросить паддинги/марджины */
    }

    .site-header__list a {
        color: #fff;          /* белый текст на тёмном фоне */
        font-weight: 500;
        text-decoration: none;
        padding: 0.5rem 0;    /* вертикальные отступы */
        position: relative;
    }

    /* тонкая полоска при ховере & активном пункте */
    .site-header__list a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 0;
        height: 2px;
        background: #00d084;
        transition: width 0.3s ease;
    }
    .site-header__list a:hover::after,
    .site-header__item.active > a::after {
        width: 100%;
    }

    /* чуть уменьшим шрифт если пунктов много */
    .site-header__list a {
        font-size: 0.95rem;
    }
}
/* — Запретим перенос текста в пунктах меню и на кнопке — */
.site-header__list a,
.site-header__cta a {
    white-space: nowrap;  /* не даём строкам разбиваться */
}

/* — Увеличим горизонтальные отступы на кнопке — */
.site-header__cta a {
    padding: 0.5rem 1.25rem; /* по горизонтали побольше места */
}

/* — Каждый пункт меню всегда занимает ровно своё место — */
.site-header__list li {
    flex: 0 0 auto;  /* не растягиваем и не сжимаем пункты */
}

/* — Убедимся, что контейнер меню не заставляет пункты ужиматься — */
@media (min-width: 768px) {
    .site-header__nav {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible; /* чтобы ничего не обрезалось */
    }
    .site-header__list {
        flex-wrap: nowrap;  /* пункты всегда в одну строку */
    }
}
/* ========== BANNIÈRE COOKIES ========== */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 0.95rem;
    padding: 1rem;
    display: none;
    z-index: 9999;
}
.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.cookie-banner__text {
    margin: 0;
    padding-right: 1rem;
    flex: 1 1 auto;
}
.cookie-banner__btn {
    background: #00d084;
    border: none;
    color: #001f4d;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 4px;
    flex: 0 0 auto;
    transition: background 0.3s ease;
}
.cookie-banner__btn:hover {
    background: #00b56a;
}
@media (max-width: 600px) {
    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner__btn {
        margin-top: 0.75rem;
    }
}
/* ========== PAGE "Mentions légales" ========== */
.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin-left: 1.5rem;
}

.legal-section ul li,
.legal-section ol li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-section a:hover {
    text-decoration: none;
}

/* Отступ сверху от шапки */
main.section-padding {
    padding-top: 4.5rem; /* если шапка фиксирована */
}

/* контейнер */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}
