/* ══════════════════════════════════════════════════════════════
   Outbox · componente pentru paginile interioare
   Tokenii de culoare, tipografie si umbre vin din outbox.css (index.html).

   Reguli de lucru, dupa auditul QA:
   - nu refolosim clase ale paginii principale cu alt sens
     (.bento, .hero, .services, .portfolio, .slider, .slide, .dot, .logos, .cert)
   - nu folosim elementele nav/footer in continut (sunt stilizate global)
   - regulile de grila pe breakpointuri stau in intervale care NU se suprapun,
     ca sa nu apara conflicte de specificitate intre desktop si mobil
   ══════════════════════════════════════════════════════════════ */

:root {
    --text-muted: #64748B;          /* 4.8:1 pe alb, pentru texte mici secundare */
    --container: 1088px;            /* latimea de continut a .wrap pe desktop */
}

/* fara JavaScript continutul ramane vizibil */
html:not(.js) .reveal { opacity: 1; transform: none; filter: none; }

h1, h2, h3, .sh, .cta-band-p { text-wrap: balance; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.prose p, .prose li { text-wrap: pretty; }

/* ─── HERO ───────────────────────────────────────────────── */
.page-hero {
    position: relative;
    padding: clamp(118px, 12vw, 150px) 56px clamp(56px, 6vw, 88px);
    background: var(--navy);
    overflow: hidden;
    isolation: isolate;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse 70% 90% at 82% 15%, rgba(37,99,235,0.42) 0%, transparent 62%),
        radial-gradient(ellipse 50% 60% at 8% 92%, rgba(37,99,235,0.18) 0%, transparent 70%),
        linear-gradient(160deg, var(--navy) 0%, #081228 100%);
}
.page-hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}
.page-hero-in {
    max-width: var(--container); margin: 0 auto;
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 72px); align-items: center;
}
.page-hero-text { min-width: 0; }
.page-hero.solo .page-hero-in { grid-template-columns: minmax(0, 820px); justify-content: center; text-align: center; }
.page-hero.solo .page-hero-actions, .page-hero.solo .article-meta { justify-content: center; }
.page-hero.solo .page-hero-sub { margin-inline: auto; }

.page-hero .tag {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.86);
}
.page-hero h1 {
    font-family: var(--font-d); font-weight: 800;
    font-size: clamp(32px, 3.9vw, 52px);
    line-height: 1.08; letter-spacing: -0.028em; color: #fff;
    overflow-wrap: break-word;
}
.page-hero--article h1 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.14; }
.page-hero-sub {
    margin-top: 18px; max-width: 54ch;
    font-size: clamp(15px, 1.3vw, 17.5px); line-height: 1.72;
    color: rgba(255,255,255,0.7);
}
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-shot { position: relative; isolation: isolate; min-width: 0; }
.hero-shot img {
    width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover;
    border-radius: var(--r-lg);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 40px 80px rgba(3,10,26,.6);
    transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
    transition: transform .8s var(--out);
}
.hero-shot:hover img { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) translateY(-6px); }
.hero-shot::after {
    content: ''; position: absolute; inset: 12% -8% -12% 14%; z-index: -1;
    border-radius: var(--r-xl);
    background: radial-gradient(ellipse, rgba(37,99,235,.55), transparent 70%);
    filter: blur(50px);
}
.page-hero--article .hero-shot img { aspect-ratio: 16/10; }

/* firimituri — text discret, doar pe paginile de servicii */
.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 20px;
    font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.5);
}
.crumbs a { color: rgba(255,255,255,0.72); transition: color .2s; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .45; }

/* rand meta pentru articole */
.article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,.72);
}
.meta-badge {
    display: inline-flex; padding: 4px 12px; border-radius: var(--r-full);
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2);
    font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.88);
}

