/* Grădinița Nr. 192 „Pisicile Aristocrate”
   Culorile fiecărei pagini vin din theme-tokens.css, generat din
   public/js/themes.js. Aici este doar structura, identică pe toate paginile. */

:root {
  --brown: #5d3a2c;
  --brown-soft: #6d564c;
  --pink: #ed4f8e;
  --pink-soft: #fbdce6;
  --sky: #8bd9fd;
  --cream: #fff8f0;
  --pill-bg: #fef9f2;
  --pill-border: #ddcab4;
  --white: #ffffff;
  --max: 1180px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-ui: "Nunito", system-ui, sans-serif;

  /* Culorile temei. theme-tokens.css le suprascrie pe fiecare pagină; aceste
     valori sunt cele ale paginii principale și acoperă cazul în care foaia
     generată lipsește. */
  --accent: #ed4f8e;
  --accent-dark: #c9376f;
  --band: #8bd9fd;
  --soft: #fdeff4;

  /* Geometria antetului ilustrat, dedusă din imaginea de 1280x720. Linia
     copacilor este la 377px de marginea de jos, deci tot ce e deasupra este
     cer liber pentru text. Ilustrația este limitată la înălțimea ferestrei ca
     pisicile să nu cadă sub prima vizualizare; ce se taie este doar cer. */
  --art-natural-height: 56.25vw;
  --art-below-horizon: 29.45vw;
  --art-height: min(100svh, var(--art-natural-height));
  --sky-height: calc(var(--art-height) - var(--art-below-horizon));
  /* Sigla iese în sus din pastilă, deci spațiul de sus al antetului trebuie
     să fie mereu mai mare decât depășirea, altfel sigla se taie. */
  --logo-height: clamp(66px, 10vh, 112px);
  --logo-overhang: 0.36;
  --nav-pad: clamp(16px, 4.2vh, 40px);
  --nav-space: calc(var(--nav-pad) + 84px);
  --footer-corner-width: clamp(110px, 12vw, 170px);

  --radius-card: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 30px rgba(93, 58, 44, 0.09);
  --shadow-lift: 0 18px 44px rgba(93, 58, 44, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-card) 0;
}

.skip-link:focus {
  left: 0;
}

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

.page-shell {
  background: var(--cream);
}

/* —— Antet: pastila de navigație cu sigla în mijloc —— */
.site-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: var(--nav-pad) 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.site-top a,
.site-top button {
  pointer-events: auto;
}

.site-top--static {
  position: static;
  padding-top: clamp(28px, 5vh, 54px);
  pointer-events: auto;
}

.nav-pill {
  width: min(1120px, 100%);
  background: var(--pill-bg);
  border: 1.2px solid var(--pill-border);
  border-radius: var(--radius-pill);
  padding: 8px 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(93, 58, 44, 0.12);
}

.nav-side {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 4px;
}

.nav-logo {
  display: block;
  padding-inline: 8px;
}

.nav-logo img {
  height: var(--logo-height);
  width: auto;
  margin-block: calc(-1 * var(--logo-overhang) * var(--logo-height)) -6px;
  filter: drop-shadow(0 5px 14px rgba(93, 58, 44, 0.16));
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brown);
  white-space: nowrap;
  transition: color 0.15s ease, transform 0.15s ease;
}

.nav-item svg {
  width: 25px;
  height: 25px;
}

.nav-item.is-active,
.nav-item:hover,
.nav-item:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
}

/* —— Elementul de meniu cu submeniu —— */
.nav-group {
  position: relative;
}

.nav-group-toggle {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  width: 100%;
}

.nav-group-label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Săgeata este mai mică decât pictograma principală și se rotește la
   deschidere, ca starea submeniului să se vadă fără să se citească. */
.nav-group-label svg {
  width: 11px;
  height: 11px;
  transition: transform 0.18s ease;
}

.nav-group-toggle[aria-expanded="true"] .nav-group-label svg {
  transform: rotate(180deg);
}

.nav-group-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  min-width: 208px;
  padding: 8px;
  background: var(--pill-bg);
  border: 1.2px solid var(--pill-border);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(93, 58, 44, 0.18);
}

.nav-group:hover .nav-group-menu,
.nav-group:focus-within .nav-group-menu,
.nav-group.is-open .nav-group-menu {
  display: grid;
  gap: 2px;
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brown);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-subitem svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.nav-subitem.is-active,
.nav-subitem:hover,
.nav-subitem:focus-visible {
  background: var(--soft);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  pointer-events: auto;
}

