/* Litere găzduite local (Google Fonts, licența SIL Open Font). */
/* Newsreader italic latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/Newsreader-italic-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;
}
/* Newsreader italic latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/Newsreader-italic-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;
}
/* Newsreader normal latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/Newsreader-normal-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;
}
/* Newsreader normal latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/Newsreader-normal-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;
}
/* Hanken Grotesk italic latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/HankenGrotesk-italic-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;
}
/* Hanken Grotesk italic latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/HankenGrotesk-italic-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;
}
/* Hanken Grotesk normal latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/HankenGrotesk-normal-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;
}
/* Hanken Grotesk normal latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/HankenGrotesk-normal-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;
}
/* Archivo italic latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/Archivo-italic-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;
}
/* Archivo italic latin */
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/Archivo-italic-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;
}
/* Archivo normal latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/Archivo-normal-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;
}
/* Archivo normal latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/Archivo-normal-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;
}
/* Young Serif normal latin-ext */
@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/YoungSerif-normal-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;
}
/* Young Serif normal latin */
@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/YoungSerif-normal-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;
}
/* Figtree italic latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/Figtree-italic-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;
}
/* Figtree italic latin */
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/Figtree-italic-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;
}
/* Figtree normal latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/Figtree-normal-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;
}
/* Figtree normal latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/Figtree-normal-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;
}
/* Atkinson Hyperlegible Next normal latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/AtkinsonHyperlegibleNext-normal-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;
}
/* Atkinson Hyperlegible Next normal latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/AtkinsonHyperlegibleNext-normal-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;
}
/* Titlurile își așteaptă fontul (cel mult trei secunde), în loc să apară cu unul de rezervă și apoi să
   se rearanjeze: cuvintele nu mai sar de pe un rând pe altul. Pentru Newsreader sunt fișiere separate,
   mici (desenul pentru mărimi mari, greutăți 300-600), pe care pagina le cere din primul moment (preload),
   deci titlul apare repede și pe conexiuni lente. */