/* ─── BUTOANE ────────────────────────────────────────────── */
.btn-blue {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--blue); color: #fff;
    font-family: var(--font-b); font-size: 14px; font-weight: 700;
    padding: 13px 13px 13px 22px; border-radius: var(--r-full);
    border: none; cursor: pointer;
    box-shadow: 0 8px 22px rgba(37,99,235,.32);
    transition: transform .3s var(--spring), box-shadow .3s var(--out);
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37,99,235,.4); }
.btn-blue:focus-visible, .btn-ghost:focus-visible, .btn-white:focus-visible,
.card:focus-visible, .related-link:focus-visible, .svc-card:focus-visible {
    outline: 3px solid #93B4FF; outline-offset: 3px;
}
.btn-blue .ico {
    width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center; font-size: 13px;
    transition: transform .3s var(--spring);
}
.btn-blue:hover .ico { transform: translate(2px,-2px) scale(1.1); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.08); color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    font-size: 14px; font-weight: 700;
    padding: 13px 22px; border-radius: var(--r-full);
    transition: background .25s, transform .3s var(--spring);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

/* butonul alb: outbox.css ii dadea display:table in banda CTA (iconita cadea pe rand nou) */
.btn-white .ico { flex: 0 0 auto; }
.cta-band .btn-white { display: flex; width: fit-content; max-width: 100%; margin: 0 auto; text-align: left; }
.prose li .li-title { color: var(--text-1); font-weight: 800; }
.related-grid > * { align-self: stretch; }
.related-link { height: 100%; }
.btn-white.caps, .btn-blue.caps { font-size: 13px; letter-spacing: .06em; }

