/* =============================================================================
 * Booster · componente
 * ========================================================================== */

/* -----------------------------------------------------------------------------
 * Antet (648:129) — 1400 px, la 40 px de sus, așezat peste hero
 * -------------------------------------------------------------------------- */

.site-header {
    position: absolute;
    top: 40px;
    left: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(var(--container), 100% - 2 * var(--gutter));
    transform: translateX(-50%);
}

.site-header__logo img {
    width: 152px;
    height: auto;
}

.site-header__end {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 24px;
    padding-inline: 24px;
    border-radius: var(--r-btn);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    font-size: var(--text-nav);
    line-height: 28px;
    white-space: nowrap;
}

.site-nav a {
    transition: color var(--duration) var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--brand-orange);
}

/* Învelișul meniului burger. Pe desktop nu există pentru layout: navigația
   rămâne între logo și butoane, iar butonul din meniu stă ascuns. */
.site-menu {
    display: contents;
}

/* Clasa dublată bate .btn { display: inline-flex }, definit mai jos. */
.site-menu .site-menu__cta {
    display: none;
}

/* Butonul burger: pătrat alb, ca butoanele secundare; liniile devin X când
   meniul e deschis. Apare doar sub 1200 px. */
.nav-toggle {
    position: relative;
    display: none;
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(32, 32, 32, 0.08);
    border-radius: var(--r-btn);
    background-color: var(--surface-white);
    color: var(--ink);
    transition: border-color var(--duration) var(--ease);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
    border-color: var(--line-ghost);
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
}

.nav-toggle__bar {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -1px 0 0 -9px;
    transition: background-color var(--duration) var(--ease);
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
    content: '';
    position: absolute;
    left: 0;
    transition: transform var(--duration) var(--ease);
}

.nav-toggle__bar::before {
    transform: translateY(-6px);
}

.nav-toggle__bar::after {
    transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
    transform: rotate(-45deg);
}

/* Selectorul de limbă: compact, fără chenar — iconița de traducere, codul
   limbii și săgeata — și o listă albă, cu umbra stickerelor. */
.lang-menu {
    position: relative;
}

.lang-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: var(--text-nav);
    font-weight: 500;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--duration) var(--ease);
}

.lang-menu__toggle::-webkit-details-marker {
    display: none;
}

.lang-menu__toggle:hover,
.lang-menu[open] .lang-menu__toggle {
    background-color: rgba(32, 32, 32, 0.05);
}

.lang-menu__icon {
    width: 18px;
    height: 18px;
    color: var(--brand-orange);
}

.lang-menu__chevron {
    width: 12px;
    height: 12px;
    color: var(--ink-muted);
    transition: transform var(--duration) var(--ease);
}

.lang-menu[open] .lang-menu__chevron {
    transform: rotate(180deg);
}

.lang-menu__list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 164px;
    padding: 4px;
    border: 1px solid rgba(32, 32, 32, 0.08);
    border-radius: 14px;
    background-color: var(--surface-white);
    box-shadow: var(--shadow-sticker);
    animation: dropdown-in var(--duration) var(--ease);
}

.lang-menu__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: background-color var(--duration) var(--ease);
}

.lang-menu__list a:hover {
    background-color: rgba(32, 32, 32, 0.05);
}

.lang-menu__list a[aria-current="true"] {
    background-color: var(--tint-peach);
    font-weight: 500;
}

.lang-menu__check {
    color: var(--brand-orange);
}

.lang-menu__code {
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

/* -----------------------------------------------------------------------------
 * Butoane
 * -------------------------------------------------------------------------- */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--r-btn);
    font-size: var(--text-btn);
    line-height: 28px;
    white-space: nowrap;
    transition:
        transform var(--duration) var(--ease),
        background-color var(--duration) var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Primar (648:121) */
.btn--primary {
    overflow: hidden;
    isolation: isolate;
    color: var(--ink-on-brand);
    background-color: var(--brand-orange);
}

.btn__label {
    position: relative;
}

