/* f2.ro (DB-0085). Culorile vin din atelier: alb de PAL, antracit, stejar și galbenul cotelor din editor.
   Litera: Familjen Grotesk (aleasă de titular). Butoane dreptunghiulare cu colțuri fine, fără „pills”. */
/* Familjen Grotesk (SIL OFL 1.1), găzduită aici: vizitatorii nu ajung la serverele Google. */
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/familjen-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/familjen-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --pal: #ECECE7;      /* PAL alb, fundalul */
  --muchie: #D3D4CE;   /* cantul plăcii: linii și margini */
  --antracit: #2D3135; /* text și butonul principal */
  --gri: #5E6367;      /* text secundar */
  --stejar: #8E6436;   /* lemn: linkuri în text */
  --cota: #F2C230;     /* eticheta galbenă de cotă, ca în editor */
  --r: 7px;            /* colțuri rotunjite fin */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--pal); color: var(--antracit); font: 400 17px/1.6 "Familjen Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--antracit); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* Antet */
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
header .logo img { height: 62px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
nav a:not(.btn) { text-decoration: none; color: var(--gri); }
nav a:not(.btn):hover { color: var(--antracit); }
@media (max-width: 820px) { nav a:not(.btn) { display: none; } }

/* Butoane */
.btn { display: inline-block; background: var(--antracit); color: #fff; text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: var(--r); border: 1px solid var(--antracit); font-size: 16px; line-height: 1.2; cursor: pointer; }
.btn:hover { background: #1f2225; }
.btn.mic { padding: 9px 15px; font-size: 15px; }

/* Cota: eticheta galbenă din editor */
.cota { display: inline-block; background: var(--cota); color: #2a2410; font-weight: 700; font-size: 13px; line-height: 1; padding: 5px 7px; border-radius: 4px; box-shadow: 0 1px 0 rgba(0, 0, 0, .18); }

/* Prima parte: titlul și editorul care rulează, cotat ca un perete */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 40px 0 96px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; } }
h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.025em; font-weight: 700; margin: 0 0 24px; max-width: 13ch; }
.hero p.lead { font-size: 19px; color: var(--gri); max-width: 40ch; margin: 0 0 32px; }
.hero .actiuni { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero .nota { font-size: 15px; color: var(--gri); }
.perete { position: relative; padding: 34px 0 0 40px; }
.perete video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: var(--r); background: #cfcfca; box-shadow: 0 1px 0 var(--muchie), 0 22px 50px -28px rgba(45, 49, 53, .55); }
.cota-sus { position: absolute; left: 40px; right: 0; top: 8px; height: 16px; border-left: 1.5px solid var(--antracit); border-right: 1.5px solid var(--antracit); }
.cota-sus::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1.5px solid var(--antracit); }
.cota-sus .cota { position: absolute; left: 50%; top: -1px; transform: translateX(-50%); }
.cota-stg { position: absolute; left: 8px; top: 34px; bottom: 0; width: 16px; border-top: 1.5px solid var(--antracit); border-bottom: 1.5px solid var(--antracit); }
.cota-stg::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; border-left: 1.5px solid var(--antracit); }
.cota-stg .cota { position: absolute; top: 50%; left: -2px; transform: translateY(-50%) rotate(-90deg); }