@font-face {
  font-family: 'Newsreader Titlu';
  font-style: normal;
  font-weight: 300 600;
  font-display: block;
  src: url(fonts/Newsreader-normal-titlu.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
@font-face {
  font-family: 'Newsreader Titlu';
  font-style: italic;
  font-weight: 300 600;
  font-display: block;
  src: url(fonts/Newsreader-italic-titlu.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
@font-face {
  font-family: 'Archivo Titlu';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block;
  src: url(fonts/Archivo-normal-ro.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
@font-face {
  font-family: 'Archivo Titlu';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block;
  src: url(fonts/Archivo-italic-ro.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
/* Fonturi de rezervă potrivite ca lățime cu Newsreader, cât timp acesta se încarcă: Times New Roman,
   ușor mărit sau micșorat (măsurat pe texte românești la mărimile de pe site). Rândurile se rup în
   aceleași locuri, deci pagina nu sare când sosește fontul. Pe Android, unde Times New Roman
   lipsește, se folosește serif-ul sistemului, micșorat. */
@font-face {
  font-family: 'Newsreader Titlu Rezerva';
  src: local('Times New Roman'), local('TimesNewRomanPSMT');
  size-adjust: 104%;
}
@font-face {
  font-family: 'Newsreader Titlu Rezerva';
  font-style: italic;
  src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT');
  size-adjust: 95%;
}
@font-face {
  font-family: 'Newsreader Text Rezerva';
  src: local('Times New Roman'), local('TimesNewRomanPSMT');
}
@font-face {
  font-family: 'Newsreader Text Rezerva';
  font-weight: 700;
  src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT');
}
@font-face {
  font-family: 'Newsreader Text Rezerva';
  font-style: italic;
  src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT');
  size-adjust: 92.5%;
}
@font-face {
  font-family: 'Serif potrivit';
  src: local('Noto Serif'), local('NotoSerif'), local('Droid Serif');
  size-adjust: 90%;
}
/* Fișierele „ro”: literele de bază, diacriticele românești și punctuația, într-un singur fișier pe
   familie și stil. Fiind declarate ultimele, au întâietate; fișierele „latin” și „latin-ext” de mai sus
   se descarcă doar pentru caracterele rămase (alte limbi), deci aproape niciodată. */
/* Newsreader italic: română */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/Newsreader-italic-ro.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
/* Newsreader normal: română */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/Newsreader-normal-ro.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
/* HankenGrotesk italic: română */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/HankenGrotesk-italic-ro.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
/* HankenGrotesk normal: română */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/HankenGrotesk-normal-ro.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
/* Archivo italic: română */
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/Archivo-italic-ro.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
/* Archivo normal: română */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/Archivo-normal-ro.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
/* YoungSerif normal: română */
@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(fonts/YoungSerif-normal-ro.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
/* Figtree italic: română */
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/Figtree-italic-ro.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
/* Figtree normal: română */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/Figtree-normal-ro.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}
/* AtkinsonHyperlegibleNext normal: română */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/AtkinsonHyperlegibleNext-normal-ro.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2030,U+2039-203A,U+20AC,U+2122,U+2190-2193,U+2212;
}

/* =====================================================================
   Designul „Studio” pentru site-urile de școală (S58 Studio)
   Un singur set de componente și cinci axe de stil care se combină liber:
   data-palette (culori), data-type (litere), data-shape (forme),
   data-hero (deschiderea paginii principale), data-accent (accente),
   plus data-mode (luminos sau întunecat). Stilurile gata făcute sunt doar
   combinații ale acestor axe.
   ===================================================================== */

:root {
  --max: 1320px;
  --pad: clamp(20px, 4.4vw, 56px);
  --edge: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 84px;
  --fs: 1;
  --lh: 1.6;
  --ls: 0em;
  color-scheme: light;
}

/* ---------- Clasic ---------- */
[data-type='clasic'] {
  --font-display: 'Newsreader Titlu', 'Newsreader', 'Newsreader Titlu Rezerva', 'Times New Roman', 'Serif potrivit', Georgia, serif;
  --font-text: 'Newsreader', 'Newsreader Text Rezerva', 'Times New Roman', 'Serif potrivit', Georgia, serif;
  --font-ui: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-weight: 330;
  --display-stretch: 100%;
  --display-tracking: -0.02em;
  --display-leading: 1.02;
  --h2-weight: 340;
  --h3-weight: 450;
  --text-size: 19px;
  --ui-weight: 600;
}

[data-palette='clasic'] {
  --bg: #f4efe6;
  --bg-2: #ebe3d5;
  --surface: #fbf8f2;
  --ink: #15213a;
  --ink-2: #4a5263;
  --line: #d6cbb7;
  --line-strong: #15213a;
  --brand: #15213a;
  --on-brand: #f6f1e8;
  --brand-hover: #24365c;
  --accent: #9b3a20;
  --highlight: #e7b896;
  --marker: #e7b896;
  --dark: #15213a;
  --on-dark: #f4efe6;
  --on-dark-2: #c9cdd8;
  --tint-1: #efe2cf;
  --tint-2: #e5e7ee;
  --tint-3: #ece4d4;
  --focus: #9b3a20;
  --scrim: 10 14 26;
  --em-color: #9b3a20;
}

[data-palette='clasic'][data-mode='dark'] {
  --bg: #0f1628;
  --bg-2: #151e35;
  --surface: #1a2440;
  --ink: #f1ebe1;
  --ink-2: #bcc2cf;
  --line: #2e3a58;
  --line-strong: #f1ebe1;
  --brand: #e7b896;
  --on-brand: #0f1628;
  --brand-hover: #f1cbae;
  --accent: #f0a585;
  --highlight: #e7b896;
  --marker: #5a4532;
  --dark: #0a1020;
  --on-dark: #f1ebe1;
  --on-dark-2: #bcc2cf;
  --tint-1: #24233a;
  --tint-2: #1c2745;
  --tint-3: #232a3f;
  --focus: #f0a585;
  --em-color: #f0a585;
}

[data-shape='clasic'] {
  --r-card: 2px;
  --r-btn: 2px;
  --r-media: 0px;
  --r-feature: 1000px 1000px 0 0;
  --r-pill: 2px;
  --r-round: 1000px 1000px 0 0;
}

/* ---------- Modern ---------- */
[data-type='modern'] {
  --font-display: 'Archivo Titlu', 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-weight: 720;
  --display-stretch: 114%;
  --display-tracking: -0.045em;
  --display-leading: 0.94;
  --h2-weight: 700;
  --h3-weight: 680;
  --text-size: 18px;
  --ui-weight: 620;
  --em-weight: 560;
  --em-size: 1.04em;
}

[data-palette='modern'] {
  --bg: #f5f4f0;
  --bg-2: #ebe9e2;
  --surface: #ffffff;
  --ink: #0e1116;
  --ink-2: #4a4f59;
  --line: #d9d6cc;
  --line-strong: #0e1116;
  --brand: #1f4fd8;
  --on-brand: #ffffff;
  --brand-hover: #1a3fae;
  --accent: #1f4fd8;
  --highlight: #f5b82e;
  --marker: #f5b82e;
  --dark: #0e1116;
  --on-dark: #f5f4f0;
  --on-dark-2: #aeb2bb;
  --tint-1: #fdf0cf;
  --tint-2: #e4eafb;
  --tint-3: #ecebe6;
  --focus: #1f4fd8;
  --scrim: 8 10 14;
  --em-color: #1f4fd8;
}

[data-palette='modern'][data-mode='dark'] {
  --bg: #0d0f13;
  --bg-2: #14171d;
  --surface: #191d24;
  --ink: #f2f2ee;
  --ink-2: #a9aeb8;
  --line: #2b3039;
  --line-strong: #f2f2ee;
  --brand: #3b66f5;
  --on-brand: #ffffff;
  --brand-hover: #2f57e0;
  --accent: #8ea9ff;
  --highlight: #f5b82e;
  --marker: #6b5016;
  --dark: #050608;
  --on-dark: #f2f2ee;
  --on-dark-2: #a9aeb8;
  --tint-1: #2c2616;
  --tint-2: #182038;
  --tint-3: #1d2027;
  --focus: #8ea9ff;
  --em-color: #8ea9ff;
}

[data-shape='modern'] {
  --r-card: 0px;
  --r-btn: 0px;
  --r-media: 0px;
  --r-feature: 0px;
  --r-pill: 0px;
  --r-round: 0px;
}

/* ---------- Prietenos ---------- */
[data-type='prietenos'] {
  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-weight: 400;
  --display-stretch: 100%;
  --display-tracking: -0.01em;
  --display-leading: 1.06;
  --h2-weight: 400;
  --h3-weight: 400;
  --text-size: 18px;
  --ui-weight: 700;
  --em-weight: 480;
  --em-size: 1.06em;
}

[data-palette='prietenos'] {
  --bg: #fbf7ef;
  --bg-2: #f2ebdd;
  --surface: #ffffff;
  --ink: #1d2433;
  --ink-2: #4f5666;
  --line: #e3d9c6;
  --line-strong: #1d2433;
  --brand: #3f6b4f;
  --on-brand: #ffffff;
  --brand-hover: #2f5240;
  --accent: #2556b8;
  --highlight: #f2b544;
  --marker: #f2b544;
  --dark: #2f5240;
  --on-dark: #ffffff;
  --on-dark-2: #dce7df;
  --tint-1: #fbedcc;
  --tint-2: #e2ece2;
  --tint-3: #e3eaf7;
  --focus: #2556b8;
  --scrim: 18 26 20;
  --em-color: #3f6b4f;
}

[data-palette='prietenos'][data-mode='dark'] {
  --bg: #131915;
  --bg-2: #1a221d;
  --surface: #202a24;
  --ink: #f3efe6;
  --ink-2: #b9c2bb;
  --line: #303b34;
  --line-strong: #f3efe6;
  --brand: #8fc09f;
  --on-brand: #0f1712;
  --brand-hover: #a6d1b4;
  --accent: #a9c2f5;
  --highlight: #f2b544;
  --marker: #6b5016;
  --dark: #0c110e;
  --on-dark: #f3efe6;
  --on-dark-2: #b9c2bb;
  --tint-1: #33301f;
  --tint-2: #213026;
  --tint-3: #212b3d;
  --focus: #a9c2f5;
  --em-color: #8fc09f;
}

[data-shape='prietenos'] {
  --r-card: 26px;
  --r-btn: 999px;
  --r-media: 22px;
  --r-feature: 26px;
  --r-pill: 999px;
  --r-round: 50%;
}

[data-mode='dark'] {
  color-scheme: dark;
}

/* ---------- bază ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  font-size: calc(100% * var(--fs));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: calc(var(--text-size) * var(--fs));
  line-height: var(--lh);
  letter-spacing: var(--ls);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--highlight);
  color: #111;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.wrap--narrow {
  max-width: 860px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: var(--r-btn);
  background: var(--brand);
  color: var(--on-brand);
  font: var(--ui-weight) 16px/1 var(--font-ui);
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

/* ---------- titluri ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  color: inherit;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--display-tracking);
}

.display {
  font-size: clamp(44px, 6.4vw, 100px);
  line-height: var(--display-leading);
  font-weight: var(--display-weight);
}

.h1 {
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: calc(var(--display-leading) + 0.02);
  font-weight: var(--display-weight);
}

.h2 {
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.06;
  font-weight: var(--h2-weight);
}

.h3 {
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.18;
  font-weight: var(--h3-weight);
  letter-spacing: calc(var(--display-tracking) / 2);
}

.h4 {
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}

/* cuvântul subliniat din titluri: fiecare temă îl tratează altfel */
.h1 em,
.h2 em,
.display em,
.h3 em {
  font-style: normal;
}

.lead {
  margin: 0;
  font-size: clamp(19px, 1.45vw, 22px);
  line-height: 1.55;
}

.muted {
  color: var(--ink-2);
}

.small {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 20px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow .n {
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

.prose {
  font-size: calc(var(--text-size) * var(--fs));
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 0;
}

.prose h2 {
  margin-top: 1.8em;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.15;
  font-weight: var(--h2-weight);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 22px;
  line-height: 1.25;
  font-weight: var(--h3-weight);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose a,
.link-inline {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover,
.link-inline:hover {
  text-decoration-thickness: 2px;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.2em;
  line-height: 1.45;
}

.prose figure {
  margin: 1.8em 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--r-media);
}

.prose figcaption {
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-2);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* ---------- linkuri și butoane ---------- */

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: var(--ui-weight);
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.link svg,
.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.link:hover svg,
.btn:hover svg.arrow {
  transform: translateX(4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: var(--ui-weight);
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.btn--primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn--secondary {
  border-color: currentColor;
  background: transparent;
}

.btn--secondary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.btn--light:hover {
  background: transparent;
  color: #fff;
}

.btn--ghost-light {
  border-color: rgb(255 255 255 / 0.85);
  color: #fff;
}

.btn--ghost-light:hover {
  background: #fff;
  color: #111;
}

.btn--sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed='true'],
.chip[aria-current='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--tint-1);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- secțiuni ---------- */

.section {
  position: relative;
  padding: var(--section) 0;
}

.section--tight {
  padding: calc(var(--section) * 0.62) 0;
}

.section--flush-top {
  padding-top: 0;
}

.section--alt {
  background: var(--bg-2);
}

.section--dark {
  background: var(--dark);
  color: var(--on-dark);
}

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

.section--dark .eyebrow .n,
.section--dark .muted {
  color: var(--on-dark-2);
}

.section--dark .btn--secondary:hover {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--dark);
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 4.6vw, 64px);
}

.sec-head > :last-child:not(:first-child) {
  justify-self: start;
}

.sec-head p {
  margin: 0;
}

.sec-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

@media (max-width: 860px) {
  .sec-head {
    grid-template-columns: 1fr;
  }
}

/* ---------- apariții la scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-reveal='fade'] {
  transform: none;
}

/* Deschiderea paginii se așază singură la prima afișare, fără să aștepte scripturile
   (titlul e de obicei cel mai mare element de pe ecran; nu trebuie să întârzie). */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.reduced) .hero .eyebrow,
  html:not(.reduced) .hero h1,
  html:not(.reduced) .hero .lead,
  html:not(.reduced) .hero .actions,
  html:not(.reduced) .hero__pills,
  html:not(.reduced) .hero__bar,
  html:not(.reduced) .page-hero__text > * {
    animation: rise-in 0.9s var(--ease) backwards;
  }
  .hero h1 {
    animation-delay: 0.06s;
  }
  .hero .lead,
  .page-hero__text > :nth-child(2) {
    animation-delay: 0.16s;
  }
  .hero .actions,
  .page-hero__text > :nth-child(3) {
    animation-delay: 0.26s;
  }
  .hero__pills,
  .hero__bar,
  .page-hero__text > :nth-child(n + 4) {
    animation-delay: 0.36s;
  }
}

/* Treceri line între pagini. Browserele care nu le cunosc schimbă pagina ca până acum. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 0.2s var(--ease) both vt-out;
}

::view-transition-new(root) {
  animation: 0.4s var(--ease) both vt-in;
}

@keyframes vt-out {
  to {
    opacity: 0;
  }
}

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

/* bara demo rămâne pe loc cât se schimbă pagina */
.dock {
  view-transition-name: demo-dock;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

html.reduced::view-transition-group(*),
html.reduced::view-transition-old(*),
html.reduced::view-transition-new(*) {
  animation: none !important;
}

/* mișcare redusă: din setările sistemului sau din widgetul de accesibilitate */
.reduced,
.reduced *,
.reduced *::before,
.reduced *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

.reduced [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- media ---------- */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-media);
  background: var(--bg-2);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--zoom img {
  transition: transform 1s var(--ease);
}

a:hover .media--zoom img,
.media--zoom:hover img {
  transform: scale(1.04);
}

.media--feature {
  border-radius: var(--r-feature);
}

.ratio-4-5 {
  aspect-ratio: 4 / 5;
}

.ratio-3-4 {
  aspect-ratio: 3 / 4;
}

.ratio-1 {
  aspect-ratio: 1;
}

.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.ratio-3-2 {
  aspect-ratio: 3 / 2;
}

.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.ratio-21-9 {
  aspect-ratio: 21 / 9;
}

.caption {
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- formulare (bază) ---------- */

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field legend {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
}

.field .hint {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-2);
}

.req {
  color: var(--accent);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--ink-2);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

[data-shape='prietenos'] .input,
[data-shape='prietenos'] .select,
[data-shape='prietenos'] .textarea {
  border-radius: 16px;
}

.textarea {
  min-height: 150px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent);
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: #c4321c;
}

[data-mode='dark'] .field.has-error .input,
[data-mode='dark'] .field.has-error .select,
[data-mode='dark'] .field.has-error .textarea {
  border-color: #ff8a73;
}

.error-msg {
  display: none;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: #b42318;
}

[data-mode='dark'] .error-msg {
  color: #ff9c87;
}

.field.has-error .error-msg {
  display: block;
}

.field .check {
  font-weight: 400;
}

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

/* ---------- anunț ---------- */

.announce {
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-ui);
  font-size: 15px;
}

.announce__in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.announce p {
  flex: 1;
  margin: 0;
  line-height: 1.4;
}

.announce__tag {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 9px;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announce a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.announce__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--r-btn);
  background: transparent;
  color: inherit;
}

.announce__close:hover {
  background: rgb(255 255 255 / 0.14);
}

.announce :focus-visible {
  outline-color: currentColor;
}

/* ---------- antet ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.utility {
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 14px;
  max-height: 46px;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled .utility {
  max-height: 0;
  border-color: transparent;
}

.site-header.is-scrolled:focus-within .utility {
  max-height: 46px;
}

.utility__in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  height: 45px;
}

.utility ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility a,
.utility button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.utility a:hover,
.utility button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.utility svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.utility__tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.utility__elearning {
  padding: 4px 12px;
  border: 1.5px solid currentColor;
  border-radius: var(--r-pill);
  font-weight: 700;
}

.utility__elearning:hover {
  text-decoration: none !important;
  background: var(--ink);
  color: var(--bg) !important;
  border-color: var(--ink);
}

.bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 84px;
  transition: height 0.35s var(--ease);
}

.site-header.is-scrolled .bar {
  height: 70px;
}

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

.brand__crest {
  flex: none;
  width: 48px;
  height: 48px;
  color: var(--brand);
  transition: width 0.35s var(--ease), height 0.35s var(--ease);
}

[data-mode='dark'] .brand__crest {
  color: var(--ink);
}

.site-header.is-scrolled .brand__crest {
  width: 42px;
  height: 42px;
}

.brand__text {
  display: grid;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.brand__text b {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: 22px;
  line-height: 1.05;
  font-weight: var(--h3-weight);
  letter-spacing: calc(var(--display-tracking) / 2);
  text-transform: none;
  color: var(--ink);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-btn);
  background: transparent;
  color: inherit;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.nav__link[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

.nav__link:hover,
.nav__link[aria-expanded='true'],
.nav__link[aria-current='page'] {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r-btn);
  background: transparent;
  color: inherit;
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid currentColor;
  border-radius: var(--r-btn);
  background: transparent;
  color: inherit;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
}

.menu-btn__icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* meniu mare */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5;
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.12);
}

.mega:not([hidden]) {
  animation: mega-in 0.3s var(--ease);
}

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

.mega__in {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 40px;
}

.mega__intro p {
  margin: 10px 0 0;
}

.mega__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

.mega__links a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--r-card);
  font-family: var(--font-ui);
  text-decoration: none;
}

.mega__links a:hover {
  background: var(--bg-2);
}

.mega__links b {
  font-size: 16px;
}

.mega__links span {
  font-size: 14px;
  color: var(--ink-2);
}

.mega__card {
  display: grid;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
}

.mega__card .media {
  aspect-ratio: 4 / 3;
}

.nav__item {
  position: static;
}

.site-header .bar {
  position: relative;
}

@media (max-width: 1220px) {
  .nav,
  .bar__actions .btn {
    display: none;
  }
  .menu-btn,
  .icon-btn {
    display: inline-flex;
  }
}

@media (max-width: 860px) {
  .utility {
    display: none;
  }
}

@media (max-width: 560px) {
  .bar {
    height: 72px;
    gap: 12px;
  }
  .brand__crest {
    width: 40px;
    height: 40px;
  }
  .brand__text {
    font-size: 10px;
  }
  .brand__text b {
    font-size: 18px;
  }
  /* pe telefon textul „Meniu” rămâne doar pentru cititoarele de ecran */
  .menu-btn span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .menu-btn {
    padding: 0 12px;
  }
}

/* meniul de pe telefon */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px var(--pad) 32px;
  background: var(--bg);
  color: var(--ink);
}

.mnav:not([hidden]) {
  animation: fade-in 0.25s var(--ease);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.mnav__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  margin-bottom: 16px;
}

.mnav__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid currentColor;
  border-radius: var(--r-btn);
  background: none;
  font-family: var(--font-ui);
  font-weight: 700;
}

.mnav__search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-bottom: 18px;
  padding: 0 16px;
  border: 1.5px solid var(--ink-2);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 16px;
  text-align: left;
}

[data-shape='prietenos'] .mnav__search {
  border-radius: 16px;
}

.mnav__search svg {
  width: 20px;
  height: 20px;
}

.mnav__list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.mnav__list > li {
  border-bottom: 1px solid var(--line);
}

.mnav__group,
.mnav__list > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: 26px;
  font-weight: var(--h3-weight);
  letter-spacing: calc(var(--display-tracking) / 2);
  text-align: left;
  text-decoration: none;
}

.mnav__group svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s var(--ease);
}

.mnav__group[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

.mnav__sub {
  margin: 0;
  padding: 0 0 16px;
  list-style: none;
}

.mnav__sub a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-ui);
  font-size: 17px;
  text-decoration: none;
}

.mnav__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.mnav .btn {
  width: 100%;
}

.mnav .small {
  margin: 20px 0 0;
  color: var(--ink-2);
}

/* ---------- fir de navigare ---------- */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-2);
}

