/* ═══════════════════════════════════════════════════════════════════
   mobil.css — reguli comune pentru telefon (≤768px), toate paginile.
   Se încarcă ULTIMUL în <head>, după <style>-ul paginii, ca să aibă prioritate.
   Desktopul nu este afectat: totul e în media query.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Siguranță: nimic nu iese din ecran ── */
    img, video, iframe, table { max-width: 100%; }
    h1, h2, h3, h4 { overflow-wrap: break-word; }

    /* ── 1. Antet compact (era 152px, logo 122px) ── */
    .navbar .nav-container { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; min-height: 0 !important; }
    .logo-center img { width: 56px !important; height: 56px !important; }

    /* ── 2. Hero: numele pe mai multe rânduri, titluri pe măsura ecranului ── */
    .hero { padding-top: 6rem !important; min-height: 0 !important; }
    .hero-subtitle { white-space: normal !important; font-size: 1.05rem !important; line-height: 1.35 !important; }
    .hero h1 { font-size: 1.9rem !important; line-height: 1.2 !important; }
    h1 { font-size: clamp(1.4rem, 6vw, 2rem) !important; line-height: 1.2 !important; max-width: 100%; }
    h2 { font-size: clamp(1.35rem, 6vw, 1.75rem) !important; line-height: 1.25 !important; }
    .hero-buttons { display: flex !important; flex-direction: column; align-items: center; gap: 0.75rem !important; }

    /* ── 3. Secțiuni mai puțin aerisite ── */
    .section { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    .section-header { margin-bottom: 2rem !important; }

    /* ── Blocuri „iconiță + titlu” (Despre mine, Biografie): iconița deasupra ── */
    .service-text .service-title-wrapper { flex-direction: column !important; align-items: flex-start !important; gap: 0.75rem !important; }
    .service-text .service-title-wrapper h3 { font-size: 1.3rem !important; line-height: 1.4 !important; }

    /* ── 4. Butoanele lungi se pot rupe pe două rânduri ── */
    .btn, .btn-header, .btn-outline { max-width: 100%; white-space: normal !important; }

    /* ── 5. Footer compact (era ~700px) ── */
    .footer-top { flex-direction: column !important; gap: 1.25rem !important; }
    .footer-top > span, .footer-legal > span { display: none !important; }
    .footer-nav, .footer-legal { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; gap: 0.5rem 1.1rem !important; }
    .footer-nav a, .footer-legal a { margin: 0 !important; padding: 0 !important; }
    .footer-social { justify-content: center !important; }
    .footer-bottom p { font-size: 0.78rem !important; padding: 0 2.5rem; }

    /* ── 6. Buton „înapoi sus” mai mic ── */
    #backToTop { width: 34px !important; height: 34px !important; right: 0.75rem !important; bottom: 0.75rem !important; opacity: 0.85; }

    /* ── Pagini specifice ── */
    /* Gadgets: meniul calculatoarelor pe mai multe rânduri, coloanele nu mai împing pagina */
    .calc-nav-inner { flex-wrap: wrap !important; }
    .calc-nav a { font-size: 0.72rem !important; }
    .calc-grid { grid-template-columns: 1fr !important; }
    .calc-grid > * { min-width: 0; }
    .calc-grid table { display: block; overflow-x: auto; }

    /* Opinii: titlurile formatelor */
    .format-title-row { flex-wrap: wrap; }
    .format-title { font-size: 0.95rem !important; max-width: 100%; }
    .du-name { font-size: clamp(1.3rem, 7vw, 2rem) !important; max-width: 100%; }
    .format-card { min-width: 0; }
    .format-content { min-width: 0; }

    /* Pagina în engleză: profil + insigne */
    .en-profile-grid { grid-template-columns: 1fr !important; }
    .en-trust-grid { grid-template-columns: 1fr 1fr !important; }
    .en-trust-badge { justify-content: flex-start !important; text-align: left; }
}
