/* ===== RESET & BAZĂ ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Quicksand', sans-serif;
    background: #fef9f4; color: #3e2e2a;
    scroll-behavior: smooth; line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #fff0eb, #fde2d4);
    padding: 18px 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky; top: 0; z-index: 100; backdrop-filter: blur(6px);
    border-bottom: 2px solid rgba(255, 215, 190, 0.3);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #b45f4d; letter-spacing: -0.5px; }
.logo i { color: #d48d7a; margin-right: 6px; }

/* ===== LANGUAGE DROPDOWN ===== */
.lang-dropdown { position: relative; display: inline-block; margin-left: 10px; }
.lang-dropdown-btn {
    background: none; border: 2px solid #d48d7a; border-radius: 30px;
    padding: 6px 16px 6px 12px; font-size: 0.95rem; font-weight: 600; color: #4d3630;
    cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s;
    font-family: 'Quicksand', sans-serif;
}
.lang-dropdown-btn:hover { background: rgba(212, 141, 122, 0.08); }
.lang-dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0; background: #fff;
    border-radius: 20px; padding: 8px 0; min-width: 100px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08); border: 1px solid #f0ddd5;
    display: none; z-index: 999; list-style: none;
}
.lang-dropdown-menu.open { display: block; }
.lang-dropdown-menu li {
    padding: 10px 20px; cursor: pointer; display: flex; align-items: center; gap: 10px;
    font-weight: 600; color: #4d3630; transition: 0.15s; font-size: 0.95rem;
}
.lang-dropdown-menu li:hover { background: #fdf3ee; }
.lang-dropdown-menu li .flag { font-size: 1.2rem; }

nav ul { display: flex; gap: 28px; list-style: none; font-weight: 600; align-items: center; flex-wrap: wrap; }
nav a { color: #4d3630; transition: 0.3s; position: relative; font-size: 1.05rem; }
nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 3px; background: #d48d7a; transition: 0.3s; border-radius: 4px; }
nav a:hover::after { width: 100%; }
nav a:hover { color: #b45f4d; }
.menu-toggle { display: none; font-size: 1.8rem; background: none; border: none; color: #4d3630; cursor: pointer; }

/* ===== SECȚIUNI GENERALE ===== */
section { padding: 70px 0; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: #4d3630; text-align: center; margin-bottom: 16px; }
.section-title span { color: #b45f4d; }
.section-sub { text-align: center; font-size: 1.15rem; color: #7a5e55; max-width: 650px; margin: 0 auto 50px; }
.btn-primary {
    display: inline-block; background: #d48d7a; color: #fff; padding: 14px 40px;
    border-radius: 60px; font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
    transition: 0.25s; box-shadow: 0 8px 24px rgba(212, 141, 122, 0.25); text-align: center;
}
.btn-primary:hover { background: #b45f4d; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(180, 95, 77, 0.35); }
.btn-large { padding: 18px 60px; font-size: 1.3rem; }

/* ===== HERO ===== */
#hero { padding: 40px 0 60px; background: linear-gradient(130deg, #fef6f1 0%, #fce9e0 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-text h1 { font-family: 'Playfair Display', serif; font-size: 3.4rem; line-height: 1.2; color: #3e2e2a; }
.hero-text h1 span { color: #b45f4d; }
.hero-text p { font-size: 1.2rem; color: #5f4640; margin: 20px 0 18px; max-width: 500px; }
.hero-bullets { list-style: none; margin: 20px 0 25px; }
.hero-bullets li { font-size: 1.1rem; color: #4d3630; margin-bottom: 8px; }
.hero-bullets li i { color: #d48d7a; margin-right: 10px; }
.hero-price { font-size: 2.6rem; font-weight: 700; color: #b45f4d; margin: 15px 0 20px; }
.hero-price small { font-size: 1.2rem; font-weight: 400; color: #7a5e55; text-decoration: line-through; margin-left: 12px; }
.hero-image img {
    max-width: 100%; border-radius: 40px; box-shadow: 0 30px 50px rgba(0, 0, 0, 0.08);
    width: 100%; height: auto; object-fit: cover; aspect-ratio: 1/1; background: #edd7cd;
    transition: opacity 0.6s ease;   /* ← ADAUGĂ */
}

.hero-image img.fade-out {           /* ← ADAUGĂ blocul ăsta */
    opacity: 0;
}

/* ===== CARDS ===== */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: #fff; padding: 28px 22px; border-radius: 36px; text-align: center;
    border: 1px solid #f0ddd5; transition: 0.25s; box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}
.card:hover { border-color: #d48d7a; transform: translateY(-6px); box-shadow: 0 16px 30px rgba(212, 141, 122, 0.08); }
.card i { font-size: 2.6rem; color: #d48d7a; margin-bottom: 12px; }
.card h4 { font-size: 1.2rem; color: #4d3630; margin-bottom: 6px; }
.card p { color: #6f554c; font-size: 0.95rem; }

/* ===== MODULE ===== */
.module-list { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.module-item {
    background: #fff; padding: 18px 28px; border-radius: 60px; border: 1px solid #f0ddd5;
    font-weight: 600; color: #4d3630; display: inline-flex; align-items: center; gap: 10px;
}
.module-item i { color: #d48d7a; }

/* ===== BEFORE/AFTER ===== */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: #fff; border-radius: 60px; padding: 40px 30px; border: 1px solid #f0ddd5; }
.ba-col ul { list-style: none; margin-top: 15px; }
.ba-col ul li { font-size: 1.1rem; margin-bottom: 12px; }
.ba-col ul li i { margin-right: 12px; width: 24px; }
.ba-col.before ul li i { color: #d48d7a; }
.ba-col.after ul li i { color: #4caf50; }
.ba-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #4d3630; }

/* ===== TESTIMONIALE ===== */
.testimonial { text-align: center; padding: 24px 22px; }
.testimonial .stars { color: #f5b342; letter-spacing: 2px; margin-bottom: 8px; }
.testimonial .avatar {
    width: 70px; height: 70px; border-radius: 50%; overflow: hidden; display: inline-flex;
    align-items: center; justify-content: center; background: #edd7cd; margin: 0 auto 12px;
    float: none; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.testimonial .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial .name { font-weight: 700; color: #4d3630; padding-top: 4px; font-size: 1.05rem; }
.testimonial .comment { clear: both; margin-top: 12px; color: #5f4640; font-style: italic; }

/* ===== FAQ ===== */
.faq-item { background: #fff; border-radius: 28px; padding: 20px 28px; margin-bottom: 14px; border: 1px solid #f0ddd5; cursor: pointer; transition: 0.2s; }
.faq-item:hover { border-color: #d48d7a; }
.faq-question { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #4d3630; font-size: 1.1rem; }
.faq-question i { color: #d48d7a; transition: 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin 0.3s ease; color: #5f4640; margin-top: 0; }
.faq-item.open .faq-answer { max-height: 300px; margin-top: 14px; }
.faq-item.open .faq-question i { transform: rotate(180deg); }

/* ===== OFERTA ===== */
.offer-box { background: #fff; border-radius: 60px; padding: 50px 40px; text-align: center; border: 2px solid #d48d7a; max-width: 700px; margin: 0 auto; box-shadow: 0 20px 50px rgba(212,141,122,0.12); }
.offer-box .price-big { font-size: 4rem; font-weight: 700; color: #b45f4d; }
.offer-box .price-cross { font-size: 1.8rem; color: #7a5e55; text-decoration: line-through; margin-right: 16px; }
.offer-box .discount { background: #d48d7a; color: #fff; padding: 6px 20px; border-radius: 60px; font-weight: 600; display: inline-block; margin-bottom: 20px; }

/* ===== GARANȚIE ===== */
.guarantee-text { text-align: center; padding: 30px 20px; }
.guarantee-text h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #4d3630; }
.guarantee-text p { color: #5f4640; font-size: 1.1rem; max-width: 600px; margin: 10px auto 0; }

/* ===== CTA FINAL ===== */
.cta-banner { background: linear-gradient(135deg, #fce9e0, #fef6f1); border-radius: 60px; padding: 60px 40px; text-align: center; }
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: 3rem; color: #4d3630; }
.cta-banner h2 span { color: #b45f4d; }
.cta-banner p { font-size: 1.2rem; color: #5f4640; max-width: 600px; margin: 16px auto 0; }

/* ===== FOOTER ===== */
footer { background: #3e2e2a; color: #f0ddd5; padding: 40px 0 24px; text-align: center; }
footer .logo { color: #f0ddd5; font-size: 1.8rem; }
footer .logo i { color: #d48d7a; }
footer p { margin-top: 12px; font-size: 0.95rem; opacity: 0.8; }
.social-icons { margin: 16px 0; display: flex; justify-content: center; gap: 22px; }
.social-icons a { color: #f0ddd5; font-size: 1.6rem; transition: 0.3s; }
.social-icons a:hover { color: #d48d7a; transform: translateY(-4px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-grid, .before-after, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-image img { max-width: 80%; margin: 0 auto; }
    .hero-bullets { text-align: left; display: inline-block; }
    .testimonial .avatar { float: none; display: flex; margin: 0 auto 12px; }
    .testimonial .name { text-align: center; }
    .lang-dropdown { margin-left: 0; margin-top: 8px; }
    .lang-dropdown-menu { right: auto; left: 0; }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav ul { display: none; flex-direction: column; gap: 14px; width: 100%; padding: 20px 0 8px; background: #fff0eb; border-radius: 30px; margin-top: 16px; text-align: center; }
    nav ul.open { display: flex; }
    .header-flex { flex-wrap: wrap; }
    .section-title { font-size: 2rem; }
    .hero-text h1 { font-size: 2.4rem; }
    .offer-box .price-big { font-size: 2.8rem; }
    .cta-banner h2 { font-size: 2.2rem; }
    .cta-banner { padding: 40px 20px; }
    .module-item { padding: 12px 20px; font-size: 0.9rem; }
}
/* ===== MODULE PREMIUM ===== */
.module-list-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 20px;
}

.module-card {
    position: relative;
    background: #fff;
    border-radius: 28px;
    padding: 34px 28px 30px;
    border: 1px solid #f0ddd5;
    overflow: hidden;
    cursor: default;
    /* stare inițială pentru animația de scroll */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease,
                box-shadow 0.4s ease, border-color 0.4s ease;
}

/* numărul mare din fundal */
.module-number {
    position: absolute;
    top: -18px;
    right: 6px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 700;
    color: #f4e2da;
    line-height: 1;
    transition: color 0.4s ease, transform 0.4s ease;
    z-index: 0;
    user-select: none;
}

.module-content {
    position: relative;
    z-index: 2;
}

.module-content i {
    font-size: 2.4rem;
    color: #d48d7a;
    margin-bottom: 14px;
    display: inline-block;
    transition: transform 0.5s ease, color 0.4s ease;
}

.module-content h4 {
    font-size: 1.15rem;
    color: #4d3630;
    line-height: 1.4;
}

/* linia de progres de jos */
.module-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 0%;
    background: linear-gradient(90deg, #d48d7a, #b45f4d);
    border-radius: 4px;
    transition: width 0.5s ease;
    z-index: 2;
}

/* efect de strălucire care trece peste card */
.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    z-index: 1;
}

/* ===== STARE VIZIBILĂ (apare la scroll) ===== */
.module-card.show {
    opacity: 1;
    transform: translateY(0);
}
.module-card:nth-child(1).show { transition-delay: 0.05s; }
.module-card:nth-child(2).show { transition-delay: 0.15s; }
.module-card:nth-child(3).show { transition-delay: 0.25s; }
.module-card:nth-child(4).show { transition-delay: 0.35s; }
.module-card:nth-child(5).show { transition-delay: 0.45s; }
.module-card:nth-child(6).show { transition-delay: 0.55s; }

/* ===== HOVER ===== */
.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(180, 95, 77, 0.18);
    border-color: #d48d7a;
}
.module-card:hover .module-number {
    color: #e9c4b6;
    transform: scale(1.1);
}
.module-card:hover .module-content i {
    transform: rotate(360deg) scale(1.15);
    color: #b45f4d;
}
.module-card:hover .module-line {
    width: 100%;
}
.module-card:hover::before {
    left: 120%;
}

@media (max-width: 992px) {
    .module-list-premium { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .module-number { font-size: 4.5rem; }
}
/* ===== DETALII MODUL (hover pe desktop / tap pe mobil) ===== */
.module-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

/* poza modulului */
.module-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 14px;
    display: block;
}

.module-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-details ul li {
    font-size: 0.9rem;
    color: #6f554c;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    line-height: 1.4;
}

.module-details ul li i {
    color: #4caf50;
    font-size: 0.8rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* DESCHIDERE la hover (desktop) SAU la clasa .active (mobil/tap) */
.module-card:hover .module-details,
.module-card.active .module-details {
    max-height: 400px;
    opacity: 1;
    margin-top: 16px;
}

/* efectele de dinainte aplicate și la .active (pentru mobil) */
.module-card.active {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(180, 95, 77, 0.18);
    border-color: #d48d7a;
}
.module-card.active .module-number { color: #e9c4b6; transform: scale(1.1); }
.module-card.active .module-content i { transform: rotate(360deg) scale(1.15); color: #b45f4d; }
.module-card.active .module-line { width: 100%; }

/* ===== MODAL MODULE ===== */
.modul-modal {
    position: fixed;
    inset: 0;
    background: rgba(60, 35, 28, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    padding: 20px;
}
.modul-modal.open {
    opacity: 1;
    visibility: visible;
}

.modul-modal-box {
    background: #fff;
    border-radius: 28px;
    max-width: 480px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}
.modul-modal.open .modul-modal-box {
    transform: scale(1) translateY(0);
}

.modul-modal-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 20px;
}

.modul-modal-box h3 {
    font-size: 1.5rem;
    color: #b45f4d;
    margin-bottom: 18px;
    text-align: center;
}

.modul-modal-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.modul-modal-box ul li {
    font-size: 1rem;
    color: #5f463f;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.modul-modal-box ul li i {
    color: #4caf50;
    margin-top: 5px;
    flex-shrink: 0;
}

.modul-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: #f4e2da;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #b45f4d;
    c‍ursor: pointer;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}
.modul-modal-close:hover {
    background: #e9c4b6;
    transform: rotate(90deg);
}

/* ===== ARROW CLICKABIL MODULE ===== */
.module-card {
    cursor: pointer;
    overflow: visible;
}

/* spațiu mai mare între rânduri ca arrow-ul să respire */
.module-list-premium {
    row-gap: 46px;
}

/* arrow mic jos, pe centru */
.module-click-arrow {
    position: absolute;
    left: 50%;
    bottom: -20px;
    width: 22px;
    height: 22px;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    opacity: 0.95;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* forma arrow-ului: contur colorat, mijloc alb/transparent */
.module-click-arrow::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 1px;
    width: 14px;
    height: 14px;
    border-right: 3px solid #D48D7A;
    border-bottom: 3px solid #D48D7A;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}

/* mic fundal alb în spate ca să pară curat/elegant */
.module-click-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 3px;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
    border-radius: 2px;
}

/* animație elegantă la hover */
.module-card:hover .module-click-arrow,
.module-card.active .module-click-arrow {
    transform: translateX(-50%) translateY(4px);
    opacity: 1;
}

/* pe telefon să fie puțin mai aproape de card */
@media (max-width: 768px) {
    .module-list-premium {
        row-gap: 42px;
    }

    .module-click-arrow {
        bottom: -18px;
        width: 20px;
        height: 20px;
    }

    .module-click-arrow::before {
        width: 12px;
        height: 12px;
        border-right-width: 3px;
        border-bottom-width: 3px;
    }
}

/* repară cursorul la butonul X dacă era scris greșit */
.modul-modal-close {
    cursor: pointer;
}


/* ===== FIX MODULE HOVER / CLICK STABIL ===== */

/* cardurile trebuie să fie clar clickabile */
.module-card {
    cursor: pointer;
    overflow: visible;
    transition:
        opacity 0.45s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* după ce cardul a apărut la scroll, nu mai folosi delay-uri care încurcă hover/click */
.module-card.show {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s !important;
}

/* anulăm delay-urile individuale după apariție */
.module-card:nth-child(1).show,
.module-card:nth-child(2).show,
.module-card:nth-child(3).show,
.module-card:nth-child(4).show,
.module-card:nth-child(5).show,
.module-card:nth-child(6).show {
    transition-delay: 0s !important;
}

/* SCOATEM animația de shine/loading care se vedea din dreapta și tulbura click-ul */
.module-card::before {
    display: none !important;
}

/* hover mai calm, elegant, fără să sară tare cardul */
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(180, 95, 77, 0.14);
    border-color: #d48d7a;
}

/* iconița să nu se rotească nebunește, doar se mărește fin */
.module-card:hover .module-content i {
    transform: scale(1.08);
    color: #b45f4d;
}

/* numărul mare se schimbă subtil */
.module-card:hover .module-number {
    color: #e9c4b6;
    transform: scale(1.04);
}

/* linia de jos se umple lin */
.module-card:hover .module-line {
    width: 100%;
}

/* arrow-ul rămâne jos, dar nu blochează click-ul */
.module-click-arrow {
    pointer-events: none;
    bottom: -18px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* la hover doar coboară foarte puțin */
.module-card:hover .module-click-arrow {
    transform: translateX(-50%) translateY(3px);
}

/* pe telefon păstrăm tap/click stabil */
@media (hover: none) {
    .module-card:hover {
        transform: translateY(0);
        box-shadow: none;
    }

    .module-card:active {
        transform: scale(0.98);
        box-shadow: 0 12px 24px rgba(180, 95, 77, 0.12);
    }
}

/* repară cursorul butonului X din modal */
.modul-modal-close {
    cursor: pointer !important;
}


/* ===== RESTORE MODULE ANIMATION FĂRĂ GLITCH ===== */

/* cardul revine cu overflow hidden ca animația shine să nu iasă afară */
.module-card {
    cursor: pointer !important;
    overflow: hidden !important;
    padding-bottom: 42px !important;
    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease !important;
}

/* starea vizibilă la scroll */
.module-card.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* păstrăm animația de intrare decalată, dar numai când apare la scroll */
.module-card:nth-child(1).show { transition-delay: 0.05s !important; }
.module-card:nth-child(2).show { transition-delay: 0.15s !important; }
.module-card:nth-child(3).show { transition-delay: 0.25s !important; }
.module-card:nth-child(4).show { transition-delay: 0.35s !important; }
.module-card:nth-child(5).show { transition-delay: 0.45s !important; }
.module-card:nth-child(6).show { transition-delay: 0.55s !important; }

/* IMPORTANT: reactivăm shine-ul, dar îl ținem în interiorul cardului */
.module-card::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: -80% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent) !important;
    transform: skewX(-20deg) !important;
    transition: left 0.6s ease !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* animația originală pe hover */
.module-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 22px 45px rgba(180, 95, 77, 0.18) !important;
    border-color: #d48d7a !important;
}

/* numărul mare */
.module-card:hover .module-number {
    color: #e9c4b6 !important;
    transform: scale(1.1) !important;
}

/* iconița revine cu rotire elegantă */
.module-card:hover .module-content i {
    transform: rotate(360deg) scale(1.15) !important;
    color: #b45f4d !important;
}

/* linia de jos */
.module-card:hover .module-line {
    width: 100% !important;
}

/* shine-ul rulează doar când cursorul e pe card */
.module-card:hover::before {
    left: 120% !important;
}

/* conținutul rămâne peste shine */
.module-content,
.module-number,
.module-line,
.module-click-arrow {
    position: relative;
    z-index: 2;
}

/* arrow elegant în interiorul cardului, jos pe centru */
.module-click-arrow {
    position: absolute !important;
    left: 50% !important;
    bottom: 12px !important;
    width: 22px !important;
    height: 18px !important;
    transform: translateX(-50%) !important;
    z-index: 5 !important;
    pointer-events: none !important;
    opacity: 0.95 !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

/* contur arrow #D48D7A */
.module-click-arrow::before {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    width: 13px !important;
    height: 13px !important;
    border-right: 3px solid #D48D7A !important;
    border-bottom: 3px solid #D48D7A !important;
    transform: translateX(-50%) rotate(45deg) !important;
    border-radius: 2px !important;
    background: transparent !important;
}

/* mijloc alb subtil */
.module-click-arrow::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 3px !important;
    width: 8px !important;
    height: 8px !important;
    background: #fff !important;
    transform: translateX(-50%) rotate(45deg) !important;
    z-index: -1 !important;
    border-radius: 2px !important;
}

/* arrow-ul se mișcă fin la hover */
.module-card:hover .module-click-arrow {
    transform: translateX(-50%) translateY(4px) !important;
}

/* pe telefon: tap stabil, fără hover ciudat */
@media (hover: none) {
    .module-card:hover {
        transform: translateY(0) !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.02) !important;
    }

    .module-card:hover::before {
        left: -80% !important;
    }

    .module-card:hover .module-content i {
        transform: none !important;
        color: #d48d7a !important;
    }

    .module-card:hover .module-number {
        color: #f4e2da !important;
        transform: none !important;
    }

    .module-card:hover .module-line {
        width: 0% !important;
    }

    .module-card:active {
        transform: scale(0.98) !important;
        box-shadow: 0 16px 30px rgba(180, 95, 77, 0.14) !important;
    }
}

/* X modal cursor fix */
.modul-modal-close {
    cursor: pointer !important;
}


/* ===== FIX MĂRIME MODULE DUPĂ ARROW ===== */

/* readucem cardurile aproape la dimensiunea inițială */
.module-card {
    padding: 30px 28px 28px !important;
    min-height: auto !important;
}

/* arrow mai mic și mai jos, fără să ceară card mare */
.module-click-arrow {
    bottom: 7px !important;
    width: 18px !important;
    height: 14px !important;
}

/* arrow mic */
.module-click-arrow::before {
    width: 10px !important;
    height: 10px !important;
    border-right-width: 2.5px !important;
    border-bottom-width: 2.5px !important;
}

/* mijloc alb mai mic */
.module-click-arrow::after {
    top: 2px !important;
    width: 6px !important;
    height: 6px !important;
}

/* puțin mai compact între module */
.module-list-premium {
    gap: 26px !important;
    row-gap: 32px !important;
}

/* iconița și titlul puțin mai compacte */
.module-content i {
    margin-bottom: 10px !important;
}

.module-content h4 {
    line-height: 1.3 !important;
}

/* pe telefon să rămână frumos */
@media (max-width: 768px) {
    .module-card {
        padding: 28px 24px 28px !important;
    }

    .module-list-premium {
        row-gap: 30px !important;
    }
}


/* ===== FINAL FIX: MODULE CA ÎNAINTE + ANIMAȚIE BUNĂ ===== */

/* lista ca înainte */
.module-list-premium {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 26px !important;
    margin-top: 20px !important;
}

/* cardurile exact aproape ca înainte */
.module-card {
    position: relative !important;
    background: #fff !important;
    border-radius: 28px !important;
    padding: 34px 28px 30px !important;
    border: 1px solid #f0ddd5 !important;
    overflow: hidden !important;
    cursor: pointer !important;

    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease !important;
}

/* când apar la scroll */
.module-card.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* delay-urile inițiale frumoase */
.module-card:nth-child(1).show { transition-delay: 0.05s !important; }
.module-card:nth-child(2).show { transition-delay: 0.15s !important; }
.module-card:nth-child(3).show { transition-delay: 0.25s !important; }
.module-card:nth-child(4).show { transition-delay: 0.35s !important; }
.module-card:nth-child(5).show { transition-delay: 0.45s !important; }
.module-card:nth-child(6).show { transition-delay: 0.55s !important; }

/* numărul mare ca înainte */
.module-number {
    position: absolute !important;
    top: -18px !important;
    right: 6px !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 6rem !important;
    font-weight: 700 !important;
    color: #f4e2da !important;
    line-height: 1 !important;
    transition: color 0.4s ease, transform 0.4s ease !important;
    z-index: 0 !important;
    user-select: none !important;
}

/* conținutul cardului */
.module-content {
    position: relative !important;
    z-index: 2 !important;
}

.module-content i {
    font-size: 2.4rem !important;
    color: #d48d7a !important;
    margin-bottom: 14px !important;
    display: inline-block !important;
    transition: transform 0.5s ease, color 0.4s ease !important;
}

.module-content h4 {
    font-size: 1.15rem !important;
    color: #4d3630 !important;
    line-height: 1.4 !important;
}

/* linia jos ca înainte */
.module-line {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 5px !important;
    width: 0% !important;
    background: linear-gradient(90deg, #d48d7a, #b45f4d) !important;
    border-radius: 4px !important;
    transition: width 0.5s ease !important;
    z-index: 2 !important;
}

/* shine-ul bun, dar fără glitch */
.module-card::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: -80% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent) !important;
    transform: skewX(-20deg) !important;
    transition: left 0.6s ease !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* animația hover ca înainte */
.module-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 22px 45px rgba(180, 95, 77, 0.18) !important;
    border-color: #d48d7a !important;
}

.module-card:hover .module-number {
    color: #e9c4b6 !important;
    transform: scale(1.1) !important;
}

.module-card:hover .module-content i {
    transform: rotate(360deg) scale(1.15) !important;
    color: #b45f4d !important;
}

.module-card:hover .module-line {
    width: 100% !important;
}

.module-card:hover::before {
    left: 120% !important;
}

/* ARROW mic, nu mărește cardul, stă discret în interior */
.module-click-arrow {
    position: absolute !important;
    left: 50% !important;
    bottom: 8px !important;
    width: 16px !important;
    height: 12px !important;
    transform: translateX(-50%) !important;
    z-index: 5 !important;
    pointer-events: none !important;
    opacity: 0.9 !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

/* contur arrow */
.module-click-arrow::before {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 2.5px solid #D48D7A !important;
    border-bottom: 2.5px solid #D48D7A !important;
    transform: translateX(-50%) rotate(45deg) !important;
    border-radius: 2px !important;
    background: transparent !important;
}

/* mijloc alb */
.module-click-arrow::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 2px !important;
    width: 5px !important;
    height: 5px !important;
    background: #fff !important;
    transform: translateX(-50%) rotate(45deg) !important;
    z-index: -1 !important;
    border-radius: 2px !important;
}

.module-card:hover .module-click-arrow {
    transform: translateX(-50%) translateY(3px) !important;
}

/* pe tabletă/telefon */
@media (max-width: 992px) {
    .module-list-premium {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .module-number {
        font-size: 4.5rem !important;
    }

    .module-card {
        padding: 34px 28px 30px !important;
    }
}

/* pe touch nu lăsăm hover fals să strice */
@media (hover: none) {
    .module-card:hover {
        transform: translateY(0) !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.02) !important;
        border-color: #f0ddd5 !important;
    }

    .module-card:hover::before {
        left: -80% !important;
    }

    .module-card:hover .module-content i {
        transform: none !important;
        color: #d48d7a !important;
    }

    .module-card:hover .module-number {
        color: #f4e2da !important;
        transform: none !important;
    }

    .module-card:hover .module-line {
        width: 0% !important;
    }

    .module-card:active {
        transform: scale(0.98) !important;
    }
}

.modul-modal-close {
    cursor: pointer !important;
}


/* ===== FONT WEIGHT UNIFORM PENTRU TOATE LIMBILE ===== */

/* navigație sus */
nav a,
.lang-dropdown-btn,
.lang-dropdown-menu li {
    font-weight: 700 !important;
}

/* titluri carduri: bonusuri, pentru cine, testimoniale etc. */
.card h4 {
    font-weight: 700 !important;
}

/* titluri module */
.module-content h4 {
    font-weight: 700 !important;
}

/* FAQ întrebări */
.faq-question,
.faq-question span {
    font-weight: 700 !important;
}

/* Înainte / După */
.ba-title {
    font-weight: 700 !important;
}

.before-after li span {
    font-weight: 600 !important;
}

/* texte importante din ofertă */
.discount,
.price-big,
.price-cross {
    font-weight: 700 !important;
}

/* garanție / ghid premium */
.guarantee-text h3 {
    font-weight: 700 !important;
}

/* CTA final */
.cta-banner h2,
.cta-banner h2 span {
    font-weight: 700 !important;
}

/* footer logo */
footer .logo,
.logo {
    font-weight: 700 !important;
}

/* randare mai curată și mai apropiată între latin/cirilic */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}


/* ===== ACHITARE PAGE - TEXT PRINCIPAL MAI PUTERNIC ===== */

/* titlul principal de pe pagina de achitare */
[data-key="achitare-title"],
[data-key="achitare-title-highlight"] {
    font-size: clamp(2.6rem, 5vw, 4.2rem) !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
}

/* dacă titlul este în h1/h2, îl facem mai vizibil */
h1 [data-key="achitare-title"],
h1 [data-key="achitare-title-highlight"],
h2 [data-key="achitare-title"],
h2 [data-key="achitare-title-highlight"] {
    font-size: inherit !important;
}

/* logo-ul Wellique din cardul de achitare puțin mai premium */
.payment-box .logo,
.achitare-box .logo,
.checkout-box .logo,
.logo {
    font-weight: 700 !important;
}

/* zona cu textul care înainte era garanție */
[data-key="achitare-guarantee"] {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #7a5e55 !important;
    letter-spacing: 0.1px !important;
}

/* iconița de lângă textul informativ */
[data-key="achitare-guarantee"]::before {
    color: #d48d7a !important;
}

/* lista de beneficii mai clară */
[data-key="achitare-bonus-title"] {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
}

[data-key="achitare-bonus1"],
[data-key="achitare-bonus2"],
[data-key="achitare-bonus3"],
[data-key="achitare-bonus4"],
[data-key="achitare-bonus5"] {
    font-size: 1.05rem !important;
    font-weight: 500 !important;
}

/* pe mobil să nu fie exagerat */
@media (max-width: 768px) {
    [data-key="achitare-title"],
    [data-key="achitare-title-highlight"] {
        font-size: clamp(2.1rem, 9vw, 3rem) !important;
    }

    [data-key="achitare-bonus-title"] {
        font-size: 1.25rem !important;
    }
}


/* ===== LOGO MAI MARE PE PAGINA DE ACHITARE ===== */

/* logo-ul din cardul de achitare */
.checkout-card .logo,
.payment-card .logo,
.achitare-card .logo,
.checkout-box .logo,
.payment-box .logo,
.achitare-box .logo,
body .logo:first-of-type {
    font-size: 2.7rem !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

/* iconița frunză din logo */
.checkout-card .logo i,
.payment-card .logo i,
.achitare-card .logo i,
.checkout-box .logo i,
.payment-box .logo i,
.achitare-box .logo i,
body .logo:first-of-type i {
    font-size: 2.2rem !important;
    margin-right: 8px !important;
}

/* pe telefon să fie mare, dar să nu rupă layout-ul */
@media (max-width: 768px) {
    .checkout-card .logo,
    .payment-card .logo,
    .achitare-card .logo,
    .checkout-box .logo,
    .payment-box .logo,
    .achitare-box .logo,
    body .logo:first-of-type {
        font-size: 2.35rem !important;
    }

    .checkout-card .logo i,
    .payment-card .logo i,
    .achitare-card .logo i,
    .checkout-box .logo i,
    .payment-box .logo i,
    .achitare-box .logo i,
    body .logo:first-of-type i {
        font-size: 1.9rem !important;
    }
}

/* ===== IMC CALCULATOR PREVIEW ===== */
.imc-preview-section {
    background: #fef9f4;
    padding: 70px 0;
}

.imc-preview-box {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
    background: linear-gradient(135deg, #fff, #fff7f2);
    border: 1px solid #f0ddd5;
    border-radius: 60px;
    padding: 46px 44px;
    box-shadow: 0 20px 50px rgba(212, 141, 122, 0.12);
}

.imc-preview-box::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    top: -110px;
    right: -100px;
    border-radius: 50%;
    background: rgba(212, 141, 122, 0.14);
    animation: imcFloatOne 7s ease-in-out infinite;
}

.imc-preview-box::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -95px;
    left: -80px;
    border-radius: 50%;
    background: rgba(180, 95, 77, 0.08);
    animation: imcFloatTwo 8s ease-in-out infinite;
}

@keyframes imcFloatOne {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-12px, 16px) scale(1.05); }
}

@keyframes imcFloatTwo {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(14px, -10px) scale(1.06); }
}

.imc-preview-left,
.imc-preview-right {
    position: relative;
    z-index: 2;
}

.imc-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fdf3ee;
    color: #b45f4d;
    border: 1px solid #f0ddd5;
    border-radius: 60px;
    padding: 9px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.imc-preview-badge i {
    color: #d48d7a;
    animation: imcPulse 1.8s ease-in-out infinite;
}

@keyframes imcPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.16); opacity: 1; }
}

.imc-preview-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    line-height: 1.14;
    color: #4d3630;
    margin-bottom: 16px;
}

.imc-preview-title span {
    color: #b45f4d;
}

.imc-preview-desc {
    color: #6f554c;
    font-size: 1.15rem;
    max-width: 560px;
    margin-bottom: 28px;
}

.imc-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.imc-preview-btn i {
    transition: transform 0.25s ease;
}

.imc-preview-btn:hover i {
    transform: translateX(5px);
}

.imc-preview-card {
    background: #fff;
    border: 1px solid #f0ddd5;
    border-radius: 42px;
    padding: 30px 26px;
    box-shadow: 0 18px 42px rgba(180, 95, 77, 0.12);
    transform: rotate(1.2deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imc-preview-card:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 26px 55px rgba(180, 95, 77, 0.18);
}

.imc-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.imc-card-head span {
    color: #7a5e55;
    font-weight: 700;
    font-size: 1rem;
}

.imc-card-head p {
    margin-top: 4px;
    color: #9b8178;
    font-size: 0.95rem;
}

.imc-card-head strong {
    font-size: 4rem;
    line-height: 0.9;
    color: #4caf50;
    font-weight: 700;
}

.imc-preview-meter {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 14px;
    border-radius: 60px;
    overflow: visible;
    margin: 12px 0 24px;
}

.imc-zone {
    display: block;
    height: 14px;
}

.imc-blue {
    background: #6aa9e9;
    border-radius: 60px 0 0 60px;
}

.imc-green {
    background: #4caf50;
}

.imc-yellow {
    background: #f5b342;
}

.imc-red {
    background: #d9534f;
    border-radius: 0 60px 60px 0;
}

.imc-preview-meter i {
    position: absolute;
    top: 50%;
    left: 42%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4d3630;
    border: 4px solid #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 20px rgba(77, 54, 48, 0.25);
    animation: imcPointer 2.2s ease-in-out infinite;
}

@keyframes imcPointer {
    0%, 100% { left: 42%; }
    50% { left: 46%; }
}

.imc-preview-result {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(76, 175, 80, 0.10);
    color: #2e7d32;
    border-radius: 24px;
    padding: 14px 16px;
    font-weight: 700;
}

.imc-preview-result i {
    color: #4caf50;
}

@media (max-width: 992px) {
    .imc-preview-box {
        grid-template-columns: 1fr;
        text-align: center;
        border-radius: 44px;
        padding: 36px 24px;
    }

    .imc-preview-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .imc-preview-btn {
        justify-content: center;
    }

    .imc-card-head {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .imc-preview-section {
        padding: 50px 0;
    }

    .imc-preview-title {
        font-size: 2.1rem;
    }

    .imc-preview-desc {
        font-size: 1rem;
    }

    .imc-card-head strong {
        font-size: 3rem;
    }

    .imc-preview-card {
        transform: none;
    }
}


/* ===== FIX HEADER ONE LINE DESKTOP ===== */
@media (min-width: 993px) {
    .header-flex {
        flex-wrap: nowrap !important;
        gap: 18px !important;
    }

    header .logo {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        font-size: 1.65rem !important;
    }

    header nav {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    header nav ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 18px !important;
        width: auto !important;
    }

    header nav li {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    header nav a {
        font-size: 0.98rem !important;
        white-space: nowrap !important;
    }

    header .lang-dropdown {
        margin-left: 4px !important;
        margin-top: 0 !important;
        white-space: nowrap !important;
    }

    header .lang-dropdown-btn {
        padding: 6px 12px 6px 10px !important;
        font-size: 0.86rem !important;
        white-space: nowrap !important;
    }
}

/* pentru ecrane desktop mai înguste */
@media (min-width: 993px) and (max-width: 1180px) {
    .container {
        padding: 0 14px !important;
    }

    header .logo {
        font-size: 1.5rem !important;
    }

    header nav ul {
        gap: 13px !important;
    }

    header nav a {
        font-size: 0.92rem !important;
    }

    header .lang-dropdown-btn {
        padding: 5px 10px !important;
        font-size: 0.82rem !important;
    }
}


/* ===== FIX LANGUAGE DROPDOWN AFTER HEADER ONE-LINE FIX ===== */

/* principalul meniu rămâne pe un singur rând */
@media (min-width: 993px) {
    header nav > ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 18px !important;
        width: auto !important;
    }

    header nav > ul > li {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    /* dar dropdown-ul de limbă NU trebuie să moștenească nav ul */
    header .lang-dropdown-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;

        width: auto !important;
        min-width: 110px !important;

        margin: 0 !important;
        padding: 8px 0 !important;

        background: #fff !important;
        border: 1px solid #f0ddd5 !important;
        border-radius: 20px !important;
        box-shadow: 0 12px 40px rgba(0,0,0,0.08) !important;

        list-style: none !important;
        z-index: 9999 !important;

        display: none !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    header .lang-dropdown-menu.open {
        display: block !important;
    }

    header .lang-dropdown-menu li {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;

        width: 100% !important;
        padding: 10px 18px !important;

        white-space: nowrap !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #4d3630 !important;

        cursor: pointer !important;
        background: transparent !important;
    }

    header .lang-dropdown-menu li:hover {
        background: #fdf3ee !important;
    }

    header .lang-dropdown-menu li .flag {
        font-size: 1.15rem !important;
    }
}

/* pentru desktop îngust */
@media (min-width: 993px) and (max-width: 1180px) {
    header nav > ul {
        gap: 13px !important;
    }

    header nav > ul > li > a {
        font-size: 0.92rem !important;
    }

    header .lang-dropdown-menu {
        min-width: 105px !important;
    }

    header .lang-dropdown-menu li {
        font-size: 0.9rem !important;
        padding: 9px 16px !important;
    }
}


/* ===== HEADER TEXT MORE PROFESSIONAL ===== */
@media (min-width: 993px) {
    header nav > ul {
        gap: 20px !important;
    }

    header nav > ul > li > a {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.01em !important;
    }

    header .lang-dropdown-btn {
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        padding: 7px 14px 7px 12px !important;
    }
}

/* pentru desktop mai îngust, păstrăm totul într-un rând */
@media (min-width: 993px) and (max-width: 1180px) {
    header nav > ul {
        gap: 15px !important;
    }

    header nav > ul > li > a {
        font-size: 0.98rem !important;
    }

    header .lang-dropdown-btn {
        font-size: 0.88rem !important;
        padding: 6px 12px !important;
    }
}

/* badge-ul Calculator IMC de pe pagina IMC */
.imc-badge,
.imc-preview-badge {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    padding: 11px 20px !important;
}

.imc-badge i,
.imc-preview-badge i {
    font-size: 1.05rem !important;
}


/* ===== REDUCE SPACE BETWEEN HEADER AND HERO ===== */
#hero {
    padding-top: 20px !important;
}

@media (max-width: 768px) {
    #hero {
        padding-top: 16px !important;
    }
}


#hero {
    padding-top: 10px !important;
}


/* ===== SLIGHTLY SMALLER HEADER HEIGHT ===== */
header {
    padding: 10px 0 !important;
}

.header-flex {
    min-height: 54px !important;
}

header .logo {
    font-size: 1.55rem !important;
}

header .logo i {
    font-size: 1.35rem !important;
}

header nav > ul > li > a {
    font-size: 0.98rem !important;
}

header .lang-dropdown-btn {
    padding: 5px 12px 5px 10px !important;
    font-size: 0.86rem !important;
}

@media (max-width: 768px) {
    header {
        padding: 9px 0 !important;
    }

    .header-flex {
        min-height: 50px !important;
    }

    header .logo {
        font-size: 1.45rem !important;
    }

    header .logo i {
        font-size: 1.25rem !important;
    }
}


/* ===== BEFORE / AFTER 3D PREMIUM ===== */
.ba-3d-section {
    position: relative;
    background:
        radial-gradient(circle at 12% 20%, rgba(212, 141, 122, 0.13), transparent 28%),
        radial-gradient(circle at 88% 78%, rgba(180, 95, 77, 0.10), transparent 30%),
        #fef9f4;
    overflow: hidden;
}

.ba-3d-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    gap: 26px;
    align-items: stretch;
    perspective: 1200px;
}

.ba-3d-card {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    padding: 34px 30px;
    border-radius: 44px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #f0ddd5;
    box-shadow:
        0 26px 70px rgba(180, 95, 77, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(42px) rotateX(8deg);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.ba-3d-card.show {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.ba-3d-after.show {
    transition-delay: 0.15s;
}

.ba-3d-card:hover {
    border-color: #d48d7a;
    box-shadow:
        0 34px 85px rgba(180, 95, 77, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.ba-3d-glow {
    position: absolute;
    width: 270px;
    height: 270px;
    top: -130px;
    right: -115px;
    border-radius: 50%;
    background: rgba(212, 141, 122, 0.14);
    transition: transform 0.45s ease;
}

.ba-3d-after .ba-3d-glow {
    background: rgba(76, 175, 80, 0.13);
}

.ba-3d-card:hover .ba-3d-glow {
    transform: scale(1.18) translate(-12px, 16px);
}

.ba-3d-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    transform: translateZ(34px);
}

.ba-3d-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.55rem;
    box-shadow: 0 16px 32px rgba(0,0,0,0.10);
}

.ba-3d-icon-before {
    background: linear-gradient(135deg, #d48d7a, #b45f4d);
}

.ba-3d-icon-after {
    background: linear-gradient(135deg, #4caf50, #2f8f46);
}

.ba-3d-label {
    display: inline-block;
    margin-bottom: 4px;
    color: #b45f4d;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ba-3d-after .ba-3d-label {
    color: #2f8f46;
}

.ba-3d-head h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    line-height: 1.18;
    color: #4d3630;
}

.ba-3d-list {
    position: relative;
    z-index: 2;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 15px;
    transform: translateZ(24px);
}

.ba-3d-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 20px;
    background: rgba(253, 243, 238, 0.72);
    color: #4d3630;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    transition: transform 0.25s ease, background 0.25s ease;
}

.ba-3d-list li:hover {
    transform: translateX(6px);
    background: #fdf3ee;
}

.ba-3d-before .ba-3d-list li i {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: #d48d7a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    margin-top: 1px;
}

.ba-3d-after .ba-3d-list li {
    background: rgba(76, 175, 80, 0.09);
}

.ba-3d-after .ba-3d-list li:hover {
    background: rgba(76, 175, 80, 0.14);
}

.ba-3d-after .ba-3d-list li i {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: #4caf50;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    margin-top: 1px;
}

.ba-3d-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ba-3d-center.show {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.08s;
}

.ba-3d-orbit {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    padding: 8px;
    background:
        conic-gradient(from 0deg, #d48d7a, #f0ddd5, #4caf50, #d48d7a);
    animation: baOrbit 5s linear infinite;
    box-shadow: 0 20px 45px rgba(180, 95, 77, 0.16);
}

.ba-3d-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    color: #b45f4d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
}

.ba-3d-center span {
    color: #7a5e55;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

@keyframes baOrbit {
    to {
        transform: rotate(360deg);
    }
}

/* tilt visual layer */
.ba-3d-card.tilt-left {
    transform: translateY(0) rotateY(-4deg) rotateX(2deg);
}

.ba-3d-card.tilt-right {
    transform: translateY(0) rotateY(4deg) rotateX(2deg);
}

@media (max-width: 992px) {
    .ba-3d-wrapper {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ba-3d-center {
        order: 2;
        flex-direction: row;
        margin: 4px 0;
    }

    .ba-3d-before {
        order: 1;
    }

    .ba-3d-after {
        order: 3;
    }

    .ba-3d-orbit {
        width: 74px;
        height: 74px;
    }

    .ba-3d-core {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .ba-3d-card {
        min-height: auto;
        padding: 28px 22px;
        border-radius: 34px;
    }

    .ba-3d-head {
        align-items: flex-start;
    }

    .ba-3d-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
        border-radius: 20px;
        font-size: 1.3rem;
    }

    .ba-3d-head h3 {
        font-size: 1.45rem;
    }

    .ba-3d-list li {
        font-size: 0.98rem;
        padding: 13px;
    }
}

/* ===== FIX BEFORE/AFTER CENTER TEXT ===== */
.ba-3d-center span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 8px 14px !important;
    border-radius: 999px !important;

    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid #f0ddd5 !important;
    color: #b45f4d !important;

    font-size: 0.92rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;

    box-shadow: 0 10px 24px rgba(180, 95, 77, 0.08) !important;
}

/* pe mobil textul sub cerc arată aglomerat, îl ascundem */
@media (max-width: 992px) {
    .ba-3d-center span {
        display: none !important;
    }

    .ba-3d-center {
        gap: 0 !important;
        margin: 0 !important;
    }
}

/* săgeata din centru mai premium */
.ba-3d-core i {
    color: #b45f4d !important;
    filter: drop-shadow(0 4px 8px rgba(180, 95, 77, 0.18)) !important;
}


/* ===== REMOVE WEIRD ROTATING BEFORE/AFTER CIRCLE ===== */

/* центр между До и После */
.ba-3d-center {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

/* убираем вращающийся conic-gradient круг */
.ba-3d-orbit {
    width: 74px !important;
    height: 74px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* делаем нормальную красивую кнопку-стрелку */
.ba-3d-core {
    width: 62px !important;
    height: 62px !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, #fff, #fdf3ee) !important;
    border: 1px solid #f0ddd5 !important;
    color: #b45f4d !important;
    box-shadow: 0 16px 34px rgba(180, 95, 77, 0.14) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

/* иконка стрелки */
.ba-3d-core i {
    font-size: 1.35rem !important;
    color: #b45f4d !important;
    transform: none !important;
    filter: none !important;
}

/* легкий hover без вращения */
.ba-3d-center:hover .ba-3d-core {
    transform: translateX(4px) !important;
    box-shadow: 0 20px 42px rgba(180, 95, 77, 0.20) !important;
}

/* убираем подпись под стрелкой, чтобы не выглядело дешево */
.ba-3d-center span {
    display: none !important;
}

/* тонкая линия за стрелкой на desktop */
@media (min-width: 993px) {
    .ba-3d-center::before {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 2px !important;
        height: 78% !important;
        transform: translate(-50%, -50%) !important;
        background: linear-gradient(
            to bottom,
            transparent,
            rgba(212, 141, 122, 0.35),
            transparent
        ) !important;
        z-index: -1 !important;
    }
}

/* pe mobil să fie săgeată în jos între carduri */
@media (max-width: 992px) {
    .ba-3d-center {
        margin: -2px 0 !important;
        min-height: 54px !important;
    }

    .ba-3d-orbit {
        width: 54px !important;
        height: 54px !important;
    }

    .ba-3d-core {
        width: 50px !important;
        height: 50px !important;
        border-radius: 18px !important;
    }

    .ba-3d-core i {
        transform: rotate(90deg) !important;
        font-size: 1.15rem !important;
    }

    .ba-3d-center:hover .ba-3d-core {
        transform: translateY(3px) !important;
    }
}


/* ===== MOBILE HERO START FIX ===== */
@media (max-width: 768px) {
    html,
    body {
        scroll-padding-top: 0 !important;
    }

    #hero {
        padding-top: 10px !important;
    }

    #hero .hero-grid {
        padding-top: 0 !important;
    }

    .hero-text h1 {
        margin-top: 0 !important;
    }
}


/* ===== FIX MOBILE MENU GAP / STRIP ===== */
@media (max-width: 992px) {
    header {
        overflow: visible !important;
        z-index: 9999 !important;
    }

    .header-flex {
        position: relative !important;
        z-index: 10000 !important;
    }

    header nav {
        z-index: 9998 !important;
    }

    header nav.active {
        top: 100% !important;
        margin-top: 0 !important;
        padding-top: 18px !important;

        background: #fdf3ee !important;
        border-top: 0 !important;
        box-shadow: 0 18px 38px rgba(77, 54, 48, 0.12) !important;

        overflow: hidden !important;
    }

    header nav.active::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: -2px !important;
        height: 4px !important;
        background: #fdf3ee !important;
        z-index: 1 !important;
    }

    header nav.active > ul {
        position: relative !important;
        z-index: 2 !important;
        background: #fdf3ee !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    header nav.active > ul > li {
        background: transparent !important;
    }

    header nav.active > ul > li > a {
        display: inline-flex !important;
        justify-content: center !important;
    }
}


/* ===== FINAL FIX MOBILE HAMBURGER GAP ===== */
@media (max-width: 992px) {
    header {
        position: sticky !important;
        top: 0 !important;
        z-index: 99999 !important;
        background: #fdf3ee !important;
        overflow: visible !important;
    }

    .header-flex {
        position: relative !important;
        z-index: 100001 !important;
        background: #fdf3ee !important;
    }

    header nav {
        background: #fdf3ee !important;
    }

    header nav.active {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;

        /* urcă peste acea linie */
        top: calc(100% - 8px) !important;

        margin-top: 0 !important;
        padding-top: 28px !important;

        background: #fdf3ee !important;
        border-top: none !important;
        box-shadow: 0 22px 44px rgba(77, 54, 48, 0.13) !important;

        z-index: 100000 !important;
        overflow: hidden !important;
    }

    /* capac peste zona prin care se vede textul */
    header nav.active::before {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        height: 34px !important;
        background: #fdf3ee !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    header nav.active > ul {
        position: relative !important;
        z-index: 2 !important;
        background: #fdf3ee !important;
        margin-top: 0 !important;
    }

    header nav.active > ul::before {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: -28px !important;
        height: 28px !important;
        background: #fdf3ee !important;
        z-index: -1 !important;
    }

    body.menu-open,
    body.nav-open {
        overflow: hidden !important;
    }
}


/* ===== SAME FIX FOR OTHER MOBILE MENU STATES ===== */
@media (max-width: 992px) {
    header nav.open,
    header nav.show {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: calc(100% - 8px) !important;
        margin-top: 0 !important;
        padding-top: 28px !important;
        background: #fdf3ee !important;
        border-top: none !important;
        box-shadow: 0 22px 44px rgba(77, 54, 48, 0.13) !important;
        z-index: 100000 !important;
        overflow: hidden !important;
    }

    header nav.open::before,
    header nav.show::before {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        height: 34px !important;
        background: #fdf3ee !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    header nav.open > ul,
    header nav.show > ul {
        position: relative !important;
        z-index: 2 !important;
        background: #fdf3ee !important;
        margin-top: 0 !important;
    }
}


/* ===== FINAL LANGUAGE DROPDOWN FIX PC + MOBILE ===== */
.lang-dropdown {
    position: relative !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
}

.lang-dropdown-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.lang-dropdown-menu {
    pointer-events: auto !important;
    z-index: 1000000 !important;
}

.lang-dropdown-menu.open {
    display: block !important;
}

.lang-dropdown-menu li {
    pointer-events: auto !important;
    cursor: pointer !important;
}