.crumbs li + li::before {
  content: '/';
  margin-right: 10px;
  color: var(--line);
}

.crumbs a {
  color: var(--ink);
  text-underline-offset: 3px;
}

/* ---------- antetul paginilor interioare ---------- */

.page-hero {
  padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 88px);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(28px, 4vw, 56px);
}

.page-hero h1 {
  max-width: 15ch;
}

.page-hero .lead {
  max-width: 40em;
  margin-top: 24px;
}

.page-hero .actions {
  margin-top: 30px;
}

.page-hero__media {
  margin: clamp(40px, 5vw, 72px) 0 0;
}

.page-hero__media .frame {
  overflow: hidden;
  aspect-ratio: 21 / 8;
  max-height: 70svh;
  clip-path: inset(0 calc((1 - var(--p, 1)) * var(--edge)) round calc((1 - var(--p, 1)) * 24px));
}

[data-shape='prietenos'] .page-hero__media .frame {
  margin: 0 var(--edge);
  clip-path: none;
  border-radius: var(--r-media);
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.1 - 0.1 * var(--p, 1)));
}

.page-hero__media figcaption {
  margin-top: 12px;
}

.facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 15px;
}

.facts dt {
  color: var(--ink-2);
}

.facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

@media (max-width: 860px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
  }
  .page-hero__media .frame {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- newsletter și subsol ---------- */

.newsletter {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--bg-2);
}

.newsletter__in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: center;
}

.newsletter p {
  margin: 10px 0 0;
}

.newsletter__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.newsletter__form .check {
  grid-column: 1 / -1;
}

.form-success {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: var(--tint-2);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
}

.form-success svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--brand);
}

[data-mode='dark'] .form-success svg {
  color: var(--accent);
}

@media (max-width: 860px) {
  .newsletter__in {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .newsletter__form {
    grid-template-columns: 1fr;
  }
}

.footer {
  padding: clamp(56px, 7vw, 96px) 0 28px;
  background: var(--dark);
  color: var(--on-dark);
  font-family: var(--font-ui);
  font-size: 15.5px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)) minmax(0, 3fr);
  gap: 36px;
  padding-bottom: 48px;
}

.footer .brand__crest {
  color: var(--on-dark);
}

.footer .brand__text {
  color: var(--on-dark-2);
}

.footer .brand__text b {
  color: var(--on-dark);
}

.footer p {
  margin: 18px 0 0;
  color: var(--on-dark-2);
  line-height: 1.6;
}

.footer h2 {
  margin: 0 0 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--highlight);
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 9px;
}

.footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer :focus-visible {
  outline-color: var(--highlight);
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--on-dark) 30%, transparent);
  border-radius: var(--r-pill);
}

.socials a:hover {
  background: var(--on-dark);
  color: var(--dark);
}

.socials svg {
  width: 18px;
  height: 18px;
}

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 700;
}

.open-status::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8b939f;
}

.open-status.is-open::before {
  background: #4ccb7b;
  box-shadow: 0 0 0 4px rgb(76 203 123 / 0.22);
}

.footer__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 16%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 16%, transparent);
}

.footer__labels span {
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--on-dark-2);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--on-dark-2);
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__bottom li {
  margin: 0;
}

.footer__bottom button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark);
  font-size: 14px;
}

.footer__bottom button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer__top > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__top > :last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- ferestre: căutare, accesibilitate, demo ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgb(10 12 18 / 0.55);
  backdrop-filter: blur(3px);
}

.overlay:not([hidden]) {
  animation: fade-in 0.2s var(--ease);
}

.search {
  position: fixed;
  left: 50%;
  top: clamp(16px, 9vh, 96px);
  z-index: 230;
  width: min(760px, calc(100vw - 24px));
  max-height: min(680px, calc(100svh - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: max(var(--r-card), 6px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
  transform: translateX(-50%);
}

.search:not([hidden]) {
  animation: pop-in 0.25s var(--ease);
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.985);
  }
}

.search__form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.search__form svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--ink-2);
}

.search__form input {
  flex: 1;
  min-width: 0;
  height: 68px;
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 20px;
  outline: none;
}

kbd {
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: inherit;
}

.search__close {
  border: 0;
  background: none;
  padding: 6px;
}

.search__body {
  overflow-y: auto;
  padding: 12px;
}

.search__hint {
  margin: 8px 8px 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 8px 8px;
}

.results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 14px;
  align-items: start;
  padding: 12px;
  border-radius: max(var(--r-card), 4px);
  font-family: var(--font-ui);
  text-decoration: none;
}

.result a:hover,
.result[aria-selected='true'] a {
  background: var(--bg-2);
}

.result__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: max(var(--r-card), 4px);
  background: var(--tint-2);
  color: var(--ink);
}

.result__icon svg {
  width: 18px;
  height: 18px;
}

.result__title {
  font-size: 16px;
  font-weight: 700;
}

.result__meta {
  font-size: 14px;
  color: var(--ink-2);
}

.result mark {
  background: var(--marker);
  color: inherit;
  padding: 0 1px;
}

.search__empty {
  padding: 28px 12px;
  font-family: var(--font-ui);
  text-align: center;
  color: var(--ink-2);
}

.search__foot {
  display: flex;
  gap: 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-2);
}

/* panou lateral: accesibilitate și demo */
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 230;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  overflow-y: auto;
  padding: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: -20px 0 60px rgb(0 0 0 / 0.25);
  font-family: var(--font-ui);
}

.drawer:not([hidden]) {
  animation: slide-in 0.3s var(--ease);
}

@keyframes slide-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.drawer__head h2 {
  font-size: 24px;
  font-weight: var(--h3-weight);
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-btn);
  background: none;
}

.drawer__close svg {
  width: 18px;
  height: 18px;
}

.drawer p {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--ink-2);
}

.drawer__group {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.drawer__group legend,
.drawer__label {
  margin-bottom: 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.seg button {
  min-height: 52px;
  border: 1.5px solid var(--line);
  border-radius: max(var(--r-card), 6px);
  background: var(--bg);
  font-weight: 700;
}

.seg button[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.toggles {
  display: grid;
  gap: 8px;
}

.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: max(var(--r-card), 6px);
  background: var(--bg);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.toggle[aria-pressed='true'],
.toggle[aria-checked='true'] {
  border-color: var(--ink);
}

.switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.2s;
}

.switch::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
  transition: transform 0.2s var(--ease);
}

[aria-pressed='true'] > .switch,
[aria-checked='true'] > .switch {
  background: var(--brand);
}

[aria-pressed='true'] > .switch::after,
[aria-checked='true'] > .switch::after {
  transform: translateX(18px);
}

.drawer__reset {
  margin-top: auto;
  padding-top: 16px;
}

.drawer__reset .btn {
  width: 100%;
}

/* stilurile demo-ului: combinații gata făcute și cele cinci axe */
.presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.preset {
  position: relative;
  display: grid;
  align-content: start;
  gap: 3px;
  width: 100%;
  padding: 10px 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: max(var(--r-card), 8px);
  background: var(--bg);
  text-align: left;
}

.preset[aria-checked='true'],
.axis button[aria-checked='true'] {
  border-color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ink) inset;
}

.preset__pv {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  height: 48px;
  margin-bottom: 7px;
  overflow: hidden;
  border-radius: 3px;
}

.preset__pv--clasic {
  border-radius: 24px 24px 0 0;
}

.preset__pv--prietenos {
  border-radius: 12px;
}

.preset__pv i:first-child {
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 23px;
  line-height: 1;
}

.preset b {
  font-size: 16px;
}

.preset > span:not(.preset__pv) {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-2);
}

.preset__tag {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.drawer .axis__label {
  margin: 22px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

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

.axis button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 74px;
  padding: 10px 4px 9px;
  border: 1.5px solid var(--line);
  border-radius: max(var(--r-card), 6px);
  background: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
}

.axis__pv {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 28px;
}

.axis__pv i {
  font-style: normal;
}

.axis__pv--palette i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.18);
}

.axis__pv--type i {
  font-size: 23px;
  line-height: 1;
}

.axis__pv--accent i {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.axis__pv--accent.axis__pv--clasic em {
  font-family: 'Newsreader Titlu', 'Newsreader', 'Newsreader Titlu Rezerva', 'Times New Roman', 'Serif potrivit', Georgia, serif;
  font-style: italic;
}

.axis__pv--accent.axis__pv--modern em {
  font-style: normal;
  background: linear-gradient(var(--marker), var(--marker)) 0 90% / 100% 0.4em no-repeat;
}

.axis__pv--accent.axis__pv--prietenos em {
  font-style: normal;
  color: var(--em-color);
}

.axis__pv--shape i:not(:first-child) {
  display: none;
}

.axis__pv--shape i {
  width: 30px;
  height: 26px;
  border: 2px solid currentColor;
}

.axis__pv--shape.axis__pv--clasic i {
  border-radius: 15px 15px 0 0;
}

.axis__pv--shape.axis__pv--prietenos i {
  border-radius: 9px;
}

.axis__pv--hero {
  border: 1.5px solid currentColor;
  border-radius: 3px;
  overflow: hidden;
}

.axis__pv--hero i {
  position: absolute;
  background: currentColor;
}

.axis__pv--hero.axis__pv--clasic i:nth-child(1) {
  inset: 0;
  opacity: 0.28;
}

.axis__pv--hero.axis__pv--clasic i:nth-child(2) {
  left: 4px;
  bottom: 9px;
  width: 20px;
  height: 3px;
}

.axis__pv--hero.axis__pv--clasic i:nth-child(3) {
  left: 4px;
  bottom: 4px;
  width: 12px;
  height: 2px;
}

.axis__pv--hero.axis__pv--modern i:nth-child(1) {
  left: 4px;
  top: 4px;
  width: 28px;
  height: 4px;
}

.axis__pv--hero.axis__pv--modern i:nth-child(2) {
  left: 4px;
  top: 10px;
  width: 18px;
  height: 4px;
}

.axis__pv--hero.axis__pv--modern i:nth-child(3) {
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  opacity: 0.4;
}

.axis__pv--hero.axis__pv--prietenos i:nth-child(1) {
  left: 4px;
  top: 8px;
  width: 13px;
  height: 3px;
}

.axis__pv--hero.axis__pv--prietenos i:nth-child(2) {
  right: 4px;
  top: 4px;
  width: 15px;
  height: 13px;
  border-radius: 3px;
  opacity: 0.4;
}

.axis__pv--hero.axis__pv--prietenos i:nth-child(3) {
  right: 13px;
  bottom: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.6;
}

/* butoane plutitoare */
.fab-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.fab {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.22);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

.fab svg {
  width: 24px;
  height: 24px;
}

.fab--top {
  width: 44px;
  height: 44px;
  background: var(--surface);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
}

.fab--top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* butonul demo-ului: pe ecrane mari, o filă verticală pe marginea din stânga, unde nu acoperă conținutul */
.demo-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: 600 15px/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
}

.demo-fab svg {
  width: 22px;
  height: 22px;
}

.demo-fab b {
  font-weight: 800;
}

.demo-fab:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #111;
}

@media (min-width: 1000px) {
  .demo-fab {
    left: 0;
    top: 50%;
    bottom: auto;
    height: auto;
    padding: 16px 12px 18px;
    border-radius: 0 12px 12px 0;
    flex-direction: column;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
  }
  .demo-fab svg {
    transform: rotate(90deg);
  }
}

@media (max-width: 560px) {
  .demo-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .demo-fab {
    width: 52px;
    padding: 0;
    justify-content: center;
  }
}

/* ---------- modul demonstrativ: bara de jos ----------
   Aparține prezentării, nu școlii: are culorile ei, aceleași în orice stil. */

.dock {
  --dock-bg: #101216;
  --dock-ink: #fff;
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 24px);
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  background: var(--dock-bg);
  color: var(--dock-ink);
  font: 600 14px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.32);
  transform: translateX(-50%);
}

.js:not(.reduced) .dock {
  animation: dock-in 0.6s var(--ease) 0.5s backwards;
}

@keyframes dock-in {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
}