/* Secțiuni */
section { padding: 88px 0; border-top: 1px solid var(--muchie); }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 0 0 20px; max-width: 20ch; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; font-weight: 700; }
p { margin: 0 0 16px; }
p.sub { color: var(--gri); max-width: 56ch; }
.doua { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
@media (max-width: 960px) { .doua { grid-template-columns: 1fr; gap: 20px; } }
.proza { max-width: 62ch; }
.proza p { font-size: 18px; }
.proza p:first-child { font-size: 22px; line-height: 1.45; }

/* Cum merge: o succesiune, deci are numere */
.pasi { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: p; position: relative; }
.pasi::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; border-top: 1.5px dashed var(--muchie); }
.pasi li { counter-increment: p; padding: 0 28px 0 0; position: relative; }
.pasi li::before { content: counter(p); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pal); border: 1.5px solid var(--antracit); font-weight: 700; margin-bottom: 18px; position: relative; }
.pasi p { color: var(--gri); font-size: 16px; }
.pasi .curand::before { border-style: dashed; color: var(--gri); border-color: var(--gri); }
.pasi .curand h3 { color: var(--gri); }
.pasi .curand .cota { background: #fff; color: var(--gri); box-shadow: inset 0 0 0 1px var(--muchie); margin-left: 6px; vertical-align: 2px; font-weight: 600; }
@media (max-width: 820px) { .pasi { grid-template-columns: 1fr 1fr; row-gap: 36px; } .pasi::before { display: none; } }
@media (max-width: 520px) { .pasi { grid-template-columns: 1fr; } }

/* Tutoriale */
.grup { margin-top: 44px; }
.grup > h3 { font-size: 16px; color: var(--gri); font-weight: 600; margin-bottom: 16px; }
.clipuri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
@media (max-width: 900px) { .clipuri { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .clipuri { grid-template-columns: 1fr; } }
.clip { all: unset; cursor: pointer; display: block; }
.clip .poza { display: block; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: #d9d9d4; outline: 1px solid var(--muchie); }
.clip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.clip:hover img { transform: scale(1.03); }
.clip .poza .cota { position: absolute; right: 10px; bottom: 10px; }
.clip .titlu { display: block; font-weight: 700; font-size: 17px; margin-top: 12px; line-height: 1.3; }
.clip .desc { display: block; color: var(--gri); font-size: 15px; margin-top: 2px; }
.clip:focus-visible .poza { outline: 2px solid var(--antracit); outline-offset: 3px; }

/* Pentru ateliere */
.ateliere { background: var(--antracit); color: #E9EAE6; border-top: 0; }
.ateliere h2 { color: #fff; }
.ateliere .proza p { color: #C5C8C4; }
.ateliere .proza p:first-child { color: #fff; }
.ateliere .btn { background: var(--cota); border-color: var(--cota); color: #2a2410; }
.ateliere .btn:hover { background: #ffd34a; }
.ateliere :focus-visible { outline-color: var(--cota); }
.ateliere ul { margin: 0 0 28px; padding: 0; list-style: none; }
.ateliere li { padding: 12px 0; border-bottom: 1px solid #43484d; }
.ateliere li:first-child { border-top: 1px solid #43484d; }

footer { padding: 40px 0 60px; color: var(--gri); font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer p { margin: 0; }
footer img { height: 34px; width: auto; opacity: .85; }
footer .legal a { margin-left: 16px; }

/* Fereastra cu clipul */
dialog { border: 0; padding: 0; border-radius: var(--r); background: #000; width: min(1100px, 94vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
dialog::backdrop { background: rgba(30, 33, 36, .72); }
dialog video { width: 100%; display: block; }
dialog .bara { display: flex; justify-content: space-between; align-items: center; background: var(--antracit); color: #fff; padding: 12px 16px; font-weight: 600; }
dialog button { all: unset; cursor: pointer; color: #fff; padding: 4px 10px; border-radius: 5px; border: 1px solid #5a6066; font-weight: 500; font-size: 15px; }
dialog button:hover { background: #3a3f44; }
dialog button:focus-visible { outline: 2px solid var(--cota); }

/* Paginile de text (confidențialitate, termeni) */
.text { max-width: 70ch; padding: 24px 0 80px; }
.text h1 { font-size: clamp(32px, 4vw, 44px); max-width: none; }
.text h2 { font-size: 24px; margin-top: 40px; max-width: none; }
.text p, .text li { font-size: 17px; }
.text a { color: var(--stejar); }
.text p.actualizat { color: var(--gri); font-size: 15px; }

/* DB-0087: secțiunile pentru ateliere apar doar cu multiple_factories pornit. */
[hidden] { display: none !important; }