/* ─── SECTIUNI ───────────────────────────────────────────── */
.sec { padding: clamp(60px, 7vw, 104px) 0; background: var(--bg); position: relative; }
.sec.alt { background: var(--bg2); }
.sec.dark { background: var(--dark); color: #fff; }
.sec.dark .sh { color: #fff; }

.sec-head { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sh { overflow-wrap: break-word; }
.sec-head .sh { font-size: clamp(28px, 3.1vw, 44px); margin-bottom: 0; }

/* ─── DESCHIDERE (intro) ─────────────────────────────────── */
.intro-media { margin-bottom: clamp(28px, 3.5vw, 48px); }
.intro-media img {
    width: 100%; height: auto; aspect-ratio: 21/8; object-fit: cover;
    border-radius: var(--r-lg); box-shadow: var(--shadow-l);
}
.intro-grid {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 4.5vw, 72px); align-items: start;
}
.intro-title { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.16; margin-bottom: 0; }

/* ─── TEXT CURENT ────────────────────────────────────────── */
.prose { color: var(--text-2); font-size: 16.5px; line-height: 1.78; min-width: 0; }
.prose > * + * { margin-top: 16px; }
.prose h2, .prose h3 {
    font-family: var(--font-d); font-weight: 800; letter-spacing: -0.02em;
    font-size: clamp(20px, 2vw, 25px); line-height: 1.25;
    color: var(--text-1); margin-top: 34px;
}
.prose strong { color: var(--text-1); font-weight: 700; }
.prose .kicker { color: var(--blue); letter-spacing: .02em; }
.prose ul, .prose ol { list-style: none; display: grid; gap: 12px; }
.prose li { position: relative; padding-left: 30px; }
.prose ul li::before {
    content: ''; position: absolute; left: 0; top: 5px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--blue-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.prose ol { counter-reset: li; }
.prose ol li::before {
    counter-increment: li; content: counter(li);
    position: absolute; left: 0; top: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--blue-l); color: var(--blue);
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

/* ─── SPLIT: text + imagine alternant ────────────────────── */
/* pe desktop imaginea are exact inaltimea coloanei de text (fara rama decorativa) */
.split {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 80px); align-items: stretch;
}
.split-body { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.split-body .sh { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.16; }
.split.media-right .split-media { order: 2; }
.split.media-left .split-media { order: -1; }
.split-media { position: relative; min-height: 340px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-l); }
/* langa texte foarte lungi imaginea nu se intinde peste ~640px: ramane centrata pe coloana */
@media (min-width: 900px) { .split-media { align-self: center; height: 100%; max-height: 640px; } }
.split-media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}

.prose-block { max-width: none; }
.prose-block .prose { max-width: 820px; }
.prose-block .sh { font-size: clamp(26px, 2.8vw, 40px); }

/* ─── BENEFICII ──────────────────────────────────────────── */
.benefits { display: grid; gap: 18px; grid-template-columns: 1fr; }
.benefit {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 28px 26px 26px;
    box-shadow: var(--shadow-s);
    transition: transform .4s var(--spring), box-shadow .4s var(--out), border-color .3s;
}
.sec.alt .benefit { box-shadow: var(--shadow-m); border-color: transparent; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: rgba(37,99,235,.22); }
.benefit-num {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px;
    background: var(--blue-l); color: var(--blue);
    font-family: var(--font-d); font-weight: 800; font-size: 14px;
}
.benefit.accent .benefit-num { background: var(--blue); color: #fff; }
.benefit h3 {
    font-family: var(--font-d); font-weight: 800; letter-spacing: -0.012em;
    font-size: 18.5px; line-height: 1.3; color: var(--text-1); margin-bottom: 10px;
    overflow-wrap: break-word; hyphens: auto;
}
.benefit.accent h3 { font-size: 20.5px; }
.benefit p { font-size: 14.5px; line-height: 1.7; color: var(--text-2); }

/* ─── GRILE FLUIDE (carduri, sub-servicii, linkuri) ──────── */
/* randurile incomplete se centreaza, deci nu raman goluri */
.flow-grid { --cols: 3; --gap: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.flow-grid > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.flow-grid > .featured { flex-basis: 100%; }
.related-grid { --gap: 14px; }
.related-grid.n4, .related-grid.n2, .svc-grid.n4, .svc-grid.n2 { --cols: 2; }
.related-grid.n10 { --cols: 2; }

/* ─── CARDURI ────────────────────────────────────────────── */
.card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-md); overflow: hidden;
    box-shadow: var(--shadow-s);
    transition: transform .4s var(--spring), box-shadow .4s var(--out);
}
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg3); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--out); }
a.card:hover .card-img img { transform: scale(1.05); }
.card-grid.screenshots .card-img img { object-position: top center; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.card h3 {
    font-family: var(--font-d); font-weight: 800; letter-spacing: -0.018em;
    font-size: 19px; line-height: 1.3; color: var(--text-1); overflow-wrap: break-word;
}
.card p { margin-top: 10px; font-size: 14.5px; line-height: 1.68; color: var(--text-2); }
.card-go {
    margin-top: auto; padding-top: 18px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 700; color: var(--blue);
}
.card-go .ar { transition: transform .3s var(--spring); }
a.card:hover .card-go .ar { transform: translateX(4px); }

/* ─── SUB-SERVICII (sectiunea intunecata) ────────────────── */
.svc-card {
    display: flex; flex-direction: column; gap: 12px;
    padding: 28px 26px; border-radius: var(--r-md);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(96,165,250,.18);
    transition: border-color .3s, background .3s, transform .4s var(--spring);
}
a.svc-card:hover { border-color: rgba(96,165,250,.55); background: rgba(37,99,235,.10); transform: translateY(-4px); }
.svc-card h3 { font-family: var(--font-d); font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; color: #fff; }
.svc-text p { font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.68); }
.svc-text p + p { margin-top: 10px; }
.svc-go { margin-top: auto; padding-top: 6px; display: inline-flex; gap: 8px; font-size: 13.5px; font-weight: 700; color: #93B4FF; }
a.svc-card:hover .svc-go .ar { transform: translateX(4px); }
.svc-go .ar { transition: transform .3s var(--spring); }

/* ─── INTREBARI FRECVENTE ────────────────────────────────── */
.faq-split {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(28px, 4vw, 64px); align-items: start;
}
.faq-aside { position: sticky; top: 100px; }
.faq-aside .sh { font-size: clamp(27px, 2.8vw, 40px); }
.faq-aside p { margin-top: 12px; color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.faq-aside .btn-blue { margin-top: 24px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-md); overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.faq-item.open { border-color: rgba(37,99,235,.28); box-shadow: var(--shadow-m); }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 20px 24px; background: none; border: none; cursor: pointer;
    font-family: var(--font-b); font-size: 16px; font-weight: 700; text-align: left; line-height: 1.45;
    color: var(--text-1); transition: color .2s;
}
.faq-q:hover { color: var(--blue); }
.faq-q:focus-visible { outline: 3px solid #93B4FF; outline-offset: -3px; border-radius: var(--r-md); }
.faq-ico {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
    background: var(--blue-l); color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700; line-height: 1;
    transition: transform .4s var(--spring), background .3s, color .3s;
}
.faq-item.open .faq-ico { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--out); }
html:not(.js) .faq-a { max-height: none; }
.faq-a-in { padding: 0 24px 22px; font-size: 15.5px; line-height: 1.75; color: var(--text-2); }

/* ─── SPOTLIGHT ──────────────────────────────────────────── */
.spotlight { position: relative; overflow: hidden; border-radius: var(--r-xl); isolation: isolate; box-shadow: var(--shadow-l); }
.spotlight-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: 380px; }
.spotlight-grid.no-media { grid-template-columns: 1fr; min-height: 0; }
.spotlight-grid.no-media .spotlight-body { align-items: center; text-align: center; padding-inline: clamp(24px, 8vw, 140px); }
.spotlight-img { position: relative; min-height: 260px; }
.spotlight-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spotlight-body {
    background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 100%);
    padding: clamp(32px, 4vw, 60px);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.spotlight-body .tag { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.85); }