/* Decorul: cutie de 245 × 137,8 px pe #F17904, mai mare decât butonul și
   tăiată de el. În export e rotită 180° și răsturnată pe verticală, adică
   oglindită pe orizontală.

   Cutia ține lățimea butonului (cel puțin 245 px) și proporția ei, iar
   formele sunt în procente din ea — așa le scalează și macheta pe butoanele
   late (648:919: 362 px, același desen mărit de 1,478 ori). Fără asta,
   etichetele lungi lăsau la capăt o bandă portocalie plată. */
.btn__glow {
    position: absolute;
    top: -0.49px;
    left: 0;
    z-index: -1;
    width: max(245px, 100%);
    aspect-ratio: 245 / 137.813;
    overflow: hidden;
    background-color: var(--brand-orange-deep);
    transform: scaleX(-1);
    pointer-events: none;
}

.btn__glow-shape {
    position: absolute;
    transform: rotate(3.78deg);
}

.btn__glow-shape img {
    position: absolute;
    max-width: none;
}

/* Vector 2906: cutia rotită are 481,7 × 227,3 px; SVG-ul iese din ea cât zona
   filtrului de blur (6,75 % lateral, 14,29 % sus și jos). */
.btn__glow-shape--1 {
    top: -38.67%;
    left: -59.464%;
    width: 196.611%;
    height: 164.949%;
}

.btn__glow-shape--1 img {
    top: -14.29%;
    left: -6.75%;
    width: 113.492%;
    height: 128.589%;
}

/* Vector 2905: 457,6 × 163 px; zona filtrului 9,07 % lateral, 25,48 % vertical. */
.btn__glow-shape--2 {
    top: -14.698%;
    left: -52.204%;
    width: 186.785%;
    height: 118.266%;
}

.btn__glow-shape--2 img {
    top: -25.48%;
    left: -9.07%;
    width: 118.147%;
    height: 150.951%;
}

.btn__glow-noise {
    position: absolute;
    inset: 0;
    background: url('../img/noise-dark.png') 0 0 / 130.667px 130.667px;
    mix-blend-mode: overlay;
    opacity: 0.25;
}

/* Secundar (648:127) */
.btn--ghost {
    color: var(--brand-orange);
    background-color: var(--surface-ghost);
    border: 0.5px solid var(--line-ghost);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.btn--ghost:hover {
    background-color: rgba(255, 127, 2, 0.08);
}

/* Alb, pe cardurile portocalii */
.btn--light {
    color: var(--ink);
    background-color: var(--surface-white);
}

/* Din antet (648:141), fără memoji-ul din machetă: doar textul crem pe
   fundalul gradient al butoanelor principale (.btn--primary). Înălțimea de
   48 px vine din min-height. */
.btn--cta {
    padding: 6px 24px;
    color: var(--brand-cream);
}

/* -----------------------------------------------------------------------------
 * Antetul de secțiune (div.container-site din fiecare secțiune a machetei)
 * -------------------------------------------------------------------------- */

.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14.9px;
    text-align: center;
}

.eyebrow {
    font-size: 1rem;
    font-weight: 500;
    line-height: 24px;
    color: var(--ink-muted);
}

.eyebrow--dark {
    color: var(--ink);
}

.section-title {
    max-width: 896px;
    padding-bottom: 9.79px;
    font-size: var(--text-h2);
    font-weight: 500;
    line-height: var(--lh-h2);
    letter-spacing: var(--tracking-h2);
    color: var(--ink);
    text-wrap: balance;
}

.section-title em {
    font-style: normal;
    color: var(--brand-orange);
}

.section-title--left {
    max-width: none;
    text-align: left;
}

.section-lead {
    max-width: 764px;
    font-size: var(--text-lead);
    line-height: var(--lh-text);
    color: var(--ink-lead);
}

.section-lead--wide {
    max-width: 914px;
}

.section-lead--left {
    text-align: left;
}

/* Scânteia de lângă titluri (Vector 28 × 19,9 px), la 19 px în stânga și
   10 px deasupra începutului textului. */
