/* ============================================================
   Stagium — „Foaia de observație" (editorial clinic, hârtie caldă)
   MOBILE-FIRST: baza e telefonul; ≥720px tabletă; ≥1024px desktop
   (valorile desktop = prototipul, pixel cu pixel).
   ============================================================ */

:root {
  --paper: #ffffff;
  --ink: #1b2422;
  --ink-2: #38413e;
  --gray-1: #4a5350;
  --gray-2: #6e7672;
  --gray-3: #8c948f;
  --green: #1f6159;
  --green-hover: #1a534c;
  --green-tint: #eaf2f0;
  --green-tint-border: #cfe0dc;
  --amber-text: #8c6a1f;
  --amber-bg: #f6edd8;
  --red-text: #a33b2c;
  --red-bg: #f4e0db;
  --night: #1b2e2b;
  --night-sub: #b8c7c2;
  --night-accent: #7fb8ad;
  --border-card: #e5e0d6;
  --border-input: #ddd6c8;
  --divider: #f1ede3;
  --serif: "Newsreader", serif;
  --sans: "Public Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --pad-x: 20px; /* mobil → suprascris la breakpoint-uri */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* sticky footer: pe paginile scurte (cont, 404, preferințe) footerul stă la baza
     ecranului, nu plutește la mijloc cu spațiu gol dedesubt */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
}
button {
  font-family: var(--sans);
}

@keyframes fadeUp {
  from {
    transform: translateY(8px);
  }
  to {
    transform: none;
  }
}
@keyframes pop {
  from {
    transform: scale(0.96);
  }
  to {
    transform: scale(1);
  }
}
@keyframes sheetUp {
  from {
    transform: translateY(24px);
    opacity: 0.7;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

/* zona React (/app) montează în #root — același sticky footer */
#root {
  flex: 1;
  display: flex;
  flex-direction: column;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: var(--green-tint);
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--green);
}

/* hover-ul nu „sare" — aceeași tranziție pe toate elementele interactive */
.nav__link,
.btn-secondary,
.follow-pill,
.pill-btn,
.toggle-box__chip,
.quiz-band__chip,
.footer__nav a,
.spec-chip,
.link-green,
.quiz__rec,
.quiz__back {
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

/* ============ Wordmark (crucea pe „i") ============ */
.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
}
.wordmark .i-cross {
  position: relative;
  display: inline-block;
}
.wordmark .i-cross .cross {
  position: absolute;
  left: 50%;
  top: 0.01em;
  transform: translateX(-50%);
  width: 0.26em;
  height: 0.26em;
  background: var(--green);
  clip-path: polygon(
    33% 0,
    67% 0,
    67% 33%,
    100% 33%,
    100% 67%,
    67% 67%,
    67% 100%,
    33% 100%,
    33% 67%,
    0 67%,
    0 33%,
    33% 33%
  );
}

/* ============ Navbar ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px var(--pad-x);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-card);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.nav__link {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-1);
  white-space: nowrap;
}
.nav__link:hover {
  background: var(--divider);
}
.nav__link--active {
  color: var(--green);
  background: var(--green-tint);
}
/* linkurile secundare dispar pe mobil — rămân în footer */
.nav__link--secondary {
  display: none;
}
.nav__cta {
  background: var(--green);
  color: var(--paper);
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-left: 4px;
}
.nav__cta:hover {
  background: var(--green-hover);
}
.nav__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8e2d4;
  border: 1px solid var(--border-input);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-1);
  margin-left: 6px;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
}
.nav__avatar:hover {
  background: #ded7c6;
}
.nav__account {
  position: relative;
  display: flex;
  align-items: center;
}
.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  max-width: 280px;
  background: var(--paper);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(27, 36, 34, 0.14);
  padding: 6px;
  z-index: 60;
  animation: nav-menu-in 0.14s ease-out;
}
@keyframes nav-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav__menu-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 4px;
}
.nav__menu-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.nav__menu-email {
  font-size: 12.5px;
  color: var(--gray-2);
  word-break: break-all;
}
.nav__menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-1);
  cursor: pointer;
}
.nav__menu-item:hover {
  background: var(--divider);
}
.nav__menu-item--danger {
  color: var(--red-text);
}
.nav__menu-item--danger:hover {
  background: var(--red-bg);
}
@media (prefers-reduced-motion: reduce) {
  .nav__menu { animation: none; }
}