.spotlight-body .sh { color: #fff; font-size: clamp(25px, 2.5vw, 36px); line-height: 1.15; }
.spotlight-body.long .sh { font-size: clamp(22px, 2.1vw, 30px); }
.spotlight-body p { margin-top: 14px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.72; }
.spotlight-body .btn-white { margin-top: 30px; }

/* ─── CTA FINAL ──────────────────────────────────────────── */
.cta-wrap { max-width: 1200px; margin-inline: auto; padding-top: clamp(56px, 7vw, 96px); }
.cta-wrap.after-white { padding-top: 0; }
.cta-band.has-img { background: var(--navy); }
.cta-band .cta-bg {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; object-fit: cover; opacity: .3;
}
.cta-band.has-img::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(ellipse 70% 80% at 50% 50%, rgba(10,24,54,.55) 0%, transparent 75%),
        linear-gradient(135deg, rgba(10,24,54,0.92) 0%, rgba(30,64,175,0.80) 60%, rgba(29,78,216,0.82) 100%);
}
.cta-band > *:not(.cta-bg) { position: relative; z-index: 2; }
.cta-band .sh { font-size: clamp(28px, 3.3vw, 46px); max-width: 22ch; margin-inline: auto; }
.cta-band-p { max-width: 560px; }

/* ─── LINKURI INRUDITE ───────────────────────────────────── */
.related-link {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    min-height: 68px; padding: 16px 22px; border-radius: var(--r-md);
    background: #fff; border: 1px solid var(--border);
    font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--text-1);
    box-shadow: var(--shadow-s);
    transition: transform .35s var(--spring), box-shadow .35s var(--out), border-color .3s, color .3s;
}
.related-link:hover { transform: translateY(-3px); color: var(--blue); border-color: rgba(37,99,235,.25); box-shadow: var(--shadow-m); }
.related-link .ar { flex: 0 0 auto; color: var(--blue); transition: transform .3s var(--spring); }
.related-link:hover .ar { transform: translateX(4px); }

/* ─── CONTACT ────────────────────────────────────────────── */
.contact-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 72px); align-items: start;
}
.contact-info .sh { font-size: clamp(28px, 3.1vw, 44px); }
.contact-info .sp { margin-top: 4px; }
.contact-card a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.contact-cards { display: grid; gap: 12px; margin-top: 28px; }
.contact-card {
    position: relative; display: flex; gap: 16px; align-items: center;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 18px 22px; box-shadow: var(--shadow-s);
    transition: transform .35s var(--spring), box-shadow .35s var(--out), border-color .3s;
}
.contact-card.is-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: rgba(37,99,235,.25); }
.contact-card.is-link a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.contact-ico {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px;
    background: var(--blue-l); color: var(--blue);
    display: flex; align-items: center; justify-content: center;
}
.contact-ico svg { width: 20px; height: 20px; }
.contact-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.contact-card a, .contact-card span { font-size: 16px; font-weight: 600; color: var(--text-1); overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--blue); }