.spark {
    position: relative;
}

.spark::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -19px;
    width: 28px;
    height: 19.9px;
    background: url('../img/decor/sparkle-orange.svg') center / contain no-repeat;
    pointer-events: none;
}

.spark--end::before {
    left: auto;
    right: -19px;
    transform: scaleX(-1);
}

.spark--row::before {
    top: -20px;
    left: -24px;
}

.spark--olive::before {
    background-image: url('../img/decor/sparkle-olive.svg');
}

.spark--yellow::before {
    background-image: url('../img/decor/sparkle-yellow.svg');
}

.spark--amber::before {
    background-image: url('../img/decor/sparkle-amber.svg');
}

/* -----------------------------------------------------------------------------
 * Sticker — pastilă albă înclinată (648:53, 648:337, 648:404 …)
 *
 * Poziția dată de pagină este centrul stickerului, ca rotirea să nu-l mute.
 * -------------------------------------------------------------------------- */

.sticker {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 6px 17px;
    border-radius: var(--r-btn);
    background-color: var(--surface-white);
    box-shadow: var(--shadow-sticker);
    font-size: var(--text-sticker);
    line-height: 28px;
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(var(--tilt, 0deg));
    pointer-events: none;
}

/* Pe două rânduri: eticheta mică portocalie, apoi textul */
.sticker--step {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 17px 11px;
    line-height: 24px;
    text-align: left;
}

.sticker--step span {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

/* -----------------------------------------------------------------------------
 * Carduri
 * -------------------------------------------------------------------------- */

/* Chenar punctat portocaliu (648:851) */
.card-dashed {
    border: 2px dashed var(--brand-orange);
    border-radius: var(--r-card);
}

/* Portocaliu cu gradientul hero în colț și zgomot (648:873). Forma de jos se
   ancorează la marginea de jos, așa că merge la orice înălțime de card. */
.card-orange {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--r-card);
    color: var(--ink-on-brand);
    background-color: var(--card-orange);
}

.card-orange::before,
.card-orange::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.card-orange::before {
    bottom: -67.36px;
    left: -4.636%;
    width: 109.68%;
    aspect-ratio: 493.576 / 264.325;
    background: url('../img/decor/blob-card.svg') 0 0 / 100% 100% no-repeat;
    transform: rotate(180deg);
}

.card-orange::after {
    inset: 0;
    background: url('../img/noise.png') 0 0 / 240px 240px;
    mix-blend-mode: overlay;
    opacity: 0.25;
}

/* Card „postare": memoji pe portocaliu, ramă albă (648:340) */
.post-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 350px;
    height: 350px;
    padding: 12px;
    overflow: hidden;
    border-radius: var(--r-card);
    background-color: var(--surface-white);
    box-shadow: var(--shadow-card);
}

.post-card__media,
.mini-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: url('../img/card-texture.png') center / 1392px 783px;
}

/* #FF7F02 în hard light peste cer, apoi zgomotul — ca pe cardurile din hero */
.post-card__media::before,
.mini-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--brand-orange);
    mix-blend-mode: hard-light;
}

.post-card__media::after,
.mini-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('../img/noise-dark.png') 0 0 / 130.667px 130.667px;
    mix-blend-mode: overlay;
    opacity: 0.25;
}

.post-card__media {
    flex: 1;
    min-height: 0;
    border-radius: 20px;
}

.post-card__media img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--memoji, 326px);
    max-width: none;
    transform: translate(-50%, -50%);
}

.post-card__label {
    padding-left: 2px;
    font-size: 1.125rem;
    line-height: 28px;
    color: #000000;
}

/* -----------------------------------------------------------------------------
 * Pătrățelul cu iconiță, 50 px, rază 15 (648:853, 648:905, 648:937)
 *
 * Închis (#202020) în repaus; varianta portocalie din machetă este starea de
 * hover și se aprinde când cursorul trece peste regula sau cardul ei.
 * -------------------------------------------------------------------------- */

