/* Self-hosted Google Fonts subset for design-mockups parity. */
/* cyrillic */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lora-italic-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lora-italic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lora-normal-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lora-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/lora-normal-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/lora-normal-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/lora-normal-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/lora-normal-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/onest-normal-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/onest-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/onest-normal-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/onest-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/onest-normal-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/onest-normal-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/onest-normal-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/onest-normal-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/onest-normal-800-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/onest-normal-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/onest-normal-900-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/onest-normal-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-900-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f7f4;
  --panel: #ffffff;
  --panel-strong: #f0f3f4;
  --line: #d8dde0;
  --text: #151515;
  --muted: #5f6670;
  --brand: #151515;
  --brand-soft: #e7f3f8;
  --yellow: #fcdb00;
  --pink: #e41661;
  --blue: #87c5dd;
  --accent: #e41661;
  --success: #187347;
  --warning: #8a6300;
  --danger: #b42318;
  --shadow: 0 18px 46px rgba(21, 21, 21, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar,
.footer {
  padding: 18px 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 244, 0.9);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(12px);
}

.topbar__inner,
.footer__inner,
.page {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
}

.brand-logo {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.95rem;
}

.page {
  flex: 1;
  padding: 18px 0 48px;
}

.hero,
.panel,
.filters,
.grid-cards,
.detail,
.form-grid,
.table,
.request-card {
  margin-bottom: 20px;
}

.hero,
.panel,
.filters,
.detail,
.request-card,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel,
.detail,
.detail > *,
.detail__aside,
.stack > *,
.conversation-message,
.meta-item {
  min-width: 0;
}

.lead,
.meta-item,
.prose,
.conversation-message,
td,
th {
  overflow-wrap: anywhere;
}

.hero,
.panel,
.filters,
.detail,
.request-card {
  padding: 28px;
}