.form-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px);
    box-shadow: var(--shadow-l);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field .req { color: #DC2626; }
.field input, .field textarea, .field select {
    font-family: var(--font-b); font-size: 16px; color: var(--text-1);
    background: var(--bg2); border: 1px solid #CBD5E1;
    border-radius: var(--r-sm); padding: 13px 15px; min-height: 50px;
    transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; background: #fff; border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37,99,235,.14);
}
.form-card .btn-blue { margin-top: 6px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ─── ARTICOL ────────────────────────────────────────────── */
.article-layout {
    display: grid; grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(30px, 5vw, 80px); align-items: start;
    max-width: 1088px; margin: 0 auto;
}
.article-layout.no-toc { grid-template-columns: minmax(0, 760px); justify-content: center; }
.article-body { max-width: 760px; }
.toc { position: sticky; top: 100px; }
.toc-label {
    list-style: none; cursor: default;
    font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-2); margin-bottom: 12px;
}
.toc-label::-webkit-details-marker { display: none; }
.toc-links a {
    display: block; padding: 9px 0 9px 16px; border-left: 2px solid var(--border);
    font-size: 14px; line-height: 1.45; color: var(--text-2);
    transition: color .25s, border-color .25s;
}
.toc-links a:hover, .toc-links a.active { color: var(--blue); border-color: var(--blue); }
.article-lead { font-size: 19px; line-height: 1.72; color: var(--text-1); font-weight: 500; margin-bottom: 24px; }
.article-body .prose h2 { margin-top: 44px; scroll-margin-top: 96px; }
/* pe articole H1 e mai mic, deci si titlurile de sectiune raman sub el */
.page-article .sec-head .sh, .page-article .cta-band .sh { font-size: clamp(24px, 2.6vw, 36px); }

/* ─── PORTOFOLIU ─────────────────────────────────────────── */
.pf-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.pf-filter {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    font-family: var(--font-b); font-size: 14px; font-weight: 700; color: var(--text-2);
    background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-full);
    padding: 10px 18px; cursor: pointer;
    transition: background .25s var(--out), border-color .25s, color .25s, box-shadow .25s;
}
.pf-filter span {
    min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--r-full);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg2); color: var(--text-muted); font-size: 12px;
}
.pf-filter:hover { border-color: rgba(37,99,235,.4); color: var(--blue); }
.pf-filter.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(37,99,235,.28); }
.pf-filter.active span { background: rgba(255,255,255,.2); color: #fff; }
.pf-filter:focus-visible { outline: 3px solid #93B4FF; outline-offset: 3px; }

.pf-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
    box-shadow: var(--shadow-s);
    transition: transform .4s var(--spring), box-shadow .4s var(--out), border-color .3s;
}
.pf-card[hidden] { display: none; }
.pf-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: rgba(37,99,235,.28); }
.pf-card:focus-visible { outline: 3px solid #93B4FF; outline-offset: 3px; }
.pf-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg3); border-bottom: 1px solid var(--border); }
.pf-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--out); }
.pf-card:hover .pf-card-img img { transform: scale(1.04); }
.pf-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.pf-card-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.pf-card h3 { font-family: var(--font-d); font-weight: 800; font-size: 19px; line-height: 1.3; letter-spacing: -.015em; color: var(--text-1); }
.pf-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.pf-card .card-go { margin-top: auto; padding-top: 16px; }
.pf-card:hover .card-go .ar { transform: translateX(4px); }