.icon-tile {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: var(--r-tile);
    background-color: var(--surface-dark);
}

/* Starea portocalie: același decor ca butoanele, la scara pătratului */
.icon-tile__glow {
    position: absolute;
    top: 0;
    left: -19.45px;
    width: 88.889px;
    height: 50px;
    overflow: hidden;
    background-color: var(--brand-orange-deep);
    opacity: 0;
    transform: scaleX(-1);
    transition: opacity var(--duration) var(--ease);
}

.rule:hover .icon-tile__glow,
.board:hover .icon-tile__glow {
    opacity: 1;
}

.icon-tile__g1,
.icon-tile__g2 {
    position: absolute;
    max-width: none;
    transform: rotate(3.78deg);
}

.icon-tile__g1 {
    top: -31.12px;
    left: -64.651px;
    width: 198.344px;
    height: 106.054px;
}

.icon-tile__g2 {
    top: -22.413px;
    left: -61.462px;
    width: 196.159px;
    height: 89.262px;
}

.icon-tile__noise {
    position: absolute;
    inset: 0;
    background: url('../img/noise-dark.png') 0 0 / 47.407px 47.407px;
    mix-blend-mode: overlay;
    opacity: 0.25;
}

.icon-tile__icon {
    position: relative;
}

.icon-tile__icon--coins {
    width: 20.5px;
    height: 20.5px;
}

/* Mâna vine din Figma cu pătratul închis desenat în ea. Cu „lighten",
   pătratul ia culoarea stratului portocaliu de dedesubt, iar mâna albă
   rămâne albă — fără să modific fișierul. */
.icon-tile__icon--tile {
    width: 50px;
    height: 50px;
    mix-blend-mode: lighten;
}

/* Iconița albă pe cardul portocaliu (648:883) nu are stare de hover. */
.board__icon {
    flex: none;
    width: 50px;
    height: 50px;
}

/* -----------------------------------------------------------------------------
 * Taburi și opțiuni (648:837): activ = butonul portocaliu, restul punctate
 * -------------------------------------------------------------------------- */

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tab,
.chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 24px;
    border: 0.5px dashed var(--line-ghost);
    border-radius: var(--r-btn);
    background-color: var(--surface-ghost);
    color: var(--brand-orange);
    font-size: var(--text-btn);
    line-height: 28px;
    cursor: pointer;
    transition:
        background-color var(--duration) var(--ease),
        color var(--duration) var(--ease);
}

/* Starea activă imită decorul butonului primar: lumina galbenă din colț. */
.tab[aria-selected="true"],
.chip input:checked + span {
    border-style: solid;
    border-color: var(--brand-orange);
    color: var(--ink-on-brand);
    background:
        radial-gradient(90% 130% at 88% 115%, rgba(255, 217, 45, 0.9) 0%, rgba(247, 205, 37, 0) 62%),
        var(--brand-orange);
}

.tab:not([aria-selected="true"]):hover,
.chip input:not(:checked) + span:hover {
    background-color: rgba(255, 127, 2, 0.08);
}

.chip {
    position: relative;
    display: inline-flex;
}

.chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.chip span {
    padding-inline: 20px;
    font-size: 1rem;
}

.chip input:focus-visible + span {
    outline: 2px solid var(--brand-orange);
    outline-offset: 3px;
}

/* -----------------------------------------------------------------------------
 * Mici elemente de interfață din ilustrații
 * -------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--r-avatar);
    background-color: var(--badge-bg);
    color: var(--badge-ink);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: normal;
}

.meter {
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 10px;
    background-color: rgba(32, 32, 32, 0.08);
}

.meter > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background-color: var(--brand-orange);
    transition: width 400ms var(--ease);
}

.meter--dark {
    background-color: #1e1e1e;
}

.meter--dark > span {
    background-color: var(--brand-yellow);
}

/* -----------------------------------------------------------------------------
 * Slider — butoanele cu 👈 👉 (648:825)
 * -------------------------------------------------------------------------- */