/* —— Antetul ilustrat al paginii principale —— */
.story-scene {
  position: relative;
  background: var(--sky);
  overflow: hidden;
}

.scene-art {
  width: 100%;
  height: var(--art-height);
  background: url("assets/scene/hero-scene-cats-sky.png") center bottom / cover
    no-repeat;
}

/* Textul ocupă fâșia de cer dintre pastilă și linia copacilor și stă centrat
   în ea, deci rămâne departe de pisici la orice dimensiune a ferestrei. */
.hero-copy {
  position: absolute;
  top: var(--nav-space);
  left: 50%;
  transform: translateX(-50%);
  width: min(660px, 90%);
  height: calc(var(--sky-height) - var(--nav-space));
  display: grid;
  align-content: center;
  text-align: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, calc(0.094 * var(--sky-height)), 2.4rem);
  font-weight: 700;
  line-height: 1.16;
  margin: 0 0 12px;
  color: var(--brown);
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.55);
}

.hero-copy .lead {
  margin: 0 auto 14px;
  max-width: 46ch;
  font-size: clamp(0.72rem, calc(0.036 * var(--sky-height)), 1rem);
  font-weight: 800;
  color: #4a2f24;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.5);
}

.hero-copy .btn-cta {
  font-size: clamp(0.76rem, calc(0.033 * var(--sky-height)), 0.95rem);
  padding: clamp(8px, 1.3vh, 13px) clamp(20px, 2.2vw, 30px);
}

/* —— Antetul paginilor interioare: bandă colorată cu personajul temei —— */
.page-hero {
  position: relative;
  background: var(--band);
  padding: clamp(18px, 3vw, 34px) 0 clamp(44px, 6vw, 76px);
  overflow: hidden;
}

/* Marginea de jos festonată, tăiată în bandă de culoarea paginii. */
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 18px;
  background: radial-gradient(
      circle at 18px 18px,
      var(--cream) 18px,
      transparent 18.5px
    )
    0 0 / 36px 18px repeat-x;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
}

.page-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--brown);
}

.page-hero-copy .lead {
  margin: 0 0 22px;
  max-width: 44ch;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 700;
  color: var(--brown-soft);
}

.page-hero-art {
  display: flex;
  justify-content: center;
}

.page-hero-art img {
  width: auto;
  max-height: clamp(170px, 24vw, 290px);
  background: none;
  filter: drop-shadow(0 16px 26px rgba(93, 58, 44, 0.24));
}

/* —— Butonul principal —— */
.btn-cta {
  display: inline-block;
  justify-self: center;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  padding: 13px 30px;
  box-shadow: 0 12px 26px rgba(93, 58, 44, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.page-hero-copy .btn-cta {
  justify-self: start;
}

.btn-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(93, 58, 44, 0.28);
}

.btn-cta[hidden] {
  display: none;
}

/* —— Blocuri de conținut —— */
.page-main {
  padding-bottom: clamp(30px, 5vw, 58px);
}

.block {
  padding-block: clamp(34px, 4.6vw, 62px);
}

.block-inner {
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
}

.block-inner--narrow {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

.block-head {
  margin-bottom: clamp(20px, 2.6vw, 34px);
  text-align: center;
}

.block-head h2,
.block-inner--narrow h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--brown);
}

.block-intro {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--brown-soft);
  font-weight: 600;
}

.prose p {
  margin: 0 0 16px;
  font-size: 1.04rem;
  color: var(--brown-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Textul introductiv al paginii, puțin mai mare și mai apropiat de bandă. */
.block--richText-lead .prose p {
  font-size: 1.12rem;
  color: var(--brown);
}

.block--richText-centered .block-inner--narrow {
  text-align: center;
}

/* Nota juridică sau practică: card discret, vizibil dar nu zgomotos. */
.block--richText-note .block-inner--narrow {
  background: var(--soft);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3vw, 32px);
}

/* —— Cardurile ilustrate de pe pagina principală —— */
.block--cards-features {
  padding-block: 0;
}

.block--cards-features .block-inner {
  position: relative;
  z-index: 10;
  /* Se suprapune doar peste chenarul de flori din josul ilustrației. */
  margin-top: -58px;
  background: var(--white);
  border-radius: 40px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-lift);
}

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

.feature-card {
  text-align: center;
  border-radius: var(--radius-card);
  padding: 6px;
  transition: transform 0.15s ease;
}