/* ============ Butoane & pastile ============ */
.btn-primary {
  display: inline-block;
  text-align: center;
  background: var(--green);
  color: var(--paper);
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition:
    filter 0.15s ease,
    transform 0.1s ease;
}
.btn-primary:hover {
  background: var(--green-hover);
}
.btn-primary:active {
  transform: scale(0.985);
}
.btn-secondary {
  display: inline-block;
  text-align: center;
  padding: 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-1);
  background: transparent;
  border: 1px solid var(--border-input);
}
.btn-secondary:hover {
  background: var(--divider);
}
.pill-primary {
  display: inline-block;
  text-align: center;
  background: var(--green);
  color: var(--paper);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    filter 0.15s ease,
    transform 0.1s ease;
}
.pill-primary:hover {
  background: var(--green-hover);
}
.pill-primary:active {
  transform: scale(0.985);
}
.pill-outline {
  display: inline-block;
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.pill-outline:hover {
  background: var(--green-tint);
}
.btn--sm {
  padding: 12px 22px;
  font-size: 14px;
}
.pill-btn--sm {
  font-size: 12.5px;
  padding: 6px 14px;
}

.kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge--paid {
  color: var(--amber-text);
  background: var(--amber-bg);
}
.badge--vol {
  color: var(--green);
  background: var(--green-tint);
}
.badge--sm {
  font-size: 11px;
  padding: 3px 9px;
}

.demand--green {
  color: var(--green);
}
.demand--amber {
  color: var(--amber-text);
}
.demand--red {
  color: var(--red-text);
}

/* ============ Hero (browse) ============ */
.hero {
  padding: 36px var(--pad-x) 28px;
  border-bottom: 1px solid var(--border-card);
  background: linear-gradient(180deg, #f6f7f8 0%, #ffffff 100%);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(33px, 8.5vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 12px;
  max-width: 640px;
  text-wrap: balance;
}
.hero h1 em,
.accent-em {
  color: var(--green);
}
.hero__sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-1);
  margin: 0 0 16px;
  max-width: 540px;
}
.trial-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 22px;
  background: var(--green-tint);
  border: 1px solid var(--green-tint-border);
  border-radius: 14px;
  padding: 10px 14px;
}
.trial-pill__mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}
.trial-pill__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* ============ Filtre ============ */
.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.select {
  padding: 13px 36px 13px 14px;
  font-size: 16px;
  font-family: var(--sans);
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E7672' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.select--spec {
  width: 100%;
}
.toggle-box {
  display: flex;
  gap: 4px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  padding: 4px;
}
.toggle-box__chip {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-1);
  background: transparent;
  white-space: nowrap;
}
.toggle-box__chip--active {
  color: var(--paper);
  background: var(--green);
}
.toggle-box--view .toggle-box__chip {
  padding: 8px 14px;
  font-size: 13px;
  flex: initial;
}

/* ============ Banda quiz (busolă) ============ */
.quiz-band {
  background: var(--night);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quiz-band__title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--paper);
}
.quiz-band__sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--night-sub);
  margin-top: 3px;
}
.quiz-band__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quiz-band__chip {
  background: rgba(250, 248, 244, 0.1);
  border: 1px solid rgba(250, 248, 244, 0.24);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.quiz-band__chip:hover {
  background: rgba(250, 248, 244, 0.22);
}

/* ============ Rezultate (browse) ============ */
.results {
  padding: 24px var(--pad-x) 64px;
}
.results__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.count-label {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--gray-2);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
  animation: fadeUp 0.35s ease both;
}
.card:hover {
  box-shadow: 0 10px 28px rgba(27, 36, 34, 0.1);
  transform: translateY(-2px);
}
.card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}
.card__spec {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.card__type {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--gray-3);
}
.card__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
}
.card__doctor {
  font-size: 13.5px;
  color: var(--gray-1);
  margin-bottom: 8px;
}
.card__meta {
  font-size: 12.5px;
  color: var(--gray-2);
  margin-bottom: 16px;
}
.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.card__applicants {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray-2);
}
.card__demand {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}
.card__hosted {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray-2);
}
.follow-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-1);
  background: transparent;
  border: 1px solid var(--border-input);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.follow-pill:hover {
  border-color: var(--green);
}
.follow-pill--on {
  color: var(--green);
  background: var(--green-tint);
  border-color: var(--green);
}
.btn-secondary--on {
  color: var(--green);
  background: var(--green-tint);
  border-color: var(--green);
}
.results__bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Vedere listă — pe mobil devine carduri compacte */
.list-view {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}
.list-row {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 4px 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
}
.list-row:hover {
  background: var(--paper);
}
.list-row__spec {
  grid-column: 1 / -1; /* pe mobil: eticheta de specialitate pe rândul ei, lată */
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green);
}
.list-row__main {
  min-width: 0;
}
.list-row__title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-row__sub {
  font-size: 12.5px;
  color: var(--gray-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-row__applicants,
.list-row__demand {
  display: none;
}
.list-row__arrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  text-align: right;
}

.empty-state {
  padding: 56px 20px;
  text-align: center;
  border: 1px dashed var(--border-input);
  border-radius: 14px;
}
.empty-state__title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--gray-1);
  margin-bottom: 12px;
}
.empty-state__hint {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gray-2);
  margin: 0 0 14px;
}
.empty-state__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  text-decoration: underline;
}