.slider-nav {
    display: flex;
    gap: 10px;
}

.slider-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0.5px solid var(--line-ghost);
    border-radius: var(--r-btn);
    background-color: var(--surface-ghost);
    font-size: 1.375rem;
    transition: opacity var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.slider-nav__btn:not(:disabled):hover {
    border-color: var(--brand-orange);
}

.slider-nav__btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* -----------------------------------------------------------------------------
 * FAQ (648:1114)
 * -------------------------------------------------------------------------- */

.faq__item {
    padding: 24px 0 23px;
    border-top: 1px solid var(--line-soft);
}

.faq__item:last-child {
    border-bottom: 1px solid var(--line-soft);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 28px;
    list-style: none;
    cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

/* Închis: săgeata rotită 90°; deschis: cea spre dreapta-sus, ca în machetă. */
.faq__item summary::after {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    background: url('../img/icons/arrow-closed.svg') center / contain no-repeat;
    transform: rotate(90deg);
    transition: transform var(--duration) var(--ease);
}

.faq__item[open] summary::after {
    background-image: url('../img/icons/arrow-open.svg');
    transform: none;
}

.faq__item p {
    margin-top: 14px;
    font-size: var(--text-lead);
    line-height: var(--lh-text);
    color: var(--ink-lead);
}

/* -----------------------------------------------------------------------------
 * CTA în chenar punctat (648:1159) — finalul paginii principale și al celei
 * de cazuri: titlul și lead-ul în stânga, butoanele în dreapta, diezul 3D
 * peste colțul din dreapta sus
 * -------------------------------------------------------------------------- */

.cta__box {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 56px 24px;
    border: 2px dashed var(--brand-amber);
    border-radius: var(--r-box);
}

.cta__copy {
    display: flex;
    flex: 1 1 520px;
    flex-direction: column;
    gap: 15px;
}

.cta__copy .section-lead {
    max-width: 775px;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* Diezul 3D (648:1172) iese peste chenar, în dreapta sus. */
.cta__hashtag {
    position: absolute;
    top: 6.22px;
    left: 88.516%;
    width: 146.566px;
    height: auto;
    transform: translate(-50%, -50%) rotate(14.42deg);
    pointer-events: none;
}

/* -----------------------------------------------------------------------------
 * Footer (648:1173)
 * -------------------------------------------------------------------------- */

.site-footer {
    background-color: var(--surface-dark);
    color: rgba(255, 255, 255, 0.9);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding: 64px 0 40px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 384px;
    font-size: 1rem;
    line-height: 24px;
}

/* Sigla e portocalie și se vede la fel de bine pe fundalul închis. */
.site-footer__logo {
    width: 152px;
    height: auto;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 1rem;
    line-height: 24px;
}

.site-footer__col h2 {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 24px;
    color: #ffffff;
}

.site-footer__col a:hover,
.site-footer__legal a:hover {
    color: var(--brand-orange);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--line-footer);
    font-size: 0.75rem;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Butonul WhatsApp din colț, din footerul clientului: pătrat cu colțurile
   butoanelor site-ului și logo-ul WhatsApp în alb */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: var(--r-btn);
    background-color: var(--whatsapp);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(16, 18, 25, 0.25);
    transition: transform var(--duration) var(--ease);
}

.whatsapp-float:hover {
    transform: translateY(-2px);
}

/* -----------------------------------------------------------------------------
 * Circular Gallery — stilurile componentei ReactBits, neschimbate
 * -------------------------------------------------------------------------- */

.circular-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.circular-gallery[data-pointer] {
    cursor: pointer;
}

.circular-gallery[data-dragging] {
    cursor: grabbing;
}

.circular-gallery-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.circular-gallery-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.circular-gallery-label {
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1.2;
    white-space: nowrap;
    will-change: transform, opacity;
}

.circular-gallery-caption {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(90%, 36rem);
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.circular-gallery-caption-text {
    margin: 0;
    line-height: 1.5;
    opacity: 0.65;
}

.circular-gallery-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.circular-gallery-close[data-visible] {
    opacity: 0.8;
    pointer-events: auto;
}

.circular-gallery-close:hover {
    opacity: 1;
}

.circular-gallery-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

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

/* Fără WebGL2, aceleași carduri stau nemișcate pe arc (main.js). */
.circular-gallery--static {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.2%;
    padding-top: 2.5%;
    overflow: hidden;
}

.circular-gallery--static canvas {
    flex: none;
    width: min(18.2vw, 350px);
    height: auto;
}

.circular-gallery--static > a {
    display: block;
    flex: none;
}

/* -----------------------------------------------------------------------------
 * Tech Text — stilurile componentei ReactBits, plus varianta din text
 *
 * În titlu, cuvântul rămâne text real; canvasul îl acoperă exact și iese din
 * el cu --tech-text-pad (tech-text.js), fără să prindă clicuri în afara lui.
 * -------------------------------------------------------------------------- */

.tech-text {
    position: relative;
    touch-action: pan-y;
    user-select: none;
}

.tech-text-canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* Chrome desenează textul din canvas cu spațierea moștenită de element:
       în titlu (-2 px) cifrele din etichete ar intra una în alta. */
    letter-spacing: normal;
}

.tech-text--inline {
    display: inline-block;
}

.tech-text--inline .tech-text-canvas {
    position: absolute;
    top: calc(-1 * var(--tech-text-pad));
    left: calc(-1 * var(--tech-text-pad));
    width: calc(100% + 2 * var(--tech-text-pad));
    height: calc(100% + 2 * var(--tech-text-pad));
    max-width: none;
    pointer-events: none;
}

/* Literele reale dispar abia când canvasul le-a desenat. */
.tech-text--ready {
    -webkit-text-fill-color: transparent;
}

/* Cât timp o literă e trasă sau sare: tot ecranul, peste antet și butonul de
   WhatsApp, fără să prindă clicuri. */
.tech-text-layer {
    position: fixed;
    inset: 0;
    z-index: 40;
    width: 100%;
    height: 100%;
    max-width: none;
    pointer-events: none;
}

/* -----------------------------------------------------------------------------
 * Ecrane înguste
 * -------------------------------------------------------------------------- */

/* Sub 1200 px navigația nu mai încape în antet: o deschide butonul burger,
   ca listă albă sub antet, aliniată la dreapta (pe telefon pe toată lățimea). */
@media (max-width: 1199px) {
    .site-header {
        gap: 16px;
    }

    .site-header__end {
        margin-left: auto;
    }

    .nav-toggle {
        display: block;
        order: 1;
    }

    .site-menu {
        display: none;
    }

    .site-menu.is-open {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: min(100%, 360px);
        padding: 8px;
        border: 1px solid rgba(32, 32, 32, 0.08);
        border-radius: 20px;
        background-color: var(--surface-white);
        box-shadow: var(--shadow-sticker);
        animation: dropdown-in var(--duration) var(--ease);
    }

    .site-menu .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 0;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        font-size: 1.125rem;
        font-weight: 500;
    }

    .site-menu .site-nav a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 12px;
        transition:
            color var(--duration) var(--ease),
            background-color var(--duration) var(--ease);
    }

    .site-menu .site-nav a:hover {
        background-color: rgba(32, 32, 32, 0.05);
    }

    .site-menu .site-nav a[aria-current="page"] {
        background-color: var(--tint-peach);
    }
}