.dock__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 6px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.dock__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #101216;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dock__name b,
.dock__name small {
  display: block;
}

.dock__name b {
  font-size: 14px;
  font-weight: 700;
}

.dock__name small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: rgb(255 255 255 / 0.72);
}

.dock__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 6px;
  border-left: 1px solid rgb(255 255 255 / 0.16);
}

.dock__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 260px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.dock__btn > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock__btn svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.dock__btn:hover,
.dock__btn[aria-expanded='true'] {
  background: rgb(255 255 255 / 0.12);
}

.dock__btn b {
  font-weight: 800;
}

.dock__btn--cta {
  margin-left: 4px;
  padding: 0 18px;
  background: #fff;
  color: #101216;
}

.dock__btn--cta:hover {
  background: #e9e9e4;
}

.dock__btn--cta .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.dock__btn--cta:hover .arrow {
  transform: translateX(3px);
}

.dock :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.dock__btn--cta:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 2px #101216 inset;
}

.dock__narrow {
  display: none;
}

@media (max-width: 1080px) {
  .dock__name small {
    display: none;
  }
  .dock__btn {
    padding: 0 12px;
    max-width: 200px;
  }
}

@media (max-width: 900px) {
  .dock {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    max-width: none;
    padding: 4px;
    border-radius: 20px;
    transform: none;
  }
  @keyframes dock-in {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
  }
  .dock__brand {
    display: none;
  }
  .dock__actions {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding-left: 0;
    border-left: 0;
  }
  .dock__btn {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 54px;
    max-width: none;
    padding: 6px 2px;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
  }
  .dock__btn > span {
    max-width: 100%;
  }
  .dock__btn svg {
    width: 20px;
    height: 20px;
  }
  .dock__btn--cta {
    margin-left: 0;
    flex-direction: column-reverse;
  }
  .dock__btn--cta .arrow {
    width: 20px;
    height: 20px;
  }
  .dock__wide {
    display: none;
  }
  .dock__narrow {
    display: inline;
  }
}

/* locul barei: butoanele plutitoare, mesajele și subsolul nu ajung sub ea */
.has-dock .cookie {
  bottom: 86px;
}

.has-dock .toast {
  bottom: 96px;
}

.has-dock .footer {
  padding-bottom: 96px;
}

@media (max-width: 1260px) {
  .has-dock .fab-stack {
    bottom: 86px;
  }
}

@media (max-width: 900px) {
  .has-dock .cookie,
  .has-dock .fab-stack {
    bottom: 82px;
  }
  .has-dock .toast {
    bottom: 152px;
  }
}

/* deschiderea pe tot ecranul își ridică textul și butoanele deasupra barei */
.has-dock[data-hero='clasic'] .hero__content {
  padding-bottom: calc(clamp(40px, 6vw, 80px) + 64px);
}

.has-dock[data-hero='clasic'] .hero__bar {
  bottom: calc(clamp(40px, 6vw, 80px) + 64px);
}

@media (max-width: 960px) {
  .has-dock[data-hero='clasic'] .hero__content {
    padding-bottom: 168px;
  }
  .has-dock[data-hero='clasic'] .hero__bar {
    bottom: 94px;
  }
}

/* în previzualizarea din panoul de administrare, pagina apare fără straturile pentru vizitatori */
.in-frame .dock,
.in-frame .dock-hello,
.in-frame .cookie {
  display: none !important;
}

/* invitația de la prima vizită */
.dock-hello {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 159;
  width: min(440px, calc(100vw - 24px));
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: max(var(--r-card), 10px);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.28);
  transform: translateX(-50%);
}

.dock-hello:not([hidden]) {
  animation: hello-in 0.45s var(--ease);
}

.reduced .dock-hello:not([hidden]) {
  animation: none;
}

@keyframes hello-in {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
}

.dock-hello__title {
  margin: 0 36px 4px 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
}

.dock-hello__text {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink-2);
}

.dock-hello__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.dock-hello__row .input {
  min-height: 46px;
  padding: 8px 14px;
}

.dock-hello__row .btn {
  min-height: 46px;
}

.dock-hello__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
}

.dock-hello__close:hover {
  background: var(--tint-1);
  color: var(--ink);
}

.dock-hello__close svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .dock-hello {
    bottom: 80px;
  }
}

/* panoul „Școala dumneavoastră” */
.school {
  display: grid;
  gap: 18px;
  margin-top: 6px;
}

.school .drawer__group {
  margin: 0;
}

.school .input {
  min-height: 48px;
}

.school__hint {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 5px;
  margin: 0 -5px 4px;
}

.swatch {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
}

.swatch[aria-checked='true']::after,
.swatch--custom.is-on::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
}

.swatch--none {
  background:
    linear-gradient(135deg, transparent 46%, var(--ink-2) 46%, var(--ink-2) 54%, transparent 54%),
    var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--ink-2);
}

.swatch--custom {
  display: block;
  overflow: visible;
  background: conic-gradient(#e5484d, #f5b82e, #2f9e62, #1f8fd8, #6b4bd6, #e5484d);
}

.swatch--custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.swatch--custom:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.school__logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.school__logo label {
  cursor: pointer;
}

.school__logo label:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.school__share {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.school__share .school__hint {
  margin: 0 0 10px;
}

.school__link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.school__link .input {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
}

#school-panel .drawer__reset {
  display: grid;
  gap: 10px;
}

#school-panel .drawer__reset .btn {
  justify-content: center;
}

/* numele din demo nu clipește înainte să fie înlocuit cu al școlii vizitatorului */
html[data-school]:not(.school-ready) [data-brand],
html[data-school]:not(.school-ready) .brand__crest {
  visibility: hidden;
}

.brand__crest--own {
  width: auto;
  max-width: 132px;
  object-fit: contain;
}

.drawer--left {
  left: 0;
  right: auto;
  box-shadow: 20px 0 60px rgb(0 0 0 / 0.25);
}

.drawer--left:not([hidden]) {
  animation-name: slide-in-left;
}

@keyframes slide-in-left {
  from {
    transform: translateX(-24px);
    opacity: 0;
  }
}

/* cookie-uri */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 240;
  width: min(880px, calc(100vw - 24px));
  padding: 22px 24px;
  border-radius: max(var(--r-card), 8px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.3);
  font-family: var(--font-ui);
  transform: translateX(-50%);
}

.cookie:not([hidden]) {
  animation: rise-in 0.4s var(--ease);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

.cookie h2 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: var(--h3-weight);
}

.cookie p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.cookie__prefs {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.cookie__prefs .toggle span:first-child {
  display: grid;
  gap: 2px;
}

.cookie__prefs small {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-2);
}

/* mesaj scurt */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 260;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  border-radius: max(var(--r-card), 8px);
  background: #111;
  color: #fff;
  font: 600 15px/1.4 var(--font-ui);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* bara de progres a lecturii */
.progress-read {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--read, 0));
}

/* =====================================================================
   Blocuri. Fiecare bloc poartă data-block="Nume" (vizibil cu „Arată blocurile”).
   ===================================================================== */

[data-block] {
  position: relative;
}

/* ---------- deschiderea paginii principale ----------
   Aceeași structură, trei așezări: Clasic = fotografie pe tot ecranul cu prezentare,
   Modern = titlu mare și fotografie lată, Prietenos = text și colaj. */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 14ch;
}

.hero .lead {
  max-width: 34em;
  margin-top: 24px;
}

.hero .actions {
  margin-top: 32px;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero__media {
  position: relative;
}

.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide.is-active img {
  animation: drift 20s linear forwards;
}

.hero.is-paused .hero__slide img {
  animation-play-state: paused;
}

@keyframes drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* film în deschidere: stă peste prima fotografie și apare lin după ce pornește */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  pointer-events: none;
}

.hero.is-video-on .hero__video {
  opacity: 1;
}

.hero.is-video-off .hero__video,
.reduced .hero__video {
  display: none;
}

/* cât rulează filmul, fotografiile nu se mai schimbă: liniuțele n-au ce arăta */
.hero[data-has-video]:not(.is-video-off) .hero__dot {
  display: none;
}

.hero[data-has-video]:not(.is-video-off) .hero__slide.is-active img {
  animation: none;
}

.hero__caption {
  font-family: var(--font-ui);
  font-size: 14px;
}

.hero__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__dot {
  position: relative;
  width: 40px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
}

.hero__dot::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 2px;
  background: currentColor;
  opacity: 0.35;
}

.hero__dot[aria-current='true']::before {
  opacity: 1;
}

.hero__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1.5px solid currentColor;
  border-radius: var(--r-btn);
  background: none;
  color: inherit;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.hero__toggle svg {
  width: 12px;
  height: 12px;
}

/* ---------- bandă cu text care se mișcă ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 50s linear infinite;
}

.ticker.is-paused .ticker__track {
  animation-play-state: paused;
}

.ticker ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker li {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 32px 20px 0;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  white-space: nowrap;
}

.ticker li::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: var(--r-pill);
  background: var(--highlight);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.ticker__toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--pad) 0 32px;
  border: 0;
  background: linear-gradient(to right, transparent, var(--dark) 28px);
  color: var(--on-dark);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- linkuri rapide ---------- */

.quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.quick li + li {
  border-left: 1px solid var(--line);
}

.quick a {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 210px;
  height: 100%;
  padding: 22px 24px 24px;
  overflow: hidden;
  font-family: var(--font-ui);
  text-decoration: none;
  transition: color 0.35s var(--ease);
}

.quick a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}

.quick a:hover,
.quick a:focus-visible {
  color: var(--on-brand);
}

.quick a:hover::before,
.quick a:focus-visible::before {
  transform: scaleY(1);
}

.quick a:focus-visible {
  outline-offset: -4px;
  outline-color: var(--on-brand);
}

.quick__n {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.8;
}

.quick__t {
  align-self: end;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.05;
  font-weight: var(--h2-weight);
  letter-spacing: calc(var(--display-tracking) / 1.5);
}

.quick__d {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
  transition: color 0.35s var(--ease);
}

.quick a:hover .quick__d,
.quick a:focus-visible .quick__d {
  color: inherit;
  opacity: 0.92;
}

.quick__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 22px;
  height: 22px;
  transition: transform 0.35s var(--ease);
}

.quick a:hover .quick__arrow {
  transform: translate(3px, -3px);
}

@media (max-width: 960px) {
  .quick {
    grid-template-columns: 1fr 1fr;
  }
  .quick li:nth-child(3) {
    border-left: 0;
  }
  .quick li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .quick {
    grid-template-columns: 1fr;
  }
  .quick li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .quick a {
    min-height: 0;
    padding: 18px 56px 20px 18px;
  }
  .quick__arrow {
    top: 50%;
    margin-top: -11px;
  }
}

/* ---------- carduri cu imagini ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
}

.card > a,
.card > div {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.card .media {
  aspect-ratio: 4 / 5;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 20px;
}

.card__kicker {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.card h3 {
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.12;
  font-weight: var(--h3-weight);
}

.card p {
  margin: 10px 0 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.card .link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 15px;
}

.card > a:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.cards--3 {
  --cols: 3;
}

.cards--2 {
  --cols: 2;
}

.cards--text .card > div {
  padding: 28px 26px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}

.cards--text .card__n {
  display: block;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: 52px;
  line-height: 1;
  font-weight: var(--display-weight);
  color: var(--accent);
}

@media (max-width: 1060px) {
  .cards {
    --cols: 2 !important;
  }
}

@media (max-width: 560px) {
  .cards:not(.cards--scroll) {
    --cols: 1 !important;
  }
  .cards--scroll {
    display: grid;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--pad);
    scrollbar-width: none;
  }
  .cards--scroll::-webkit-scrollbar {
    display: none;
  }
  .cards--scroll .card {
    scroll-snap-align: start;
  }
}

/* ---------- text și imagine ---------- */

.textimage {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.textimage--flip .textimage__media {
  order: 2;
}

.textimage__media .media {
  aspect-ratio: 5 / 6;
}

.textimage__text .lead {
  margin-top: 24px;
}

.textimage__text p:not(.lead):not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--ink-2);
}