/* ============ Detaliu anunț ============ */
.detail {
  padding: 20px var(--pad-x) 110px;
  animation: fadeUp 0.3s ease both;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-1);
  cursor: pointer;
  margin-bottom: 18px;
  padding: 6px 0;
}
.back-link:hover {
  color: var(--green);
}
.detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.detail__specrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.detail__spec {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.detail__ref {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray-3);
}
.detail h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 16px;
  text-wrap: balance;
}
.doctor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: box-shadow 0.18s ease;
}
.doctor-card:hover {
  box-shadow: 0 8px 22px rgba(27, 36, 34, 0.09);
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e8e2d4;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gray-1);
  flex-shrink: 0;
}
.doctor-card__name {
  font-size: 15px;
  font-weight: 700;
}
.doctor-card__sub {
  font-size: 13px;
  color: var(--gray-1);
}
.doctor-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}
.detail h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 10px;
}
.detail__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 26px;
  text-wrap: pretty;
}
.tasks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 26px;
}
.task {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.task__dash {
  color: var(--green);
  font-weight: 700;
}
.green-box {
  background: var(--green-tint);
  border: 1px solid var(--green-tint-border);
  border-radius: 12px;
  padding: 18px;
}
.green-box__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}
.green-box__text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--gray-1);
  margin: 0;
}

/* Cardul de aplicare */
.apply-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(27, 36, 34, 0.07);
}
.apply-card .badge {
  margin-bottom: 16px;
}
.apply-card__rows {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 20px;
}
.apply-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.apply-card__row span:first-child {
  color: var(--gray-2);
}
.apply-card__row span:last-child {
  font-weight: 600;
  text-align: right;
}
.apply-card__row--last {
  align-items: center;
  padding-top: 11px;
  border-top: 1px solid var(--divider);
}
.apply-card__row--last span:last-child {
  font-weight: 700;
}
.apply-card .btn-primary {
  display: block;
  width: 100%;
}
.apply-card .btn-secondary {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.apply-card__trust {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gray-2);
}
.apply-card__trust strong {
  color: var(--ink-2);
}
.btn-primary--applied {
  background: var(--green-tint);
  color: var(--green);
  cursor: default;
}
.btn-primary--applied:hover {
  background: var(--green-tint);
}

/* Distribuire */
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.share-row__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-1);
}

/* Bara fixă de aplicare — DOAR mobil */
.apply-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--pad-x) max(12px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-card);
}
.apply-bar__info {
  min-width: 0;
  flex: 1;
}
.apply-bar__type {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apply-bar__meta {
  display: block;
  font-size: 11.5px;
  color: var(--gray-2);
}
.apply-bar .btn-primary {
  padding: 13px 22px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Alte locuri pentru tine */
.related {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--border-card);
}
.related__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.related__head h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}
.related__hint {
  font-size: 13px;
  color: var(--gray-3);
}
.related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.mini-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.mini-card:hover {
  box-shadow: 0 10px 28px rgba(27, 36, 34, 0.1);
  transform: translateY(-2px);
}
.mini-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.mini-card__spec {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.mini-card__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}
.mini-card__sub {
  font-size: 12.5px;
  color: var(--gray-2);
}

/* ============ Profil mentor ============ */
.profile {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px var(--pad-x) 64px;
  animation: fadeUp 0.3s ease both;
}
.profile__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 26px;
}
.profile__head h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 6.5vw, 32px);
  font-weight: 500;
  margin: 0 0 6px;
}
.profile__role {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--gray-1);
  margin-bottom: 12px;
}
.profile__site {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 12px;
}
.profile__site:hover {
  text-decoration: underline;
}
.profile__stats {
  display: flex;
  gap: 16px 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gray-2);
}
.profile__stats strong {
  color: var(--ink);
  font-size: 16px;
}
.profile h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.profile__section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tag-mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-3);
  background: var(--divider);
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-mono--green {
  color: var(--green);
  background: var(--green-tint);
}
.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 26px;
}
.photo-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px dashed var(--border-input);
  background: repeating-linear-gradient(
    45deg,
    #f4f0e7 0px,
    #f4f0e7 12px,
    #eee9dc 12px,
    #eee9dc 24px
  );
  display: grid;
  place-items: center;
}
.photo-placeholder span {
  font-size: 11px;
  color: #a39d8e;
  text-align: center;
  padding: 0 4px;
}
.photo-real {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
}
.profile__bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 680px;
  text-wrap: pretty;
}
.profile__listings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.listing-row {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: box-shadow 0.18s ease;
}
.listing-row:hover {
  box-shadow: 0 8px 22px rgba(27, 36, 34, 0.09);
}
.listing-row__main {
  flex: 1;
  min-width: 200px;
}
.listing-row__spec {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 5px;
}
.listing-row__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 4px;
}
.listing-row__sub {
  font-size: 13px;
  color: var(--gray-1);
}
.listing-row__arrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