@media (max-width: 1100px) {
    /* Diezul trece în colțul chenarului; rotit, nu iese din ecran. */
    .cta__hashtag {
        width: 110px;
        left: auto;
        right: -4px;
        transform: translate(0, -50%) rotate(14.42deg);
    }
}

@media (max-width: 900px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cta__box {
        padding: 48px 20px 32px;
    }

    .site-header {
        top: 20px;
    }

    .site-header__logo img {
        width: 110px;
    }

    .site-header,
    .site-header__end {
        gap: 10px;
    }

    /* Pe telefon eticheta întreagă nu încape lângă logo, meniul de limbă și
       burger, așa că butonul din antet se mută la capătul meniului. */
    .btn--cta {
        display: none;
    }

    .site-menu .site-menu__cta {
        display: flex;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
}

/* -----------------------------------------------------------------------------
 * Cookie-uri (cookies.js): bannerul din colțul de jos și dialogul cu setări.
 * „Accept tot" și „Refuz tot" au același buton, ca alegerea să fie egală.
 * -------------------------------------------------------------------------- */

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(440px, 100vw - 48px);
    padding: 28px;
    border-radius: var(--r-card);
    background-color: var(--surface-white);
    box-shadow:
        0 24px 60px rgba(16, 18, 25, 0.18),
        0 2px 6px rgba(16, 18, 25, 0.06);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__title {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
}

.cookie-banner__text {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

.cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--r-btn);
    background-color: var(--surface-dark);
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: background-color var(--duration) var(--ease);
}