.panel--narrow {
  width: min(100%, 760px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
}

.flash {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.flash--success {
  background: #ecf8f0;
  color: var(--success);
}

.flash--warning {
  background: #fff8e2;
  color: var(--warning);
}

.flash--error {
  background: #fff0ee;
  color: var(--danger);
}

.filters form,
.stack,
.form-grid,
.actions,
.tag-list,
.meta-list,
.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stack {
  flex-direction: column;
  flex-wrap: nowrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  flex: 1 1 180px;
}

.field--full {
  flex-basis: 100%;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

textarea {
  min-height: 240px;
  line-height: 1.5;
  resize: vertical;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
}

.button--primary,
button {
  background: var(--yellow);
  color: var(--text);
  font-weight: 800;
}

.button--secondary {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  color: var(--text);
}

.button--danger {
  background: var(--danger);
  color: #fff;
}

.grid-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.specialist-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.card__media,
.detail__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #ece4d7;
}

.card__media img,
.detail__media img {
  display: block;
  width: 100%;
  height: auto;
}

.card__title {
  margin-bottom: 6px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card--specialist {
  display: flex;
  flex-direction: column;
}

.specialist-grid .card {
  padding: 14px;
  border-radius: 18px;
}

.specialist-grid .card__media img,
.specialist-grid .card__media .preview-photo {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
  object-fit: cover;
}

.specialist-grid .card__body {
  gap: 10px;
}

.specialist-grid .card__title {
  font-size: 1.25rem;
}

.specialist-grid .button,
.specialist-grid button {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.card__body {
  flex: 1;
}

.card__actions {
  margin-top: auto;
  justify-content: center;
}

.tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.86rem;
}

.tag--sponsor {
  background: #fff1d6;
  color: #8a4b00;
  border: 1px solid #f0c98d;
}

.checkbox-line,
.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.consent-field .checkbox-line {
  align-items: flex-start;
  line-height: 1.45;
}

.consent-field input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 4px;
}

.consent-field a {
  color: var(--brand);
  font-weight: 600;
}

.upload-preview {
  display: grid;
  gap: 10px;
}

.upload-preview:empty {
  display: none;
}

.upload-preview img {
  max-width: min(100%, 320px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.upload-preview__item {
  display: grid;
  gap: 6px;
}

.upload-preview__actions[hidden] {
  display: none;
}

.meeting-packages {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.meeting-package {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #faf6ef;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.rich-toolbar button {
  padding: 8px 12px;
  background: var(--panel-strong);
  color: var(--text);
}

.checkbox-chip {
  background: #f3ecdf;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.filters--compact form {
  align-items: flex-start;
}

.filter-drawer {
  display: grid;
  flex-basis: 100%;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.filter-group {
  background: #faf6ef;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.filter-group summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 10px 12px;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.filter-group[open] summary::after {
  content: "−";
}

.filter-group .tag-list {
  border-top: 1px solid var(--line);
  max-height: 210px;
  overflow: auto;
  padding: 10px;
}

.tag-list--compact {
  gap: 6px;
}

.tag-list--compact .checkbox-chip,
.filters--compact .checkbox-chip {
  font-size: 0.82rem;
  padding: 5px 8px;
}

.registration-form {
  gap: 12px;
}

.form-grid--compact {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.form-grid--compact .field {
  min-width: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3ecdf;
  color: var(--text);
  font-size: 0.84rem;
}

.status-badge--new {
  background: #ecf8f0;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-badge--sponsor {
  background: #fff1d6;
  color: #8a4b00;
}

.detail {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.detail__aside {
  background: #faf6ef;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.calendar-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

.meta-list {
  flex-direction: column;
  gap: 10px;
}

.meta-item strong {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #ece4d7;
  text-align: left;
  vertical-align: top;
}

thead {
  background: #faf6ef;
}

.request-card__meta,
.muted {
  color: var(--muted);
}

.footer {
  color: var(--muted);
}

.actions--compact {
  gap: 8px;
}

.prose p:first-child {
  margin-top: 0;
}

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

.conversation {
  display: grid;
  gap: 12px;
}

.conversation-message {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 14px;
}

.conversation-message--specialist {
  background: #f3f8f5;
}

.conversation-message--admin,
.conversation-message--system {
  background: #f4f0e8;
}

.conversation-message__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.conversation-message__meta strong {
  color: var(--text);
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.attachments a {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  padding: 6px 10px;
  font-size: 0.9rem;
}

.footer {
  background: var(--yellow);
  color: var(--text);
  margin-top: auto;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 18px;
}

.aggregator-hero,
.form-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  border-bottom: 4px solid var(--yellow);
  border-radius: var(--radius);
  background: #151515;
  color: #fff;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
}

.aggregator-hero .eyebrow,
.form-hero .eyebrow {
  color: var(--yellow);
}

.aggregator-hero .lead,
.form-hero .lead {
  color: #f3f4f5;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

.hero-copy h1,
.success-card h1 {
  max-width: 900px;
}

.hero-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 22px;
}

.hero-note strong {
  font-size: 1.3rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.process-grid article,
.success-card,
.profile-panel,
.sticky-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.process-grid article {
  padding: 22px;
}

.step-marker,
.timeline-marker {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--text);
  font-weight: 900;
}

.filters--catalog {
  background: var(--panel);
}

.filter-bar {
  align-items: flex-end;
}

.field--wide {
  flex: 2 1 280px;
}

.checkbox-line--inline {
  align-self: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.specialist-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.specialist-card {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}

.specialist-card__media {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 220px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--yellow), var(--blue));
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.specialist-card__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.specialist-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

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

.tag--soft {
  background: var(--brand-soft);
  color: #214f63;
}

.specialist-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
  gap: 24px;
  align-items: start;
}

.specialist-profile__main,
.specialist-profile__aside {
  min-width: 0;
}

.profile-heading {
  border-radius: var(--radius);
  background: #151515;
  color: #fff;
  padding: clamp(24px, 4vw, 42px);
}

.profile-heading .eyebrow {
  color: var(--yellow);
}

.profile-heading .lead {
  color: #f3f4f5;
}

.profile-panel {
  padding: 24px;
}

.profile-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue);
  box-shadow: var(--shadow);
}

.profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.sticky-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.actions--stacked {
  flex-direction: column;
}

.button--full {
  width: 100%;
}

.form-submit-status {
  min-height: 1.4em;
  margin: -4px 0 0;
  text-align: center;
}

.verified-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #e9f8ee;
  color: var(--success);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.doc-card {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.doc-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--panel-strong);
}

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

.doc-filetype {
  color: var(--pink);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.doc-title {
  min-width: 0;
  color: var(--text);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.document-lightbox:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.document-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
}

.document-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 980px);
  max-height: min(92vh, 920px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.document-lightbox__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.document-lightbox__body {
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: auto;
  background: #f0f3f4;
}

.document-lightbox__body img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
}

.document-lightbox__body iframe {
  width: 100%;
  min-height: min(78vh, 760px);
  border: 0;
  background: #fff;
}

.form-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
}

.form-surface {
  width: 100%;
}

.captcha-slot {
  align-items: flex-start;
}

.success-layout {
  display: grid;
  place-items: center;
  min-height: 58vh;
}

.success-card {
  width: min(100%, 780px);
  padding: clamp(24px, 5vw, 46px);
}

.timeline {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.timeline li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.timeline p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

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

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

  .aggregator-hero,
  .form-hero,
  .specialist-profile,
  .process-grid,
  .specialist-card {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page {
    width: min(calc(100% - 20px), var(--max));
  }

  .hero,
  .panel,
  .filters,
  .detail,
  .request-card {
    padding: 20px;
  }

  .specialist-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specialist-grid .card {
    padding: 10px;
  }

  .specialist-grid .card__title {
    font-size: 1.05rem;
  }

  .specialist-grid .muted,
  .specialist-grid .meta-item {
    font-size: 0.86rem;
  }

  .filter-drawer,
  .form-grid--compact {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .aggregator-hero,
  .form-hero {
    padding: 24px 18px;
  }

  .hero-note {
    min-height: auto;
  }

  .specialist-card__media,
  .specialist-card__media img {
    min-height: 180px;
  }

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

/* Final mockup override. Keep this block last so legacy SSR styles cannot win. */
:root {
  --border: var(--line);
  --r: 16px;
  --r-md: 14px;
  --r-lg: 22px;
  --sh-sm: 0 2px 10px rgba(0, 0, 0, 0.07);
  --sh-md: 0 10px 36px rgba(0, 0, 0, 0.14);
  --f-ui: "Onest", system-ui, sans-serif;
  --f-serif: "Lora", Georgia, serif;
  --f-head: "Playfair Display", Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  font-family: var(--f-ui);
  -webkit-font-smoothing: antialiased;
}

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

.container,
.page > .breadcrumbs,
.page > .process-grid,
.page > .filters,
.page > .specialist-grid,
.page > .specialist-profile,
.page > .success-layout,
.page > .panel {
  width: min(1160px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
}

.brand-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-sub {
  color: rgba(0, 0, 0, 0.5);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.12s;
}

.site-nav a:hover {
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

.site-nav a.nav-cta {
  background: transparent;
  color: var(--text);
}

.site-nav a.nav-cta:hover {
  background: transparent;
  color: var(--text);
}

.nav-mobile-only {
  display: none !important;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.18s, opacity 0.18s;
}

body.nav-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .burger span:nth-child(2) {
  opacity: 0;
}

body.nav-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.page {
  width: 100%;
  max-width: none;
  flex: 1;
  padding: 0 0 56px;
}

.page > .flash {
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto;
}

.aggregator-hero,
.form-hero {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 4px solid var(--yellow);
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  overflow: hidden;
}

.aggregator-hero {
  display: block;
  background: #000;
  padding: 80px max(16px, calc((100vw - 1160px) / 2)) 64px;
}

.form-hero {
  display: block;
  background: var(--pink);
  padding: 64px max(16px, calc((100vw - 1160px) / 2)) 52px;
}

.form-hero--contact {
  background: #000;
}

.aggregator-hero .hero-copy,
.form-hero .hero-copy {
  display: block;
  max-width: 760px;
}

.aggregator-hero .eyebrow,
.form-hero .eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.aggregator-hero h1,
.form-hero h1 {
  margin: 0 0 18px;
  font-family: var(--f-head);
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.aggregator-hero h1 {
  color: var(--yellow);
}

.aggregator-hero .lead,
.form-hero .lead {
  max-width: 64ch;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.6;
}

.aggregator-hero .hero-note,
.form-hero .hero-note {
  display: none;
}

.actions,
.hero-actions,
.card-actions,
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 0;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.button:hover,
.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.button--primary,
.btn-pink,
button {
  background: var(--pink);
  color: #fff;
}

.button--secondary,
.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(0, 0, 0, 0.2);
}

.aggregator-hero .button--secondary,
.form-hero .button--secondary,
.btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 56px 0;
  margin-bottom: 0;
}

.process-grid article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.process-grid h2 {
  margin: 0;
  font-family: var(--f-head);
  font-size: 1.35rem;
  line-height: 1.2;
}

.step-marker,
.timeline-marker {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--text);
  font-weight: 900;
}

.filters--catalog {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 28px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fafafa;
  box-shadow: none;
}

.filter-bar .field {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 6px;
}

.filter-bar .field--wide {
  flex: 2 1 320px;
}

.filter-bar .field--full {
  flex-basis: 100%;
}

.field label,
.filter-bar label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.filter-drawer {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.filter-group {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}

.filter-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: "v";
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.15s;
}

.filter-group[open] summary::after {
  transform: rotate(180deg);
}

.filter-group .tag-list {
  max-height: none;
  padding: 8px 14px 14px;
  border-top: 1px solid var(--border);
}

.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.checkbox-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-chip span {
  padding: 7px 11px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.checkbox-chip input:checked + span {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.specialist-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.specialist-card {
  display: flex;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s;
}

.specialist-card:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
  box-shadow: var(--sh-md);
}

.specialist-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 200px;
  width: 200px;
  min-height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r);
  background: #f4f4f4;
  color: #000;
  font-family: var(--f-head);
  font-size: 3rem;
  font-weight: 900;
}

.specialist-card__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.specialist-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.specialist-card__body h2,
.specialist-card__body h2 a {
  margin: 0;
  color: var(--text);
  font-family: var(--f-head);
  font-size: 1.4rem;
  line-height: 1.2;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-badge--new {
  background: var(--yellow);
  color: #000;
}

.status-badge--sponsor,
.tag--sponsor {
  background: #0b0b0b;
  color: #fff;
}

.tag--soft {
  background: var(--brand-soft);
  color: #214f63;
}

.specialist-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding-top: 42px;
}

.profile-heading {
  padding: 42px;
  border-radius: 0;
  border-bottom: 4px solid var(--yellow);
  background: #000;
  color: #fff;
}

.profile-heading .eyebrow {
  color: rgba(255, 255, 255, 0.58);
}

.profile-heading .lead {
  color: rgba(255, 255, 255, 0.84);
}

.profile-heading h1 {
  margin: 0 0 14px;
  font-size: 3rem;
  line-height: 1;
}

.panel,
.profile-panel,
.sticky-panel,
.form-surface,
.success-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
}

.panel {
  padding: 28px;
}

.panel--narrow {
  max-width: 980px;
}

.form-surface,
.profile-panel,
.sticky-panel {
  padding: 24px;
}

.success-layout {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 56px 0;
}

.success-card {
  width: min(100%, 680px);
  padding: 48px 32px;
  text-align: center;
}

.success-card h1 {
  font-size: 2.6rem;
  line-height: 1.1;
}

.timeline {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.timeline li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.timeline p {
  margin: 4px 0 0;
  color: var(--muted);
}

.site-footer {
  margin-top: auto;
  padding: 40px 0;
  background: var(--yellow);
  font-family: var(--f-ui);
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 0 10px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background 0.15s;
}

.footer-logo:hover {
  background: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.footer-logo img,
.footer-logo svg {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
}

.footer-links-row a {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-copy {
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
}

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 199;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

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

  .site-nav a {
    padding: 12px 10px;
    font-size: 14px;
  }

  .nav-mobile-only {
    display: block !important;
  }

  .footer-logo {
    padding: 6px 8px;
    border-radius: 12px;
  }

  .footer-logo img,
  .footer-logo svg {
    height: 36px;
  }

  .footer-logos {
    gap: 10px 12px;
  }

  .aggregator-hero,
  .form-hero {
    padding-top: 52px;
    padding-bottom: 40px;
  }

  .aggregator-hero h1,
  .form-hero h1,
  .profile-heading h1,
  .success-card h1 {
    font-size: 2.8rem;
  }

  .process-grid,
  .specialist-profile {
    grid-template-columns: 1fr;
  }

  .filter-drawer {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .brand-sub {
    display: none;
  }

  .aggregator-hero h1,
  .form-hero h1,
  .profile-heading h1,
  .success-card h1 {
    font-size: 2.35rem;
  }

  .specialist-card {
    flex-direction: column;
    gap: 16px;
  }

  .specialist-card__media {
    width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;
  }

  .form-surface,
  .success-card,
  .panel {
    padding: 24px 18px;
  }
}

/* Page-specific mockup parity refinements. */
.page > .doc,
.page > .contact-intro,
.page > .breadcrumbs--narrow {
  width: min(680px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.page > .doc {
  width: min(780px, calc(100% - 32px));
  margin-top: 44px;
  margin-bottom: 40px;
}

.contact-intro {
  margin-top: 28px;
  margin-bottom: 0;
}

.contact-h1,
.doc-h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--f-head);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.doc-h1 {
  font-size: 3.2rem;
}

.contact-lead,
.doc-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
}

.contact-lead strong {
  color: var(--text);
  font-weight: 700;
}

.doc-kicker {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mini-specialist {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fafafa;
}

.mini-specialist img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.mini-specialist .mm-info {
  min-width: 0;
  flex: 1;
}

.mini-specialist .mm-name {
  color: var(--text);
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 700;
}

.mini-specialist .mm-job {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.mini-specialist a {
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.article-highlight {
  border-radius: 14px;
  padding: 20px 22px;
  margin: 24px 0;
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.62;
}

.article-highlight.panel--narrow {
  width: min(780px, calc(100% - 32px));
  max-width: 780px;
  margin: 24px auto 0;
}

.article-highlight--blue {
  border-left: 3px solid var(--blue);
  background: rgba(135, 197, 221, 0.18);
  color: #0a2030;
}

.article-highlight--yellow {
  border-left: 3px solid var(--yellow);
  background: rgba(252, 219, 0, 0.2);
  color: #2a1c00;
}

.article-highlight h3 {
  margin: 0 0 12px;
  color: inherit;
  font-family: var(--f-head);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.22;
}

.article-highlight ol {
  margin: 0;
  padding-left: 1.4em;
}

.article-highlight li {
  margin-bottom: 0.55em;
}

.article-highlight p {
  margin: 12px 0 0;
}

.form-hero .hero-sub {
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.form-hero .lead {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.95);
}

.panel--narrow {
  width: min(780px, calc(100% - 32px));
}

.registration-form {
  gap: 20px;
}

.registration-form > .field,
.registration-form > .form-grid,
.registration-form > .captcha-slot,
.registration-form > .consent-field {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.registration-form > .form-grid:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.meeting-package strong,
.panel h2,
.profile-panel h2,
.timeline h3,
.toc h3,
.doc-section h2 {
  font-family: var(--f-head);
}

.success-card {
  max-width: 680px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

.success-h1 {
  margin: 0 0 14px;
  font-family: var(--f-head);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.success-sub {
  max-width: 48ch;
  margin: 0 auto 28px;
  color: var(--muted);
  font-family: var(--f-serif);
  font-size: 18px;
  line-height: 1.6;
}

.timeline {
  margin: 24px 0;
  padding: 0;
  text-align: left;
}

.timeline h3 {
  margin: 0 0 14px;
  font-size: 1.18rem;
  font-weight: 700;
}

.timeline ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.step-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.step-mark--done {
  background: var(--yellow);
  color: #000;
}

.step-mark--wait {
  background: rgba(135, 197, 221, 0.28);
  color: #0a2030;
}

.step-time {
  margin-bottom: 2px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.step-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.toc {
  margin: 24px 0 32px;
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  border-radius: 14px;
  background: rgba(135, 197, 221, 0.16);
}

.toc h3 {
  margin: 0 0 8px;
  color: #0a2030;
  font-size: 1.1rem;
  font-weight: 700;
}

.toc ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 1.4em;
}

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

.doc-section h2 {
  margin: 32px 0 14px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
}

.doc-section p,
.doc-section ul,
.doc-section ol {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .contact-h1,
  .doc-h1,
  .success-h1 {
    font-size: 2.25rem;
  }

  .mini-specialist {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-highlight,
  .toc {
    padding: 18px;
  }
}

/* Deep-page refinements: forms, documents, timelines and long legal copy. */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(228, 22, 97, 0.1);
  outline: none;
}

input[type="range"] {
  accent-color: var(--pink);
}

.specialist-card .meta-list--compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.specialist-card .meta-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
}

.specialist-card .card__actions {
  margin-top: auto;
}

.specialist-card .button {
  flex: 1 1 180px;
}

.profile-photo {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--blue);
  box-shadow: var(--sh-sm);
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.documents-panel {
  position: relative;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fafafa;
  color: var(--text);
  cursor: zoom-in;
  text-align: left;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.doc-card:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
  box-shadow: var(--sh-sm);
}

.doc-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
}

.doc-thumb::after,
.document-lightbox__body::after {
  content: "showprof";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-28deg);
  color: rgba(228, 22, 97, 0.16);
  font-size: clamp(22px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
}

.doc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.doc-filetype {
  color: var(--pink);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0;
}

.doc-title {
  min-width: 0;
  padding: 10px 12px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.document-lightbox:not([hidden]) {
  z-index: 500;
}

.document-lightbox__body {
  position: relative;
}

.document-lightbox__body img,
.document-lightbox__body iframe {
  position: relative;
  z-index: 1;
}

.image-upload input[type="file"],
.document-upload input[type="file"] {
  padding: 14px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  background: #fafafa;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.image-upload input[type="file"]:hover,
.document-upload input[type="file"]:hover {
  border-color: var(--pink);
  background: rgba(228, 22, 97, 0.03);
}

.upload-preview {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.upload-preview img {
  width: min(100%, 320px);
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.upload-preview__item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafafa;
}

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

.rich-toolbar button,
.upload-preview__actions button:not(.button--secondary) {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

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

.meeting-package {
  padding: 16px;
  border-radius: var(--r-md);
  background: #fafafa;
}

.captcha-slot {
  align-items: flex-start;
  min-height: 88px;
}

.consent-field {
  color: var(--muted);
  font-size: 14px;
}

.consent-field .checkbox-line {
  gap: 12px;
}

.consent-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--pink);
}

.timeline {
  padding: 24px 26px;
  border-left: 3px solid var(--pink);
  border-radius: 14px;
  background: rgba(228, 22, 97, 0.06);
  color: #2a0014;
}

.timeline h3 {
  color: #2a0014;
}

.step-mark--done {
  background: var(--pink);
  color: #fff;
}

.step-mark--wait {
  background: #fff;
  color: rgba(228, 22, 97, 0.66);
  border: 2px solid rgba(228, 22, 97, 0.3);
}

.step-time {
  color: var(--pink);
}

.step-text {
  color: #2a0014;
}

.timeline--blue {
  border-left-color: var(--blue);
  background: rgba(135, 197, 221, 0.18);
  color: #0a2030;
}

.timeline--blue h3,
.timeline--blue .step-text {
  color: #0a2030;
}

.timeline--blue .step-mark--done {
  background: var(--blue);
  color: #fff;
}

.timeline--blue .step-mark--wait {
  border: 2px solid var(--blue);
  background: #fff;
  color: #0a2030;
}

.timeline--blue .step-time {
  color: var(--blue);
}

.doc-section:first-of-type h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.doc-section p {
  font-size: 16px;
  line-height: 1.75;
}

.doc-section li {
  margin-bottom: 0.45em;
}

.doc-section code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13.5px;
}

@media (max-width: 780px) {
  .specialist-card .meta-list--compact,
  .meeting-packages {
    grid-template-columns: 1fr;
  }

  .documents-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

/* Final visual parity pass for public mockups. */
.site-nav a.current {
  background: transparent;
  color: var(--text);
}

.aggregator-hero h1 {
  font-size: 5rem;
}

.form-hero--registration h1 {
  font-size: 3.6rem;
}

.process-grid {
  border-bottom: 1px solid var(--border);
}

.process-grid article {
  min-height: 220px;
}

.process-grid .step-marker {
  display: inline;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  place-items: initial;
  text-transform: uppercase;
}

.catalog-intro {
  width: min(1160px, calc(100% - 32px));
  margin: 48px auto 22px;
}

.catalog-intro h2 {
  margin: 0 0 8px;
  font-family: var(--f-head);
  font-size: 2.45rem;
  font-weight: 900;
  line-height: 1.05;
}

.catalog-intro p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
}

.catalog-results-count {
  width: min(1160px, calc(100% - 32px));
  margin: 24px auto 14px;
  color: var(--muted);
  font-size: 13px;
}

.filter-bar {
  margin-bottom: 0;
}

.filter-group[open] {
  align-content: flex-start;
  min-height: 156px;
}

.specialist-profile {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
  padding-top: 18px;
}

.profile-heading {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.profile-heading .eyebrow {
  color: var(--pink);
}

.profile-heading h1 {
  margin: 6px 0 6px;
  font-family: var(--f-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.profile-heading .lead {
  color: var(--muted);
  font-size: 18px;
}

.profile-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #dce7f3;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile-photo--placeholder span {
  color: #1d3f68;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0;
}

.specialist-card__media {
  background: #dce7f3;
}

.specialist-card__media span {
  color: #1d3f68;
  font-family: var(--f-ui);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0;
}

.sticky-panel {
  background: #fafafa;
}

.tag--sponsor {
  letter-spacing: 0.04em;
}

.registration-section {
  width: min(780px, calc(100% - 32px));
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.registration-section > h2 {
  margin: 0 0 4px;
  font-family: var(--f-head);
  font-size: 1.65rem;
  line-height: 1.1;
}

.registration-section > .muted {
  margin: 0 0 16px;
}

.registration-section .form-surface {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.registration-form > .form-grid:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.contact-form-section {
  width: min(780px, calc(100% - 32px));
  padding: 24px 28px;
}

.contact-form-section .form-surface {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mini-specialist__avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dce7f3;
  color: #1d3f68;
  font-weight: 800;
}

.button--yellow {
  background: var(--yellow);
  color: #000;
}

.registration-form button.button--yellow,
.registration-form .button--yellow {
  background: var(--yellow);
  color: #000;
}

.button--full {
  width: 100%;
}

.article-highlight--pink {
  border-left: 3px solid var(--pink);
  background: rgba(228, 22, 97, 0.08);
  color: #2a0014;
}

.article-highlight code,
.timeline code,
.doc-section code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
}

.registration-form .form-section {
  padding-top: 30px;
  border-top: 2px solid var(--border);
}

.registration-form .form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.registration-form .form-section h2 {
  margin: 0 0 8px;
  font-family: var(--f-head);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.18;
}

.registration-form .sec-hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.registration-form > .field,
.registration-form > .form-grid,
.registration-form > .captcha-slot,
.registration-form > .consent-field {
  padding-top: 0;
  border-top: 0;
}

.registration-calendar {
  display: none;
}

.registration-inline-highlight,
.registration-inline-warning {
  margin: 0 0 14px;
}

.registration-form > .article-highlight--pink {
  margin-top: 16px;
}

.registration-form > .actions {
  margin-top: 4px;
}

.contact-form-section .button--primary {
  width: 100%;
}

.contact-form-section .actions {
  flex-direction: column;
  align-items: stretch;
}

.success-emoji {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1;
}

.success-card .success-sub b {
  color: var(--text);
  font-weight: 700;
}

.support-block {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--blue);
  border-radius: 14px;
  background: rgba(135, 197, 221, 0.18);
  color: #0a2030;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

.support-block a {
  color: #0a2030;
  font-weight: 700;
  text-decoration: underline;
}

.step-mark--now {
  border: 2px solid var(--pink);
  background: #fff;
  color: var(--pink);
}

.q-card {
  position: relative;
  margin-top: 36px;
  padding: 24px 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
}

.q-card::before {
  content: "«";
  position: absolute;
  top: 6px;
  left: 16px;
  color: var(--pink);
  font-family: var(--f-head);
  font-size: 3rem;
  line-height: 1;
}

.q-card p {
  margin: 0 0 14px;
  padding-top: 24px;
  font-family: var(--f-serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
}

.q-card a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: underline;
}

.doc-actions {
  margin-top: 32px;
  text-align: center;
}

.footer-links-row a {
  letter-spacing: 0.1em;
}

@media (max-width: 780px) {
  .aggregator-hero h1 {
    font-size: 2.8rem;
  }

  .form-hero--registration h1,
  .profile-heading h1 {
    font-size: 2.4rem;
  }

  .contact-h1,
  .doc-h1,
  .success-h1 {
    font-size: 2rem;
  }

  .process-grid article {
    min-height: 0;
  }

  .catalog-intro h2 {
    font-size: 2rem;
  }

  .specialist-profile {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .specialist-profile__main {
    display: contents;
  }

  .specialist-profile__main > .profile-heading {
    order: 1;
  }

  .specialist-profile__main > .tags {
    order: 2;
  }

  .specialist-profile__aside {
    order: 3;
    width: 100%;
  }

  .specialist-profile__main > .profile-panel {
    order: 4;
    width: 100%;
  }

  .profile-photo {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .contact-form-section {
    padding: 20px 16px;
  }
}

.section-title {
  margin: 0;
  font-family: var(--f-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.section-sub {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.article-highlight--compact {
  margin: 0 0 14px;
  padding: 16px 18px;
}

.article-highlight--pink {
  margin-top: 34px;
  border-left-color: var(--pink);
  background: rgba(239, 98, 140, 0.12);
}

.doc-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.action-row {
  margin-top: 22px;
}

.doc-actions {
  margin-top: 32px;
  text-align: center;
}