/* ============ Pentru medici (funnel) ============ */
.funnel {
  padding: 40px var(--pad-x) 64px;
  animation: fadeUp 0.3s ease both;
}
.funnel__intro {
  max-width: 640px;
  margin-bottom: 32px;
}
.funnel h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 16px;
  text-wrap: balance;
}
.funnel__sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-1);
  margin: 0;
}
.funnel__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.funnel-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 22px;
}
.funnel-card__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  margin-bottom: 12px;
}
.funnel-card__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.funnel-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-1);
  margin: 0;
}
.funnel__note {
  font-size: 13px;
  color: var(--gray-3);
  margin-top: 12px;
  max-width: 560px;
}

/* ============ Landing ============ */
.l-hero {
  padding: 44px var(--pad-x) 48px;
  background: linear-gradient(180deg, #f6f7f8 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-card);
}
.l-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.l-hero .kicker {
  font-size: 11.5px;
  margin-bottom: 16px;
}
.l-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 11vw, 62px);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 18px;
  text-wrap: balance;
}
.l-hero__sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-1);
  margin: 0 0 26px;
  max-width: 480px;
  text-wrap: pretty;
}
.l-hero__cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.l-hero__cta {
  display: block;
  text-align: center;
  background: var(--green);
  color: var(--paper);
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  transition:
    filter 0.15s ease,
    transform 0.1s ease;
}
.l-hero__cta:hover {
  background: var(--green-hover);
}
.l-hero__cta:active {
  transform: scale(0.985);
}
.l-hero__note {
  font-size: 13px;
  color: var(--gray-2);
  text-align: center;
}
.l-hero__pills {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.l-hero__pill {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gray-1);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-input);
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.l-hero__visual {
  position: relative;
}
/* teancul de „foi de observație" — anunțuri reale în loc de foto-placeholder */
.l-hero__stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.l-hero__stack-card {
  display: none;
}
.l-hero__float {
  display: block;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(27, 36, 34, 0.1);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.l-hero__float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(27, 36, 34, 0.14);
}
.l-hero__float-spec {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 5px;
}
.l-hero__float-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}
.l-hero__float-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.l-hero__float-meta {
  font-size: 12px;
  color: var(--gray-2);
}
.l-hero__float-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.l-problem {
  padding: clamp(52px, 9vw, 80px) var(--pad-x);
  border-bottom: 1px solid var(--border-card);
}
.l-problem h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 620px;
  text-wrap: balance;
}
.l-problem p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-1);
  margin: 0;
  max-width: 560px;
}

.l-how {
  padding: clamp(48px, 8vw, 72px) var(--pad-x);
  border-bottom: 1px solid var(--border-card);
  background: #ffffff;
}
.l-how h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 6.5vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 28px;
}
.l-how__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.l-how__step {
  border-top: 2px solid var(--green);
  padding-top: 16px;
}
.l-how__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  margin-bottom: 10px;
}
.l-how__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.l-how__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-1);
  margin: 0;
}

.l-latest {
  padding: clamp(44px, 7vw, 64px) var(--pad-x);
  border-bottom: 1px solid var(--border-card);
}
.l-latest h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 500;
  margin: 0;
}

.l-teaser {
  padding: clamp(48px, 8vw, 72px) var(--pad-x);
  border-bottom: 1px solid var(--border-card);
}
.l-teaser__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.l-teaser h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 6.5vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
  text-wrap: balance;
}
.l-teaser p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-1);
  margin: 0 0 20px;
}
.l-teaser__link {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}
.l-teaser__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.spec-chip {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border-input);
  padding: 9px 16px;
  border-radius: 999px;
  transition: border-color 0.15s ease;
}
.spec-chip:hover {
  border-color: var(--green);
}
.spec-chip__count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
}

.l-doctors {
  background: var(--night);
  padding: clamp(52px, 9vw, 80px) var(--pad-x);
}
.l-doctors__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.l-doctors .kicker {
  font-size: 11.5px;
  color: var(--night-accent);
  margin-bottom: 16px;
}
.l-doctors h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 7.5vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--paper);
  text-wrap: balance;
}
.l-doctors p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--night-sub);
  margin: 0 0 26px;
  max-width: 480px;
}
.l-doctors__cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.l-doctors__cta {
  display: block;
  text-align: center;
  background: var(--paper);
  color: var(--night);
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}
.l-doctors__cta:hover {
  filter: brightness(0.95);
}
.l-doctors__url {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--night-accent);
  text-align: center;
}
.l-doctors__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.night-card {
  background: rgba(250, 248, 244, 0.06);
  border: 1px solid rgba(250, 248, 244, 0.14);
  border-radius: 12px;
  padding: 18px 20px;
}
.night-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 4px;
}
.night-card__text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--night-sub);
}