.textimage__text .actions {
  margin-top: 30px;
}

.textimage__list {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.textimage__list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 16px;
}

.textimage__list svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}

.textimage__badge {
  position: absolute;
  left: -20px;
  bottom: 28px;
  z-index: 2;
  max-width: 220px;
  padding: 18px 20px;
  border-radius: var(--r-card);
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.18);
}

.textimage__badge b {
  display: block;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: 40px;
  line-height: 1;
  font-weight: var(--display-weight);
}

.textimage__media {
  position: relative;
}

@media (max-width: 900px) {
  .textimage {
    grid-template-columns: 1fr;
  }
  .textimage--flip .textimage__media {
    order: 0;
  }
  .textimage__media .media {
    aspect-ratio: 4 / 3;
  }
  .textimage__badge {
    left: 16px;
  }
}

/* ---------- statistici ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 0 0;
}

.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}

.stat dd {
  order: -1;
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: clamp(48px, 5.4vw, 88px);
  line-height: 1;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
}

.stat dt {
  margin-top: 14px;
  max-width: 22ch;
  font-family: var(--font-ui);
  font-size: 15.5px;
  line-height: 1.45;
  opacity: 0.85;
}

.stats-photo {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--dark);
}

.stats-photo__bg {
  position: absolute;
  inset: -10% 0;
}

.stats-photo__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(var(--scrim) / 0.82);
}

.stats-photo .wrap {
  position: relative;
  z-index: 1;
}

.stats-photo .eyebrow {
  color: var(--highlight);
}

.stats-photo .eyebrow .n {
  color: var(--on-dark-2);
}

.stats-photo .note {
  margin: 44px 0 0;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--on-dark-2);
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .stat {
    padding-bottom: 28px;
  }
}

/* ---------- noutăți ---------- */

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.post > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.post .media {
  aspect-ratio: 3 / 2;
}

.post__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 18px;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-2);
}

.post h3 {
  font-size: clamp(21px, 1.7vw, 25px);
  line-height: 1.2;
  font-weight: var(--h3-weight);
}

.post p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

.post > a:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.post--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.post--featured .media {
  aspect-ratio: 16 / 10;
}

.post--featured h3 {
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.08;
  font-weight: var(--h2-weight);
}

.post--featured p {
  font-size: 18px;
}

@media (max-width: 960px) {
  .posts {
    grid-template-columns: 1fr 1fr;
  }
  .post--featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .posts {
    grid-template-columns: 1fr;
  }
}

.archive-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.archive-tools .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.searchbox {
  position: relative;
  flex: 0 1 340px;
}

.searchbox svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--ink-2);
  pointer-events: none;
}

.searchbox .input {
  padding-left: 46px;
}

.archive-count {
  margin: 0 0 18px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink-2);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pager button {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-btn);
  background: transparent;
  font-family: var(--font-ui);
  font-weight: 700;
}

.pager button[aria-current='page'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.pager button:disabled {
  opacity: 0.4;
  cursor: default;
}

.empty {
  padding: 48px 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-card);
  font-family: var(--font-ui);
  text-align: center;
  color: var(--ink-2);
}

/* ---------- evenimente ---------- */

.events {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.event {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.event__date {
  display: grid;
  place-items: center;
  align-content: center;
  height: 96px;
  border-radius: var(--r-card);
  background: var(--tint-2);
  font-family: var(--font-ui);
  text-align: center;
}

.event__date b {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: 40px;
  line-height: 1;
  font-weight: var(--display-weight);
}

.event__date span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.25;
  font-weight: var(--h3-weight);
}

.event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: var(--ink-2);
}

.event__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event__meta svg {
  width: 15px;
  height: 15px;
}

.event p {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--ink-2);
}

.event__actions {
  display: flex;
  gap: 8px;
}

.month-label {
  margin: 40px 0 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 760px) {
  .event {
    grid-template-columns: 72px 1fr;
  }
  .event__date {
    height: 76px;
  }
  .event__date b {
    font-size: 30px;
  }
  .event__actions {
    grid-column: 2;
  }
}

/* ---------- testimoniale ---------- */

.quotes {
  position: relative;
}

.quotes__viewport {
  overflow: hidden;
}

.quotes__track {
  display: flex;
  transition: transform 0.7s var(--ease);
}

.quote-slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 0 2px;
}

.quote-slide blockquote {
  max-width: 28ch;
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.18;
  font-weight: var(--display-weight);
  letter-spacing: calc(var(--display-tracking) / 1.5);
}

.quote-slide figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  font-family: var(--font-ui);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--highlight);
  color: #111;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 800;
}

.quote-slide figcaption b {
  display: block;
  font-size: 17px;
}

.quote-slide figcaption span {
  font-size: 15px;
  opacity: 0.8;
}

.quotes__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid currentColor;
  border-radius: var(--r-pill);
  background: transparent;
  color: inherit;
}

[data-shape='clasic'] .round-btn,
[data-shape='prietenos'] .round-btn {
  border-radius: 50%;
}

.round-btn:hover {
  background: currentColor;
}

.round-btn:hover svg {
  color: var(--bg);
}

.section--dark .round-btn:hover svg {
  color: var(--dark);
}

.round-btn svg {
  width: 18px;
  height: 18px;
}

.quotes__count {
  margin-left: 8px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* ---------- galerie ---------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(110px, 12vw, 190px);
  gap: clamp(8px, 1.2vw, 16px);
}

.mosaic button {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-media);
  background: var(--bg-2);
  cursor: zoom-in;
}

.mosaic button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.mosaic button:hover img {
  transform: scale(1.05);
}

.mosaic button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.45), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.mosaic button:hover::after,
.mosaic button:focus-visible::after {
  opacity: 1;
}

.mosaic .m1 {
  grid-column: span 5;
  grid-row: span 2;
}
.mosaic .m2 {
  grid-column: span 4;
}
.mosaic .m3 {
  grid-column: span 3;
  grid-row: span 2;
}
.mosaic .m4 {
  grid-column: span 4;
}
.mosaic .m5 {
  grid-column: span 7;
  grid-row: span 2;
}
.mosaic .m6 {
  grid-column: span 5;
  grid-row: span 2;
}

.masonry {
  columns: 3 300px;
  column-gap: 16px;
}

/* position: relative ține textele sr-only în coloana lor: în Safari, fără el,
   ajung sub footer și pagina se poate derula în gol */
.masonry .tile {
  position: relative;
  break-inside: avoid;
  margin-bottom: 16px;
}

.masonry button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-media);
  background: var(--bg-2);
  cursor: zoom-in;
}

.masonry img {
  width: 100%;
  transition: transform 1s var(--ease);
}

.masonry button:hover img {
  transform: scale(1.04);
}

.masonry .tile p {
  margin: 8px 0 0;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }
  .mosaic button {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .mosaic .m1,
  .mosaic .m5 {
    grid-column: 1 / -1 !important;
    grid-row: span 2 !important;
  }
}

/* fereastra de vizualizare */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgb(8 9 12 / 0.95);
  color: #fff;
  font-family: var(--font-ui);
}

.lightbox:not([hidden]) {
  animation: fade-in 0.25s var(--ease);
}

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  font-size: 15px;
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 72px;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100svh - 160px);
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__prev,
.lightbox__next,
.lightbox__close {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid rgb(255 255 255 / 0.5);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.3);
  color: #fff;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  margin-top: -26px;
}

.lightbox__prev {
  left: 14px;
}

.lightbox__next {
  right: 14px;
}

.lightbox svg {
  width: 20px;
  height: 20px;
}

.lightbox :focus-visible {
  outline-color: #fff;
}

.lightbox__caption {
  padding: 14px 18px 22px;
  text-align: center;
  font-size: 15px;
  color: #d6d8dd;
}

@media (max-width: 600px) {
  .lightbox__stage {
    padding: 0 8px;
  }
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: -64px;
  }
  .lightbox__prev {
    left: calc(50% - 64px);
  }
  .lightbox__next {
    right: calc(50% - 64px);
  }
}

/* ---------- parteneri ---------- */

.logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.logos li {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  text-align: center;
  transition: color 0.3s, background-color 0.3s;
}

.logos li:hover {
  color: var(--ink);
  background: var(--surface);
}

.logo-mark {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-mark svg {
  width: 34px;
  height: 34px;
}

@media (max-width: 960px) {
  .logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

/* ---------- îndemn la acțiune ---------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  color: #fff;
}

.cta__bg {
  position: absolute;
  inset: 0;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(var(--scrim) / 0.88), rgb(var(--scrim) / 0.66) 55%, rgb(var(--scrim) / 0.6));
}

@media (max-width: 860px) {
  .cta::after {
    background: rgb(var(--scrim) / 0.8);
  }
}

.cta__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: end;
  padding: clamp(40px, 6vw, 88px);
}

.cta .eyebrow {
  color: #fff;
}

.cta h2 {
  max-width: 16ch;
}

.cta p {
  margin: 18px 0 0;
  max-width: 36em;
  font-size: 18px;
  color: rgb(255 255 255 / 0.92);
}

.cta .actions {
  justify-content: flex-end;
}

.cta :focus-visible {
  outline-color: #fff;
}

@media (max-width: 860px) {
  .cta__in {
    grid-template-columns: 1fr;
  }
  .cta .actions {
    justify-content: flex-start;
  }
}

/* ---------- taburi ---------- */

/* fără JavaScript, toate panourile rămân vizibile, unul sub altul */
.tabs__list {
  display: none;
}

.js .tabs__list {
  display: flex;
}

html:not(.js) .tabs__panel + .tabs__panel {
  margin-top: 64px;
}

.tabs__list {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.tabs__tab {
  position: relative;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
}

.tabs__tab::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.tabs__tab[aria-selected='true'] {
  color: var(--ink);
}

.tabs__tab[aria-selected='true']::after {
  transform: scaleX(1);
}

.tabs__tab:hover {
  color: var(--ink);
}

.tabs__panel:not([hidden]) {
  animation: fade-in 0.4s var(--ease);
}

.level {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.level__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.level__gallery .media:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.level__gallery .media {
  aspect-ratio: 1;
}

.level .lead {
  margin: 0 0 18px;
}

.level p {
  margin: 0 0 16px;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .level {
    grid-template-columns: 1fr;
  }
}

/* ---------- tabel ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 15.5px;
}

.table caption {
  padding: 18px 20px 8px;
  text-align: left;
  font-weight: 700;
}

.table th,
.table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-2);
}

.table tbody tr:last-child > * {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- pași ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 2px solid var(--line-strong);
}

.steps li {
  counter-increment: step;
  padding: 22px 22px 0 0;
}

.steps li + li {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: 40px;
  line-height: 1;
  font-weight: var(--display-weight);
  color: var(--accent);
}

.steps h3 {
  font-size: 21px;
  line-height: 1.2;
  font-weight: var(--h3-weight);
}

.steps p {
  margin: 8px 0 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.steps time {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li,
  .steps li + li {
    display: grid;
    grid-template-columns: 64px 1fr;
    padding: 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .steps li::before {
    margin: 0;
    font-size: 32px;
  }
}

/* ---------- întrebări frecvente ---------- */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

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

.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 68px;
  padding: 16px 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.3;
  font-weight: var(--h3-weight);
  letter-spacing: calc(var(--display-tracking) / 3);
  text-align: left;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__q[aria-expanded='true'] .faq__icon::after {
  transform: rotate(0);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq__q[aria-expanded='true'] + .faq__a {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  margin: 0;
  padding: 0 52px 24px 0;
  color: var(--ink-2);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 80px);
}

.faq-layout__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-layout__aside {
    position: static;
  }
}

/* ---------- documente ---------- */

.files {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.file {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
}

.file__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 56px;
  border-radius: 4px;
  background: var(--tint-1);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

[data-shape='prietenos'] .file__icon {
  border-radius: 12px;
}

.file__title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
}

.file__meta {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-2);
}

.file__size {
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .file {
    grid-template-columns: 40px 1fr;
  }
  .file__icon {
    width: 40px;
    height: 48px;
  }
  .file__size {
    display: none;
  }
  .file .btn {
    grid-column: 2;
    justify-self: start;
  }
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  .filters {
    grid-template-columns: 1fr;
  }
}

.pdf {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.pdf__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
}

.pdf__bar b {
  font-size: 16px;
}

.pdf iframe {
  display: block;
  width: 100%;
  height: min(78vh, 900px);
  border: 0;
  background: #525659;
}

/* ---------- cronologie ---------- */

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 clamp(28px, 4vw, 56px);
  list-style: none;
}

.timeline::before,
.timeline::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline::after {
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--p, 1));
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 48px;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(28px, 4vw, 56px) - 6px);
  top: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.timeline__y {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: 48px;
  line-height: 1;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--accent);
}