.cookie-btn:hover {
    background-color: #000000;
}

.cookie-btn--save {
    background-color: var(--brand-orange);
}

.cookie-btn--save:hover {
    background-color: var(--brand-orange-deep);
}

.cookie-btn:focus-visible,
.cookie-link:focus-visible,
.cookie-dialog__close:focus-visible,
.site-footer__cookies:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 3px;
}

.cookie-link {
    align-self: center;
    padding: 4px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--brand-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* Setările: dialogul nativ (<dialog>), centrat peste pagină */
.cookie-dialog {
    width: min(640px, 100vw - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: var(--r-box);
    background-color: var(--surface-white);
    color: var(--ink);
    box-shadow: 0 40px 100px rgba(16, 18, 25, 0.3);
}

.cookie-dialog::backdrop {
    background-color: rgba(32, 32, 32, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.cookie-dialog__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(24px, 1rem + 2vw, 40px);
}

.cookie-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-dialog__title {
    font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cookie-dialog__close {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background-color: var(--surface-page);
    color: var(--ink);
    cursor: pointer;
    transition: background-color var(--duration) var(--ease);
}

.cookie-dialog__close:hover {
    background-color: var(--tint-peach);
}

.cookie-dialog__intro {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

.cookie-dialog__list {
    border-top: 1px solid var(--line-soft);
}

.cookie-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line-soft);
}

.cookie-category__name {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.4;
}

.cookie-category__always {
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background-color: var(--tint-peach);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--badge-ink);
    white-space: nowrap;
}

.cookie-category__text {
    margin-top: 4px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

/* Comutatorul: gri oprit, portocaliu pornit */
.cookie-switch {
    position: relative;
    flex: none;
    width: 48px;
    height: 28px;
    margin: 2px 0 0;
    border-radius: 999px;
    background-color: rgba(32, 32, 32, 0.18);
    cursor: pointer;
    appearance: none;
    transition: background-color var(--duration) var(--ease);
}

.cookie-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform var(--duration) var(--ease);
}

.cookie-switch:checked {
    background-color: var(--brand-orange);
}

.cookie-switch:checked::before {
    transform: translateX(20px);
}

.cookie-switch:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-switch:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 3px;
}

.cookie-dialog__legal {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

.cookie-dialog__legal a {
    color: var(--brand-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-dialog__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

/* „Setări cookie-uri" din footer arată ca linkurile de lângă el */
.site-footer__cookies {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: color var(--duration) var(--ease);
}

.site-footer__cookies:hover {
    color: var(--brand-orange);
}

@keyframes cookie-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .cookie-banner {
        animation: cookie-in 0.5s var(--ease) both;
    }
}

@media (max-width: 640px) {
    .cookie-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        padding: 22px;
    }

    /* Pe telefon bannerul ocupă locul butonului WhatsApp până la alegere */
    .has-cookie-banner .whatsapp-float {
        opacity: 0;
        pointer-events: none;
    }

    .cookie-dialog__actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .cookie-category {
        gap: 14px;
    }
}