a.feature-card:hover {
  transform: translateY(-4px);
}

.feature-art {
  height: clamp(96px, 11vw, 138px);
  margin-bottom: 10px;
}

.feature-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  margin: 0;
  font-size: clamp(0.88rem, 1.4vw, 1.02rem);
  font-weight: 800;
  color: var(--brown);
}

/* —— Carduri de informație —— */
.block--cards-soft {
  background: var(--soft);
}

/* Numărul de coloane vine din conținut, ca ultimul rând să nu rămână ciobit.
   `--cols-wide` este scris în markup de randarea blocului; media query-urile
   de mai jos îl coboară pe ecrane mici. */
.info-grid {
  display: grid;
  gap: 18px;
  --cols: var(--cols-wide, 3);
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
}

.info-card {
  background: var(--white);
  border: 1.4px solid rgba(93, 58, 44, 0.09);
  border-radius: var(--radius-card);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--brown);
}

.info-card p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 0.97rem;
}

.info-badge {
  display: inline-block;
  margin-bottom: 10px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

.block--cards-soft .info-badge {
  background: var(--white);
}

.info-art {
  height: 108px;
  margin-bottom: 12px;
}

.info-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Varianta conturată: accent colorat pe marginea din stânga. */
.info-grid--outline .info-card {
  border-left: 5px solid var(--accent);
}

/* —— Cifre —— */
.stat-grid {
  display: grid;
  gap: 16px;
  --cols: var(--cols-wide, 4);
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px 18px;
  box-shadow: var(--shadow-card);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: var(--accent);
}

.stat-label {
  font-weight: 800;
  color: var(--brown);
}

.stat-note {
  font-size: 0.9rem;
  color: var(--brown-soft);
}

/* —— Grupe —— */
/* `auto-fill` păstrează coloanele goale, ca rândul de două grupe de la
   programul normal să aibă aceeași lățime de card ca cele zece de deasupra. */
.group-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
}

.group-card {
  display: grid;
  gap: 4px;
  background: var(--white);
  border: 1.4px solid rgba(93, 58, 44, 0.09);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.group-name {
  font-weight: 800;
  color: var(--brown);
}

.group-age {
  justify-self: start;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  padding: 3px 11px;
}

.group-place {
  font-size: 0.9rem;
  color: var(--brown-soft);
}

/* —— Pași —— */
.step-list {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.step-item {
  counter-increment: step;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px 24px 20px 74px;
  box-shadow: var(--shadow-card);
}

.step-item::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 19px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.step-item h3 {
  margin: 0 0 5px;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--brown);
}

.step-item p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 0.97rem;
}

/* —— Programul zilei —— */
.block--schedule {
  background: var(--soft);
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: baseline;
  gap: 18px;
  background: var(--white);
  border-radius: 18px;
  padding: 15px 22px;
  box-shadow: var(--shadow-card);
}

.schedule-time {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--accent-dark);
}

.schedule-body {
  display: grid;
  gap: 3px;
}

.schedule-title {
  font-weight: 800;
  color: var(--brown);
}

.schedule-note {
  font-size: 0.94rem;
  color: var(--brown-soft);
}

/* —— Galerie —— */
.gallery-grid {
  display: grid;
  gap: 18px;
  --cols: var(--cols-wide, 4);
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
}

.gallery-tile {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}

.gallery-tile:hover {
  transform: translateY(-4px);
}

.gallery-tile img {
  width: 100%;
  height: 176px;
  object-fit: contain;
  background: var(--soft);
  background-image: none;
  border-radius: 18px;
  padding: 10px;
}

.gallery-tile figcaption {
  display: grid;
  gap: 3px;
  padding-top: 12px;
  text-align: center;
}

.gallery-name {
  font-weight: 800;
  color: var(--brown);
}

.gallery-note {
  font-size: 0.9rem;
  color: var(--brown-soft);
}

.gallery-empty {
  margin: 0 auto;
  max-width: 46ch;
  text-align: center;
  background: var(--soft);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  color: var(--brown-soft);
  font-weight: 700;
}

/* —— Citat —— */
.quote-card {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  background: var(--white);
  border-radius: 34px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-card);
}

.quote-art {
  width: auto;
  height: clamp(84px, 11vw, 124px);
  margin-bottom: 4px;
}

.quote-card blockquote {
  margin: 0;
  max-width: 50ch;
}