.timeline h3 {
  margin: 4px 0 8px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: var(--h3-weight);
}

.timeline p {
  margin: 0;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .timeline__y {
    font-size: 36px;
  }
}

/* ---------- echipă ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.person > button,
.person > div {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.person .media {
  aspect-ratio: 4 / 5;
}

.person .media img {
  object-position: 50% 20%;
}

.person h3 {
  margin-top: 16px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: var(--h3-weight);
}

.person p {
  margin: 4px 0 0;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink-2);
}

.person > button:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.person__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.person__more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.person > button:hover .person__more svg {
  transform: translateX(4px);
}

@media (max-width: 1000px) {
  .team {
    --cols: 3 !important;
  }
}

@media (max-width: 700px) {
  .team {
    --cols: 2 !important;
  }
}

.leader {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.leader .media {
  aspect-ratio: 4 / 5;
}

.leader__role {
  margin: 0 0 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.leader h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: var(--h3-weight);
}

.leader p {
  margin: 12px 0 0;
  color: var(--ink-2);
}

.leaders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.leaders .leader {
  grid-template-columns: 1fr;
  align-items: start;
}

@media (max-width: 1000px) {
  .leaders {
    grid-template-columns: 1fr;
  }
  .leaders .leader {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

@media (max-width: 520px) {
  .leaders .leader {
    grid-template-columns: 1fr;
  }
}

/* profil în fereastră */
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 240;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  width: min(880px, calc(100vw - 24px));
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  border-radius: max(var(--r-card), 8px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
  transform: translate(-50%, -50%);
}

.modal:not([hidden]) {
  animation: modal-in 0.3s var(--ease);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translate(-50%, -46%);
  }
}

.modal .media {
  height: 100%;
  min-height: 320px;
  border-radius: 0;
}

.modal__body {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.modal h2 {
  margin: 0 56px 6px 0;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: var(--h2-weight);
}

.modal p {
  color: var(--ink-2);
}

@media (max-width: 680px) {
  .modal {
    grid-template-columns: 1fr;
  }
  .modal .media {
    min-height: 0;
    aspect-ratio: 4 / 3.4;
  }
}

/* ---------- formular ---------- */

.form-card {
  padding: clamp(24px, 3.4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.radio-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--ink-2);
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.radio-pill input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

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

.dropzone {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 26px;
  border: 1.5px dashed var(--ink-2);
  border-radius: var(--r-card);
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 15px;
  text-align: center;
  color: var(--ink-2);
  transition: border-color 0.2s, background-color 0.2s;
}

.dropzone:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.dropzone.is-over {
  border-color: var(--accent);
  background: var(--tint-2);
}

.dropzone svg {
  width: 28px;
  height: 28px;
}

.dropzone b {
  color: var(--ink);
}

.counter {
  justify-self: end;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.error-summary {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 2px solid #b42318;
  border-radius: var(--r-card);
  background: #fdecea;
  color: #5c1810;
  font-family: var(--font-ui);
  font-size: 15px;
}

[data-mode='dark'] .error-summary {
  background: #3a1612;
  color: #ffd9d2;
  border-color: #ff8a73;
}

.error-summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.error-summary a {
  color: inherit;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

/* ---------- anunț în pagină ---------- */

.banner {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--r-card);
  border: 1px solid;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
}

.banner svg {
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.banner b {
  display: block;
  margin-bottom: 2px;
}

.banner--info {
  background: #e8effd;
  border-color: #b9cbf5;
  color: #13306e;
}

.banner--warning {
  background: #fdf3dc;
  border-color: #efd391;
  color: #5b4100;
}

.banner--success {
  background: #e6f4ea;
  border-color: #a9d8b8;
  color: #14532d;
}

[data-mode='dark'] .banner--info {
  background: #172440;
  border-color: #2c4170;
  color: #d6e2ff;
}

[data-mode='dark'] .banner--warning {
  background: #2e2510;
  border-color: #5c4a1a;
  color: #f6e3b4;
}

[data-mode='dark'] .banner--success {
  background: #13281b;
  border-color: #26553a;
  color: #cdebd7;
}

.banner a {
  color: inherit;
  font-weight: 700;
}

/* ---------- contact ---------- */

.places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.place {
  padding: clamp(24px, 2.8vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.place h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: var(--h3-weight);
}

.place address {
  margin: 12px 0 0;
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
}

.place dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 15px;
}

.place dt {
  font-weight: 700;
}

.place dd {
  margin: 0;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 860px) {
  .places {
    grid-template-columns: 1fr;
  }
}

.map-facade {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--bg-2);
  font-family: var(--font-ui);
  text-align: center;
}

.map-facade__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--line);
}

.map-facade__box {
  position: relative;
  max-width: 420px;
  padding: 26px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.15);
}

.map-facade__box p {
  margin: 8px 0 18px;
  font-size: 15px;
  color: var(--ink-2);
}

.map-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- cuprins lipit ---------- */

.with-toc {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(32px, 5vw, 80px);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  font-family: var(--font-ui);
}

.toc p {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -2px;
  padding: 8px 0 8px 16px;
  border-left: 2px solid transparent;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-2);
}

.toc a:hover {
  color: var(--ink);
}

.toc a[aria-current='true'] {
  border-left-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 960px) {
  .with-toc {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
}

/* ---------- rezultate: grafice ---------- */

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.kpi {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 0 0;
}

.kpi + .kpi {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.kpi dt {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
}

.kpi dd {
  margin: 0;
}

.kpi__v {
  display: block;
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: clamp(52px, 6vw, 96px);
  line-height: 0.95;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
}

.kpi__s {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .kpis {
    grid-template-columns: 1fr;
  }
  .kpi,
  .kpi + .kpi {
    padding: 20px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
}

.charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(48px, 5vw, 72px);
}

.chart-panel {
  margin: 0;
}

.chart-panel figcaption {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
}

.chart-panel figcaption b {
  font-size: 17px;
}

.chart-panel figcaption span {
  font-size: 14px;
  color: var(--ink-2);
}

.plot {
  position: relative;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  cursor: crosshair;
}

.chart:focus-visible {
  outline-offset: 8px;
}

.chart text {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  fill: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.chart .grid line {
  stroke: var(--line);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.chart .area {
  fill: var(--accent);
  opacity: 0.1;
}

.chart .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart .dots circle {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.15s var(--ease);
}

.section--alt .chart .dots circle {
  stroke: var(--bg-2);
}

.chart .dots circle.is-on {
  transform: scale(1.5);
}

.chart .labels text {
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink);
}

.chart .cross {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0;
  shape-rendering: crispEdges;
}

.chart.is-active .cross {
  opacity: 0.4;
}

.js .charts .line {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.8s var(--ease) 0.2s;
}

.js .charts .area,
.js .charts .labels,
.js .charts .dots circle {
  opacity: 0;
  transition: opacity 0.6s var(--ease) 1.1s;
}

.js .charts .is-in .line {
  stroke-dashoffset: 0;
}

.js .charts .is-in .area {
  opacity: 0.1;
}

.js .charts .is-in .labels,
.js .charts .is-in .dots circle {
  opacity: 1;
}

.tip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: 8px 11px 9px;
  border-radius: max(var(--r-card), 4px);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 16px));
  transition: opacity 0.15s;
}

.tip[data-side='left'] {
  transform: translate(calc(-100% + 18px), calc(-100% - 16px));
}

.tip[data-side='right'] {
  transform: translate(-18px, calc(-100% - 16px));
}

.tip strong {
  font-size: 17px;
}

.tip.is-on {
  opacity: 1;
}

@media (max-width: 1000px) {
  .charts {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

@media (max-width: 560px) {
  .chart text {
    font-size: 15px;
  }
  .chart .labels text {
    font-size: 16px;
  }
}

.details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.details summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.details summary::before {
  content: '+';
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: var(--r-pill);
}

.details[open] summary::before {
  content: '\2212';
}

.details__body {
  padding: 4px 0 28px;
}

/* ---------- articol ---------- */

.article-head {
  padding: clamp(28px, 4vw, 56px) 0 0;
}

.article-head__in {
  max-width: 900px;
}

.article-head h1 {
  margin-top: 18px;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.04;
  font-weight: var(--display-weight);
}

.article-head .lead {
  margin-top: 22px;
  color: var(--ink-2);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 28px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink-2);
}

.byline .avatar {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.byline b {
  display: block;
  color: var(--ink);
}

.article-media {
  margin: clamp(32px, 4vw, 56px) 0 0;
}

.article-media .media {
  aspect-ratio: 21 / 9;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 5vw, 72px) 0;
}

.share {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  display: grid;
  gap: 8px;
  font-family: var(--font-ui);
}

.share p {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.share a,
.share button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.share a:hover,
.share button:hover {
  border-color: var(--ink);
}

.share svg {
  width: 16px;
  height: 16px;
}

.article-aside {
  font-family: var(--font-ui);
}

.article-aside .box {
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--bg-2);
}

.article-aside .box + .box {
  margin-top: 16px;
}

.article-aside h2 {
  margin-bottom: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 1.8em 0;
}

.inline-gallery button {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-media);
  aspect-ratio: 1;
  cursor: zoom-in;
}

.inline-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 1.6em 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  font-family: var(--font-ui);
  font-size: 15px;
}

