/* Mobile performance optimizations */
html {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-behavior: smooth;
}

body {
    background-color: #020617;
    color: #f8fafc;
    overflow-x: hidden;
    /* Mobile optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Optimize scrolling performance on mobile */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    }

    /* Ensure proper viewport and responsive behavior */
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

}

/* 3D Canvas Container */
#scene-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* Mobile performance optimizations */
    will-change: opacity;
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

#scene-container:not(.sg-glob-pornit) {
    background: radial-gradient(ellipse at 68% 32%, rgba(8,145,178,.15), transparent 55%);
}

#scene-container canvas { display: block; width: 100% !important; height: 100% !important; }

/* Conținutul stă mereu deasupra globului și a numelor. Fără regula asta, secțiunile nepoziționate și subsolul ajung în spatele globului. */
#main-content { position: relative; z-index: 1; }

/* Numele de pe glob: strat fix. Cuvintele lungi sunt cu 20% mai mici. Pe primul ecran stau deasupra conținutului;
   la derulare (.sg-derulat) rămân doar câteva, mai mici, mai discrete și în spatele textului. */
#sg-etichete { --sg-nume: 12px; position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 40; clip-path: inset(86px 0 0 0); transition: opacity .6s ease; }
body:has([data-collapse-toggle][aria-expanded="true"]) #sg-etichete, body:has(.sg-serv-btn[aria-expanded="true"]) #sg-etichete { z-index: 0; }
#sg-etichete > div { font-size: var(--sg-nume); }
#sg-etichete > div { transition: opacity .6s ease, color .9s ease; }
#sg-etichete > .sg-peste-cifre { opacity: .08 !important; }   /* să nu pară parte din statistică */
#sg-etichete > .sg-lung { font-size: calc(var(--sg-nume) * .8); }
#sg-etichete > .sg-fara-nume, #sg-etichete.sg-derulat > .sg-rar { visibility: hidden; }
#sg-etichete.sg-derulat { --sg-nume: 10px; opacity: .6; z-index: 0; }
@media (max-width: 640px) {
    #sg-etichete { --sg-nume: 10px; opacity: .75; }
    #sg-etichete.sg-derulat { --sg-nume: 9px; opacity: .5; }
}

/* Cererea în 3 pași */
.sg-pasi { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none;
           font: 700 10px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.sg-pasi li { display: flex; align-items: center; gap: 8px; }
.sg-pasi li + li::before { content: ''; width: 28px; height: 1px; background: rgba(255,255,255,.12); margin-right: 2px; }
.sg-pasi li span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px;
                   border: 1px solid rgba(255,255,255,.18); }