/* rame de browser si telefon pentru capturi */
.browser-frame {
    margin: 0; overflow: hidden; background: #fff;
    border-radius: 14px; border: 1px solid #D5DEEC;
    box-shadow: 0 30px 60px rgba(10,24,54,.16), 0 6px 16px rgba(10,24,54,.08);
}
.bf-bar {
    display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
    background: #EEF2F8; border-bottom: 1px solid #D5DEEC;
}
.bf-bar > span:not(.bf-url) { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.bf-bar > span:nth-child(1) { background: #F87171; }
.bf-bar > span:nth-child(2) { background: #FBBF24; }
.bf-bar > span:nth-child(3) { background: #34D399; }
.bf-url {
    margin-left: 12px; flex: 1; max-width: 360px; height: 22px; border-radius: 6px; padding: 0 10px;
    display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    background: #fff; font-size: 11.5px; font-weight: 600; color: var(--text-muted);
}
.browser-frame img { width: 100%; height: auto; display: block; }
.page-hero .browser-frame { border-color: rgba(255,255,255,.14); box-shadow: 0 40px 80px rgba(3,10,26,.6); }

.phone-frame {
    margin: 0; padding: 10px; border-radius: 42px; background: #0B1220;
    box-shadow: 0 30px 60px rgba(10,24,54,.22), inset 0 0 0 2px #273449;
}
.phone-frame img { width: 100%; height: auto; display: block; border-radius: 32px; }

.back-link {
    display: flex; width: fit-content; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px;
    font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.75); transition: color .2s, gap .25s var(--out);
}
.back-link:hover { color: #fff; gap: 12px; }
.project-shot { min-width: 0; }

.project-overview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.project-text .sh { font-size: clamp(26px, 2.6vw, 38px); }
.project-facts {
    position: sticky; top: 100px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px;
}
.sec.alt .project-facts { background: #fff; }
.project-facts dl { display: grid; gap: 14px; padding-bottom: 22px; margin: 0 0 22px; border-bottom: 1px solid var(--border); }
.project-facts dt { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.project-facts dd { margin: 2px 0 0; font-size: 15.5px; font-weight: 700; color: var(--text-1); overflow-wrap: anywhere; }
.project-facts dd a { color: var(--blue); display: inline-block; padding: 12px 0; margin: -12px 0; }
.project-facts h3 { font-family: var(--font-d); font-size: 17px; font-weight: 800; color: var(--text-1); margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--blue-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

.gallery-desktop { display: grid; gap: clamp(22px, 3vw, 40px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-desktop > :only-child { grid-column: 1 / -1; width: 100%; max-width: 960px; margin: 0 auto; }
.gallery-desktop > :last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; width: calc(50% - clamp(11px, 1.5vw, 20px)); margin: 0 auto; }
.gallery-mobile { display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); }
.gallery-mobile .phone-frame { flex: 0 1 280px; min-width: 0; }

.project-next {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 22px 28px; margin-bottom: clamp(40px, 5vw, 64px);
    border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-s);
}
.project-next > span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.project-next a { display: inline-block; padding-block: 8px; font-family: var(--font-d); font-size: clamp(18px, 2vw, 24px); font-weight: 800; color: var(--text-1); transition: color .2s, gap .25s var(--out); }
.project-next a:hover { color: var(--blue); }

@media (max-width: 1024px) {
    .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-overview { grid-template-columns: minmax(0, 1fr); }
    .project-facts { position: static; }
}
@media (max-width: 640px) {
    .pf-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .pf-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 6px; scrollbar-width: none; }
    .pf-filters::-webkit-scrollbar { display: none; }
    .pf-filter { flex: 0 0 auto; }
    .gallery-desktop { grid-template-columns: minmax(0, 1fr); }
    .gallery-desktop > :last-child:nth-child(odd):not(:only-child) { width: 100%; }
    .gallery-mobile { flex-wrap: wrap; }
    .gallery-mobile .phone-frame { flex: 0 1 calc(50% - 8px); padding: 6px; border-radius: 28px; }
    .gallery-mobile .phone-frame img { border-radius: 22px; }
    .bf-bar { height: 28px; padding: 0 10px; gap: 5px; }
    .bf-bar > span:not(.bf-url) { width: 8px; height: 8px; }
    .bf-url { display: none; }
    .project-facts { padding: 22px 20px; }
}

/* ─── ARTICOLE (listare) ─────────────────────────────────── */
.blog-hero .page-hero-sub { font-size: clamp(16px, 1.5vw, 19px); }
.blog-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.blog-stats span {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--r-full);
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75);
}
.blog-stats b { color: #fff; font-weight: 800; }
.blog-section-head { margin-bottom: clamp(20px, 2.5vw, 32px); }
.blog-section-head .sh { font-size: clamp(26px, 2.8vw, 38px); margin-bottom: 0; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

.post-featured {
    display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); overflow: hidden;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-m);
    transition: transform .45s var(--spring), box-shadow .45s var(--out), border-color .3s;
}
.post-featured:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); border-color: rgba(37,99,235,.25); }
.post-featured:focus-visible { outline: 3px solid #93B4FF; outline-offset: 4px; }
.post-featured-img { position: relative; min-height: 380px; overflow: hidden; background: var(--bg3); }
.post-featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--out); }
.post-featured:hover .post-featured-img img { transform: scale(1.04); }
.post-featured-body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 3.5vw, 52px); }
.post-featured-body h2 {
    font-family: var(--font-d); font-weight: 800; letter-spacing: -0.022em;
    font-size: clamp(24px, 2.1vw, 30px); line-height: 1.2; color: var(--text-1); text-wrap: pretty;
}
.post-featured-body p {
    font-size: 16px; line-height: 1.72; color: var(--text-2);
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.post-featured-body .btn-blue { align-self: flex-start; margin-top: 6px; }

.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-grid.n1 { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.post-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-s);
    transition: transform .4s var(--spring), box-shadow .4s var(--out), border-color .3s;
}
.sec.alt .post-card, .sec.alt .post-featured { border-color: transparent; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: rgba(37,99,235,.25); }
.post-card:focus-visible { outline: 3px solid #93B4FF; outline-offset: 3px; }
.post-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg3); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--out); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.post-card-body h3 { font-family: var(--font-d); font-weight: 800; font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; color: var(--text-1); }
.post-card-body p {
    font-size: 14.5px; line-height: 1.65; color: var(--text-2);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--blue); }