.l-trust {
  padding: clamp(52px, 9vw, 80px) var(--pad-x) clamp(44px, 8vw, 64px);
}
.l-trust__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.l-trust__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  margin: 0 auto 24px;
}
.l-trust__mark .steps {
  position: absolute;
  left: 17px;
  bottom: 11px;
  width: 22px;
  height: 22px;
  background: var(--paper);
  clip-path: polygon(
    0% 100%,
    0% 66.6%,
    33.3% 66.6%,
    33.3% 33.3%,
    66.6% 33.3%,
    66.6% 0%,
    100% 0%,
    100% 100%
  );
}
.l-trust__mark .cross {
  position: absolute;
  left: 31px;
  top: 12px;
  width: 9px;
  height: 9px;
  background: var(--paper);
  clip-path: polygon(
    33% 0,
    67% 0,
    67% 33%,
    100% 33%,
    100% 67%,
    67% 67%,
    67% 100%,
    33% 100%,
    33% 67%,
    0 67%,
    0 33%,
    33% 33%
  );
}
.l-trust h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 16px;
  text-wrap: balance;
}
.l-trust p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-1);
  margin: 0 0 28px;
}
.l-trust__cta {
  display: inline-block;
  background: var(--green);
  color: var(--paper);
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
}
.l-trust__cta:hover {
  background: var(--green-hover);
}

/* ============ Footer ============ */
.footer {
  margin-top: auto; /* împinge footerul la baza ecranului pe paginile scurte */
  border-top: 1px solid var(--border-card);
  padding: 24px var(--pad-x) 28px;
}
.footer__nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer__nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-1);
  padding: 4px 0;
}
.footer__nav a:hover {
  color: var(--green);
}
.footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}
.footer span {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gray-3);
}
.footer a {
  color: var(--gray-1);
  font-weight: 600;
}
.footer__meta a:hover {
  color: var(--green);
}

/* ============ Modal & toast — pe mobil: bottom sheet ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(27, 36, 34, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal {
  background: var(--paper);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 560px;
  padding: 26px 20px max(26px, env(safe-area-inset-bottom));
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.22);
  animation: sheetUp 0.25s ease both;
  max-height: 92vh;
  overflow: auto;
  overscroll-behavior: contain;
}
.hidden {
  display: none !important;
}

/* ============ Pagini legale (termeni / confidențialitate) ============ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px var(--pad-x) 96px;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 6px;
}
.legal__updated {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--gray-3);
  margin: 0 0 36px;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin: 34px 0 10px;
}
.legal p {
  color: var(--gray-1);
  line-height: 1.7;
  margin: 0 0 12px;
}
.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal li {
  color: var(--gray-1);
  line-height: 1.7;
  margin-bottom: 6px;
}
.legal a {
  color: var(--green);
  text-decoration: underline;
}
.legal strong {
  color: var(--ink-2);
  font-weight: 700;
}
@media (min-width: 1024px) {
  .legal h1 { font-size: 38px; }
}

.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: max-content;
  max-width: calc(100vw - 40px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: pop 0.2s ease both;
}

/* ============ Quiz modal ============ */
.quiz__progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.quiz__track {
  flex: 1;
  height: 6px;
  background: #eae5d8;
  border-radius: 999px;
  overflow: hidden;
}
.quiz__fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.quiz__progress-label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gray-2);
  white-space: nowrap;
}
.quiz__question {
  font-family: var(--serif);
  font-size: clamp(23px, 5.5vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 20px;
}
.quiz__opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz__opt {
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  border: 1.5px solid var(--border-input);
  color: var(--ink);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
  text-align: left;
}
.quiz__opt:hover {
  border-color: var(--green);
  background: #f4f0e7;
}
.quiz__note {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-3);
}
.quiz__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.quiz__result-title {
  font-family: var(--serif);
  font-size: clamp(23px, 5.5vw, 27px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 6px;
}
.quiz__result-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-1);
  margin: 0 0 20px;
}
.quiz__recs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}
.quiz__rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border-input);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.quiz__rec:hover {
  border-color: var(--green);
}
.quiz__wildcard {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber-text);
  background: var(--amber-bg);
  padding: 2px 7px;
  border-radius: 999px;
}
.quiz__rec-count {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--green);
  background: var(--green-tint);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.quiz__back {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-1);
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 999px;
  user-select: none;
}
.quiz__back:hover {
  background: var(--divider);
  color: var(--green);
}
.quiz__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz__actions .btn-primary {
  flex: 1;
  font-size: 14.5px;
}