.sg-pasi li.on { color: #fff; } .sg-pasi li.on span { border-color: #00e0ff; color: #020617; background: #00e0ff; }
.sg-pasi li.gata { color: #22d3ee; } .sg-pasi li.gata span { border-color: rgba(0,224,255,.5); color: #22d3ee; }
.sg-opt { border: 1px solid #374151; background: rgba(15,23,42,.7); color: #cbd5e1; border-radius: 10px; padding: 12px 10px;
          font-size: 13px; line-height: 1.25; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.sg-opt:hover { border-color: rgba(0,224,255,.55); color: #fff; }
.sg-opt:has(input:checked) { border-color: #00e0ff; background: rgba(0,224,255,.12); color: #fff; box-shadow: 0 0 0 1px #00e0ff inset; }
.sg-optiuni { min-width: 0; border: 0; padding: 0; }
.sg-optional { margin-top: 1.5rem; }
.sg-opt { display: block; position: relative; }
.sg-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sg-opt:focus-within, :where(a, button, summary, [tabindex]):focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 3px;
}
.sg-note { color: #a3b3c9; font-size: .8125rem; }
/* pozele din formular și nota despre mostre */
.sg-atas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 1.25rem; }
.sg-atas-adauga { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 16px; border: 1px dashed rgba(0,224,255,.5); border-radius: 10px;
    color: #a5f3fc; font-size: .875rem; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.sg-atas-adauga:hover { border-color: #00e0ff; background: rgba(0,224,255,.08); color: #fff; }
.sg-atas-adauga svg { width: 22px; height: 22px; flex: none; }
.sg-atas input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sg-atas:has(input:focus-visible) .sg-atas-adauga { outline: 2px solid #00e0ff; outline-offset: 3px; }
.sg-atas.plin .sg-atas-adauga { opacity: .45; cursor: default; pointer-events: none; }
.sg-atas .sg-note { flex: 1 1 240px; margin: 0; line-height: 1.45; }
.sg-atas ul { display: flex; flex-basis: 100%; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.sg-atas ul[hidden] { display: none; }
.sg-atas li { position: relative; width: 72px; height: 72px; }
.sg-atas canvas { width: 72px; height: 72px; border: 1px solid rgba(0,224,255,.4); border-radius: 10px; }
.sg-atas li button { position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; border: 1px solid rgba(0,224,255,.6); border-radius: 999px; background: #020617; color: #fff; font-size: 1.125rem; line-height: 1; }
.sg-atas li button:hover { background: #00e0ff; color: #020617; }
#sg-atas-msg { flex-basis: 100%; margin: 0; color: #fde68a; font-size: .8125rem; }
#sg-atas-msg:empty { display: none; }
.sg-mostre { margin-bottom: 1.5rem; padding: 14px 18px; border: 1px solid rgba(0,224,255,.35); border-left: 3px solid #00e0ff; border-radius: 10px; background: rgba(0,224,255,.06);
    color: #cbd5e1; font-size: .875rem; line-height: 1.55; }
.sg-mostre[hidden] { display: none; }
.sg-mostre strong, .sg-mostre b { color: #fff; font-weight: 600; }
.sg-mostre ol { margin: 8px 0; padding-left: 1.25rem; list-style: decimal; }
.sg-mostre li::marker { color: #22d3ee; }
.sg-mostre p { margin: 0; }
.sg-salt { position: absolute; z-index: 100; top: .5rem; left: .5rem; translate: 0 -160%; background: #020617; color: #fff; padding: .5rem; }
.sg-salt:focus { translate: 0 0; }
#contact, #continut { scroll-margin-top: 6rem; }
/* butonul acoperă toată fața cardului, ca să se deschidă oriunde e apăsat; la vedere are doar săgeata */
/* conturul pentru tastatură: întreg, deasupra ilustrației; nu apare după clic */
.sg-fata:has(:focus-visible)::after { content: ''; position: absolute; inset: 3px; z-index: 2; border: 2px solid #22d3ee; border-radius: 16px; pointer-events: none; }
.sg-fata .sg-card-deschide:focus-visible { outline: none; }
.sg-card-inchide { position: absolute; top: .45rem; right: .6rem; color: #cbd5e1; padding: .1rem .5rem; line-height: 1.4; font-size: 1.15rem; }
.sg-pauza { color: #94a3b8; background: none; border: 0; padding: .3rem .4rem; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sg-pauza:hover { color: #fff; }
.sg-pauza[aria-pressed="true"] { border-color: #22d3ee; color: #fff; }
.sg-animatii-oprite *, .sg-animatii-oprite *::before, .sg-animatii-oprite *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
}
html.sg-animatii-oprite { scroll-behavior: auto; }
.sg-animatii-oprite .logo-path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: 0s !important; }
    .logo-path { stroke-dashoffset: 0; }
    .sg-pauza { display: none; }
}
.sg-pasi li b { font-weight: inherit; }
/* telefon: numele pasului apare doar la cel curent, ca șirul să încapă */
@media (max-width: 640px) { .sg-pasi { gap: 8px; } .sg-pasi li + li::before { width: 22px; } .sg-pasi li:not(.on) b { display: none; } }
/* Buton WhatsApp mereu vizibil */
.sg-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 999px; display: flex;
         align-items: center; justify-content: center; background: rgba(2,6,23,.85); border: 1px solid rgba(37,211,102,.55);
         box-shadow: 0 0 22px rgba(37,211,102,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
         transition: transform .2s, box-shadow .2s, background .2s; }
.sg-wa:hover { transform: translateY(-2px); background: rgba(37,211,102,.14); box-shadow: 0 0 30px rgba(37,211,102,.45); }
.sg-wa svg { width: 26px; height: 26px; fill: #25d366; }
.sg-wa.ascuns { visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(8px); }
.sg-wa { transition: transform .2s, box-shadow .2s, background .2s, opacity .25s; }
@media (max-width: 1279px) { .brand-tagline { display: none !important; } }
/* Meniul „Servicii” (30 nov 2026) */
.sg-serv { position: relative; }
.sg-serv-btn { background: none; border: 0; cursor: pointer; font-weight: 500; width: 100%; text-align: left; }
.sg-serv-lista { list-style: none; margin: 0; padding: 0 0 6px 14px; }
.sg-serv-lista a { display: block; padding: 9px 12px; font-size: 13.5px; color: #cbd5e1; text-decoration: none; border-radius: 8px; transition: color .2s, background .2s; }
.sg-serv-lista a:hover, .sg-serv-lista a:focus-visible { color: #22d3ee; background: rgba(34, 211, 238, .08); outline: none; }
.sg-serv-sep { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sg-serv-btn:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; border-radius: 8px; }
.sg-serv-titlu { display: none; }
@media (max-width: 1023px) {
    .sg-serv-btn { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
    .sg-serv-lista { display: none; }
    .sg-serv-btn[aria-expanded="true"] ~ .sg-serv-lista { display: block; }
    .sg-serv-lista a { display: flex; align-items: center; min-height: 44px; }
    #navbar-sticky { max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
    #navbar-sticky.hidden { display: none; }
}
.sg-serv-btn span { display: inline-block; transition: transform .2s; }
.sg-serv-btn[aria-expanded="true"] { color: #22d3ee; }
.sg-serv-btn[aria-expanded="true"] span { transform: rotate(180deg); }
@media (min-width: 1024px) {
    .sg-serv-btn { width: auto; }
    .sg-serv-lista { display: none; position: absolute; top: 100%; left: -8px; min-width: 300px; padding: 8px; background: rgba(2, 6, 23, .98); border: 1px solid rgba(34, 211, 238, .25); border-radius: 12px; box-shadow: 0 24px 48px rgba(0, 0, 0, .65); z-index: 60; }
    .sg-serv-btn[aria-expanded="true"] ~ .sg-serv-lista { display: block; }
}
@media (max-width: 1023px) { #navbar-sticky ul { background: rgba(2, 6, 23, .98); box-shadow: 0 24px 48px rgba(0, 0, 0, .65); } #navbar-sticky .sg-serv-lista { background: none; box-shadow: none; } }
/* Telefon: sloganul din bară se ascunde ca meniul să stea pe același rând; etichetele globului sunt mai discrete */
@media (max-width: 640px) {
    .brand-tagline { display: none !important; }
}

/* Hide globe initially, show from servicii section onwards */
#scene-container.globe-hidden {
    opacity: 0;
}

#scene-container.globe-visible {
    opacity: 0.8;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    #scene-container {
        transition: opacity 0.4s ease-out; /* Faster transition on mobile */
        width: 100vw;
        height: 100vh;
        max-width: 100%;
    }

}

/* Glassmorphism */
.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(0, 224, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.15);
    transform: translateY(-5px);
}

.glass-panel-heavy {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glow-text { text-shadow: 0 0 30px rgba(0, 224, 255, 0.6); }

/* Apariția secțiunilor la derulare. Starea ascunsă (.sg-asteapta) e pusă de scriptul care o și scoate: fără el, totul e vizibil. */
@media (prefers-reduced-motion: no-preference) {
    .reveal.sg-asteapta { opacity: 0; transform: translateY(30px); }
    .reveal.sg-asteapta.active { opacity: 1; transform: none; transition-property: opacity, transform; transition-duration: .8s; transition-timing-function: cubic-bezier(.5, 0, 0, 1); }
}

/* Scanner Line Effect */
.scanner-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #00e0ff, transparent);
    box-shadow: 0 0 10px #00e0ff;
    opacity: 0.5;
    animation: scan 3s linear infinite;
}

/* 3D Flip Card Utilities */
.perspective-1000 {
    perspective: 1000px;
}
.transform-style-3d {
    transform-style: preserve-3d;
}
.backface-hidden {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.rotate-y-180 {
    transform: rotateY(180deg);
}

/* Cardurile de sector: ilustrația și panoul de detalii ocupă zone separate. */
.sg-sector {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1.28;
    min-height: 20rem;
    --sg-contur: rgba(34, 211, 238, .38);
    --sg-halo: rgba(8, 145, 178, .10);
    --sg-halo-panou: rgba(8, 145, 178, .13);
    --sg-ilustratie: .92;
    --sg-deplasare-sageata: 0px;
}
.sg-sector .flip-card-inner { position: absolute; inset: 0; }
@media (min-width: 1024px) {
    #flip-grid { max-width: calc(100vw - 7.5rem); margin-inline: auto; }
}
.sg-sector:is(.aprins, :focus-within) {
    --sg-contur: rgba(34, 211, 238, .63);
    --sg-halo: rgba(8, 145, 178, .24);
    --sg-halo-panou: rgba(8, 145, 178, .23);
    --sg-ilustratie: 1;
    --sg-deplasare-sageata: 2px;
}
@media (hover: hover) {
    .sg-sector:hover {
        --sg-contur: rgba(34, 211, 238, .63);
        --sg-halo: rgba(8, 145, 178, .24);
        --sg-halo-panou: rgba(8, 145, 178, .23);
        --sg-ilustratie: 1;
        --sg-deplasare-sageata: 2px;
    }
}
.sg-fata, .sg-sector .sg-spate { border-radius: 19px; }
.sg-fata {
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(24%, max-content);
    overflow: hidden;
    border: 1px solid var(--sg-contur);
    background: #020912;
    box-shadow: 0 0 20px var(--sg-halo);
    transition: border-color .45s ease, box-shadow .45s ease;
}
.sg-sector-media {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 80%, #082130, #020912 72%);
}
.sg-sector-img {
    position: absolute;
    top: 9%;
    left: 5%;
    width: 90%;
    height: 87%;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: var(--sg-ilustratie);
    filter: brightness(var(--sg-lum, 1)) saturate(.88);
    transition: opacity .6s ease;
    animation: sgPlutire 16s ease-in-out infinite;
    will-change: transform;
}
/* Compensarea luminozității folosită de ilustrațiile mai întunecate. */
.sg-sector-img[src*="sector-utilaje"] { --sg-lum: 1.3; }
.sg-sector-img[src*="sector-alimentare"] { --sg-lum: 1.15; }
.sg-sector-nr {
    position: absolute;
    top: clamp(11px, 1.15vw, 21px);
    left: clamp(14px, 1.35vw, 26px);
    color: #70dfeb;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .12em;
    white-space: nowrap;
}
.sg-sector-nr::after {
    content: '';
    display: block;
    width: calc(100% + 15px);
    height: 9px;
    border-right: 1px solid rgba(103, 232, 249, .66);
    border-bottom: 1px solid rgba(103, 232, 249, .66);
    transform: skewX(-46deg);
    transform-origin: left bottom;
}
.sg-sector-panou {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(9px, 1vw, 15px);
    padding: 8px clamp(11px, 1.2vw, 22px);
    border-top: 1px solid var(--sg-contur);
    border-radius: 15px 15px 0 0;
    background: radial-gradient(ellipse at 50% 140%, #073444 0%, #051421 60%, #05111d 100%);
    box-shadow: inset 0 -8px 17px -9px var(--sg-halo-panou);
    transition: border-color .45s ease, box-shadow .45s ease;
}
.sg-sector-icoana {
    display: grid;
    place-items: center;
    height: clamp(36px, 3.1vw, 52px);
    padding-right: clamp(8px, 1.05vw, 17px);
    border-right: 1px solid rgba(34, 211, 238, .46);
    color: #60d9e7;
}
.sg-sector-icoana svg { width: clamp(24px, 2.25vw, 38px); height: auto; }
.sg-sector-titlu {
    margin: 0;
    color: #f6f9ff;
    font: 500 clamp(17px, 1.1vw, 18px)/1.13 'Space Grotesk', Inter, sans-serif;
    letter-spacing: -.025em;
}
.sg-sector-sub {
    margin: 4px 0 0;
    color: #c1cddd;
    font-size: clamp(12px, .82vw, 13px);
    line-height: 1.25;
}
.sg-card-deschide {
    display: grid;
    place-items: center;
    width: clamp(32px, 2.55vw, 42px);
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid var(--sg-contur);
    border-radius: 10px;
    color: #67e8f9;
    background: #0a2332;
    box-shadow: inset 0 0 12px var(--sg-halo-panou);
    cursor: pointer;
    transition: border-color .4s ease, box-shadow .4s ease;
}
/* Extinde ținta butonului până la marginea feței, inclusiv peste imagine. */
.sg-card-deschide::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.sg-card-deschide svg {
    width: 21px;
    height: 21px;
    transform: translateX(var(--sg-deplasare-sageata));
    transition: transform .4s ease;
}
.sg-sector-scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; animation: sgScan 9s linear infinite; }
.sg-sector-scan::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(to right, transparent, rgba(34, 211, 238, .7), transparent); box-shadow: 0 0 9px rgba(34, 211, 238, .7); }
#flip-grid > div:nth-child(2) .sg-sector-scan { animation-delay: 1.6s; }
#flip-grid > div:nth-child(3) .sg-sector-scan { animation-delay: 3.4s; }
#flip-grid > div:nth-child(4) .sg-sector-scan { animation-delay: 5.1s; }
#flip-grid > div:nth-child(5) .sg-sector-scan { animation-delay: 6.7s; }
#flip-grid > div:nth-child(6) .sg-sector-scan { animation-delay: 2.5s; }
#flip-grid > div:nth-child(even) .sg-sector-img { animation-delay: -8s; }
@keyframes sgScan { 0% { transform: translateY(0); opacity: 0; } 3% { opacity: .65; } 27% { opacity: .65; } 30% { transform: translateY(100%); opacity: 0; } 100% { transform: translateY(100%); opacity: 0; } }
@keyframes sgPlutire { 0%, 100% { transform: scale(1.03) translate3d(0, 0, 0); } 50% { transform: scale(1.09) translate3d(0, -2%, 0); } }
@media (max-width: 420px), (min-width: 1024px) and (max-width: 1160px) {
    .sg-sector { min-height: 22.75rem; }
    .sg-sector-panou { gap: 8px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { .sg-sector-img, .sg-sector-scan { animation: none; } }

/* Cele 47 de categorii: pe telefon 3 benzi glisabile, pe ecran lat listă înfășurată (30 nov 2026) */
.sg-benzi { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sg-banda, .sg-sir { display: contents; }
@media (max-width: 767px) {
    .sg-benzi { display: block; margin-left: -1.5rem !important; margin-right: -1.5rem !important; max-width: none !important; }
    .sg-banda { display: block; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 5px 0;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); }
    .sg-banda::-webkit-scrollbar { display: none; }
    .sg-sir { display: flex; gap: 8px; width: max-content; padding: 0 28px; }
    .sg-cip { flex: none; white-space: nowrap; font-size: 10.5px !important; letter-spacing: .05em !important; padding: 7px 12px !important; }
}

/* poza de lângă pașii din „Cum lucrez” */
.sg-poza-lucru { position: relative; margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid rgba(34, 211, 238, .28); aspect-ratio: 16 / 9; background: #020617; box-shadow: 0 0 18px rgba(0, 224, 255, .08); }
.sg-poza-lucru img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.sg-poza-lucru figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font: 500 10px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: #e2e8f0; background: linear-gradient(to top, rgba(2, 6, 23, .9), rgba(2, 6, 23, 0)); }

/* sg-poze: pozele lui Emilian din secțiunea „Despre”, așezate ca în colajul lui */
.sg-poze { display: grid; gap: 8px; grid-template-columns: 650fr 334fr 360fr; grid-template-rows: 248fr 284fr 290fr; grid-template-areas: "a b b" "a c d" "a e e"; aspect-ratio: 1368 / 930; }
.sg-poza { position: relative; margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid rgba(34, 211, 238, .28); background: #020617; cursor: zoom-in; min-height: 0; min-width: 0; box-shadow: 0 0 18px rgba(0, 224, 255, .08); }
.sg-poza.sg-fara-marire { cursor: default; }
.sg-poza-a { grid-area: a; } .sg-poza-b { grid-area: b; } .sg-poza-c { grid-area: c; } .sg-poza-d { grid-area: d; } .sg-poza-e { grid-area: e; }
.sg-poza img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sg-poza-a img { object-position: center top; } .sg-poza-b img { object-position: center 2%; } .sg-poza-d img { object-position: center top; }
@media (hover: hover) { .sg-poza:hover img { transform: scale(1.04); } .sg-poza:hover { border-color: rgba(34, 211, 238, .7); } }
@media (max-width: 640px) {
    .sg-poze { gap: 6px; aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-template-areas: "a a" "b b" "c d" "e e"; }
    .sg-poza-a { aspect-ratio: 650 / 914; } .sg-poza-b { aspect-ratio: 16 / 9; } .sg-poza-c, .sg-poza-d { aspect-ratio: 334 / 284; } .sg-poza-e { aspect-ratio: 702 / 290; }
}
#sg-poza-mare-fundal { position: fixed; inset: 0; z-index: 200; background: rgba(2, 6, 23, .94); display: none; align-items: center; justify-content: center; padding: 14px; cursor: zoom-out; }
#sg-poza-mare-fundal.on { display: flex; }
#sg-poza-mare-fundal img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 0 60px rgba(0, 224, 255, .2); }

.sg-fond { background: rgba(2, 6, 23, .45); }
.sg-fond-text { display: grid; gap: 1.75rem; max-width: 39rem; margin-inline: auto; }
.sg-portret { position: relative; margin: 0; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; }
.sg-portret img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.sg-fond-bio { position: relative; isolation: isolate; color: #d1d5db; font-size: clamp(.9375rem, 1.4vw, 1rem); line-height: 1.6; }
/* Estompează doar fundalul din spatele biografiei, cu trecere lină la margini. Globul și etichetele continuă să se miște în spate. */
@supports (mask-composite: intersect) {
    .sg-fond-bio::before {
        --margine: 20px;
        content: '';
        position: absolute;
        z-index: -1;
        inset: calc(-1 * var(--margine));
        pointer-events: none;
        background: rgba(2, 6, 23, .45);
        mask-image: linear-gradient(90deg, transparent, #000 var(--margine), #000 calc(100% - var(--margine)), transparent),
                    linear-gradient(180deg, transparent, #000 var(--margine), #000 calc(100% - var(--margine)), transparent);
        mask-composite: intersect;
    }
}
.sg-fond-nume { margin: 0; color: #f8fafc; font-size: clamp(1.625rem, 2.8vw, 2.125rem); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; }
.sg-fond-functie { margin-top: .5rem; color: #22d3ee; font: 500 .8125rem/1.4 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.sg-fond-functie::after { content: ''; display: block; width: 3rem; height: 2px; margin-top: .875rem; background: currentColor; }
.sg-fond-paragrafe { display: grid; gap: .75rem; margin-top: 1.125rem; }
.sg-fond-paragrafe p { margin: 0; }
.sg-fond-evidentiat { padding-inline-start: 1.125rem; border-inline-start: 2px solid #22d3ee; }
.sg-fond-evidentiat strong { color: #f8fafc; font-weight: 600; }

@media (min-width: 640px) { .sg-portret { aspect-ratio: 3 / 2; } }
@media (min-width: 900px) {
    .sg-fond-text { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); gap: 3.25rem; max-width: none; }
    .sg-portret { aspect-ratio: auto; }
}

/* Întrebări frecvente pe prima pagină */
.sg-faq-rand { border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; margin: 0 0 10px; background: rgba(15, 23, 42, .5); transition: border-color .2s; }
.sg-faq-rand[open], .sg-faq-rand:hover { border-color: rgba(34, 211, 238, .35); }
.sg-faq-rand summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 18px; font-weight: 600; color: #fff; font-size: 15.5px; line-height: 1.4; }
.sg-faq-rand summary::-webkit-details-marker { display: none; }
.sg-faq-rand summary::after { content: '+'; flex: none; color: #22d3ee; font: 700 18px 'JetBrains Mono', monospace; line-height: 1; }
.sg-faq-rand[open] summary::after { content: '–'; }
.sg-faq-rand summary:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; border-radius: 12px; }
.sg-faq-rand p { margin: 0; padding: 0 18px 16px; color: #cbd5e1; font-size: 15px; line-height: 1.7; }
.sg-faq-rand p a { color: #22d3ee; text-decoration: underline; text-underline-offset: 3px; }

/* JS Controlled Flip Class */
.is-flipped {
    transform: rotateY(180deg);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00e0ff; }

.active-cyan {
        background-color: rgba(6, 182, 212, 0.2) !important; /* cyan-500/20 */
        border-color: #22d3ee !important; /* cyan-400 */
        color: white !important;
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.5) !important;
        transform: translateY(-4px) !important;
    }
    .active-blue {
        background-color: rgba(59, 130, 246, 0.2) !important; /* blue-500/20 */
        border-color: #60a5fa !important; /* blue-400 */
        color: white !important;
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.5) !important;
        transform: translateY(-4px) !important;
    }
    .active-purple {
        background-color: rgba(168, 85, 247, 0.2) !important; /* purple-500/20 */
        border-color: #c084fc !important; /* purple-400 */
        color: white !important;
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.5) !important;
        transform: translateY(-4px) !important;
    }

    .active-orange {
        background-color: rgba(249, 115, 22, 0.2) !important; /* orange-500/20 */
        border-color: #fb923c !important; /* orange-400 */
        color: white !important;
        box-shadow: 0 0 15px rgba(249, 115, 22, 0.5) !important;
        transform: translateY(-4px) !important;
    }


    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }

    .logo-container {
      width: 48px;
      height: 48px;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .logo-svg {
      width: 100%;
      height: 100%;
      filter: drop-shadow(0 0 8px rgba(0, 224, 255, 0.5));
    }

    .logo-path {
      stroke-dasharray: 300;
      stroke-dashoffset: 300;
      animation: draw-logo 2.5s ease-out forwards, glow-logo 3s ease-in-out infinite alternate;
    }

    .logo-globe {
      animation: pulse-globe 3s ease-in-out infinite alternate;
    }

    .brand-text-main {
      font-weight: 700;
      font-size: 18px;
      letter-spacing: 0.05em;
      background: linear-gradient(120deg, #00e0ff, #ff6bcb);
      -webkit-background-clip: text;
      color: transparent;
      text-transform: uppercase;
    }

    .brand-tagline {
      font-size: 11px;
      color: #a7b0c3;
      letter-spacing: 0.02em;
    }

    /* Animations */
    @keyframes draw-logo {
      to {
        stroke-dashoffset: 0;
      }
    }

    @keyframes glow-logo {
      from {
        filter: drop-shadow(0 0 2px rgba(0, 224, 255, 0.3));
      }
      to {
        filter: drop-shadow(0 0 10px rgba(255, 107, 203, 0.5));
      }
    }

    @keyframes pulse-globe {
      from {
        transform: scale(0.9);
        opacity: 0.5;
      }
      to {
        transform: scale(1.1);
        opacity: 0.8;
      }
    }


    @keyframes auto-hover {
        0% {
            transform: rotate(0deg) scale(1);
        }
        50% {

            transform: rotate(180deg) scale(1.1);
            filter: drop-shadow(0 0 8px rgba(0, 224, 255, 1))
                    drop-shadow(0 0 30px rgba(255, 0, 204, 0.7));
        }
        100% {

            transform: rotate(0deg) scale(1);
        }
    }

    .logo-svg {
        filter: drop-shadow(0 0 5px rgba(0, 224, 255, 0.8))
                drop-shadow(0 0 15px rgba(0, 100, 255, 0.4));
        overflow: visible;
        transform-origin: center center;
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                    filter 0.3s ease;
        transform: rotate(0deg);
        animation: auto-hover 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s 1;
    }


    .brand:hover .logo-svg {
        transform: rotate(180deg) scale(1.1);
        filter: drop-shadow(0 0 8px rgba(0, 224, 255, 1))
                drop-shadow(0 0 30px rgba(255, 0, 204, 0.7));
        animation: none;
    }

    @keyframes vanish-cycle {
        0% {
            transform: scale(1, 1);
            opacity: 1;
            filter: brightness(1);
        }
        10% {
            transform: scale(1, 0.005);
            opacity: 0.9;
            filter: brightness(3);
        }
        20% {
            transform: scale(0, 0);
            opacity: 0;
        }
        70% {
            transform: scale(0, 0);
            opacity: 0;
        }
        80% {
            transform: scale(0.01, 0.01);
            opacity: 0.8;
            filter: brightness(5);
        }
        90% {
            transform: scale(1, 0.005);
            opacity: 0.9;
            filter: brightness(3);
        }
        100% {
            transform: scale(1, 1);
            opacity: 1;
            filter: brightness(1);
        }
    }


    #services-grid .glass-panel {
        transition: transform 0.5s ease-out, opacity 0.5s ease-out, border-color 0.3s;
        transform-origin: center center;
        backface-visibility: hidden;
    }

    #services-grid:has(.glass-panel:hover) .glass-panel:not(:hover) {
        animation: vanish-cycle 4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    }

    #services-grid .glass-panel:hover {
        transform: scale(1.05);
        z-index: 20;
        border-color: rgba(0, 224, 255, 0.8);
        background: rgba(15, 23, 42, 0.9);
        box-shadow: 0 0 40px rgba(0, 224, 255, 0.2);
    }

    .timeline-item.active-pulse .timeline-dot {
        transform: scale(1.5);
    }

    .item-cyan.active-pulse .timeline-title {
        color: #22d3ee; /* cyan-400 */
    }

    .item-gray.active-pulse .timeline-dot {
        background-color: #06b6d4; /* cyan-500 */
        border-color: #06b6d4;
    }
    .item-gray.active-pulse .timeline-phase {
        color: #ffffff;
    }
    .item-gray.active-pulse .timeline-title {
        color: #22d3ee; /* cyan-400 */
    }

    .item-amber.active-pulse .timeline-title {
        color: #fbbf24; /* amber-400 */
    }

/* Introul primei pagini: ecranul de încărcare (1,5 secunde) și intrarea paginii „din întuneric”.
   Totul e legat de clasa .sg-intro, pusă de scriptul de lângă #page-loader. Animațiile au durată fixă și se termină
   mereu cu pagina vizibilă (fill-mode „backwards” la conținut). Durata de 1.5s trebuie să fie aceeași cu DURATA din script. */
#page-loader { display: none; }
.sg-intro body.loading { overflow: hidden; }
.sg-intro .sg-salt:not(:focus) { visibility: hidden; }
.sg-intro #page-loader { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%); animation: sgIntroIese .4s ease-out 1.5s forwards; }
@keyframes sgIntroIese { to { opacity: 0; visibility: hidden; } }
.loader-content { animation: fadeIn .5s ease-in; width: 100%; max-width: 100%; padding: 1rem; box-sizing: border-box; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
.logo-loader-wrapper { filter: drop-shadow(0 0 30px rgba(0, 224, 255, .5)); }
.logo-loader-inner img { animation: logoPulse 2s ease-in-out infinite; }
@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(0, 224, 255, .8)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 30px rgba(0, 224, 255, 1)); }
}
.particle { filter: drop-shadow(0 0 5px rgba(0, 224, 255, .8)); }
.orbit-dot { transform-origin: center; }
#loader-progress { background-size: 200% 100%; animation: progressShimmer 2s linear infinite; }
@keyframes progressShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (max-width: 768px) {
    .loader-content { width: 90%; max-width: 90%; }
    .logo-loader-wrapper { width: 20rem !important; height: 20rem !important; max-width: 70vw; max-height: 70vw; }
    .logo-loader-inner img { width: 3.5rem !important; height: 3.5rem !important; }
    #page-loader .w-64 { width: 85%; max-width: 260px; }
    #page-loader p { font-size: .75rem; }
}
.sg-intro #main-content { animation: sgIntroLumina 1.5s cubic-bezier(.25, .46, .45, .94) 1.5s backwards, sgIntroFiltru 1.9s cubic-bezier(.25, .46, .45, .94) 1.5s backwards, sgIntroUrca 1.5s cubic-bezier(.25, .46, .45, .94) 1.5s backwards; }
@keyframes sgIntroLumina { from { opacity: 0; } }
@keyframes sgIntroFiltru { from { filter: blur(25px) brightness(.2) sepia(1) contrast(2) grayscale(.8); } to { filter: blur(0) brightness(1) sepia(0) contrast(1) grayscale(0); } }
@keyframes sgIntroUrca { from { transform: translate3d(0, 30px, 0) scale(.92); } }
.sg-intro #main-content > * { animation: fadeInFromDark 1s ease-out 1.8s backwards; }
.sg-intro #main-content > :nth-child(1) { animation-delay: 1.6s; }
.sg-intro #main-content > :nth-child(2) { animation-delay: 1.7s; }
@keyframes fadeInFromDark { from { opacity: 0; transform: translateY(30px); filter: brightness(.4) blur(5px); } to { opacity: 1; transform: translateY(0); filter: brightness(1) blur(0); } }
@media (max-width: 768px) {
    .sg-intro #main-content { animation-name: sgIntroLumina, sgIntroFiltruTelefon, sgIntroUrca; animation-duration: 1.2s; animation-timing-function: ease-out; }
    @keyframes sgIntroFiltruTelefon { from { filter: blur(15px) brightness(.3); } to { filter: blur(0) brightness(1); } }
}
/* Intrare directă la o secțiune (/#contact): aceeași lumină, fără mișcarea care ar deplasa locul unde ajungi */
.sg-intro.sg-intro-direct #main-content { animation-name: sgIntroLumina, none, none; }
.sg-intro.sg-intro-direct #main-content > * { animation-name: sgIntroLumina; }
/* Plase de siguranță: cu animațiile oprite, introul nu se vede deloc */
.sg-animatii-oprite #page-loader { display: none !important; }
@media (prefers-reduced-motion: reduce) { #page-loader { display: none !important; } }

/* „Cere ofertă” în meniul de pe telefon */
.sg-meniu-oferta { padding: 10px 12px 4px; }
.sg-meniu-oferta a { display: block; padding: 12px; border-radius: 999px; background: #00e0ff; color: #020617; text-align: center; font-size: 14.5px; font-weight: 700; text-decoration: none; }

/* Formularul pe telefon: mai sus și mai compact, ca produsul și categoriile să se vadă din primul ecran */
@media (max-width: 640px) {
    .sg-contact { padding-top: 1rem !important; }
    .sg-contact .glass-panel-heavy { padding: 1.5rem 1.25rem; }
    .sg-contact .glass-panel-heavy > p { margin-bottom: 1.25rem; }
    .sg-pasi { margin-bottom: 18px; }
    .sg-opt { padding: 9px 8px; }
    .sg-contact #sg-produs { margin-bottom: 10px; }
    .sg-atas { gap: 8px; margin-bottom: 12px; }
    .sg-atas-adauga { flex: 1 1 100%; justify-content: center; }
    .sg-atas:has(ul[hidden]) .sg-note { display: none; }
}

/* Căutarea taxei vamale de pe prima pagină; trimite spre ghid-coduri-taric.html?q=… (merge și fără JavaScript) */
.sg-taxa { border-color: rgba(34, 211, 238, .35); box-shadow: 0 0 60px rgba(6, 182, 212, .12); }
.sg-taxa-form { display: flex; gap: 10px; max-width: 620px; margin: 28px auto 0; }
.sg-taxa-form input { flex: 1; min-width: 0; font-size: 16px; color: #fff; background: rgba(2, 6, 23, .75); border: 1px solid rgba(34, 211, 238, .4); border-radius: 12px; padding: 14px 16px; }
.sg-taxa-form input::placeholder { color: #94a3b8; }
.sg-taxa-form input:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; }
.sg-taxa-form button { font-weight: 700; color: #020617; background: #22d3ee; border-radius: 12px; padding: 14px 22px; white-space: nowrap; transition: background-color .2s; }
.sg-taxa-form button:hover { background: #fff; }
.sg-taxa-form button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) { .sg-taxa-form { flex-direction: column; } }

/* Pachetele de servicii de pe prima pagină */
.sg-pachete { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sg-pachet { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px 54px 22px 22px; border-radius: 16px; text-decoration: none; transition: border-color .25s, box-shadow .25s; }
.sg-pachet:hover, .sg-pachet:focus-visible { border-color: rgba(34, 211, 238, .65); box-shadow: 0 0 28px rgba(34, 211, 238, .14); }
.sg-pachet-nr { margin-bottom: 8px; color: #22d3ee; font: 600 11px 'JetBrains Mono', monospace; letter-spacing: .14em; }
.sg-pachet h3 { margin: 0 0 6px; color: #fff; font-size: 18px; line-height: 1.3; font-weight: 700; }
.sg-pachet p { margin: 0; color: #cbd5e1; font-size: 14px; line-height: 1.55; }
.sg-pachet-sageata { position: absolute; right: 20px; bottom: 18px; color: #22d3ee; font-size: 20px; }
@media (min-width: 640px) { .sg-pachete { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sg-pachete { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sg-pachet { padding: 24px 20px 56px; } }

/* „De unde începi?”, calculatoarele, cei 6 pași și subsolul (conținutul vine din build/drum.py) */
.sg-start { padding: 8px 0 32px; scroll-margin-top: 96px; }
.sg-start h2 { margin: 0 0 18px; font-size: clamp(24px, 4vw, 32px); font-weight: 700; color: #fff; }
.sg-start ul { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sg-start a { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 100%; min-height: 64px; padding: 13px 16px; border: 1px solid rgba(34, 211, 238, .22); border-radius: 14px; background: rgba(8, 16, 34, .94); text-decoration: none; transition: border-color .25s, background-color .25s, box-shadow .25s; }
.sg-start a::after { content: '→'; flex: none; color: #22d3ee; font-size: 18px; transition: transform .2s; }
.sg-start a:hover, .sg-start a:focus-visible { border-color: #22d3ee; background: rgba(8, 47, 73, .7); box-shadow: 0 0 28px rgba(0, 224, 255, .18); outline: none; }
.sg-start a:hover::after { transform: translateX(4px); }
.sg-start b, .sg-start i, .sg-unelte b, .sg-unelte i, .sg-drum b, .sg-drum i, .sg-drum small { display: block; }
.sg-start b { font-size: 16px; line-height: 1.35; color: #fff; }
.sg-start i { margin-top: 2px; font-size: 14px; line-height: 1.45; font-style: normal; color: #a8b6c9; }
@media (min-width: 640px) { .sg-start ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sg-start ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .sg-start a { padding: 18px 20px; } }

.sg-unelte-titlu { margin: 30px 0 14px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 18px; font-weight: 700; color: #fff; }
.sg-unelte { display: grid; grid-template-columns: 1fr; gap: 10px; text-align: left; }
@media (min-width: 768px) { .sg-unelte { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.sg-unelte a, .gh .sg-unelte a { display: block; padding: 14px 16px; border: 1px solid rgba(34, 211, 238, .3); border-radius: 14px; background: rgba(34, 211, 238, .06); color: #fff; text-decoration: none; transition: border-color .2s, background-color .2s; }
.sg-unelte a:hover, .sg-unelte a:focus-visible { border-color: #22d3ee; background: rgba(34, 211, 238, .14); outline: none; }
.sg-unelte b { font-size: 16px; line-height: 1.35; }
.sg-unelte b span { color: #22d3ee; }
.sg-unelte i { margin-top: 4px; font-size: 14px; line-height: 1.5; font-style: normal; color: #a8b6c9; }
.sg-unelte-toate { display: inline-block; margin-top: 16px; padding: 10px 4px; color: #67e8f9; font-size: 15px; }
.sg-unelte-toate:hover { color: #fff; }

.sg-drum { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .sg-drum { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .sg-drum { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sg-drum a { display: flex; gap: 14px; height: 100%; padding: 16px; border: 1px solid rgba(34, 211, 238, .2); border-radius: 16px; background: rgba(8, 16, 34, .94); text-decoration: none; transition: border-color .25s, box-shadow .25s; }
.sg-drum a:hover, .sg-drum a:focus-visible { border-color: #22d3ee; box-shadow: 0 0 28px rgba(0, 224, 255, .18); outline: none; }
.sg-drum-nr, .gd-cap > span, .gd-nr { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(34, 211, 238, .6); border-radius: 50%; background: rgba(34, 211, 238, .1); color: #67e8f9; font: 700 17px 'JetBrains Mono', monospace; }
.sg-drum b { font-size: 17px; line-height: 1.35; color: #fff; }
.sg-drum i { margin-top: 4px; font-size: 14.5px; line-height: 1.5; font-style: normal; color: #a8b6c9; }
.sg-drum small { margin-top: 8px; font-size: 13px; color: #67e8f9; }

.sg-subsol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; max-width: 80rem; margin: 0 auto 36px; padding: 0 24px 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
@media (min-width: 768px) { .sg-subsol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sg-subsol { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sg-subsol p { margin: 0 0 8px; color: #fff; font-size: 14px; font-weight: 700; }
.sg-subsol ul { margin: 0; padding: 0; list-style: none; }
.sg-subsol a { display: block; padding: 7px 0; color: #94a3b8; font-size: 13.5px; line-height: 1.4; }
.sg-subsol a:hover, .sg-subsol a:focus-visible { color: #22d3ee; }

/* „De ce SupplyGate” */
.sg-dece { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.sg-dece > div { position: relative; }
.sg-dece > div::before { content: ''; position: absolute; inset: -28px -24px; z-index: -1; border-radius: 40px; background: rgba(2, 6, 23, .78); filter: blur(22px); pointer-events: none; }
.sg-dece > div > p { margin: 0 0 16px; color: #cbd5e1; font-size: 17px; line-height: 1.75; }
.sg-dece figure { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(34, 211, 238, .3); border-radius: 18px; background: #020617; box-shadow: 0 0 40px rgba(0, 224, 255, .12); }
.sg-dece img { display: block; width: 100%; height: auto; }
.sg-dece figcaption { position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 8px; background: rgba(2, 6, 23, .86); color: #f1f5f9; font-size: 13px; line-height: 1.4; }
.sg-dece-baza { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.sg-dece-baza li { padding: 16px 18px; border: 1px solid rgba(34, 211, 238, .2); border-radius: 14px; background: rgba(8, 16, 34, .94); }
.sg-dece-baza b { display: block; color: #fff; font-size: 16px; line-height: 1.4; }
.sg-dece-baza p { margin: 6px 0 0; color: #a8b6c9; font-size: 14.5px; line-height: 1.6; }
.sg-dece-drum { margin-top: 52px; scroll-margin-top: 110px; }
.sg-dece-drum h3 { margin: 0 0 8px; color: #fff; font-size: clamp(22px, 3.4vw, 28px); font-weight: 700; }
.sg-dece-drum > h3, .sg-dece-drum > p { text-shadow: 0 0 12px #020617, 0 0 24px #020617; }
.sg-dece-drum > p { max-width: 46rem; margin: 0 0 22px; color: #cbd5e1; font-size: 16px; line-height: 1.65; }
.sg-dece-clar { margin-top: 18px; padding: 18px 20px; border-left: 3px solid #22d3ee; border-radius: 0 14px 14px 0; background: rgba(8, 16, 34, .94); }
.sg-dece-clar p { margin: 0; color: #cbd5e1; font-size: 15.5px; line-height: 1.7; }
.sg-dece-clar strong { color: #fff; }
.sg-dece-clar a { display: inline-block; padding: 12px 0 2px; color: #67e8f9; font-weight: 600; }
.sg-dece-clar a:hover { color: #fff; }
@media (min-width: 640px) { .sg-dece-baza { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sg-dece { grid-template-columns: 1.05fr 1fr; gap: 48px; } .sg-dece-baza { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
/* Pe telefon, mai puțin spațiu gol între secțiuni (Tailwind se încarcă după acest fișier, de aceea !important) */
@media (max-width: 640px) { #main-content section.py-24 { padding-top: 3.25rem !important; padding-bottom: 3.25rem !important; } #main-content section.py-16 { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; } }
