/* PsihologBrașov: paleta „Clinical Premium” din caietul de sarcini (cap. 3). Fără fonturi sau resurse externe. */
/* Fonturile sunt găzduite pe site (fără servicii externe), cu subsetul latin-ext care conține ă, ș, ț (U+0103, U+0219,
   U+021B). Sursa: @fontsource-variable/manrope și /inter 5.3.0, licența SIL OFL 1.1 (fonts/LICENSE-*.txt). */
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/manrope-latin-ext-wght-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/manrope-latin-wght-normal.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;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-ext-wght-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --navy: #173747;
  --teal: #267F78;
  --teal-dark: #1d635d;
  --cream: #F6F8F6;
  --warm: #EBC6B6;
  --ink: #1d2a30;
  --muted: #5a6a70;
  --line: #dde5e3;
  --card: #ffffff;
  --ok: #1f7a4d;
  --warn: #a4501b;
  --danger-bg: #fbeee9;
  --radius: 12px;
  --font-head: "Manrope", "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--font-body); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow, .narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* Antet */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-img { width: 46px; height: 46px; flex: none; }
.logo strong { display: block; font: 700 1.15rem var(--font-head); }
.logo small { display: block; color: var(--muted); font-size: .75rem; }
.main-nav { display: flex; gap: 26px; flex-wrap: wrap; margin-left: auto; font-size: .95rem; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.main-nav a:hover { color: var(--teal-dark); }
.header-side { margin-left: 28px; display: flex; gap: 14px; align-items: center; }
.psy-link { color: var(--teal-dark); text-decoration: none; font-weight: 600; font-size: .92rem; }
.psy-link:hover { text-decoration: underline; }
.main-nav a[aria-current="page"] { color: var(--teal-dark); box-shadow: inset 0 -2px 0 var(--teal); padding-bottom: 4px; }
.search-link { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .icon { width: 26px; height: 26px; }
.mobile-menu nav { position: absolute; right: 0; top: 44px; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(23, 55, 71, .15); padding: 8px; display: flex; flex-direction: column; min-width: 230px; }
.mobile-menu nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.mobile-menu nav a[aria-current="page"] { background: #e6f3ef; color: var(--teal-dark); }
.bottom-nav { display: none; }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; color: var(--teal-dark); text-decoration: underline; cursor: pointer; font: inherit; }
/* Acțiuni de ștergere: roșii și separate de butonul principal. */
button.link.danger, .btn.danger { color: #b3261e; }
.btn.danger { background: #fff; border: 1.5px solid #e2a29c; }
.btn.danger:hover { background: #fdecea; color: #8c1d18; }
.danger-form { margin-top: 14px; }
/* Spațiu între conținut și subsol (formularele se terminau lipite de subsol). */
main { padding-bottom: 40px; }

/* Butoane și formulare */
.btn { display: inline-block; background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--teal-dark); border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--cream); color: var(--navy); }
.btn-small { padding: 6px 12px; font-size: .9rem; }
.form label, .filters label { display: block; font-weight: 600; margin: 14px 0 4px; }
.form label.check, label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], input[type=url], input[type=number], input[type=date], input:not([type]), select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #b9c7c4; border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }
textarea { resize: vertical; }
.form .btn, .filters .btn { margin-top: 18px; }
fieldset { border: 0; padding: 0; margin: 10px 0; }
legend { font-weight: 600; }
.hint { color: var(--muted); font-size: .88rem; margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; }
.errors { background: var(--danger-bg); border: 1px solid #e3b6a4; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.errors ul { margin: 0; padding-left: 18px; }
.flash { background: #e6f3ef; border: 1px solid #b5d9cd; border-radius: 8px; padding: 10px 14px; margin: 16px 0 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* Carduri și secțiuni */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.card.highlight { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(38, 127, 120, .12); }
.section { padding: 28px 16px; }
.hero { background: linear-gradient(135deg, #fff 0%, #eef4f2 60%, #f7ece6 100%); border-bottom: 1px solid var(--line); padding: 48px 0 36px; }
.hero h1 { max-width: 760px; }
/* Fotografia din pagina principală: pe ecrane de peste 1024 px, fundal în dreapta, cu textul pe peretele liber din stânga;
   pe tabletă și telefon, deasupra textului. */
.hero.hero-photo { position: relative; overflow: hidden; background: #f3efe9; padding: 0; }
.hero-media img { display: block; width: 100%; height: auto; }
.hero-content { padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 1025px) {
  .hero.hero-photo { min-height: clamp(440px, 41.7vw, 620px); display: flex; align-items: center; }
  .hero-media img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 72% center; }
  .hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(246, 243, 238, .92) 0%, rgba(246, 243, 238, .78) 38%, rgba(246, 243, 238, 0) 62%); }
  .hero-content { position: relative; z-index: 2; padding-top: 48px; padding-bottom: 48px; }
  .hero-content > *, .hero-content h1 { max-width: 600px; }
  .hero-content .lead { max-width: 500px; }
}
.page-head { background: linear-gradient(135deg, #fff 0%, #eef4f2 100%); border-bottom: 1px solid var(--line); padding: 20px 0 12px; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 16px 0 12px; }
.page-head .crumbs { margin-top: 0; }
/* Antetul directorului și al paginii de servicii: fotografia în dreapta, textul pe peretele liber din stânga. */
.page-head-photo { background: #f3efe9 url("img/antet-director-1200.webp") right center / cover no-repeat; padding: 28px 0 24px; }
@media (min-width: 1201px) { .page-head-photo { background-image: url("img/antet-director-2400.webp"); } }
.page-head-photo .wrap > * { max-width: 560px; }
/* Paginile pe localități au un text mai lung sub titlu: nu trebuie să treacă peste ilustrație. */
.locality-head .wrap > .lead { max-width: 440px; }
@media (max-width: 1100px) { .locality-head { background: linear-gradient(135deg, #fff 0%, #eef4f2 100%); } .locality-head .wrap > .lead { max-width: 640px; } }
@media (max-width: 700px) { .page-head-photo { background: linear-gradient(135deg, #fff 0%, #eef4f2 100%); } }
.page-photo { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0 20px; }
.domain-photo { float: right; width: 220px; height: 165px; object-fit: cover; border-radius: 10px; margin: 0 0 12px 20px; }
.service-domain::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) { .domain-photo { float: none; width: 100%; height: auto; margin: 0 0 12px; } }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Căutarea din pagina principală: bară albă cu lupă și buton verde (macheta 01). */
.search { display: flex; align-items: center; gap: 8px; max-width: 640px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 6px 6px 6px 14px; margin: 20px 0 16px; box-shadow: 0 6px 24px rgba(23, 55, 71, .10); }
.search input { border: 0; padding: 10px 4px; }
.search input:focus { outline: none; }
.search .search-icon { color: var(--muted); }
.search .btn { padding: 11px 26px; }
.chips { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 12px 0; }
.chips a { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  text-decoration: none; color: var(--ink); font-size: .92rem; box-shadow: 0 1px 2px rgba(23, 55, 71, .06); }
.chips a:hover { border-color: var(--teal); }
.chips.active a { background: #e6f3ef; border-color: #b5d9cd; }
.count { color: var(--muted); }
.area-badge { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .92); border-radius: 12px;
  padding: 8px 14px; font-size: .8rem; line-height: 1.25; color: var(--navy); margin: 0 16px 16px; width: max-content; }
.area-badge .icon { color: var(--teal); }
@media (min-width: 1025px) { .area-badge { position: absolute; right: 32px; bottom: 24px; z-index: 2; margin: 0; } }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 1.45rem; }
.section-head > a { font-size: .9rem; font-weight: 600; text-decoration: none; }
.section-head p { margin: 4px 0 0; }
.arrow-circle { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f7ddd2; color: var(--navy); flex: none; }
.arrow-circle .icon { width: 16px; height: 16px; }
.tag { display: inline-block; align-self: flex-start; font-size: .74rem; font-weight: 600; color: var(--teal-dark);
  background: #e6f3ef; border-radius: 999px; padding: 2px 10px; margin: 0; }

/* Servicii populare: imagine în stânga, text, săgeată (macheta 01). */
.service-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card { position: relative; display: flex; gap: 14px; height: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 3px rgba(23, 55, 71, .05); }
.service-card:hover { border-color: var(--teal); }
.service-media { display: grid; place-items: center; width: 92px; height: 92px; flex: none; border-radius: 10px; background: #fdf1eb; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-icon { width: 38px; height: 38px; color: var(--teal-dark); stroke-width: 1.5; }
.service-icon.inline { width: 26px; height: 26px; vertical-align: -5px; margin-right: 8px; }
.service-body { display: flex; flex-direction: column; gap: 4px; padding-bottom: 30px; }
.service-body strong { font-family: var(--font-head); color: var(--navy); line-height: 1.25; }
.service-text { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.service-count { font-size: .84rem; font-weight: 600; color: var(--teal-dark); }
.service-card .arrow-circle { position: absolute; left: 120px; bottom: 12px; }

/* Specialiști recomandați: 8 carduri pe un rând pe ecran lat; carusel pe telefon (macheta 01). */
.featured-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.psy-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.psy-tile .photo-placeholder, .psy-tile .photo { width: 100%; height: auto; aspect-ratio: 5 / 6; border-radius: 0; background-size: 45%; }
.tile-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 12px; flex: 1; }
.tile-body h3 { font-size: .95rem; margin: 2px 0 0; }
.tile-body h3 a { color: var(--navy); text-decoration: none; }
.tile-body h3 a:hover { text-decoration: underline; }
.tile-body p { margin: 0; }
.tile-title { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.tile-title + .tile-title { margin-top: 2px; }
.tile-foot { display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding-top: 8px; }
.tile-fact { display: flex; gap: 5px; align-items: center; font-size: .8rem; }
.tile-fact .icon { width: 14px; height: 14px; color: var(--muted); }
.tile-foot .tile-price { font-size: .84rem; font-weight: 600; color: #b5532e; margin-top: 2px; }
.badge-pill { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: .72rem; font-weight: 600;
  color: var(--ok); background: #e3f1ea; border-radius: 999px; padding: 2px 8px; }
.badge-pill .icon { width: 13px; height: 13px; }
.btn-block { display: flex; justify-content: center; align-items: center; gap: 5px; width: 100%; padding: 8px 6px; font-size: .82rem; white-space: nowrap; }
.btn-block .icon { width: 14px; height: 14px; }
.tile-foot .btn-block { margin-top: 8px; }
@media (max-width: 1200px) { .featured-grid { grid-template-columns: repeat(4, 1fr); } }

.locality-chips .count { font-size: .82rem; }

/* Conținut demonstrativ (doar în previzualizare): ghid, articole, întrebări frecvente. */
.demo-note { background: #fff8e6; border: 1px dashed #d9b45a; border-radius: 8px; padding: 8px 12px; font-size: .85rem; color: #7a5a10; }
.guide-grid { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.guide-card { display: flex; gap: 14px; align-items: flex-start; height: 100%; background: #fbeee8; border-radius: var(--radius);
  padding: 18px 18px 46px; text-decoration: none; color: var(--ink); position: relative; }
.guide-card strong { display: block; color: var(--navy); font-family: var(--font-head); margin-bottom: 4px; }
.guide-card .small { color: var(--muted); }
.guide-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--navy); flex: none; }
.guide-icon .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.guide-card .arrow-circle { position: absolute; right: 14px; bottom: 12px; background: var(--teal); color: #fff; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.article-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.article-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.article-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
.article-card strong { font-family: var(--font-head); color: var(--navy); font-size: .92rem; line-height: 1.3; }
.article-card div { display: flex; flex-direction: column; gap: 6px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 11px 14px; font-size: .92rem; list-style: none; display: flex; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: #e6f3ef; color: var(--teal-dark); font-weight: 700; }
.faq details[open] summary::before { content: "\2212"; }
.faq details p { padding: 0 14px 12px 46px; margin: 0; }
.faq details > div { padding: 0 14px 4px 46px; }
.faq details > div p { padding: 0 0 8px; }

.service-domain .section-head { margin-bottom: 4px; }

@media (max-width: 1024px) {
  .service-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  /* Pe tabletă și telefon, cardurile psihologilor se derulează orizontal, ca în machetă. */
  .featured-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 10px; }
  .featured-grid > li { flex: 0 0 min(30%, 200px); scroll-snap-align: start; }
}
@media (max-width: 600px) {
  /* Pe telefon, serviciile sunt iconițe rotunde pe un rând, ca în macheta mobilă. */
  .service-grid { display: flex; overflow-x: auto; gap: 8px; }
  .service-grid > li { flex: 0 0 31%; }
  .service-card { flex-direction: column; align-items: center; text-align: center; padding: 12px 8px; gap: 8px; }
  .service-media { width: 52px; height: 52px; border-radius: 50%; background: #e6f3ef; }
  .service-icon { width: 26px; height: 26px; }
  .service-body { padding: 0; }
  .service-body strong { font-size: .78rem; font-weight: 600; }
  .service-text, .service-count, .service-card .arrow-circle { display: none; }
  .featured-grid > li { flex-basis: 42%; }
  .guide-grid { grid-template-columns: 1fr; gap: 8px; }
  .guide-card { align-items: center; padding: 12px 14px; }
  .guide-card .small { display: none; }
  .guide-icon { width: 40px; height: 40px; border-radius: 10px; background: #f7ddd2; }
  .guide-card .arrow-circle { position: static; margin-left: auto; background: none; color: var(--muted); }
  .article-list { display: flex; overflow-x: auto; }
  .article-list > li { flex: 0 0 70%; }
}

/* Director */
.directory { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding-top: 20px; padding-bottom: 32px; }
.filters form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 20px; position: sticky; top: 12px; }
.filters label:first-of-type { margin-top: 0; }
.filters .btn { width: 100%; }
.more-filters summary { cursor: pointer; font-weight: 600; margin-top: 14px; padding: 10px 12px; border: 1px solid #b9c7c4;
  border-radius: 8px; background: var(--cream); list-style-position: inside; }
@media (min-width: 901px) { .more-filters summary { display: none; } }
.reset { display: block; text-align: center; margin-top: 10px; font-size: .92rem; }
.results-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.results-head p { margin: 0; }
.psy-card { display: grid; grid-template-columns: 96px 1fr 190px; gap: 18px; align-items: start; }
.photo-placeholder, .photo { width: 96px; height: 120px; border-radius: 10px; }
.photo-placeholder { background: #dfe7e5 url("placeholder.svg") center / 60% no-repeat; }
.photo { display: block; object-fit: cover; background: #dfe7e5; }
.photo-placeholder.large, .photo.large { width: 132px; height: 164px; }
.psy-name { font-size: 1.2rem; margin-bottom: 4px; }
.psy-name a { text-decoration: none; color: var(--navy); }
.psy-name a:hover { text-decoration: underline; }
.psy-spec { color: var(--muted); margin-bottom: 8px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .94rem; }
.facts li::before { content: "•"; color: var(--teal); margin-right: 6px; }
.psy-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.psy-side .btn { margin-top: 8px; }
.price { font-weight: 600; margin: 0; }
.badge-ok { display: inline-block; color: var(--ok); font-weight: 600; font-size: .92rem; margin: 0 0 8px; }
.empty { text-align: center; padding: 32px 20px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 24px 0; }
.pager a, .pager span { min-width: 40px; padding: 8px 12px; border-radius: 8px; text-align: center; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.pager .current { background: var(--teal); color: #fff; border-color: var(--teal); }
.pager .gap { border: 0; background: none; }

/* Profil */
.profile-head { display: flex; gap: 24px; align-items: flex-start; }
.profile-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding-bottom: 32px; }
.profile-grid .card:first-child { margin-top: 0; }
.competencies { list-style: none; padding: 0; margin: 0 0 12px; }
.competencies li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.competencies li:last-child { border-bottom: 0; }
.service-list { list-style: none; padding: 0; margin: 0 0 8px; }
.service-list li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 0; }
.service-list li > div { display: flex; flex-direction: column; }
.service-price-tag { font-weight: 700; color: #b5532e; white-space: nowrap; }
.service-price-tag.muted { color: var(--muted); font-weight: 500; }
.service-row { border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px 12px; margin: 10px 0; }
.service-row[hidden] { display: none; }
.service-row label { margin-top: 8px; }
.service-row legend { padding: 0 6px; font-size: .9rem; color: var(--muted); }
.service-price { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr 1fr; gap: 10px; }
.service-price label { margin-top: 10px; font-size: .88rem; }
.photo-gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo-gallery li { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 12px; }
.photo-gallery .photo { width: 100%; height: auto; aspect-ratio: 4 / 5; }
@media (max-width: 600px) { .service-price { grid-template-columns: 1fr 1fr; } }
.availability { margin: 4px 0; font-weight: 600; color: var(--muted); }
.availability.accepting { color: var(--ok); }
.availability.accepting::before { content: "●"; margin-right: 6px; }
.availability.not_accepting { color: var(--warn); }
.availability-card.accepting { border-color: #b5d9cd; background: #f3faf7; }
.availability-card.unconfirmed { border-color: var(--warm); background: #fdf6f2; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.check-chip { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  cursor: pointer; font-weight: 400; margin: 0; background: #fff; }
.check-chip:has(input:checked) { border-color: var(--teal); background: #e6f3ef; }
.tag-chips a { background: #e6f3ef; border-color: #b5d9cd; }
.mini-chips { margin: 4px 0 8px; gap: 6px; }
.mini-chips span { display: inline-block; font-size: .78rem; background: #eef4f2; border-radius: 999px; padding: 2px 10px; }
.details-pairs { grid-template-columns: 150px 1fr; margin-top: 12px; }
.trainings { padding-left: 20px; margin: 4px 0 12px; }
.office-address { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 10px; }
.office-address .icon { color: var(--teal); margin-top: 2px; }
.similar-grid { grid-template-columns: repeat(4, 1fr); }
.article-grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-grid .article-card img { height: 170px; }
.article-card a { color: inherit; text-decoration: none; }
.article-card strong a:hover { text-decoration: underline; color: var(--navy); }
.article-card .muted a { color: var(--teal-dark); }
.chips a[aria-current="page"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.article-body h2 { margin-top: 1.4em; }
.article-body ul { padding-left: 22px; }
.article-meta { display: flex; gap: 12px; align-items: center; }
.article-meta .avatar { width: 48px; height: 48px; border-radius: 50%; background-size: 70%; object-fit: cover; }
.author-box { display: flex; gap: 16px; align-items: center; }
.author-box .photo, .author-box .photo-placeholder { width: 72px; height: 90px; }
.author-box h2 { margin: 0 0 8px; }
.author-box p { margin: 0; }
.article-status { font-size: .82rem; font-weight: 600; white-space: nowrap; color: var(--muted); }
.article-status.published { color: var(--ok); }
.article-status.pending { color: var(--teal-dark); }
.article-status.rejected { color: var(--warn); }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } .similar-grid { grid-template-columns: 1fr 1fr; } }
.editor-bar { display: flex; gap: 4px; margin: 4px 0 -1px; }
.editor-bar button { min-width: 36px; height: 32px; border: 1px solid #b9c7c4; border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--cream);
  font: 700 .9rem var(--font-body); cursor: pointer; color: var(--navy); }
.editor-bar button:nth-child(2) { font-style: italic; }
.editor-bar button:hover { background: #e6f3ef; }
.rich ul, .rich ol { padding-left: 22px; }
.rich p:last-child { margin-bottom: 0; }
.booking-banner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #f3faf7; border-color: #b5d9cd; }
.booking-banner h2 { margin: 0 0 4px; }
.booking-banner p { margin: 0; }
.booking-intro { display: flex; gap: 16px; align-items: center; }
.booking-intro p:last-child { margin-bottom: 0; }
.notice { background: #fff8e6; border: 1px solid #ecd9a3; border-radius: 10px; padding: 10px 14px; }
.count-badge { display: inline-block; font-size: .8rem; background: #b3261e; color: #fff; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.booking-request.new { border-color: var(--teal); }
.booking-toggle p { margin-bottom: 8px; }
.check-grid.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 460px; overflow-y: auto; padding: 2px; }
.check-grid.compact .check-chip { padding: 6px 8px; font-size: .88rem; }
.check-chip[hidden] { display: none; }
.test-chips a { font-size: .82rem; padding: 3px 10px; }
.reveal-form { margin: 0 0 12px; }
.masked { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; color: var(--muted); letter-spacing: .05em; }
.masked .icon { color: var(--teal); }
.reveal-form .errors { margin-top: 10px; }
.photo-form { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.photo-form .photo, .photo-form .photo-placeholder { width: 120px; height: 150px; }
.contact { list-style: none; padding: 0; margin: 0 0 12px; }
.contact li { padding: 4px 0; }
.contact-phone a, .contact-email a { display: inline-flex; align-items: center; gap: 8px; }
.contact-phone a { font-family: var(--font-head, inherit); font-size: 1.4rem; font-weight: 700; color: #b5532e; text-decoration: none; letter-spacing: .02em; }
.contact-phone a:hover { text-decoration: underline; }
.contact-phone .icon, .masked-phone .icon { width: 22px; height: 22px; }
.masked-phone { font-size: 1.4rem; font-weight: 700; color: #b5532e; }
.masked-phone .icon, .contact-phone .icon { color: #b5532e; }
.claim-box { background: #fdf6f2; border-color: var(--warm); }
.claim-banner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.claim-banner p { margin: 0; }
.prose h2 { margin-top: 1.4em; }
.prose > h2:first-child { margin-top: 0; }

/* Criză (macheta 01: card roz cu iconiță și casete pe linie) și subsol pe coloane. */
.crisis { padding-top: 8px; padding-bottom: 24px; }
.crisis-card { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--danger-bg); border: 1px solid #f0d2c6; border-radius: var(--radius); padding: 18px 20px; }
.crisis-intro { display: flex; gap: 14px; align-items: center; max-width: 380px; }
.crisis-intro strong { display: block; font: 700 1.15rem var(--font-head); color: var(--navy); }
.crisis-intro p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }
.crisis-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #c2412d; flex: none; }
.crisis-icon .icon { width: 30px; height: 30px; }
.crisis-lines { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.crisis-lines a { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #efd3c7; border-radius: 10px;
  padding: 8px 12px 8px 8px; text-decoration: none; color: var(--ink); }
.crisis-lines a:hover { border-color: #c2412d; }
.crisis-lines .box { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--teal); color: #fff; flex: none; }
.crisis-lines .urgent .box { background: #c2412d; }
.crisis-lines b { display: block; font-size: .86rem; }
.crisis-lines small { display: block; font-size: .74rem; color: var(--muted); }
.site-footer { background: var(--navy); color: #dbe6ea; padding: 36px 0 16px; }
.site-footer a { color: #dbe6ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 24px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.site-footer nav { display: flex; flex-direction: column; gap: 7px; font-size: .9rem; }
.site-footer h2 { color: #fff; font-size: .95rem; margin: 0 0 6px; }
.logo-light, .logo-light strong { color: #fff; }
.logo-light small { color: #a9bcc4; }
.footer-brand p { margin-top: 12px; color: #a9bcc4; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .15);
  margin-top: 28px; padding-top: 14px; color: #a9bcc4; }

/* Administrare */
a.stat { text-decoration: none; color: var(--ink); }
a.stat:hover { border-color: var(--teal); }
.task-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.task-list li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px; }
.task-list .num { font: 700 1.4rem var(--font-head); color: var(--navy); min-width: 2ch; }
.task-list .btn { margin-left: auto; }
.nowrap { white-space: nowrap; }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.filters-admin .check { margin: 0; font-size: .9rem; }
.competency-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin: 8px 0; }
.competency-row legend { grid-column: 1 / -1; font-size: .9rem; }
@media (max-width: 900px) { .area-admin .main-nav { display: flex; order: 3; width: 100%; gap: 14px; margin-left: 0; font-size: .9rem; } }
@media (max-width: 600px) { .competency-row { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { margin: 0; }
.stat .num { display: block; font: 700 1.8rem var(--font-head); color: var(--navy); }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 12px 0; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #eef4f2; font-size: .9rem; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.toolbar input, .toolbar select { width: auto; flex: 1 1 200px; }
.pairs { display: grid; grid-template-columns: 220px 1fr; gap: 6px 16px; margin: 0; }
.pairs dt { color: var(--muted); }
.pairs dd { margin: 0; }
.ok { color: var(--ok); font-weight: 600; }
.warn { color: var(--warn); font-weight: 600; }
.link-box { background: var(--cream); border: 1px dashed var(--teal); border-radius: 8px; padding: 10px; overflow-wrap: anywhere; }
.issues { max-height: 320px; overflow: auto; font-size: .9rem; }

/* Mobil */
@media (max-width: 900px) {
  .directory, .profile-grid { grid-template-columns: 1fr; }
  .filters form { position: static; }
  .psy-card { grid-template-columns: 72px 1fr; }
  .photo-placeholder, .photo { width: 72px; height: 90px; }
  .psy-side { grid-column: 1 / -1; text-align: left; align-items: stretch; }
  .psy-side .btn { width: 100%; }
}
@media (max-width: 900px) {
  .main-nav, .search-link, .psy-link { display: none; }
  .mobile-menu { display: block; }
  .header-side { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-row { gap: 8px 16px; min-height: 0; }
  .logo small { font-size: .68rem; }
  .logo-img { width: 38px; height: 38px; }
  .footer-grid { grid-template-columns: 1fr; }
  .crisis-lines { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .crisis-lines a { padding: 6px; }
  body.area-public { padding-bottom: 64px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff;
    border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--ink); text-decoration: none; }
  .bottom-nav a[aria-current="page"] { color: var(--teal-dark); font-weight: 600; }
  .bottom-nav .icon { width: 22px; height: 22px; }
  .search .btn { padding: 10px 14px; }
  .hero { padding: 28px 0 20px; }
  .profile-head { flex-direction: column; }
  .pairs { grid-template-columns: 1fr; }
  .pairs dt { margin-top: 8px; }
  .table { display: block; overflow-x: auto; }
}

/* Administrare › Conținut: rândurile de întrebări (ordinea + întrebarea) și ajutorul de formatare. */
.faq-q { display: flex; gap: 8px; }
.faq-q .order { width: 70px; flex: none; }
.faq-q input:not(.order) { flex: 1; }
.hint-box { margin-top: 12px; }
.hint-box summary { cursor: pointer; }
.preview h1 { font-size: 1.6rem; }

/* Contul psihologului: panoul „Creditele mele”. */
.credits-card { border-color: var(--teal); }
.credits-lead { font-size: 1.05rem; }
.credits-places { list-style: none; padding: 0; margin: 0 0 12px; }
.credits-places li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.credits-places .icon { color: var(--teal); flex: none; }
.credits-how { padding-left: 18px; }
.credits-how strong { color: #b5532e; }
.break { overflow-wrap: anywhere; }

/* Contul psihologului: antet comun, coloana principală (2/3) și banda laterală (1/3); editare la cerere. */
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin: 24px 0 20px; }
.account-id { display: flex; gap: 18px; align-items: flex-start; }
.account-id h1 { margin: 0 0 4px; }
.account-id p { margin: 0 0 2px; }
.account-photo { width: 72px; flex: none; position: relative; }
.account-photo .photo, .account-photo .photo-placeholder { width: 72px; height: 96px; border-radius: 8px; object-fit: cover; }
.photo-change > summary { font-size: .78rem; color: var(--teal); cursor: pointer; list-style: none; text-align: center; margin-top: 6px; white-space: nowrap; }
.photo-change > summary::-webkit-details-marker { display: none; }
.photo-panel { position: absolute; z-index: 5; width: min(340px, 86vw); margin-top: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.account-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.account-main, .account-side { display: flex; flex-direction: column; gap: 16px; }
.account-main .card, .account-side .card { margin: 0; padding: 18px 20px; }
.account-layout h2 { font-size: 1.08rem; margin: 0; }
.account-layout .section-head { margin-bottom: 10px; align-items: center; }
.account-layout h3 { font-size: .95rem; margin: 16px 0 6px; }
.edit-link { font-size: .85rem; font-weight: 600; color: var(--teal); text-decoration: none; cursor: pointer; }
.edit-link:hover { text-decoration: underline; }
.edit-box { margin-top: 10px; }
.edit-box > summary { list-style: none; display: inline-block; }
.edit-box > summary::-webkit-details-marker { display: none; }
.edit-box[open] > summary { display: none; }
.edit-box .form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.edit-box .actions .btn, .account-side .form .btn { margin-top: 12px; }
.field-label { font-size: .78rem; color: var(--muted); margin: 10px 0 2px; }
.field-value { font-weight: 600; margin: 0; }
.chips.static { margin: 4px 0 6px; }
.chips.static li { padding: 4px 10px; font-size: .85rem; background: var(--soft, #eef5f3); border-radius: 999px; }
.fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "⌄"; color: var(--teal); margin-left: 6px; }
.fold[open] > summary::after { content: "⌃"; }
.fold-count { margin-left: auto; font-size: .85rem; color: var(--teal); font-weight: 600; }
.fold[open] > summary { margin-bottom: 10px; }
.booking-mini { list-style: none; padding: 0; margin: 0; }
.booking-mini li { padding: 8px 0; border-top: 1px solid var(--line); }
.booking-mini li:first-child { border-top: 0; }
.booking-mini li.new strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b5532e; margin-right: 6px; }
.availability-now { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; }
.availability-now .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.availability-card.accepting .dot { background: #2e8b57; }
.availability-card.not_accepting .dot { background: #b5532e; }
.credits-balance { font-size: 1.05rem; margin: 6px 0; }
.credits-balance strong { font-size: 1.6rem; }
.credits-more { margin-top: 8px; }
.credits-more > summary { list-style: none; }
.credits-more > summary::-webkit-details-marker { display: none; }
.views-card strong { font-size: 1.15rem; }
.bio-preview p { margin: 0 0 8px; }
@media (max-width: 960px) {
  /* Pe telefon: identitate, solicitări, disponibilitate, servicii, apoi restul, indiferent de coloană. */
  .account-layout { display: flex; flex-direction: column; gap: 16px; }
  .account-main, .account-side { display: contents; }
  .account-layout .card { order: 10; }
  .account-layout .o-requests { order: 1; }
  .account-layout .o-availability { order: 2; }
  .account-layout .o-services { order: 3; }
  .account-head .btn { width: 100%; text-align: center; }
}
.credits-card code { overflow-wrap: anywhere; word-break: break-all; }
.captcha-input { max-width: 120px; }
/* „Editează” din formularele deschise la cerere stă sus, în dreapta titlului, ca la celelalte secțiuni. */
.account-layout .card { position: relative; }
.edit-box > summary { position: absolute; top: 20px; right: 20px; }
.account-photo .photo-placeholder { display: grid; place-items: center; }

/* Profilul: datele de contact apar sus în coloana din dreapta pe calculator și imediat sub antet pe telefon. */
.contact-mobile { display: none; }
@media (max-width: 900px) {
  .contact-mobile { display: block; }
  .contact-desktop { display: none; }
}

/* Administrare › Mesaje: previzualizarea emailului. */
.mail-preview { white-space: pre-wrap; font: inherit; font-size: .92rem; background: #f6f8f7; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }

/* Pașii de după trimiterea unei cereri (revendicare, înscriere). */
.steps { padding-left: 22px; margin: 8px 0; }
.steps li { margin: 6px 0; }

/* Mențiunea „Supervizor” lângă specialitate, pe profil (declarată de psiholog). */
.tag-supervisor { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--teal); background: #e6f3ef; border-radius: 999px; padding: 1px 9px; margin-left: 6px; vertical-align: middle; }

/* Tabelele late din administrare (formularele de date): derulare orizontală în loc să iasă din pagină. */
.table-scroll { overflow-x: auto; }
.table-scroll .table td { white-space: nowrap; }

/* Tabelul formularelor de date, pentru tipărire / PDF. */
.print-sheet { max-width: 1400px; margin: 0 auto; padding: 16px; }
.print-table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-bottom: 18px; }
.print-table th, .print-table td { border: 1px solid #9aa; padding: 4px 6px; text-align: left; vertical-align: top; }
.print-table th { background: #eef4f2; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .site-header, .site-footer, .bottom-nav, .no-print, .flash { display: none !important; }
  body { background: #fff; }
  .print-sheet { padding: 0; max-width: none; }
  .print-table { font-size: 8.5pt; }
}