/* ============ Formulare ============ */
.input,
.textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  font-size: 16px;
  font-family: var(--sans);
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  outline: none;
  margin-bottom: 10px;
}
.textarea {
  line-height: 1.55;
  resize: vertical;
}
.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 97, 89, 0.12);
  outline: none;
}
.input--code {
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: 0.4em;
  text-align: center;
}
.form-error {
  margin: 4px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-text);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.form-grid-uni {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.form-grid-uni .select {
  width: 100%;
}
.link-green {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  white-space: nowrap;
}
.btn-block {
  display: block;
  width: 100%;
}
.field-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}
.field-label small {
  font-weight: 500;
  color: var(--gray-3);
}

/* ============ Pagina /cont ============ */
.auth-page {
  display: grid;
  place-items: start center;
  padding: 32px var(--pad-x) 80px;
  min-height: 52vh;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 8px 24px rgba(27, 36, 34, 0.07);
}
.auth-card__title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  margin: 0 0 6px;
}
.auth-card__sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-1);
  margin: 0 0 18px;
}
.auth-card__note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--gray-3);
}
.pref-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
}
.pref-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.pref-row strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
}
.pref-row small {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gray-2);
  margin-top: 2px;
}

.auth-card__roles {
  margin-bottom: 14px;
}
.auth-card__roles .toggle-box__chip {
  flex: 1;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
}

/* ============ Modal aplicare ============ */
.modal--apply {
  max-width: 520px;
}
.modal__title {
  font-family: var(--serif);
  font-size: clamp(22px, 5.5vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 4px;
}
.modal__doctor {
  font-size: 13.5px;
  color: var(--gray-1);
  margin-bottom: 16px;
}
.modal__info-box {
  background: var(--green-tint);
  border: 1px solid var(--green-tint-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.modal__actions .btn-primary {
  flex: 1;
  min-width: 150px;
}
.modal__footnote {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-3);
}
.modal__success {
  text-align: center;
  padding: 10px 0;
}
.modal__success-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gray-1);
  margin: 0 0 22px;
}
.modal__check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin: 0 auto 18px;
}
.apply-quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.apply-quick__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 3px;
}
.apply-quick__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

/* ============ Zona logată (/app) ============ */
.app-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px var(--pad-x) 64px;
  animation: fadeUp 0.3s ease both;
}
.app-page--narrow {
  max-width: 860px;
}
.app-page h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 500;
  margin: 0 0 6px;
}
.app-h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 14px;
}
.stat-num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--green);
}
.stat-sub {
  font-size: 12px;
  color: var(--gray-2);
}
.stat-mini {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-3);
  margin-top: 4px;
}
.app-page__sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--gray-1);
}
.app-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.app-head .pill-primary {
  padding: 12px 24px;
  font-size: 14.5px;
}
.cap-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.cap-pill__mono {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}
.cap-pill__note {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--gray-2);
}
.status-chip {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
}
.status-chip--sm {
  font-size: 11.5px;
  padding: 5px 12px;
}
.status-chip--pending {
  color: var(--gray-2);
  background: var(--divider);
}
.status-chip--amber {
  color: var(--amber-text);
  background: var(--amber-bg);
}
.status-chip--green {
  color: var(--green);
  background: var(--green-tint);
}
.status-chip--gray {
  color: var(--gray-1);
  background: #eceae3;
}
.status-chip--muted {
  color: var(--gray-3);
  background: #eceae3;
}
.app-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-row {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-row__right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.night-explainer {
  background: var(--night);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.night-explainer__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 4px;
}
.night-explainer__text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--night-sub);
}
.applicant-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 18px 20px;
}
.applicant-card--declined {
  opacity: 0.55;
}
.applicant-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.applicant-card__id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.applicant-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eceae3;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-1);
}
.applicant-card__avatar--revealed {
  background: #e8e2d4;
}
.applicant-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.applicant-card__sub {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--gray-2);
}
.avail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
@media (min-width: 720px) {
  .avail-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.applicant-card__signals {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  margin-top: 4px;
}
.applicant-card__aspirations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
}
.applicant-card__aspirations-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-2);
}
.aspiration-tag {
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--green-tint);
  border: 1px solid var(--green-tint-border);
  padding: 4px 11px;
  border-radius: 999px;
}