.quote-paw {
  width: 30px;
  height: 30px;
  fill: var(--accent);
  opacity: 0.5;
  margin: 0 auto 8px;
}

.quote-card blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.34;
  color: var(--brown);
}

.quote-card figcaption {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* —— Invitație la acțiune —— */
.cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  background: var(--accent);
  border-radius: 34px;
  padding: clamp(26px, 3.4vw, 40px) clamp(24px, 3.4vw, 46px);
  box-shadow: var(--shadow-lift);
}

.cta-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  margin: 0 0 6px;
  color: var(--white);
}

.cta-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.cta-card .btn-cta {
  background: var(--white);
  color: var(--accent-dark);
  white-space: nowrap;
}

.cta-card .btn-cta:hover {
  background: var(--cream);
}

/* —— Subsol —— */
.site-footer {
  position: relative;
  background: var(--pink-soft);
  padding: 46px 20px 34px;
}

/* Movilițele de flori în ambele colțuri, cea din dreapta oglindită. Pot
   depăși banda în sus, ceea ce nu se vede pentru că pagina din spate este
   de aceeași culoare. */
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: var(--footer-corner-width);
  aspect-ratio: 786 / 656;
  background: url("assets/decor/footer-corner.png") left bottom / contain
    no-repeat;
  pointer-events: none;
}

.site-footer::before {
  left: 0;
}

.site-footer::after {
  right: 0;
  transform: scaleX(-1);
}

.footer-inner {
  position: relative;
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
  padding-inline: clamp(8px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown);
}

.footer-brand p {
  margin: 0 0 2px;
}

.footer-brand a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-paws {
  display: flex;
  gap: 14px;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 4px;
}

.footer-paws svg {
  width: 30px;
  height: 30px;
  fill: #5a3a24;
  transition: fill 0.15s ease, transform 0.15s ease;
}

.footer-paws svg:first-child {
  transform: rotate(-9deg);
}

.footer-paws svg:last-child {
  transform: rotate(9deg);
}

.footer-paws:hover svg,
.footer-paws:focus-visible svg {
  fill: var(--accent);
}

.footer-paws:hover svg:first-child,
.footer-paws:focus-visible svg:first-child {
  transform: rotate(-9deg) translateY(-3px);
}

.footer-paws:hover svg:last-child,
.footer-paws:focus-visible svg:last-child {
  transform: rotate(9deg) translateY(-3px);
}

.footer-copy {
  margin: 0;
  text-align: right;
}

/* —— Secțiunile compuse din date: fișa medicală, documente, avizier —— */
.region-empty {
  margin: 0;
  padding: 26px 30px;
  background: var(--soft);
  border-radius: var(--radius-card);
  color: var(--brown);
  font-weight: 700;
  text-align: center;
}

.profile-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  align-items: start;
  gap: 26px;
  padding: 26px 30px;
  background: var(--white);
  border: 1.4px solid var(--soft);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 30px rgba(93, 58, 44, 0.08);
}

.profile-card + .profile-card {
  margin-top: 18px;
}

.profile-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
  border: 4px solid var(--soft);
}

.profile-photo--empty {
  display: block;
}

.profile-name {
  margin: 0;
  font-size: 24px;
}

.profile-role {
  margin: 2px 0 10px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12.5px;
}

.profile-group {
  margin: -4px 0 10px;
  font-weight: 800;
  font-size: 14px;
}

.team-featured {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.team-director {
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 520px;
  padding: 28px 32px 32px;
  background: var(--white);
  border: 1.4px solid var(--soft);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 40px rgba(93, 58, 44, 0.1);
}

.team-director-photo,
.team-director-photo--empty {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
  border: 6px solid var(--soft);
  margin-bottom: 18px;
}

.team-director .profile-name {
  font-size: 30px;
}

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

.team-card {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 22px 18px 24px;
  background: var(--white);
  border: 1.4px solid var(--soft);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 30px rgba(93, 58, 44, 0.08);
}

.team-card-photo,
.team-card-photo--empty {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
  border: 4px solid var(--soft);
  margin-bottom: 14px;
}

.team-card .profile-name {
  font-size: 20px;
}

.document-group + .document-group {
  margin-top: 34px;
}

.document-group h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.document-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.document-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--white);
  border: 1.4px solid var(--soft);
  border-radius: 18px;
  color: var(--brown);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.document-link:hover,
.document-link:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.document-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.document-copy {
  display: grid;
  gap: 2px;
}

.document-title {
  font-weight: 800;
}