@media (max-width: 1000px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .share {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    order: 2;
  }
  .share p {
    grid-column: 1 / -1;
  }
  .article-aside {
    order: 3;
  }
  .article-media .media {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- căutare (pagină) ---------- */

.search-page__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 760px;
}

.search-page__form .input {
  min-height: 60px;
  font-size: 18px;
}

.result-group + .result-group {
  margin-top: 40px;
}

.result-group h2 {
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.result-group .result a {
  padding: 16px 12px;
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
}

.notfound__code {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: clamp(120px, 22vw, 280px);
  line-height: 0.9;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--accent);
}

/* ---------- funcționalități ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: var(--h3-weight);
}

.feature p {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--ink-2);
}

.feature ul {
  margin: 0 0 18px;
  padding-left: 18px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink-2);
}

.feature .link {
  margin-top: auto;
  font-size: 15px;
}

.feature__tag {
  align-self: start;
  margin-bottom: 14px;
}

@media (max-width: 1000px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------- conținut pe coloane ---------- */

.columns {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

@media (max-width: 860px) {
  .columns {
    grid-template-columns: 1fr;
  }
}

.countdown {
  display: flex;
  gap: 10px;
  margin: 0;
  font-family: var(--font-ui);
}

.countdown div {
  display: grid;
  justify-items: center;
  min-width: 76px;
  padding: 14px 10px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}

.countdown dd {
  order: -1;
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: 36px;
  line-height: 1;
  font-weight: var(--display-weight);
  font-variant-numeric: tabular-nums;
}

.countdown dt {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.countdown-box p {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
}

/* =====================================================================
   Ce schimbă fiecare axă dincolo de variabile: accentele (cuvântul
   evidențiat și etichetele), deschiderea paginii principale (data-hero),
   cardurile și secțiunile (data-shape). Axele se combină liber.
   ===================================================================== */

/* ---------- cuvântul evidențiat ---------- */

[data-accent='clasic'] h1 em,
[data-accent='clasic'] h2 em,
[data-accent='clasic'] .h3 em {
  font-style: italic;
  font-weight: inherit;
}

/* cu litere fără italic propriu (sau grotesk), cuvântul evidențiat împrumută italicul serif */
[data-accent='clasic']:not([data-type='clasic']) h1 em,
[data-accent='clasic']:not([data-type='clasic']) h2 em,
[data-accent='clasic']:not([data-type='clasic']) .h3 em {
  font-family: 'Newsreader Titlu', 'Newsreader', 'Newsreader Titlu Rezerva', 'Times New Roman', 'Serif potrivit', Georgia, serif;
  font-weight: var(--em-weight);
  font-size: var(--em-size);
  font-stretch: 100%;
  letter-spacing: -0.012em;
  line-height: 0.9;
}

[data-accent='modern'] h1 em,
[data-accent='modern'] h2 em,
[data-accent='modern'] .h3 em {
  background: linear-gradient(var(--marker), var(--marker)) 0 88% / 100% 0.34em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.04em;
}

.js[data-accent='modern'] [data-reveal] h1 em,
.js[data-accent='modern'] [data-reveal] h2 em,
.js[data-accent='modern'] h1[data-reveal] em,
.js[data-accent='modern'] h2[data-reveal] em {
  background-size: 0% 0.34em;
  transition: background-size 1.1s var(--ease) 0.35s;
}

.js[data-accent='modern'] .is-in h1 em,
.js[data-accent='modern'] .is-in h2 em,
.js[data-accent='modern'] h1.is-in em,
.js[data-accent='modern'] h2.is-in em {
  background-size: 100% 0.34em;
}

[data-accent='modern'] .section--dark h2 em,
[data-accent='modern'] .cta h2 em,
[data-accent='modern'] .stats-photo h2 em {
  background: none;
  text-decoration: underline;
  text-decoration-color: var(--highlight);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.14em;
}

[data-accent='prietenos'] h1 em,
[data-accent='prietenos'] h2 em,
[data-accent='prietenos'] .h3 em {
  color: var(--em-color);
}

[data-accent='prietenos'] .section--dark h2 em,
[data-accent='prietenos'] .cta h2 em,
[data-accent='prietenos'] .stats-photo h2 em {
  color: var(--highlight);
}

/* ---------- etichetele de secțiune ---------- */

[data-accent='clasic'] .eyebrow .n::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.6;
}

[data-accent='modern'] .eyebrow {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-2);
  font-stretch: 90%;
}

[data-accent='modern'] .eyebrow .n {
  color: inherit;
}

[data-accent='modern'] .eyebrow .n::before {
  content: '(';
}

[data-accent='modern'] .eyebrow .n::after {
  content: ')';
}

[data-accent='modern'] .section--dark .eyebrow,
[data-accent='modern'] .stats-photo .eyebrow,
[data-accent='modern'] .cta .eyebrow {
  color: var(--on-dark-2);
}

[data-accent='prietenos'] .eyebrow {
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--em-color);
}

[data-accent='prietenos'] .eyebrow::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--highlight);
}

[data-accent='prietenos'] .eyebrow .n {
  display: none;
}

[data-accent='prietenos'] .section--dark .eyebrow,
[data-accent='prietenos'] .stats-photo .eyebrow,
[data-accent='prietenos'] .cta .eyebrow {
  color: var(--on-dark);
}

/* ---------- butoane ---------- */

[data-type='modern'] .btn {
  font-stretch: 104%;
}

[data-shape='prietenos'] .btn:hover {
  transform: translateY(-2px);
}

/* ======================================================================
   Deschiderea paginii principale
   ====================================================================== */

/* ---------- Clasic: fotografie pe tot ecranul ---------- */

[data-hero='clasic'] .hero {
  height: 100svh;
  min-height: 660px;
  max-height: 1000px;
  background: #0b1020;
  color: #fff;
}

[data-hero='clasic'] .hero__media {
  position: absolute;
  inset: 0;
}

/* filmul are și cadre foarte luminoase: îl întunecăm cât să rămână textul lizibil (AA) în orice moment */
[data-hero='clasic'] .hero__video,
[data-hero='clasic'] .hero[data-has-video]:not(.is-video-off) .hero__slide:first-child img {
  filter: brightness(0.7);
}

[data-hero='clasic'] .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgb(var(--scrim) / 0.55) 0%, rgb(var(--scrim) / 0.2) 48%, rgb(var(--scrim) / 0) 68%),
    linear-gradient(to top, rgb(var(--scrim) / 0.85) 0%, rgb(var(--scrim) / 0.42) 42%, rgb(var(--scrim) / 0.12) 66%, rgb(var(--scrim) / 0.3) 82%, rgb(var(--scrim) / 0.66) 100%);
  pointer-events: none;
}

[data-hero='clasic'] .hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: clamp(40px, 6vw, 80px);
}

[data-hero='clasic'] .hero .eyebrow,
[data-hero='clasic'] .hero .eyebrow .n {
  color: #fff;
}

[data-hero='clasic'] .hero .lead {
  color: rgb(255 255 255 / 0.92);
}

[data-hero='clasic'] .hero .btn--primary {
  background: #fff;
  border-color: #fff;
  color: #111;
}

[data-hero='clasic'] .hero .btn--primary:hover {
  background: transparent;
  color: #fff;
}

[data-hero='clasic'] .hero .btn--secondary {
  color: #fff;
}

[data-hero='clasic'] .hero .btn--secondary:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}

[data-hero='clasic'] .hero__pills,
[data-hero='modern'] .hero__pills,
[data-hero='clasic'] .hero__note,
[data-hero='modern'] .hero__note {
  display: none;
}

[data-hero='clasic'] .hero__bar {
  position: absolute;
  right: var(--edge);
  bottom: clamp(40px, 6vw, 80px);
  z-index: 3;
  display: grid;
  gap: 14px;
  width: 300px;
  color: #fff;
}

[data-hero='clasic'] .hero :focus-visible {
  outline-color: #fff;
}

@media (max-width: 960px) {
  [data-hero='clasic'] .hero__bar {
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    bottom: 18px;
    width: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  [data-hero='clasic'] .hero__content {
    padding-bottom: 92px;
  }
  [data-hero='clasic'] .hero::after {
    background: linear-gradient(to top, rgb(var(--scrim) / 0.9) 0%, rgb(var(--scrim) / 0.62) 52%, rgb(var(--scrim) / 0.42) 100%);
  }
}

/* antetul stă peste fotografie până la primul scroll */
[data-hero='clasic'] .has-hero-full .site-header {
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  background: transparent;
  color: #fff;
}

[data-hero='clasic'] .has-hero-full .site-header .utility {
  border-color: rgb(255 255 255 / 0.2);
}

[data-hero='clasic'] .has-hero-full .site-header .brand__text,
[data-hero='clasic'] .has-hero-full .site-header .brand__text b,
[data-hero='clasic'] .has-hero-full .site-header .brand__crest {
  color: #fff;
}

[data-hero='clasic'] .has-hero-full .site-header .btn--primary {
  background: #fff;
  border-color: #fff;
  color: #111;
}

[data-hero='clasic'] .has-hero-full .site-header :focus-visible {
  outline-color: #fff;
}

[data-hero='clasic'] .has-hero-full .site-header .nav__link:hover,
[data-hero='clasic'] .has-hero-full .site-header .nav__link[aria-expanded='true'] {
  background: rgb(255 255 255 / 0.14);
}

[data-hero='clasic'] .has-hero-full .site-header.is-scrolled {
  position: fixed;
  top: 0;
  background: var(--bg);
  color: var(--ink);
  animation: header-drop 0.4s var(--ease);
}

[data-hero='clasic'] .has-hero-full .site-header.is-scrolled .brand__text {
  color: var(--ink-2);
}

[data-hero='clasic'] .has-hero-full .site-header.is-scrolled .brand__text b {
  color: var(--ink);
}

[data-hero='clasic'] .has-hero-full .site-header.is-scrolled .brand__crest {
  color: var(--brand);
}

[data-mode='dark'][data-hero='clasic'] .has-hero-full .site-header.is-scrolled .brand__crest {
  color: var(--ink);
}

[data-hero='clasic'] .has-hero-full .site-header.is-scrolled .btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

[data-hero='clasic'] .has-hero-full .site-header.is-scrolled :focus-visible {
  outline-color: var(--focus);
}

[data-hero='clasic'] .has-hero-full .site-header.is-scrolled .nav__link:hover,
[data-hero='clasic'] .has-hero-full .site-header.is-scrolled .nav__link[aria-expanded='true'] {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

@keyframes header-drop {
  from {
    transform: translateY(-100%);
  }
}

/* ---------- Modern: titlu mare, fotografie lată dedesubt ---------- */

[data-hero='modern'] .hero {
  display: flex;
  flex-direction: column;
  padding-top: clamp(28px, 4vw, 56px);
}

[data-hero='modern'] .hero__content {
  order: 1;
}

[data-hero='modern'] .hero__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'eyebrow eyebrow'
    'title title'
    'lead actions';
  align-items: end;
  gap: 0 40px;
}

[data-hero='modern'] .hero .eyebrow {
  grid-area: eyebrow;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

[data-hero='modern'] .hero h1 {
  grid-area: title;
  margin: clamp(28px, 4vw, 56px) 0 clamp(28px, 3.4vw, 44px);
  max-width: 13ch;
  font-size: clamp(50px, 8vw, 132px);
}

[data-hero='modern'] .hero .lead {
  grid-area: lead;
  margin: 0;
}

[data-hero='modern'] .hero .actions {
  grid-area: actions;
  margin: 0;
}

[data-hero='modern'] .hero__media {
  order: 2;
  /* lățimea e fixă: pe ecrane late și joase, înălțimea maximă nu mai îngustează (și decentrează) fotografia */
  width: 100%;
  margin-top: clamp(40px, 5vw, 64px);
  aspect-ratio: 21 / 9;
  max-height: 78svh;
  overflow: hidden;
  clip-path: inset(0 calc((1 - var(--p, 1)) * var(--edge)) round var(--r-media));
}

[data-hero='modern'] .hero__slide img {
  transform: scale(calc(1.1 - 0.1 * var(--p, 1)));
}

[data-hero='modern'] .hero__slide.is-active img {
  animation: none;
}

[data-hero='modern'] .hero__bar {
  order: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 12px var(--pad) 0;
  color: var(--ink-2);
}

[data-hero='modern'] .hero__toggle {
  color: var(--ink);
}

@media (max-width: 760px) {
  [data-hero='modern'] .hero__text {
    grid-template-columns: 1fr;
    grid-template-areas:
      'eyebrow'
      'title'
      'lead'
      'actions';
    gap: 24px;
  }
  [data-hero='modern'] .hero h1 {
    margin-bottom: 0;
  }
  [data-hero='modern'] .hero__media {
    aspect-ratio: 4 / 4.4;
  }
}

/* ---------- Prietenos: text și colaj ---------- */

[data-hero='prietenos'] .hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--pad) clamp(56px, 7vw, 104px);
}

[data-hero='prietenos'] .hero__content {
  order: 1;
}

[data-hero='prietenos'] .hero__content .wrap {
  padding: 0;
}

[data-hero='prietenos'] .hero h1 {
  max-width: 12ch;
  font-size: clamp(42px, 5vw, 76px);
}

[data-hero='prietenos'] .hero__media {
  order: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  aspect-ratio: 1 / 1.06;
}

[data-hero='prietenos'] .hero__slide {
  position: relative;
  inset: auto;
  opacity: 1;
  overflow: hidden;
  border-radius: var(--r-card);
}

[data-hero='prietenos'] .hero__slide img {
  animation: none !important;
}

[data-hero='prietenos'] .hero__slide:nth-child(1) {
  grid-column: 2 / 7;
  grid-row: 1 / 6;
}

[data-hero='prietenos'] .hero__slide:nth-child(2) {
  grid-column: 1 / 4;
  grid-row: 4 / 7;
  border: 8px solid var(--bg);
  border-radius: calc(var(--r-card) + 8px);
  z-index: 1;
}

[data-hero='prietenos'] .hero__slide:nth-child(3) {
  grid-column: 5 / 7;
  grid-row: 5 / 7;
  margin: 0 -14px -14px 0;
  border: 8px solid var(--bg);
  border-radius: var(--r-round);
  z-index: 2;
}