/* „Vreau să învăț" — la aplicare */
.apply-aspirations {
  margin-bottom: 14px;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  padding: 12px 14px;
}
.apply-aspirations summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.apply-aspirations__hint {
  font-weight: 400;
  color: var(--gray-3);
}
.apply-aspirations__chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.aspiration-chip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  cursor: pointer;
}
.aspiration-chip input {
  margin-top: 2px;
  flex-shrink: 0;
}
.apply-aspirations__note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-3);
  margin-top: 12px;
}
.applicant-card__message {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.applicant-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-1);
  border: 1px solid var(--border-input);
  background: transparent;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.pill-btn:hover {
  border-color: var(--green);
}
.pill-btn--primary {
  font-weight: 700;
  color: var(--paper);
  background: var(--green);
  border: none;
  padding: 11px 20px;
}
.pill-btn--primary:hover {
  background: var(--green-hover);
}
.pill-btn--tint {
  font-weight: 700;
  color: var(--green);
  background: var(--green-tint);
  border: none;
  padding: 11px 20px;
}
.match-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.match-box__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.match-box__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.match-box__row span:first-child {
  color: var(--gray-2);
  flex-shrink: 0;
}
.match-box__row span:last-child {
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}
.match-box__steps {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
}
.match-box__steps-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 10px;
}
.match-box__step {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.match-box__step b {
  color: var(--green);
}
.tag-prefilled {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--green);
  background: var(--green-tint);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============ Pagini SEO programatice ============ */
.seo-faq { margin-top: 48px; max-width: 680px; }
.seo-faq h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 18px;
}
.seo-faq__item { margin-bottom: 20px; }
.seo-faq__item h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}
.seo-faq__item p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray-1);
  margin: 0;
}
.seo-related { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border-card); }
.seo-related h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 14px;
}

/* ============ Istoric de practică ============ */
.istoric {
  max-width: 760px;
  padding: 28px var(--pad-x) 72px;
  animation: fadeUp 0.3s ease both;
}
.istoric__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.istoric__head h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 500;
  margin: 0 0 6px;
}
.istoric__meta {
  font-size: 14px;
  color: var(--gray-1);
}
.istoric__total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: var(--green-tint);
  border: 1px solid var(--green-tint-border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.istoric__total-label {
  font-size: 14px;
  color: var(--ink-2);
}
.istoric__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.istoric__row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 18px 20px;
}
.istoric__row-main { flex: 1; min-width: 0; }
.istoric__row-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 2px 0 4px;
}
.istoric__row-sub {
  font-size: 13px;
  color: var(--gray-1);
}
.istoric__row-period {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gray-2);
  margin-top: 6px;
}
.istoric__row-days { text-align: right; flex-shrink: 0; }
.istoric__note {
  margin-top: 28px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gray-3);
}