.post-go .ar { transition: transform .3s var(--spring); }
.post-card:hover .post-go .ar { transform: translateX(4px); }

@media (max-width: 1024px) {
    .post-featured { grid-template-columns: minmax(0, 1fr); }
    .post-featured-img { min-height: 0; aspect-ratio: 16/9; }
    .post-grid, .post-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .post-grid, .post-grid.n2 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .post-featured-body { padding: 22px 20px 24px; gap: 12px; }
    .post-featured-body p { -webkit-line-clamp: 3; }
    .post-featured-body .btn-blue { align-self: stretch; justify-content: center; }
}

/* galeriile de portofoliu au capturi de inaltimi diferite (sectiuni intregi) */
.gallery-desktop { align-items: start; }

/* ══════════════ DESKTOP ≥ 1025px ══════════════ */
@media (min-width: 1025px) {
    .benefits { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .benefit.w2 { grid-column: span 2; }
    .benefit.w3 { grid-column: span 3; }
    .benefit.w6 { grid-column: 1 / -1; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; align-items: start; }
    .benefit.w6 .benefit-num { margin-bottom: 0; }


    .flow-grid > .featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
    .flow-grid > .featured .card-img { aspect-ratio: auto; min-height: 320px; }
    .flow-grid > .featured .card-body { justify-content: center; padding: 36px 40px; }
    .flow-grid > .featured h3 { font-size: clamp(24px, 2.2vw, 32px); }
}

/* ══════════════ TABLETA 641–1024px ══════════════ */
@media (min-width: 641px) and (max-width: 1024px) {
    .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefit.t-full { grid-column: 1 / -1; }
    .flow-grid { --cols: 2; }
}

/* ══════════════ ≤ 1024px ══════════════ */
@media (max-width: 1024px) {
    .page-hero { padding: 108px 32px 60px; }
    .page-hero.hide-shot-mobile .hero-shot { display: none; }
    .page-hero.hide-shot-mobile .page-hero-in { grid-template-columns: minmax(0, 1fr); }
    .intro-media img { aspect-ratio: 16/9; }
    .page-hero-in, .split, .contact-grid, .faq-split, .intro-grid,
    .spotlight-grid, .article-layout { grid-template-columns: minmax(0, 1fr); }
    .page-hero.solo .page-hero-in { grid-template-columns: minmax(0, 1fr); }
    .hero-shot img { transform: none; aspect-ratio: 16/9; }
    .split.media-right .split-media, .split.media-left .split-media { order: -1; }
    .split-media { min-height: 0; }
    .intro-media img, .hero-shot img { max-height: min(420px, 55vh); }
    .page-hero--article .hero-shot img { aspect-ratio: 2/1; }
    .split-body, .intro-grid .prose, .prose-block .prose, .article-body { max-width: 72ch; }
    .split-media img { position: static; height: auto; aspect-ratio: 16/9; max-height: 460px; }
    .faq-aside, .toc { position: static; }
    .article-layout, .article-body { max-width: 760px; }
    .toc { border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 18px; background: var(--bg2); }
    .toc-label { cursor: pointer; margin: 0; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; }
    .toc-label::after { content: '+'; font-size: 18px; color: var(--blue); }
    .toc[open] .toc-label::after { content: '−'; }
    .toc-links { padding-bottom: 12px; }
    .cta-wrap { padding-left: 32px; padding-right: 32px; }
}

/* ══════════════ TABLETA LATA 900–1024px ══════════════ */
@media (min-width: 900px) and (max-width: 1024px) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
    .split.media-right .split-media { order: 2; }
    .split-media { min-height: 300px; }
    .split-media img { position: absolute; inset: 0; height: 100%; max-height: none; aspect-ratio: auto; }
}