[data-hero='prietenos'] .hero__note {
  position: absolute;
  left: 2%;
  top: 4%;
  z-index: 3;
  max-width: 13em;
  margin: 0;
  padding: 14px 18px;
  border-radius: calc(var(--r-card) * 0.7);
  background: var(--surface);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.1);
}

[data-hero='prietenos'] .hero__note b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: var(--brand);
}

[data-hero='prietenos'] .hero__media::before {
  content: '';
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: center;
  width: 62%;
  aspect-ratio: 1;
  border-radius: var(--r-round);
  background: var(--highlight);
  transform: translate(10%, 26%);
}

[data-hero='prietenos'] .hero__bar {
  display: none;
}

[data-hero='prietenos'] .hero__pills .chip {
  border: 0;
  background: var(--bg-2);
}

[data-hero='prietenos'] .hero__pills .chip:hover {
  background: var(--tint-1);
}

@media (max-width: 960px) {
  [data-hero='prietenos'] .hero {
    grid-template-columns: 1fr;
  }
  [data-hero='prietenos'] .hero__media {
    max-width: 600px;
  }
}

/* ---------- carduri și secțiuni, pe teme ---------- */

[data-shape='prietenos'] .card > a,
[data-shape='prietenos'] .card > div {
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}

[data-shape='prietenos'] .card .media {
  border-radius: 0;
  aspect-ratio: 4 / 3.2;
}

[data-shape='prietenos'] .card__body {
  padding: 20px 22px 24px;
}

[data-shape='prietenos'] .cards--text .card > div {
  border: 0;
}

[data-shape='prietenos'] .cards--text .card:nth-child(4n + 1) > div {
  background: var(--tint-1);
}

[data-shape='prietenos'] .cards--text .card:nth-child(4n + 2) > div {
  background: var(--tint-2);
}

[data-shape='prietenos'] .cards--text .card:nth-child(4n + 3) > div {
  background: var(--tint-3);
}

[data-shape='prietenos'] .cards--text .card:nth-child(4n + 4) > div {
  background: var(--bg-2);
}

[data-shape='prietenos'] .quick {
  gap: 14px;
  border-top: 0;
}

[data-shape='prietenos'] .quick li,
[data-shape='prietenos'] .quick li + li {
  border: 0;
}

[data-shape='prietenos'] .quick a {
  border-radius: var(--r-card);
  background: var(--tint-1);
}

[data-shape='prietenos'] .quick li:nth-child(2) a {
  background: var(--tint-2);
}

[data-shape='prietenos'] .quick li:nth-child(3) a {
  background: var(--tint-3);
}

[data-shape='prietenos'] .quick li:nth-child(4) a {
  background: var(--bg-2);
}

[data-shape='prietenos'] .post .media {
  border-radius: var(--r-media);
}

[data-shape='prietenos'] .event__date {
  background: var(--brand);
  color: var(--on-brand);
}

[data-shape='prietenos'] .steps {
  gap: 12px;
  border-top: 0;
}

[data-shape='prietenos'] .steps li,
[data-shape='prietenos'] .steps li + li {
  padding: 24px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface);
}

[data-shape='prietenos'] .steps li::before {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--highlight);
  color: #111;
  font-size: 22px;
  content: counter(step);
}

[data-shape='prietenos'] .logos {
  gap: 12px;
  border: 0;
}

[data-shape='prietenos'] .logos li {
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface);
}

[data-shape='prietenos'] .stats {
  gap: 14px;
  border-top: 0;
}

[data-shape='prietenos'] .stats-photo .stat,
[data-shape='prietenos'] .stats-photo .stat + .stat {
  padding: 24px;
  border: 0;
  border-radius: var(--r-card);
  background: rgb(255 255 255 / 0.1);
}

[data-shape='modern'] .table-wrap,
[data-shape='modern'] .form-card,
[data-shape='modern'] .place,
[data-shape='modern'] .leader,
[data-shape='modern'] .feature {
  border-color: var(--line);
}

[data-type='modern'] .section-title-xl {
  font-size: clamp(50px, 7.6vw, 124px);
}

/* ---------- etichetele blocurilor CMS (comutator în panoul demo) ---------- */

.show-blocks [data-block] {
  outline: 2px dashed #e0457b;
  outline-offset: -2px;
}

.show-blocks [data-block]::before {
  content: attr(data-block);
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 60;
  padding: 5px 10px;
  border-radius: 4px;
  background: #e0457b;
  color: #fff;
  font: 700 12px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: 0.02em;
  text-transform: none;
  pointer-events: none;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
}

.show-blocks [data-block][data-new]::before {
  background: #7a3cff;
}

.show-blocks [data-block][data-new] {
  outline-color: #7a3cff;
}

/* =====================================================================
   Opțiunile din widgetul de accesibilitate (clase pe <html>) și tipărirea.
   ===================================================================== */

/* mărimea textului: conținutul paginii se mărește ca la zoom, fără să iasă din ecran */
main,
.newsletter,
.footer {
  zoom: var(--zoom, 1);
}

.a11y-contrast {
  --bg: #ffffff;
  --bg-2: #f0f0f0;
  --surface: #ffffff;
  --ink: #000000;
  --ink-2: #1c1c1c;
  --line: #5c5c5c;
  --line-strong: #000000;
  --accent: #0a3a9e;
  --focus: #c2002f;
  --tint-1: #f0f0f0;
  --tint-2: #f0f0f0;
  --tint-3: #f0f0f0;
}

.a11y-contrast[data-mode='dark'] {
  --bg: #000000;
  --bg-2: #111111;
  --surface: #000000;
  --ink: #ffffff;
  --ink-2: #f0f0f0;
  --line: #a0a0a0;
  --line-strong: #ffffff;
  --accent: #ffe14d;
  --focus: #ffe14d;
  --tint-1: #161616;
  --tint-2: #161616;
  --tint-3: #161616;
}

.a11y-contrast a:not(.btn):not(.brand) {
  text-decoration: underline !important;
}

.a11y-readable {
  --font-display: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --font-text: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --font-ui: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --display-tracking: 0;
  --display-stretch: 100%;
}

.a11y-spacing {
  --lh: 1.95;
  --ls: 0.03em;
  word-spacing: 0.12em;
}

.a11y-spacing p,
.a11y-spacing li {
  line-height: 1.95 !important;
}

.a11y-links a:not(.btn) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}

.a11y-links a:not(.btn):hover {
  background: var(--highlight);
  color: #111;
}

.a11y-cursor,
.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 4l32 18-14 3 9 16-6 3-9-16-10 10z' fill='%23111' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important;
}

.reading-guide {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 280;
  height: 48px;
  margin-top: -24px;
  border-top: 2px solid var(--highlight);
  border-bottom: 2px solid var(--highlight);
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.42);
  pointer-events: none;
}

/* ---------- tipărire ---------- */

@media print {
  .announce,
  .site-header,
  .mnav,
  .newsletter,
  .footer,
  .fab-stack,
  .demo-fab,
  .dock,
  .dock-hello,
  .cookie,
  .share,
  .article-aside,
  .progress-read,
  .toast {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .article-layout {
    display: block;
    padding: 0;
  }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 10pt;
  }
}


/* portret lipsă: inițialele persoanei pe fundal colorat */
.person__initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--tint-2);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0.02em;
}
.media:has(> .person__initials) {
  aspect-ratio: 4 / 5;
}

/* numele școlii pe un singur rând; logo încărcat ca imagine, cu proporțiile lui */
.bar .brand {
  flex: none;
}
.brand__text > span,
.brand__text b {
  white-space: nowrap;
}
img.brand__crest {
  width: auto;
  max-width: 96px;
  object-fit: contain;
}

/* meniu lung (8 elemente sau mai multe): linkuri mai compacte și meniul de telefon mai devreme */
.nav__list[data-many] .nav__link {
  padding: 0 9px;
}
@media (max-width: 1359px) {
  .site-header:has(.nav__list[data-many]) .nav,
  .site-header:has(.nav__list[data-many]) .bar__actions .btn {
    display: none;
  }
  .site-header:has(.nav__list[data-many]) .menu-btn,
  .site-header:has(.nav__list[data-many]) .icon-btn {
    display: inline-flex;
  }
}

/* meniu mare: cardul cu imagine rămâne sus; listele lungi (10+ linkuri) trec pe trei coloane compacte */
.mega__card {
  align-content: start;
  align-self: start;
}
.mega__in:has(.mega__links > li:nth-child(10)) {
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2.6fr);
}
.mega__links:has(> li:nth-child(10)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 12px;
}
.mega__links:has(> li:nth-child(10)) a {
  padding: 8px 12px;
}
.mega__links:has(> li:nth-child(10)) b {
  font-size: 15px;
}

/* cuvinte foarte lungi (nume, denumiri de fișiere, titluri în majuscule) nu ies din pagină */
main h1,
main h2,
main h3,
.file__title,
.attachment b,
.person h3 {
  overflow-wrap: anywhere;
}
.file > div {
  min-width: 0;
}
.pager {
  flex-wrap: wrap;
  row-gap: 8px;
}

/* ---------- paginile de conținut: un singur ax și spații măsurate ---------- */

/* textul pornește de la aceeași margine ca titlul paginii */
.wrap.wrap--narrow.prose {
  max-width: var(--max);
}

.wrap.wrap--narrow.prose > * {
  max-width: 760px;
}

/* două secțiuni vecine cu același fundal: un singur spațiu între ele, nu două */
.section:not(.section--alt, .section--dark, .stats-photo) + .section:not(.section--alt, .section--dark, .stats-photo),
.section--alt + .section--alt {
  padding-top: 0;
}

.section:not(.section--alt, .section--dark, .stats-photo):has(+ .section:not(.section--alt, .section--dark, .stats-photo)),
.section--alt:has(+ .section--alt) {
  padding-bottom: calc(var(--section) * 0.55);
}

/* deschiderea fără fotografie nu lasă un gol înaintea conținutului */
.page-hero:not(:has(.page-hero__media)) {
  padding-bottom: clamp(24px, 3vw, 40px);
}

.page-hero:not(:has(.page-hero__media)) + .section:not(.section--alt, .section--dark, .stats-photo) {
  padding-top: clamp(16px, 2vw, 28px);
}

/* galeria cu puține fotografii: grilă cu atâtea coloane câte fotografii are; pe coloanele
   obișnuite, două poze mici încap una sub alta și ultima coloană ar rămâne goală */
.masonry[data-cols] {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  columns: auto;
}

.masonry[data-cols] .tile {
  margin: 0 !important;
}

.masonry[data-cols='1'] {
  --cols: 1;
  max-width: 760px;
}

.masonry[data-cols='2'] {
  --cols: 2;
}

.masonry[data-cols='3'] {
  --cols: 3;
}

.masonry[data-cols='4'] {
  --cols: 4;
}

@media (max-width: 760px) {
  .masonry[data-cols='3'],
  .masonry[data-cols='4'] {
    --cols: 2;
  }
}

@media (max-width: 480px) {
  .masonry[data-cols] {
    --cols: 1;
  }
}

/* imaginea singură: aliniată cu textul, fără să umple tot ecranul */
.media-single .media {
  width: fit-content;
  max-width: min(100%, 900px, var(--w, 900px));
}

.media-single .media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72svh;
  object-fit: contain;
}

/* eticheta de deasupra titlului: aceeași distanță în toate antetele de secțiune */
.sec-head p.eyebrow,
.cta p.eyebrow {
  margin-bottom: 20px;
}

/* mențiunea cerută de Google când insigna reCAPTCHA e ascunsă */
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-note {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-2);
}

/* mod mentenanță */
.maintenance {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 32px var(--pad);
  background-color: var(--bg);
  background-position: center;
  background-size: cover;
  text-align: center;
}

.maintenance__in {
  max-width: 640px;
}

.maintenance .eyebrow {
  justify-content: center;
}

.maintenance .lead {
  margin-top: 20px;
}

.maintenance[data-photo] :is(h1, .lead) {
  color: #fff;
}

.maintenance[data-photo] .eyebrow {
  color: #fff;
}