@media print {
  .nav, .footer, .istoric__print, .toast { display: none !important; }
  body { background: #ffffff; }
  .istoric { padding: 0; animation: none; }
  .istoric__row { break-inside: avoid; border-color: #ccc; }
}

/* ============ 404 ============ */
.page-404 {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px var(--pad-x);
  text-align: center;
}
.page-404 h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 500;
  margin: 0 0 12px;
}
.page-404 p {
  font-size: 15px;
  color: var(--gray-1);
  margin: 0 0 28px;
}

/* ============================================================
   ≥ 720px — tabletă
   ============================================================ */
@media (min-width: 720px) {
  :root {
    --pad-x: 32px;
  }

  .wordmark {
    font-size: 28px;
  }
  .nav {
    padding: 14px var(--pad-x);
  }
  .nav__links {
    gap: 8px;
  }
  .nav__link {
    padding: 8px 14px;
  }
  .nav__link--secondary {
    display: inline-block;
  }
  .nav__cta {
    padding: 10px 20px;
  }

  .select {
    font-size: 14.5px;
  }
  .input,
  .textarea {
    font-size: 14px;
  }
  .input--code {
    font-size: 24px;
  }

  .filters {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
  }
  .select--spec {
    flex: 1;
    min-width: 280px;
    max-width: 420px;
    width: auto;
  }
  .filters .select:not(.select--spec) {
    width: auto;
  }
  .toggle-box__chip {
    flex: initial;
    padding: 8px 14px;
  }

  .hero {
    padding: 48px var(--pad-x) 34px;
  }
  .trial-pill {
    border-radius: 999px;
    padding: 9px 16px;
    align-items: center;
    gap: 10px;
  }

  .quiz-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    flex-wrap: wrap;
  }
  .quiz-band__chip {
    padding: 9px 17px;
  }

  .results {
    padding: 32px var(--pad-x) 72px;
  }
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 18px;
  }
  .card {
    padding: 22px;
  }
  .card__title {
    font-size: 20.5px;
  }

  .list-row {
    grid-template-columns: 168px 1fr 132px 104px 24px;
    gap: 14px;
    padding: 14px 18px;
  }
  .list-row__spec {
    grid-column: auto; /* pe desktop are coloana lui */
  }
  .list-row__applicants {
    display: block;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--gray-2);
    white-space: nowrap;
  }
  .list-row__demand {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
  }

  .detail {
    padding: 28px var(--pad-x) 72px;
  }
  .apply-bar {
    display: none;
  }
  .doctor-card {
    padding: 16px 18px;
    margin-bottom: 28px;
  }
  .detail h2 {
    font-size: 22px;
  }
  .green-box {
    padding: 18px 20px;
  }
  .related {
    margin-top: 44px;
    padding-top: 30px;
  }
  .related__head h2 {
    font-size: 24px;
  }
  .related__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .mini-card {
    padding: 20px;
  }

  .profile {
    padding: 28px var(--pad-x) 72px;
  }
  .avatar--lg {
    width: 76px;
    height: 76px;
    font-size: 30px;
  }
  .profile__head {
    gap: 20px;
    margin-bottom: 28px;
  }
  .photos-grid {
    gap: 12px;
  }
  .photo-placeholder span {
    font-size: 12px;
  }
  .listing-row {
    padding: 18px 20px;
    gap: 16px;
    flex-wrap: nowrap;
  }
  .listing-row__title {
    font-size: 18.5px;
  }

  .funnel {
    padding: 56px var(--pad-x) 72px;
  }
  .funnel__intro {
    margin-bottom: 40px;
  }
  .funnel__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 40px;
  }
  .funnel-card {
    padding: 24px;
  }

  .l-hero {
    padding: 64px var(--pad-x) 60px;
  }
  .l-hero__cta-row {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .l-hero__cta {
    display: inline-block;
    padding: 15px 30px;
  }
  .l-hero__note {
    text-align: left;
    font-size: 13.5px;
  }
  .l-hero__pills {
    margin-top: 40px;
  }
  .l-teaser__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
  }
  .spec-chip {
    font-size: 14px;
    padding: 10px 18px;
  }
  .l-doctors__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
  }
  .l-doctors__cta-row {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .l-doctors__cta {
    display: inline-block;
  }
  .l-doctors__url {
    text-align: left;
  }

  .footer {
    display: flex;
    flex-direction: column;
  }
  .footer__meta {
    gap: 10px;
  }

  .modal-overlay {
    align-items: center;
    padding: 24px;
  }
  .modal {
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    animation: pop 0.22s ease both;
    max-height: 88vh;
  }
  .toast {
    bottom: 28px;
  }
  .quiz__actions {
    flex-direction: row;
  }

  .auth-page {
    padding: 64px var(--pad-x) 96px;
    place-items: center;
  }
  .auth-card {
    padding: 32px;
  }

  .app-page {
    padding: 40px var(--pad-x) 72px;
  }
  .app-row {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
  }
  .app-row__right {
    flex-direction: column;
    align-items: flex-end;
  }
  .cap-pill {
    border-radius: 999px;
    padding: 9px 18px;
    align-items: center;
  }
  .applicant-card {
    padding: 20px 22px;
  }
  .match-box {
    padding: 22px 24px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .form-grid-uni {
    grid-template-columns: 1fr 130px;
  }
}

/* ============================================================
   ≥ 1024px — desktop (valorile prototipului)
   ============================================================ */
@media (min-width: 1024px) {
  :root {
    --pad-x: 48px;
  }

  .hero {
    padding: 52px var(--pad-x) 36px;
  }
  .results {
    padding: 32px var(--pad-x) 72px;
  }

  .detail__grid {
    grid-template-columns: 1fr 360px;
    gap: 40px;
  }
  .apply-card {
    position: sticky;
    top: 84px;
    padding: 24px;
  }

  .l-hero {
    padding: 88px var(--pad-x) 72px;
  }
  .l-hero__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
  }
  .l-hero .kicker {
    font-size: 12.5px;
    margin-bottom: 20px;
  }
  .l-hero__sub {
    font-size: 17px;
    margin-bottom: 36px;
  }
  .l-hero__stack {
    position: relative;
    min-height: 430px;
    display: block;
  }
  .l-hero__stack-card {
    display: block;
    position: absolute;
    width: 290px;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 8px 22px rgba(27, 36, 34, 0.08);
    transition:
      box-shadow 0.18s ease,
      transform 0.18s ease;
  }
  .l-hero__stack-card--b1 {
    right: 28px;
    bottom: 10px;
    transform: rotate(-2deg);
  }
  .l-hero__stack-card--b2 {
    right: 0;
    top: 6px;
    transform: rotate(2.5deg);
  }
  .l-hero__stack-card:hover {
    box-shadow: 0 14px 32px rgba(27, 36, 34, 0.14);
  }
  .l-hero__float {
    position: absolute;
    left: -16px;
    top: 110px;
    max-width: 320px;
    width: 320px;
    z-index: 3;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 16px 40px rgba(27, 36, 34, 0.16);
  }
  .l-hero__float-title {
    font-size: 17px;
  }
  .l-teaser__grid,
  .l-doctors__grid {
    gap: 56px;
  }
  .l-doctors .kicker {
    font-size: 12.5px;
    margin-bottom: 18px;
  }
  .l-doctors p {
    font-size: 15.5px;
    margin-bottom: 30px;
  }
  .l-problem p,
  .l-trust p {
    font-size: 15.5px;
  }
  .funnel__sub {
    font-size: 15.5px;
  }
}

/* Reveal on scroll — doar când mișcarea e binevenită */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.55s ease,
      transform 0.55s ease;
  }
  [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .l-how__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* Mai puțină mișcare pentru cine o cere */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