/* ══════════════ MOBIL ≤ 640px ══════════════ */
@media (max-width: 640px) {
    .wrap { padding: 0 20px; }
    .sec { padding: 56px 0; }

    .page-hero { padding: 92px 20px 44px; }
    .page-hero-in { gap: 28px; }
    .page-hero h1 { font-size: clamp(25px, 7.8vw, 32px); }
    .page-hero--article h1 { font-size: clamp(25px, 6.9vw, 28px); }
    .page-hero-sub { font-size: 15px; margin-top: 14px; }
    .page-hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; }
    .page-hero-actions > a { justify-content: center; min-height: 52px; }
    .page-hero.hide-shot-mobile .hero-shot { display: none; }
    .page-hero--article .hero-shot img { aspect-ratio: 2/1; }
    .crumbs { margin-bottom: 16px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
    .crumbs a { display: inline-block; padding: 10px 0; margin: -10px 0; }
    .crumbs a:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

    .sec-head .sh, .intro-title, .split-body .sh, .prose-block .sh,
    .faq-aside .sh, .cta-band .sh, .contact-info .sh,
    .page-article .sec-head .sh, .page-article .cta-band .sh { font-size: clamp(21px, 6.6vw, 28px); line-height: 1.18; }
    .spotlight-body .sh { font-size: clamp(22px, 6vw, 26px); }
    .spotlight-body.long .sh { font-size: clamp(18px, 5.4vw, 23px); }

    .intro-media img { aspect-ratio: 16/10; }
    .intro-grid { gap: 18px; }
    .prose { font-size: 16px; }

    .benefits { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .benefit { padding: 22px 20px; }
    .benefit-num { width: 36px; height: 36px; margin-bottom: 14px; }
    .benefit h3, .benefit.accent h3 { font-size: 18px; letter-spacing: 0; }

    .flow-grid, .flow-grid.related-grid[class], .flow-grid.svc-grid[class] { --cols: 1; --gap: 14px; }
    .svc-card { padding: 22px 20px; }

    .spotlight { border-radius: var(--r-lg); }
    .spotlight-img { min-height: 200px; }
    .spotlight-body .btn-white { align-self: stretch; justify-content: center; }

    .faq-q { font-size: 15px; padding: 17px 18px; }
    .faq-a-in { padding: 0 18px 18px; font-size: 15px; }
    .faq-aside .btn-blue { width: 100%; justify-content: center; }

    .cta-wrap { padding: 56px 20px 64px; }
    .cta-wrap.after-white { padding-top: 0; }
    .cta-band { padding: 52px 22px; }
    .cta-band-p { font-size: 15.5px; }
    .cta-band .btn-white { width: 100%; justify-content: center; padding: 12px 16px 12px 20px; line-height: 1.35; }
    /* toate butoanele late de pe mobil: text centrat, iconita langa text */
    .page-hero-actions > a, .spotlight-body .btn-white, .cta-band .btn-white, .faq-aside .btn-blue,
    .form-card .btn-blue, .split-body .btn-white, .split-body .btn-blue { text-align: center; }
    .split-body .btn-white, .split-body .btn-blue, .prose-block .btn-white, .prose-block .btn-blue {
        width: 100%; justify-content: center; }
    /* sub-serviciile duc la pagini proprii: pe mobil cardurile raman scurte */
    a.svc-card .svc-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    a.svc-card .svc-text p + p { display: none; }
    .page-article .sec-head .sh { font-size: clamp(22px, 6vw, 26px); }
    .card-grid.screenshots { --cols: 2; --gap: 12px; }
    .card-grid.screenshots .card-body { padding: 12px 14px 14px; }
    .card-grid.screenshots .card h3 { font-size: 14.5px; }

    .form-card .btn-blue { width: 100%; justify-content: center; }
    .article-lead { font-size: 17.5px; line-height: 1.68; }

    .hamburger { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.in { opacity: 1; transform: none; filter: none; transition: none; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