.document-note {
  font-size: 14px;
  opacity: 0.8;
}

.document-size {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.65;
  white-space: nowrap;
}

.notice-board {
  display: grid;
  gap: 18px;
}

.notice-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 22px;
  background: var(--white);
  border: 1.4px solid var(--soft);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 30px rgba(93, 58, 44, 0.08);
}

/* Anunțurile fără fotografie ocupă toată lățimea, fără coloană goală. */
.notice-card:not(:has(.notice-photo)) {
  grid-template-columns: 1fr;
}

.notice-photo {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  border-radius: 18px;
  background: var(--soft);
}

.notice-date {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.notice-title {
  margin: 4px 0 10px;
  font-size: 23px;
}

/* —— Ecrane medii —— */
@media (max-width: 1180px) {
  .nav-item {
    font-size: 10.5px;
    padding: 4px 3px;
  }

  .nav-item svg {
    width: 21px;
    height: 21px;
  }

  .block-inner,
  .page-hero-inner,
  .footer-inner {
    width: calc(100% - 48px);
  }
}

@media (max-width: 1080px) {
  .info-grid,
  .stat-grid,
  .gallery-grid {
    --cols: 2;
  }
}

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

  .cta-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .profile-card,
  .notice-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-photo {
    min-height: 200px;
  }
}

@media (max-width: 620px) {
  .info-grid,
  .stat-grid,
  .gallery-grid {
    --cols: 1;
  }

  .document-link {
    grid-template-columns: auto 1fr;
  }

  .document-size {
    grid-column: 2;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-director-photo,
  .team-director-photo--empty {
    width: 180px;
    height: 180px;
  }
}

/* —— Telefon —— */
@media (max-width: 860px) {
  /* Antetul intră în flux, ca să stea deasupra textului. */
  .site-top {
    position: static;
    pointer-events: auto;
    padding-top: 14px;
  }

  .page-shell--home {
    background: var(--sky);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-pill {
    grid-template-columns: 1fr;
    justify-items: center;
    border-radius: 30px;
    padding: 14px;
    gap: 6px;
  }

  .nav-logo img {
    margin-block: 0 4px;
    height: 86px;
  }

  .nav-side {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  body.nav-open .nav-side {
    display: flex;
  }

  .nav-item {
    font-size: 12px;
  }

  .nav-item svg {
    width: 26px;
    height: 26px;
  }

  /* Bara este deja desfășurată la atingerea butonului „Meniu”, deci
     submeniul stă la vedere în loc să ceară încă o apăsare. */
  .nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-group-toggle {
    display: none;
  }

  .nav-group-menu {
    display: flex;
    position: static;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-subitem {
    flex-direction: column;
    gap: 3px;
    padding: 0;
    font-size: 12px;
  }

  .nav-subitem svg {
    width: 26px;
    height: 26px;
  }

  .nav-logo {
    order: -1;
  }

  /* Pe telefon cerul este prea îngust pentru text suprapus, deci textul
     trece deasupra ilustrației. */
  .story-scene {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
  }

  .hero-copy {
    position: static;
    transform: none;
    order: -1;
    width: auto;
    height: auto;
    display: block;
    padding: 6px 18px 20px;
  }

  .hero-copy h1 {
    font-size: clamp(1.45rem, 6.4vw, 2rem);
  }

  .hero-copy .lead {
    font-size: 0.92rem;
  }

  .hero-copy .btn-cta {
    font-size: 0.9rem;
    padding: 12px 26px;
  }

  /* Ilustrația este scundă pe telefon, deci cardul nu mai urcă peste pisici. */
  .block--cards-features .block-inner {
    margin-top: 14px;
    border-radius: 28px;
    padding: 20px 16px;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .page-hero-copy .lead {
    margin-inline: auto;
  }

  .page-hero-copy .btn-cta {
    justify-self: center;
  }

  .page-hero-art {
    order: -1;
  }

  .page-hero-art img {
    max-height: 168px;
  }

  .block-inner,
  .block-inner--narrow,
  .page-hero-inner,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .step-item {
    padding: 18px 20px 20px 62px;
  }

  .step-item::before {
    left: 16px;
    width: 32px;
    height: 32px;
  }

  /* Textul din subsol rămâne liber de movilițele din colțuri. */
  .site-footer {
    padding-bottom: 108px;
  }

  .footer-inner {
    padding-inline: 0;
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-copy {
    text-align: center;
  }
}
